Class AttachedClusterUser.Builder (0.42.0)

public static final class AttachedClusterUser.Builder extends GeneratedMessageV3.Builder<AttachedClusterUser.Builder> implements AttachedClusterUserOrBuilder

Identities of a user-type subject for Attached clusters.

Protobuf type google.cloud.gkemulticloud.v1.AttachedClusterUser

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AttachedClusterUser build()
Returns
Type Description
AttachedClusterUser

buildPartial()

public AttachedClusterUser buildPartial()
Returns
Type Description
AttachedClusterUser

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUsername()

public AttachedClusterUser.Builder clearUsername()

Required. The name of the user, e.g. my-gcp-id@gmail.com.

string username = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AttachedClusterUser.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public AttachedClusterUser getDefaultInstanceForType()
Returns
Type Description
AttachedClusterUser

getDescriptorForType()

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

getUsername()

public String getUsername()

Required. The name of the user, e.g. my-gcp-id@gmail.com.

string username = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The username.

getUsernameBytes()

public ByteString getUsernameBytes()

Required. The name of the user, e.g. my-gcp-id@gmail.com.

string username = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for username.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AttachedClusterUser other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUsername(String value)

public AttachedClusterUser.Builder setUsername(String value)

Required. The name of the user, e.g. my-gcp-id@gmail.com.

string username = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The username to set.

Returns
Type Description
AttachedClusterUser.Builder

This builder for chaining.

setUsernameBytes(ByteString value)

public AttachedClusterUser.Builder setUsernameBytes(ByteString value)

Required. The name of the user, e.g. my-gcp-id@gmail.com.

string username = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for username to set.

Returns
Type Description
AttachedClusterUser.Builder

This builder for chaining.