Class BundleInstallSpec.Builder (1.55.0)

public static final class BundleInstallSpec.Builder extends GeneratedMessageV3.Builder<BundleInstallSpec.Builder> implements BundleInstallSpecOrBuilder

BundleInstallSpec is the specification configuration for a single managed bundle.

Protobuf type google.cloud.gkehub.policycontroller.v1beta.BundleInstallSpec

Static Methods

getDescriptor()

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

Methods

addAllExemptedNamespaces(Iterable<String> values)

public BundleInstallSpec.Builder addAllExemptedNamespaces(Iterable<String> values)

The set of namespaces to be exempted from the bundle.

repeated string exempted_namespaces = 2;

Parameter
Name Description
values Iterable<String>

The exemptedNamespaces to add.

Returns
Type Description
BundleInstallSpec.Builder

This builder for chaining.

addExemptedNamespaces(String value)

public BundleInstallSpec.Builder addExemptedNamespaces(String value)

The set of namespaces to be exempted from the bundle.

repeated string exempted_namespaces = 2;

Parameter
Name Description
value String

The exemptedNamespaces to add.

Returns
Type Description
BundleInstallSpec.Builder

This builder for chaining.

addExemptedNamespacesBytes(ByteString value)

public BundleInstallSpec.Builder addExemptedNamespacesBytes(ByteString value)

The set of namespaces to be exempted from the bundle.

repeated string exempted_namespaces = 2;

Parameter
Name Description
value ByteString

The bytes of the exemptedNamespaces to add.

Returns
Type Description
BundleInstallSpec.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BundleInstallSpec build()
Returns
Type Description
BundleInstallSpec

buildPartial()

public BundleInstallSpec buildPartial()
Returns
Type Description
BundleInstallSpec

clear()

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

clearExemptedNamespaces()

public BundleInstallSpec.Builder clearExemptedNamespaces()

The set of namespaces to be exempted from the bundle.

repeated string exempted_namespaces = 2;

Returns
Type Description
BundleInstallSpec.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public BundleInstallSpec getDefaultInstanceForType()
Returns
Type Description
BundleInstallSpec

getDescriptorForType()

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

getExemptedNamespaces(int index)

public String getExemptedNamespaces(int index)

The set of namespaces to be exempted from the bundle.

repeated string exempted_namespaces = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The exemptedNamespaces at the given index.

getExemptedNamespacesBytes(int index)

public ByteString getExemptedNamespacesBytes(int index)

The set of namespaces to be exempted from the bundle.

repeated string exempted_namespaces = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the exemptedNamespaces at the given index.

getExemptedNamespacesCount()

public int getExemptedNamespacesCount()

The set of namespaces to be exempted from the bundle.

repeated string exempted_namespaces = 2;

Returns
Type Description
int

The count of exemptedNamespaces.

getExemptedNamespacesList()

public ProtocolStringList getExemptedNamespacesList()

The set of namespaces to be exempted from the bundle.

repeated string exempted_namespaces = 2;

Returns
Type Description
ProtocolStringList

A list containing the exemptedNamespaces.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BundleInstallSpec other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setExemptedNamespaces(int index, String value)

public BundleInstallSpec.Builder setExemptedNamespaces(int index, String value)

The set of namespaces to be exempted from the bundle.

repeated string exempted_namespaces = 2;

Parameters
Name Description
index int

The index to set the value at.

value String

The exemptedNamespaces to set.

Returns
Type Description
BundleInstallSpec.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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