Class DnsForwarding.Builder (0.31.0)

public static final class DnsForwarding.Builder extends GeneratedMessageV3.Builder<DnsForwarding.Builder> implements DnsForwardingOrBuilder

DNS forwarding config. This config defines a list of domain to name server mappings, and is attached to the private cloud for custom domain resolution.

Protobuf type google.cloud.vmwareengine.v1.DnsForwarding

Static Methods

getDescriptor()

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

Methods

addAllForwardingRules(Iterable<? extends DnsForwarding.ForwardingRule> values)

public DnsForwarding.Builder addAllForwardingRules(Iterable<? extends DnsForwarding.ForwardingRule> values)

Required. List of domain mappings to configure

repeated .google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule forwarding_rules = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule>
Returns
TypeDescription
DnsForwarding.Builder

addForwardingRules(DnsForwarding.ForwardingRule value)

public DnsForwarding.Builder addForwardingRules(DnsForwarding.ForwardingRule value)

Required. List of domain mappings to configure

repeated .google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule forwarding_rules = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueDnsForwarding.ForwardingRule
Returns
TypeDescription
DnsForwarding.Builder

addForwardingRules(DnsForwarding.ForwardingRule.Builder builderForValue)

public DnsForwarding.Builder addForwardingRules(DnsForwarding.ForwardingRule.Builder builderForValue)

Required. List of domain mappings to configure

repeated .google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule forwarding_rules = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueDnsForwarding.ForwardingRule.Builder
Returns
TypeDescription
DnsForwarding.Builder

addForwardingRules(int index, DnsForwarding.ForwardingRule value)

public DnsForwarding.Builder addForwardingRules(int index, DnsForwarding.ForwardingRule value)

Required. List of domain mappings to configure

repeated .google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule forwarding_rules = 4 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
valueDnsForwarding.ForwardingRule
Returns
TypeDescription
DnsForwarding.Builder

addForwardingRules(int index, DnsForwarding.ForwardingRule.Builder builderForValue)

public DnsForwarding.Builder addForwardingRules(int index, DnsForwarding.ForwardingRule.Builder builderForValue)

Required. List of domain mappings to configure

repeated .google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule forwarding_rules = 4 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
builderForValueDnsForwarding.ForwardingRule.Builder
Returns
TypeDescription
DnsForwarding.Builder

addForwardingRulesBuilder()

public DnsForwarding.ForwardingRule.Builder addForwardingRulesBuilder()

Required. List of domain mappings to configure

repeated .google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule forwarding_rules = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
DnsForwarding.ForwardingRule.Builder

addForwardingRulesBuilder(int index)

public DnsForwarding.ForwardingRule.Builder addForwardingRulesBuilder(int index)

Required. List of domain mappings to configure

repeated .google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule forwarding_rules = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
DnsForwarding.ForwardingRule.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DnsForwarding build()
Returns
TypeDescription
DnsForwarding

buildPartial()

public DnsForwarding buildPartial()
Returns
TypeDescription
DnsForwarding

clear()

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

clearCreateTime()

public DnsForwarding.Builder clearCreateTime()

Output only. Creation time of this resource.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
DnsForwarding.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearForwardingRules()

public DnsForwarding.Builder clearForwardingRules()

Required. List of domain mappings to configure

repeated .google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule forwarding_rules = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
DnsForwarding.Builder

clearName()

public DnsForwarding.Builder clearName()

Output only. The resource name of this DNS profile. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-central1-a/privateClouds/my-cloud/dnsForwarding

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
DnsForwarding.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateTime()

public DnsForwarding.Builder clearUpdateTime()

Output only. Last update time of this resource.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
DnsForwarding.Builder

clone()

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

getCreateTime()

public Timestamp getCreateTime()

Output only. Creation time of this resource.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Creation time of this resource.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Creation time of this resource.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public DnsForwarding getDefaultInstanceForType()
Returns
TypeDescription
DnsForwarding

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getForwardingRules(int index)

public DnsForwarding.ForwardingRule getForwardingRules(int index)

Required. List of domain mappings to configure

repeated .google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule forwarding_rules = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
DnsForwarding.ForwardingRule

