Class CreateSpaceRequest.Builder (0.18.0)

public static final class CreateSpaceRequest.Builder extends GeneratedMessageV3.Builder<CreateSpaceRequest.Builder> implements CreateSpaceRequestOrBuilder

A request to create a named space with no members.

Protobuf type google.chat.v1.CreateSpaceRequest

Static 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
Overrides

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
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreateSpaceRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateSpaceRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateSpaceRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateSpaceRequest.Builder
Overrides

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
Overrides

getDefaultInstanceForType()

public CreateSpaceRequest getDefaultInstanceForType()
Returns
Type Description
CreateSpaceRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CreateSpaceRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CreateSpaceRequest.Builder
Overrides

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
Overrides

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
Overrides

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
Overrides

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 String

The 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 ByteString

The 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
Overrides