Class GetSpaceRequest.Builder (0.19.0)

public static final class GetSpaceRequest.Builder extends GeneratedMessageV3.Builder<GetSpaceRequest.Builder> implements GetSpaceRequestOrBuilder

A request to return a single space.

Protobuf type google.chat.v1.GetSpaceRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GetSpaceRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GetSpaceRequest.Builder
Overrides

build()

public GetSpaceRequest build()
Returns
Type Description
GetSpaceRequest

buildPartial()

public GetSpaceRequest buildPartial()
Returns
Type Description
GetSpaceRequest

clear()

public GetSpaceRequest.Builder clear()
Returns
Type Description
GetSpaceRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public GetSpaceRequest.Builder clearName()

Required. Resource name of the space, in the form spaces/{space}.

Format: spaces/{space}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
GetSpaceRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUseAdminAccess()

public GetSpaceRequest.Builder clearUseAdminAccess()

Optional. When true, the method runs using the user's Google Workspace administrator privileges.

The calling user must be a Google Workspace administrator with the manage chat and spaces conversations privilege.

Requires the chat.admin.spaces or chat.admin.spaces.readonly OAuth 2.0 scopes.

bool use_admin_access = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GetSpaceRequest.Builder

This builder for chaining.

clone()

public GetSpaceRequest.Builder clone()
Returns
Type Description
GetSpaceRequest.Builder
Overrides

getDefaultInstanceForType()

public GetSpaceRequest getDefaultInstanceForType()
Returns
Type Description
GetSpaceRequest

getDescriptorForType()

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

getName()

public String getName()

Required. Resource name of the space, in the form spaces/{space}.

Format: spaces/{space}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Resource name of the space, in the form spaces/{space}.

Format: spaces/{space}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

getUseAdminAccess()

public boolean getUseAdminAccess()

Optional. When true, the method runs using the user's Google Workspace administrator privileges.

The calling user must be a Google Workspace administrator with the manage chat and spaces conversations privilege.

Requires the chat.admin.spaces or chat.admin.spaces.readonly OAuth 2.0 scopes.

bool use_admin_access = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The useAdminAccess.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetSpaceRequest other)

public GetSpaceRequest.Builder mergeFrom(GetSpaceRequest other)
Parameter
Name Description
other GetSpaceRequest
Returns
Type Description
GetSpaceRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GetSpaceRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GetSpaceRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GetSpaceRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GetSpaceRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public GetSpaceRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GetSpaceRequest.Builder
Overrides

setName(String value)

public GetSpaceRequest.Builder setName(String value)

Required. Resource name of the space, in the form spaces/{space}.

Format: spaces/{space}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
GetSpaceRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetSpaceRequest.Builder setNameBytes(ByteString value)

Required. Resource name of the space, in the form spaces/{space}.

Format: spaces/{space}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
GetSpaceRequest.Builder

This builder for chaining.

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

public GetSpaceRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GetSpaceRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GetSpaceRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GetSpaceRequest.Builder
Overrides

setUseAdminAccess(boolean value)

public GetSpaceRequest.Builder setUseAdminAccess(boolean value)

Optional. When true, the method runs using the user's Google Workspace administrator privileges.

The calling user must be a Google Workspace administrator with the manage chat and spaces conversations privilege.

Requires the chat.admin.spaces or chat.admin.spaces.readonly OAuth 2.0 scopes.

bool use_admin_access = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The useAdminAccess to set.

Returns
Type Description
GetSpaceRequest.Builder

This builder for chaining.