Class Namespaces.Builder (0.13.0)

public static final class Namespaces.Builder extends GeneratedMessageV3.Builder<Namespaces.Builder> implements NamespacesOrBuilder

A list of Kubernetes Namespaces

Protobuf type google.cloud.gkebackup.v1.Namespaces

Implements

NamespacesOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllNamespaces(Iterable<String> values)

public Namespaces.Builder addAllNamespaces(Iterable<String> values)

A list of Kubernetes Namespaces

repeated string namespaces = 1;

Parameter
NameDescription
valuesIterable<String>

The namespaces to add.

Returns
TypeDescription
Namespaces.Builder

This builder for chaining.

addNamespaces(String value)

public Namespaces.Builder addNamespaces(String value)

A list of Kubernetes Namespaces

repeated string namespaces = 1;

Parameter
NameDescription
valueString

The namespaces to add.

Returns
TypeDescription
Namespaces.Builder

This builder for chaining.

addNamespacesBytes(ByteString value)

public Namespaces.Builder addNamespacesBytes(ByteString value)

A list of Kubernetes Namespaces

repeated string namespaces = 1;

Parameter
NameDescription
valueByteString

The bytes of the namespaces to add.

Returns
TypeDescription
Namespaces.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Namespaces build()
Returns
TypeDescription
Namespaces

buildPartial()

public Namespaces buildPartial()
Returns
TypeDescription
Namespaces

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNamespaces()

public Namespaces.Builder clearNamespaces()

A list of Kubernetes Namespaces

repeated string namespaces = 1;

Returns
TypeDescription
Namespaces.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public Namespaces getDefaultInstanceForType()
Returns
TypeDescription
Namespaces

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNamespaces(int index)

public String getNamespaces(int index)

A list of Kubernetes Namespaces

repeated string namespaces = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The namespaces at the given index.

getNamespacesBytes(int index)

public ByteString getNamespacesBytes(int index)

A list of Kubernetes Namespaces

repeated string namespaces = 1;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the namespaces at the given index.

getNamespacesCount()

public int getNamespacesCount()

A list of Kubernetes Namespaces

repeated string namespaces = 1;

Returns
TypeDescription
int

The count of namespaces.

getNamespacesList()

public ProtocolStringList getNamespacesList()

A list of Kubernetes Namespaces

repeated string namespaces = 1;

Returns
TypeDescription
ProtocolStringList

A list containing the namespaces.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Namespaces other)

public Namespaces.Builder mergeFrom(Namespaces other)
Parameter
NameDescription
otherNamespaces
Returns
TypeDescription
Namespaces.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setNamespaces(int index, String value)

public Namespaces.Builder setNamespaces(int index, String value)

A list of Kubernetes Namespaces

repeated string namespaces = 1;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The namespaces to set.

Returns
TypeDescription
Namespaces.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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