Class DnsCacheConfig.Builder (2.8.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DnsCacheConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DnsCacheConfig.Builder
Overrides

build()

public DnsCacheConfig build()
Returns
TypeDescription
DnsCacheConfig

buildPartial()

public DnsCacheConfig buildPartial()
Returns
TypeDescription
DnsCacheConfig

clear()

public DnsCacheConfig.Builder clear()
Returns
TypeDescription
DnsCacheConfig.Builder
Overrides

clearEnabled()

public DnsCacheConfig.Builder clearEnabled()

Whether NodeLocal DNSCache is enabled for this cluster.

bool enabled = 1;

Returns
TypeDescription
DnsCacheConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DnsCacheConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DnsCacheConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public DnsCacheConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DnsCacheConfig.Builder
Overrides

clone()

public DnsCacheConfig.Builder clone()
Returns
TypeDescription
DnsCacheConfig.Builder
Overrides

getDefaultInstanceForType()

public DnsCacheConfig getDefaultInstanceForType()
Returns
TypeDescription
DnsCacheConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnabled()

public boolean getEnabled()

Whether NodeLocal DNSCache is enabled for this cluster.

bool enabled = 1;

Returns
TypeDescription
boolean

The enabled.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DnsCacheConfig other)

public DnsCacheConfig.Builder mergeFrom(DnsCacheConfig other)
Parameter
NameDescription
otherDnsCacheConfig
Returns
TypeDescription
DnsCacheConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DnsCacheConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DnsCacheConfig.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DnsCacheConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DnsCacheConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DnsCacheConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DnsCacheConfig.Builder
Overrides

setEnabled(boolean value)

public DnsCacheConfig.Builder setEnabled(boolean value)

Whether NodeLocal DNSCache is enabled for this cluster.

bool enabled = 1;

Parameter
NameDescription
valueboolean

The enabled to set.

Returns
TypeDescription
DnsCacheConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DnsCacheConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DnsCacheConfig.Builder
Overrides

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

public DnsCacheConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DnsCacheConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DnsCacheConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DnsCacheConfig.Builder
Overrides