Class KubernetesSecret.Builder (0.35.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public KubernetesSecret build()
Returns
TypeDescription
KubernetesSecret

buildPartial()

public KubernetesSecret buildPartial()
Returns
TypeDescription
KubernetesSecret

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public KubernetesSecret.Builder clearName()

Name of the kubernetes secret.

string name = 1;

Returns
TypeDescription
KubernetesSecret.Builder

This builder for chaining.

clearNamespace()

public KubernetesSecret.Builder clearNamespace()

Namespace in which the kubernetes secret is stored.

string namespace = 2;

Returns
TypeDescription
KubernetesSecret.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public KubernetesSecret.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
KubernetesSecret.Builder
Overrides

clone()

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

getDefaultInstanceForType()

public KubernetesSecret getDefaultInstanceForType()
Returns
TypeDescription
KubernetesSecret

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Name of the kubernetes secret.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of the kubernetes secret.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getNamespace()

public String getNamespace()

Namespace in which the kubernetes secret is stored.

string namespace = 2;

Returns
TypeDescription
String

The namespace.

getNamespaceBytes()

public ByteString getNamespaceBytes()

Namespace in which the kubernetes secret is stored.

string namespace = 2;

Returns
TypeDescription
ByteString

The bytes for namespace.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(KubernetesSecret other)

public KubernetesSecret.Builder mergeFrom(KubernetesSecret other)
Parameter
NameDescription
otherKubernetesSecret
Returns
TypeDescription
KubernetesSecret.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public KubernetesSecret.Builder setName(String value)

Name of the kubernetes secret.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
KubernetesSecret.Builder

This builder for chaining.

setNameBytes(ByteString value)

public KubernetesSecret.Builder setNameBytes(ByteString value)

Name of the kubernetes secret.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

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

The namespace to set.

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

The bytes for namespace to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
KubernetesSecret.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final KubernetesSecret.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
KubernetesSecret.Builder
Overrides