Class BundleInstallSpec.Builder (1.83.0)

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

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.

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

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.