public static final class CreateSpaceRequest.Builder extends GeneratedMessageV3.Builder<CreateSpaceRequest.Builder> implements CreateSpaceRequestOrBuilderA request to create a named space with no members.
 Protobuf type google.chat.v1.CreateSpaceRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CreateSpaceRequest.BuilderImplements
CreateSpaceRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description | 
Descriptor | 
        |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateSpaceRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
value | 
        Object | 
      
| Returns | |
|---|---|
| Type | Description | 
CreateSpaceRequest.Builder | 
        |
build()
public CreateSpaceRequest build()| Returns | |
|---|---|
| Type | Description | 
CreateSpaceRequest | 
        |
buildPartial()
public CreateSpaceRequest buildPartial()| Returns | |
|---|---|
| Type | Description | 
CreateSpaceRequest | 
        |
clear()
public CreateSpaceRequest.Builder clear()| Returns | |
|---|---|
| Type | Description | 
CreateSpaceRequest.Builder | 
        |
clearField(Descriptors.FieldDescriptor field)
public CreateSpaceRequest.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
| Returns | |
|---|---|
| Type | Description | 
CreateSpaceRequest.Builder | 
        |
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateSpaceRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description | 
oneof | 
        OneofDescriptor | 
      
| Returns | |
|---|---|
| Type | Description | 
CreateSpaceRequest.Builder | 
        |
clearRequestId()
public CreateSpaceRequest.Builder clearRequestId()Optional. A unique identifier for this request. A random UUID is recommended. Specifying an existing request ID returns the space created with that ID instead of creating a new space. Specifying an existing request ID from the same Chat app with a different authenticated user returns an error.
 string request_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description | 
CreateSpaceRequest.Builder | 
        This builder for chaining.  | 
      
clearSpace()
public CreateSpaceRequest.Builder clearSpace() Required. The displayName and spaceType fields must be populated.  Only
 SpaceType.SPACE is supported.
 If you receive the error message ALREADY_EXISTS,
 try a different displayName. An existing space within the Google
 Workspace organization might already use this display name.
 If you're a member of the Developer Preview
 program,
 SpaceType.GROUP_CHAT can be used if importMode is set to true.
 The space name is assigned on the server so anything specified in this
 field will be ignored.
 .google.chat.v1.Space space = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description | 
CreateSpaceRequest.Builder | 
        |
clone()
public CreateSpaceRequest.Builder clone()| Returns | |
|---|---|
| Type | Description | 
CreateSpaceRequest.Builder | 
        |
getDefaultInstanceForType()
public CreateSpaceRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description | 
CreateSpaceRequest | 
        |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description | 
Descriptor | 
        |
getRequestId()
public String getRequestId()Optional. A unique identifier for this request. A random UUID is recommended. Specifying an existing request ID returns the space created with that ID instead of creating a new space. Specifying an existing request ID from the same Chat app with a different authenticated user returns an error.
 string request_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description | 
String | 
        The requestId.  | 
      
getRequestIdBytes()
public ByteString getRequestIdBytes()Optional. A unique identifier for this request. A random UUID is recommended. Specifying an existing request ID returns the space created with that ID instead of creating a new space. Specifying an existing request ID from the same Chat app with a different authenticated user returns an error.
 string request_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description | 
ByteString | 
        The bytes for requestId.  | 
      
getSpace()
public Space getSpace() Required. The displayName and spaceType fields must be populated.  Only
 SpaceType.SPACE is supported.
 If you receive the error message ALREADY_EXISTS,
 try a different displayName. An existing space within the Google
 Workspace organization might already use this display name.
 If you're a member of the Developer Preview
 program,
 SpaceType.GROUP_CHAT can be used if importMode is set to true.
 The space name is assigned on the server so anything specified in this
 field will be ignored.
 .google.chat.v1.Space space = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description | 
Space | 
        The space.  | 
      
getSpaceBuilder()
public Space.Builder getSpaceBuilder() Required. The displayName and spaceType fields must be populated.  Only
 SpaceType.SPACE is supported.
 If you receive the error message ALREADY_EXISTS,
 try a different displayName. An existing space within the Google
 Workspace organization might already use this display name.
 If you're a member of the Developer Preview
 program,
 SpaceType.GROUP_CHAT can be used if importMode is set to true.
 The space name is assigned on the server so anything specified in this
 field will be ignored.
 .google.chat.v1.Space space = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description | 
Space.Builder | 
        |
getSpaceOrBuilder()
public SpaceOrBuilder getSpaceOrBuilder() Required. The displayName and spaceType fields must be populated.  Only
 SpaceType.SPACE is supported.
 If you receive the error message ALREADY_EXISTS,
 try a different displayName. An existing space within the Google
 Workspace organization might already use this display name.
 If you're a member of the Developer Preview
 program,
 SpaceType.GROUP_CHAT can be used if importMode is set to true.
 The space name is assigned on the server so anything specified in this
 field will be ignored.
 .google.chat.v1.Space space = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description | 
SpaceOrBuilder | 
        |
