Class CreateSpaceRequest.Builder (0.4.0)

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

Protobuf type google.chat.v1.CreateSpaceRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateSpaceRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateSpaceRequest.Builder
Overrides

build()

public CreateSpaceRequest build()
Returns
TypeDescription
CreateSpaceRequest

buildPartial()

public CreateSpaceRequest buildPartial()
Returns
TypeDescription
CreateSpaceRequest

clear()

public CreateSpaceRequest.Builder clear()
Returns
TypeDescription
CreateSpaceRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreateSpaceRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreateSpaceRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateSpaceRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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 when creating a space, try a different displayName. An existing space within the Google Workspace organization might already use this display name.

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
TypeDescription
CreateSpaceRequest.Builder

clone()

public CreateSpaceRequest.Builder clone()
Returns
TypeDescription
CreateSpaceRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateSpaceRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateSpaceRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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 when creating a space, try a different displayName. An existing space within the Google Workspace organization might already use this display name.

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
TypeDescription
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 when creating a space, try a different displayName. An existing space within the Google Workspace organization might already use this display name.

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
TypeDescription
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 when creating a space, try a different displayName. An existing space within the Google Workspace organization might already use this display name.

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
TypeDescription
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 when creating a space, try a different displayName. An existing space within the Google Workspace organization might already use this display name.

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
TypeDescription
boolean

Whether the space field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateSpaceRequest other)

public CreateSpaceRequest.Builder mergeFrom(CreateSpaceRequest other)
Parameter
NameDescription
otherCreateSpaceRequest
Returns
TypeDescription
CreateSpaceRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateSpaceRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateSpaceRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CreateSpaceRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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 when creating a space, try a different displayName. An existing space within the Google Workspace organization might already use this display name.

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
NameDescription
valueSpace
Returns
TypeDescription
CreateSpaceRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateSpaceRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateSpaceRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CreateSpaceRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateSpaceRequest.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CreateSpaceRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The requestId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for requestId to set.

Returns
TypeDescription
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 when creating a space, try a different displayName. An existing space within the Google Workspace organization might already use this display name.

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
NameDescription
valueSpace
Returns
TypeDescription
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 when creating a space, try a different displayName. An existing space within the Google Workspace organization might already use this display name.

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
NameDescription
builderForValueSpace.Builder
Returns
TypeDescription
CreateSpaceRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateSpaceRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateSpaceRequest.Builder
Overrides