Class DnsForwarding.Builder (0.37.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
Type Description
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
Name Description
values Iterable<? extends com.google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule>
Returns
Type Description
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
Name Description
value DnsForwarding.ForwardingRule
Returns
Type Description
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
Name Description
builderForValue DnsForwarding.ForwardingRule.Builder
Returns
Type Description
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
Name Description
index int
value DnsForwarding.ForwardingRule
Returns
Type Description
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
Name Description
index int
builderForValue DnsForwarding.ForwardingRule.Builder
Returns
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
DnsForwarding.ForwardingRule.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DnsForwarding build()
Returns
Type Description
DnsForwarding

buildPartial()

public DnsForwarding buildPartial()
Returns
Type Description
DnsForwarding

clear()

public DnsForwarding.Builder clear()
Returns
Type Description
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
Type Description
DnsForwarding.Builder

clearField(Descriptors.FieldDescriptor field)

public DnsForwarding.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
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
Type Description
DnsForwarding.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DnsForwarding.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
DnsForwarding.Builder

clone()

public DnsForwarding.Builder clone()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public DnsForwarding getDefaultInstanceForType()
Returns
Type Description
DnsForwarding

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
DnsForwarding.Builder

mergeFrom(DnsForwarding other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DnsForwarding.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
DnsForwarding.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public DnsForwarding.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
index int
value DnsForwarding.ForwardingRule
Returns
Type Description
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
Name Description
index int
builderForValue DnsForwarding.ForwardingRule.Builder
Returns
Type Description
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
Name Description
value String

The name to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DnsForwarding.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DnsForwarding.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
DnsForwarding.Builder