Class DnsCacheConfig.Builder (2.47.0)

public static final class DnsCacheConfig.Builder extends GeneratedMessageV3.Builder<DnsCacheConfig.Builder> implements DnsCacheConfigOrBuilder

Configuration for NodeLocal DNSCache

Protobuf type google.container.v1.DnsCacheConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DnsCacheConfig build()
Returns
Type Description
DnsCacheConfig

buildPartial()

public DnsCacheConfig buildPartial()
Returns
Type Description
DnsCacheConfig

clear()

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

clearEnabled()

public DnsCacheConfig.Builder clearEnabled()

Whether NodeLocal DNSCache is enabled for this cluster.

bool enabled = 1;

Returns
Type Description
DnsCacheConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public DnsCacheConfig getDefaultInstanceForType()
Returns
Type Description
DnsCacheConfig

getDescriptorForType()

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

getEnabled()

public boolean getEnabled()

Whether NodeLocal DNSCache is enabled for this cluster.

bool enabled = 1;

Returns
Type Description
boolean

The enabled.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DnsCacheConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEnabled(boolean value)

public DnsCacheConfig.Builder setEnabled(boolean value)

Whether NodeLocal DNSCache is enabled for this cluster.

bool enabled = 1;

Parameter
Name Description
value boolean

The enabled to set.

Returns
Type Description
DnsCacheConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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