Class KubernetesSecret.Builder (0.41.0)

public static final class KubernetesSecret.Builder extends GeneratedMessageV3.Builder<KubernetesSecret.Builder> implements KubernetesSecretOrBuilder

Information about a Kubernetes Secret

Protobuf type google.cloud.gkemulticloud.v1.KubernetesSecret

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public KubernetesSecret build()
Returns
Type Description
KubernetesSecret

buildPartial()

public KubernetesSecret buildPartial()
Returns
Type Description
KubernetesSecret

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public KubernetesSecret.Builder clearName()

Name of the kubernetes secret.

string name = 1;

Returns
Type Description
KubernetesSecret.Builder

This builder for chaining.

clearNamespace()

public KubernetesSecret.Builder clearNamespace()

Namespace in which the kubernetes secret is stored.

string namespace = 2;

Returns
Type Description
KubernetesSecret.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public KubernetesSecret getDefaultInstanceForType()
Returns
Type Description
KubernetesSecret

getDescriptorForType()

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

getName()

public String getName()

Name of the kubernetes secret.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of the kubernetes secret.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getNamespace()

public String getNamespace()

Namespace in which the kubernetes secret is stored.

string namespace = 2;

Returns
Type Description
String

The namespace.

getNamespaceBytes()

public ByteString getNamespaceBytes()

Namespace in which the kubernetes secret is stored.

string namespace = 2;

Returns
Type Description
ByteString

The bytes for namespace.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(KubernetesSecret other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public KubernetesSecret.Builder setName(String value)

Name of the kubernetes secret.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
KubernetesSecret.Builder

This builder for chaining.

setNameBytes(ByteString value)

public KubernetesSecret.Builder setNameBytes(ByteString value)

Name of the kubernetes secret.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
KubernetesSecret.Builder

This builder for chaining.

setNamespace(String value)

public KubernetesSecret.Builder setNamespace(String value)

Namespace in which the kubernetes secret is stored.

string namespace = 2;

Parameter
Name Description
value String

The namespace to set.

Returns
Type Description
KubernetesSecret.Builder

This builder for chaining.

setNamespaceBytes(ByteString value)

public KubernetesSecret.Builder setNamespaceBytes(ByteString value)

Namespace in which the kubernetes secret is stored.

string namespace = 2;

Parameter
Name Description
value ByteString

The bytes for namespace to set.

Returns
Type Description
KubernetesSecret.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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