hasSpace()
public boolean hasSpace() Required. The displayName and spaceType fields must be populated.  Only
 SpaceType.SPACE is supported.
 If you receive the error message ALREADY_EXISTS,
 try a different displayName. An existing space within the Google
 Workspace organization might already use this display name.
 If you're a member of the Developer Preview
 program,
 SpaceType.GROUP_CHAT can be used if importMode is set to true.
 The space name is assigned on the server so anything specified in this
 field will be ignored.
 .google.chat.v1.Space space = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description | 
boolean | 
        Whether the space field is set.  | 
      
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description | 
FieldAccessorTable | 
        |
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description | 
boolean | 
        |
mergeFrom(CreateSpaceRequest other)
public CreateSpaceRequest.Builder mergeFrom(CreateSpaceRequest other)| Parameter | |
|---|---|
| Name | Description | 
other | 
        CreateSpaceRequest | 
      
| Returns | |
|---|---|
| Type | Description | 
CreateSpaceRequest.Builder | 
        |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CreateSpaceRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description | 
input | 
        CodedInputStream | 
      
extensionRegistry | 
        ExtensionRegistryLite | 
      
| Returns | |
|---|---|
| Type | Description | 
CreateSpaceRequest.Builder | 
        |
| Exceptions | |
|---|---|
| Type | Description | 
IOException | 
        |
mergeFrom(Message other)
public CreateSpaceRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description | 
other | 
        Message | 
      
| Returns | |
|---|---|
| Type | Description | 
CreateSpaceRequest.Builder | 
        |
mergeSpace(Space value)
public CreateSpaceRequest.Builder mergeSpace(Space value) Required. The displayName and spaceType fields must be populated.  Only
 SpaceType.SPACE is supported.
 If you receive the error message ALREADY_EXISTS,
 try a different displayName. An existing space within the Google
 Workspace organization might already use this display name.
 If you're a member of the Developer Preview
 program,
 SpaceType.GROUP_CHAT can be used if importMode is set to true.
 The space name is assigned on the server so anything specified in this
 field will be ignored.
 .google.chat.v1.Space space = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description | 
value | 
        Space | 
      
| Returns | |
|---|---|
| Type | Description | 
CreateSpaceRequest.Builder | 
        |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateSpaceRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
unknownFields | 
        UnknownFieldSet | 
      
| Returns | |
|---|---|
| Type | Description | 
CreateSpaceRequest.Builder | 
        |
setField(Descriptors.FieldDescriptor field, Object value)
public CreateSpaceRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
value | 
        Object | 
      
| Returns | |
|---|---|
| Type | Description | 
CreateSpaceRequest.Builder | 
        |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateSpaceRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
index | 
        int | 
      
value | 
        Object | 
      
| Returns | |
|---|---|
| Type | Description | 
CreateSpaceRequest.Builder | 
        |
setRequestId(String value)
public CreateSpaceRequest.Builder setRequestId(String value)Optional. A unique identifier for this request. A random UUID is recommended. Specifying an existing request ID returns the space created with that ID instead of creating a new space. Specifying an existing request ID from the same Chat app with a different authenticated user returns an error.
 string request_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description | 
value | 
        StringThe requestId to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
CreateSpaceRequest.Builder | 
        This builder for chaining.  | 
      
setRequestIdBytes(ByteString value)
public CreateSpaceRequest.Builder setRequestIdBytes(ByteString value)Optional. A unique identifier for this request. A random UUID is recommended. Specifying an existing request ID returns the space created with that ID instead of creating a new space. Specifying an existing request ID from the same Chat app with a different authenticated user returns an error.
 string request_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description | 
value | 
        ByteStringThe bytes for requestId to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
CreateSpaceRequest.Builder | 
        This builder for chaining.  | 
      
setSpace(Space value)
public CreateSpaceRequest.Builder setSpace(Space value) Required. The displayName and spaceType fields must be populated.  Only
 SpaceType.SPACE is supported.
 If you receive the error message ALREADY_EXISTS,
 try a different displayName. An existing space within the Google
 Workspace organization might already use this display name.
 If you're a member of the Developer Preview
 program,
 SpaceType.GROUP_CHAT can be used if importMode is set to true.
 The space name is assigned on the server so anything specified in this
 field will be ignored.
 .google.chat.v1.Space space = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description | 
value | 
        Space | 
      
| Returns | |
|---|---|
| Type | Description | 
CreateSpaceRequest.Builder | 
        |
setSpace(Space.Builder builderForValue)
public CreateSpaceRequest.Builder setSpace(Space.Builder builderForValue) Required. The displayName and spaceType fields must be populated.  Only
 SpaceType.SPACE is supported.
 If you receive the error message ALREADY_EXISTS,
 try a different displayName. An existing space within the Google
 Workspace organization might already use this display name.
 If you're a member of the Developer Preview
 program,
 SpaceType.GROUP_CHAT can be used if importMode is set to true.
 The space name is assigned on the server so anything specified in this
 field will be ignored.
 .google.chat.v1.Space space = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description | 
builderForValue | 
        Space.Builder | 
      
| Returns | |
|---|---|
| Type | Description | 
CreateSpaceRequest.Builder | 
        |
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateSpaceRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
unknownFields | 
        UnknownFieldSet | 
      
| Returns | |
|---|---|
| Type | Description | 
CreateSpaceRequest.Builder | 
        |