Class TemplateLibraryConfig.Builder (1.55.0)

public static final class TemplateLibraryConfig.Builder extends GeneratedMessageV3.Builder<TemplateLibraryConfig.Builder> implements TemplateLibraryConfigOrBuilder

The config specifying which default library templates to install.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TemplateLibraryConfig build()
Returns
Type Description
TemplateLibraryConfig

buildPartial()

public TemplateLibraryConfig buildPartial()
Returns
Type Description
TemplateLibraryConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInstallation()

public TemplateLibraryConfig.Builder clearInstallation()

Configures the manner in which the template library is installed on the cluster.

.google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig.Installation installation = 2;

Returns
Type Description
TemplateLibraryConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public TemplateLibraryConfig getDefaultInstanceForType()
Returns
Type Description
TemplateLibraryConfig

getDescriptorForType()

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

getInstallation()

public TemplateLibraryConfig.Installation getInstallation()

Configures the manner in which the template library is installed on the cluster.

.google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig.Installation installation = 2;

Returns
Type Description
TemplateLibraryConfig.Installation

The installation.

getInstallationValue()

public int getInstallationValue()

Configures the manner in which the template library is installed on the cluster.

.google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig.Installation installation = 2;

Returns
Type Description
int

The enum numeric value on the wire for installation.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TemplateLibraryConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setInstallation(TemplateLibraryConfig.Installation value)

public TemplateLibraryConfig.Builder setInstallation(TemplateLibraryConfig.Installation value)

Configures the manner in which the template library is installed on the cluster.

.google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig.Installation installation = 2;

Parameter
Name Description
value TemplateLibraryConfig.Installation

The installation to set.

Returns
Type Description
TemplateLibraryConfig.Builder

This builder for chaining.

setInstallationValue(int value)

public TemplateLibraryConfig.Builder setInstallationValue(int value)

Configures the manner in which the template library is installed on the cluster.

.google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig.Installation installation = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for installation to set.

Returns
Type Description
TemplateLibraryConfig.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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