Class NamespacedName.Builder (0.53.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public NamespacedName build()
Returns
Type Description
NamespacedName

buildPartial()

public NamespacedName buildPartial()
Returns
Type Description
NamespacedName

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public NamespacedName.Builder clearName()

Optional. The name of the Kubernetes resource.

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

Returns
Type Description
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
Type Description
NamespacedName.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public NamespacedName getDefaultInstanceForType()
Returns
Type Description
NamespacedName

getDescriptorForType()

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

getName()

public String getName()

Optional. The name of the Kubernetes resource.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Optional. The name of the Kubernetes resource.

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

Returns
Type Description
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
Type Description
String

The namespace.

getNamespaceBytes()

public ByteString getNamespaceBytes()

Optional. The Namespace of the Kubernetes resource.

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

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public NamespacedName.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The name to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
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
Name Description
value String

The namespace to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for namespace to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
NamespacedName.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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