Class NamespacedName.Builder (0.38.0)

public static final class NamespacedName.Builder extends GeneratedMessageV3.Builder<NamespacedName.Builder> implements NamespacedNameOrBuilder

A reference to a namespaced resource in Kubernetes.

Protobuf type google.cloud.gkebackup.v1.NamespacedName

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public NamespacedName build()
Returns
TypeDescription
NamespacedName

buildPartial()

public NamespacedName buildPartial()
Returns
TypeDescription
NamespacedName

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public NamespacedName.Builder clearName()

Optional. The name of the Kubernetes resource.

string name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
NamespacedName.Builder

This builder for chaining.

clearNamespace()

public NamespacedName.Builder clearNamespace()

Optional. The Namespace of the Kubernetes resource.

string namespace = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
NamespacedName.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public NamespacedName getDefaultInstanceForType()
Returns
TypeDescription
NamespacedName

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Optional. The name of the Kubernetes resource.

string name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Optional. The name of the Kubernetes resource.

string name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for name.

getNamespace()

public String getNamespace()

Optional. The Namespace of the Kubernetes resource.

string namespace = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The namespace.

getNamespaceBytes()

public ByteString getNamespaceBytes()

Optional. The Namespace of the Kubernetes resource.

string namespace = 1 [(.google.api.field_behavior) = OPTIONAL];

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(NamespacedName other)

public NamespacedName.Builder mergeFrom(NamespacedName other)
Parameter
NameDescription
otherNamespacedName
Returns
TypeDescription
NamespacedName.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public NamespacedName.Builder setName(String value)

Optional. The name of the Kubernetes resource.

string name = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
NamespacedName.Builder

This builder for chaining.

setNameBytes(ByteString value)

public NamespacedName.Builder setNameBytes(ByteString value)

Optional. The name of the Kubernetes resource.

string name = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
NamespacedName.Builder

This builder for chaining.

setNamespace(String value)

public NamespacedName.Builder setNamespace(String value)

Optional. The Namespace of the Kubernetes resource.

string namespace = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The namespace to set.

Returns
TypeDescription
NamespacedName.Builder

This builder for chaining.

setNamespaceBytes(ByteString value)

public NamespacedName.Builder setNamespaceBytes(ByteString value)

Optional. The Namespace of the Kubernetes resource.

string namespace = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for namespace to set.

Returns
TypeDescription
NamespacedName.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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