Class Space.PermissionSetting.Builder (0.19.0)

public static final class Space.PermissionSetting.Builder extends GeneratedMessageV3.Builder<Space.PermissionSetting.Builder> implements Space.PermissionSettingOrBuilder

Represents a space permission setting.

Protobuf type google.chat.v1.Space.PermissionSetting

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Space.PermissionSetting build()
Returns
Type Description
Space.PermissionSetting

buildPartial()

public Space.PermissionSetting buildPartial()
Returns
Type Description
Space.PermissionSetting

clear()

public Space.PermissionSetting.Builder clear()
Returns
Type Description
Space.PermissionSetting.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearManagersAllowed()

public Space.PermissionSetting.Builder clearManagersAllowed()

Optional. Whether spaces managers have this permission.

bool managers_allowed = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Space.PermissionSetting.Builder

This builder for chaining.

clearMembersAllowed()

public Space.PermissionSetting.Builder clearMembersAllowed()

Optional. Whether non-manager members have this permission.

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

Returns
Type Description
Space.PermissionSetting.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public Space.PermissionSetting.Builder clone()
Returns
Type Description
Space.PermissionSetting.Builder
Overrides

getDefaultInstanceForType()

public Space.PermissionSetting getDefaultInstanceForType()
Returns
Type Description
Space.PermissionSetting

getDescriptorForType()

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

getManagersAllowed()

public boolean getManagersAllowed()

Optional. Whether spaces managers have this permission.

bool managers_allowed = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The managersAllowed.

getMembersAllowed()

public boolean getMembersAllowed()

Optional. Whether non-manager members have this permission.

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

Returns
Type Description
boolean

The membersAllowed.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Space.PermissionSetting other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setManagersAllowed(boolean value)

public Space.PermissionSetting.Builder setManagersAllowed(boolean value)

Optional. Whether spaces managers have this permission.

bool managers_allowed = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The managersAllowed to set.

Returns
Type Description
Space.PermissionSetting.Builder

This builder for chaining.

setMembersAllowed(boolean value)

public Space.PermissionSetting.Builder setMembersAllowed(boolean value)

Optional. Whether non-manager members have this permission.

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

Parameter
Name Description
value boolean

The membersAllowed to set.

Returns
Type Description
Space.PermissionSetting.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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