Class DNSConfig.Builder (2.15.0)

public static final class DNSConfig.Builder extends GeneratedMessageV3.Builder<DNSConfig.Builder> implements DNSConfigOrBuilder

DNSConfig contains the desired set of options for configuring clusterDNS.

Protobuf type google.container.v1.DNSConfig

Implements

DNSConfigOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DNSConfig build()
Returns
TypeDescription
DNSConfig

buildPartial()

public DNSConfig buildPartial()
Returns
TypeDescription
DNSConfig

clear()

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

clearClusterDns()

public DNSConfig.Builder clearClusterDns()

cluster_dns indicates which in-cluster DNS provider should be used.

.google.container.v1.DNSConfig.Provider cluster_dns = 1;

Returns
TypeDescription
DNSConfig.Builder

This builder for chaining.

clearClusterDnsDomain()

public DNSConfig.Builder clearClusterDnsDomain()

cluster_dns_domain is the suffix used for all cluster service records.

string cluster_dns_domain = 3;

Returns
TypeDescription
DNSConfig.Builder

This builder for chaining.

clearClusterDnsScope()

public DNSConfig.Builder clearClusterDnsScope()

cluster_dns_scope indicates the scope of access to cluster DNS records.

.google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2;

Returns
TypeDescription
DNSConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getClusterDns()

public DNSConfig.Provider getClusterDns()

cluster_dns indicates which in-cluster DNS provider should be used.

.google.container.v1.DNSConfig.Provider cluster_dns = 1;

Returns
TypeDescription
DNSConfig.Provider

The clusterDns.

getClusterDnsDomain()

public String getClusterDnsDomain()

cluster_dns_domain is the suffix used for all cluster service records.

string cluster_dns_domain = 3;

Returns
TypeDescription
String

The clusterDnsDomain.

getClusterDnsDomainBytes()

public ByteString getClusterDnsDomainBytes()

cluster_dns_domain is the suffix used for all cluster service records.

string cluster_dns_domain = 3;

Returns
TypeDescription
ByteString

The bytes for clusterDnsDomain.

getClusterDnsScope()

public DNSConfig.DNSScope getClusterDnsScope()

cluster_dns_scope indicates the scope of access to cluster DNS records.

.google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2;

Returns
TypeDescription
DNSConfig.DNSScope

The clusterDnsScope.

getClusterDnsScopeValue()

public int getClusterDnsScopeValue()

cluster_dns_scope indicates the scope of access to cluster DNS records.

.google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for clusterDnsScope.

getClusterDnsValue()

public int getClusterDnsValue()

cluster_dns indicates which in-cluster DNS provider should be used.

.google.container.v1.DNSConfig.Provider cluster_dns = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for clusterDns.

getDefaultInstanceForType()

public DNSConfig getDefaultInstanceForType()
Returns
TypeDescription
DNSConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DNSConfig other)

public DNSConfig.Builder mergeFrom(DNSConfig other)
Parameter
NameDescription
otherDNSConfig
Returns
TypeDescription
DNSConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setClusterDns(DNSConfig.Provider value)

public DNSConfig.Builder setClusterDns(DNSConfig.Provider value)

cluster_dns indicates which in-cluster DNS provider should be used.

.google.container.v1.DNSConfig.Provider cluster_dns = 1;

Parameter
NameDescription
valueDNSConfig.Provider

The clusterDns to set.

Returns
TypeDescription
DNSConfig.Builder

This builder for chaining.

setClusterDnsDomain(String value)

public DNSConfig.Builder setClusterDnsDomain(String value)

cluster_dns_domain is the suffix used for all cluster service records.

string cluster_dns_domain = 3;

Parameter
NameDescription
valueString

The clusterDnsDomain to set.

Returns
TypeDescription
DNSConfig.Builder

This builder for chaining.

setClusterDnsDomainBytes(ByteString value)

public DNSConfig.Builder setClusterDnsDomainBytes(ByteString value)

cluster_dns_domain is the suffix used for all cluster service records.

string cluster_dns_domain = 3;

Parameter
NameDescription
valueByteString

The bytes for clusterDnsDomain to set.

Returns
TypeDescription
DNSConfig.Builder

This builder for chaining.

setClusterDnsScope(DNSConfig.DNSScope value)

public DNSConfig.Builder setClusterDnsScope(DNSConfig.DNSScope value)

cluster_dns_scope indicates the scope of access to cluster DNS records.

.google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2;

Parameter
NameDescription
valueDNSConfig.DNSScope

The clusterDnsScope to set.

Returns
TypeDescription
DNSConfig.Builder

This builder for chaining.

setClusterDnsScopeValue(int value)

public DNSConfig.Builder setClusterDnsScopeValue(int value)

cluster_dns_scope indicates the scope of access to cluster DNS records.

.google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
DNSConfig.Builder

This builder for chaining.

setClusterDnsValue(int value)

public DNSConfig.Builder setClusterDnsValue(int value)

cluster_dns indicates which in-cluster DNS provider should be used.

.google.container.v1.DNSConfig.Provider cluster_dns = 1;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
DNSConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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