Class NamespacedName.Builder (0.86.0)

public static final class NamespacedName.Builder extends GeneratedMessage.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

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

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.

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 GeneratedMessage.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

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.