Class AttachedClusterUser.Builder (0.29.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AttachedClusterUser build()
Returns
TypeDescription
AttachedClusterUser

buildPartial()

public AttachedClusterUser buildPartial()
Returns
TypeDescription
AttachedClusterUser

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public AttachedClusterUser.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
AttachedClusterUser.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public AttachedClusterUser getDefaultInstanceForType()
Returns
TypeDescription
AttachedClusterUser

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for username.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AttachedClusterUser other)

public AttachedClusterUser.Builder mergeFrom(AttachedClusterUser other)
Parameter
NameDescription
otherAttachedClusterUser
Returns
TypeDescription
AttachedClusterUser.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public AttachedClusterUser.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AttachedClusterUser.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public AttachedClusterUser.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AttachedClusterUser.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AttachedClusterUser.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The username to set.

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

The bytes for username to set.

Returns
TypeDescription
AttachedClusterUser.Builder

This builder for chaining.