Class NamespacedName.Builder (0.1.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()

The name of the Kubernetes resource.

string name = 2;

Returns
TypeDescription
NamespacedName.Builder

This builder for chaining.

clearNamespace()

public NamespacedName.Builder clearNamespace()

The Namespace of the Kubernetes resource.

string namespace = 1;

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

The name of the Kubernetes resource.

string name = 2;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the Kubernetes resource.

string name = 2;

Returns
TypeDescription
ByteString

The bytes for name.

getNamespace()

public String getNamespace()

The Namespace of the Kubernetes resource.

string namespace = 1;

Returns
TypeDescription
String

The namespace.

getNamespaceBytes()

public ByteString getNamespaceBytes()

The Namespace of the Kubernetes resource.

string namespace = 1;

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)

The name of the Kubernetes resource.

string name = 2;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
NamespacedName.Builder

This builder for chaining.

setNameBytes(ByteString value)

public NamespacedName.Builder setNameBytes(ByteString value)

The name of the Kubernetes resource.

string name = 2;

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)

The Namespace of the Kubernetes resource.

string namespace = 1;

Parameter
NameDescription
valueString

The namespace to set.

Returns
TypeDescription
NamespacedName.Builder

This builder for chaining.

setNamespaceBytes(ByteString value)

public NamespacedName.Builder setNamespaceBytes(ByteString value)

The Namespace of the Kubernetes resource.

string namespace = 1;

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