getForwardingRulesBuilder(int index)

public DnsForwarding.ForwardingRule.Builder getForwardingRulesBuilder(int index)

Required. List of domain mappings to configure

repeated .google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule forwarding_rules = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
DnsForwarding.ForwardingRule.Builder

getForwardingRulesBuilderList()

public List<DnsForwarding.ForwardingRule.Builder> getForwardingRulesBuilderList()

Required. List of domain mappings to configure

repeated .google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule forwarding_rules = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<Builder>

getForwardingRulesCount()

public int getForwardingRulesCount()

Required. List of domain mappings to configure

repeated .google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule forwarding_rules = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

getForwardingRulesList()

public List<DnsForwarding.ForwardingRule> getForwardingRulesList()

Required. List of domain mappings to configure

repeated .google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule forwarding_rules = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<ForwardingRule>

getForwardingRulesOrBuilder(int index)

public DnsForwarding.ForwardingRuleOrBuilder getForwardingRulesOrBuilder(int index)

Required. List of domain mappings to configure

repeated .google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule forwarding_rules = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
DnsForwarding.ForwardingRuleOrBuilder

getForwardingRulesOrBuilderList()

public List<? extends DnsForwarding.ForwardingRuleOrBuilder> getForwardingRulesOrBuilderList()

Required. List of domain mappings to configure

repeated .google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule forwarding_rules = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<? extends com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRuleOrBuilder>

getName()

public String getName()

Output only. The resource name of this DNS profile. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-central1-a/privateClouds/my-cloud/dnsForwarding

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The resource name of this DNS profile. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-central1-a/privateClouds/my-cloud/dnsForwarding

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for name.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Last update time of this resource.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Last update time of this resource.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Last update time of this resource.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Creation time of this resource.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Last update time of this resource.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public DnsForwarding.Builder mergeCreateTime(Timestamp value)

Output only. Creation time of this resource.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
DnsForwarding.Builder

mergeFrom(DnsForwarding other)

public DnsForwarding.Builder mergeFrom(DnsForwarding other)
Parameter
NameDescription
otherDnsForwarding
Returns
TypeDescription
DnsForwarding.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public DnsForwarding.Builder mergeUpdateTime(Timestamp value)

Output only. Last update time of this resource.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
DnsForwarding.Builder

removeForwardingRules(int index)

public DnsForwarding.Builder removeForwardingRules(int index)

Required. List of domain mappings to configure

repeated .google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule forwarding_rules = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
DnsForwarding.Builder

setCreateTime(Timestamp value)

public DnsForwarding.Builder setCreateTime(Timestamp value)

Output only. Creation time of this resource.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
DnsForwarding.Builder

setCreateTime(Timestamp.Builder builderForValue)

public DnsForwarding.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Creation time of this resource.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
DnsForwarding.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setForwardingRules(int index, DnsForwarding.ForwardingRule value)

public DnsForwarding.Builder setForwardingRules(int index, DnsForwarding.ForwardingRule value)

Required. List of domain mappings to configure

repeated .google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule forwarding_rules = 4 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
valueDnsForwarding.ForwardingRule
Returns
TypeDescription
DnsForwarding.Builder

setForwardingRules(int index, DnsForwarding.ForwardingRule.Builder builderForValue)

public DnsForwarding.Builder setForwardingRules(int index, DnsForwarding.ForwardingRule.Builder builderForValue)

Required. List of domain mappings to configure

repeated .google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule forwarding_rules = 4 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
builderForValueDnsForwarding.ForwardingRule.Builder
Returns
TypeDescription
DnsForwarding.Builder

setName(String value)

public DnsForwarding.Builder setName(String value)

Output only. The resource name of this DNS profile. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-central1-a/privateClouds/my-cloud/dnsForwarding

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
DnsForwarding.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DnsForwarding.Builder setNameBytes(ByteString value)

Output only. The resource name of this DNS profile. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-central1-a/privateClouds/my-cloud/dnsForwarding

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
DnsForwarding.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public DnsForwarding.Builder setUpdateTime(Timestamp value)

Output only. Last update time of this resource.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
DnsForwarding.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public DnsForwarding.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Last update time of this resource.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
DnsForwarding.Builder