Class NamespacedNames.Builder (0.51.0)

public static final class NamespacedNames.Builder extends GeneratedMessageV3.Builder<NamespacedNames.Builder> implements NamespacedNamesOrBuilder

A list of namespaced Kubernetes resources.

Protobuf type google.cloud.gkebackup.v1.NamespacedNames

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllNamespacedNames(Iterable<? extends NamespacedName> values)

public NamespacedNames.Builder addAllNamespacedNames(Iterable<? extends NamespacedName> values)

Optional. A list of namespaced Kubernetes resources.

repeated .google.cloud.gkebackup.v1.NamespacedName namespaced_names = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.gkebackup.v1.NamespacedName>
Returns
Type Description
NamespacedNames.Builder

addNamespacedNames(NamespacedName value)

public NamespacedNames.Builder addNamespacedNames(NamespacedName value)

Optional. A list of namespaced Kubernetes resources.

repeated .google.cloud.gkebackup.v1.NamespacedName namespaced_names = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value NamespacedName
Returns
Type Description
NamespacedNames.Builder

addNamespacedNames(NamespacedName.Builder builderForValue)

public NamespacedNames.Builder addNamespacedNames(NamespacedName.Builder builderForValue)

Optional. A list of namespaced Kubernetes resources.

repeated .google.cloud.gkebackup.v1.NamespacedName namespaced_names = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue NamespacedName.Builder
Returns
Type Description
NamespacedNames.Builder

addNamespacedNames(int index, NamespacedName value)

public NamespacedNames.Builder addNamespacedNames(int index, NamespacedName value)

Optional. A list of namespaced Kubernetes resources.

repeated .google.cloud.gkebackup.v1.NamespacedName namespaced_names = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value NamespacedName
Returns
Type Description
NamespacedNames.Builder

addNamespacedNames(int index, NamespacedName.Builder builderForValue)

public NamespacedNames.Builder addNamespacedNames(int index, NamespacedName.Builder builderForValue)

Optional. A list of namespaced Kubernetes resources.

repeated .google.cloud.gkebackup.v1.NamespacedName namespaced_names = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue NamespacedName.Builder
Returns
Type Description
NamespacedNames.Builder

addNamespacedNamesBuilder()

public NamespacedName.Builder addNamespacedNamesBuilder()

Optional. A list of namespaced Kubernetes resources.

repeated .google.cloud.gkebackup.v1.NamespacedName namespaced_names = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NamespacedName.Builder

addNamespacedNamesBuilder(int index)

public NamespacedName.Builder addNamespacedNamesBuilder(int index)

Optional. A list of namespaced Kubernetes resources.

repeated .google.cloud.gkebackup.v1.NamespacedName namespaced_names = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
NamespacedName.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public NamespacedNames build()
Returns
Type Description
NamespacedNames

buildPartial()

public NamespacedNames buildPartial()
Returns
Type Description
NamespacedNames

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNamespacedNames()

public NamespacedNames.Builder clearNamespacedNames()

Optional. A list of namespaced Kubernetes resources.

repeated .google.cloud.gkebackup.v1.NamespacedName namespaced_names = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NamespacedNames.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public NamespacedNames getDefaultInstanceForType()
Returns
Type Description
NamespacedNames

getDescriptorForType()

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

getNamespacedNames(int index)

public NamespacedName getNamespacedNames(int index)

Optional. A list of namespaced Kubernetes resources.

repeated .google.cloud.gkebackup.v1.NamespacedName namespaced_names = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
NamespacedName

getNamespacedNamesBuilder(int index)

public NamespacedName.Builder getNamespacedNamesBuilder(int index)

Optional. A list of namespaced Kubernetes resources.

repeated .google.cloud.gkebackup.v1.NamespacedName namespaced_names = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
NamespacedName.Builder

getNamespacedNamesBuilderList()

public List<NamespacedName.Builder> getNamespacedNamesBuilderList()

Optional. A list of namespaced Kubernetes resources.

repeated .google.cloud.gkebackup.v1.NamespacedName namespaced_names = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getNamespacedNamesCount()

public int getNamespacedNamesCount()

Optional. A list of namespaced Kubernetes resources.

repeated .google.cloud.gkebackup.v1.NamespacedName namespaced_names = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getNamespacedNamesList()

public List<NamespacedName> getNamespacedNamesList()

Optional. A list of namespaced Kubernetes resources.

repeated .google.cloud.gkebackup.v1.NamespacedName namespaced_names = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<NamespacedName>

getNamespacedNamesOrBuilder(int index)

public NamespacedNameOrBuilder getNamespacedNamesOrBuilder(int index)

Optional. A list of namespaced Kubernetes resources.

repeated .google.cloud.gkebackup.v1.NamespacedName namespaced_names = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
NamespacedNameOrBuilder

getNamespacedNamesOrBuilderList()

public List<? extends NamespacedNameOrBuilder> getNamespacedNamesOrBuilderList()

Optional. A list of namespaced Kubernetes resources.

repeated .google.cloud.gkebackup.v1.NamespacedName namespaced_names = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.gkebackup.v1.NamespacedNameOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NamespacedNames other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeNamespacedNames(int index)

public NamespacedNames.Builder removeNamespacedNames(int index)

Optional. A list of namespaced Kubernetes resources.

repeated .google.cloud.gkebackup.v1.NamespacedName namespaced_names = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
NamespacedNames.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNamespacedNames(int index, NamespacedName value)

public NamespacedNames.Builder setNamespacedNames(int index, NamespacedName value)

Optional. A list of namespaced Kubernetes resources.

repeated .google.cloud.gkebackup.v1.NamespacedName namespaced_names = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value NamespacedName
Returns
Type Description
NamespacedNames.Builder

setNamespacedNames(int index, NamespacedName.Builder builderForValue)

public NamespacedNames.Builder setNamespacedNames(int index, NamespacedName.Builder builderForValue)

Optional. A list of namespaced Kubernetes resources.

repeated .google.cloud.gkebackup.v1.NamespacedName namespaced_names = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue NamespacedName.Builder
Returns
Type Description
NamespacedNames.Builder

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

public NamespacedNames.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
NamespacedNames.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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