Class ExternalAddress.Builder (0.39.0)

public static final class ExternalAddress.Builder extends GeneratedMessageV3.Builder<ExternalAddress.Builder> implements ExternalAddressOrBuilder

Represents an allocated external IP address and its corresponding internal IP address in a private cloud.

Protobuf type google.cloud.vmwareengine.v1.ExternalAddress

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ExternalAddress build()
Returns
Type Description
ExternalAddress

buildPartial()

public ExternalAddress buildPartial()
Returns
Type Description
ExternalAddress

clear()

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

clearCreateTime()

public ExternalAddress.Builder clearCreateTime()

Output only. Creation time of this resource.

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

Returns
Type Description
ExternalAddress.Builder

clearDescription()

public ExternalAddress.Builder clearDescription()

User-provided description for this resource.

string description = 11;

Returns
Type Description
ExternalAddress.Builder

This builder for chaining.

clearExternalIp()

public ExternalAddress.Builder clearExternalIp()

Output only. The external IP address of a workload VM.

string external_ip = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ExternalAddress.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearInternalIp()

public ExternalAddress.Builder clearInternalIp()

The internal IP address of a workload VM.

string internal_ip = 6;

Returns
Type Description
ExternalAddress.Builder

This builder for chaining.

clearName()

public ExternalAddress.Builder clearName()

Output only. The resource name of this external IP address. 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/externalAddresses/my-address

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

Returns
Type Description
ExternalAddress.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearState()

public ExternalAddress.Builder clearState()

Output only. The state of the resource.

.google.cloud.vmwareengine.v1.ExternalAddress.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ExternalAddress.Builder

This builder for chaining.

clearUid()

public ExternalAddress.Builder clearUid()

Output only. System-generated unique identifier for the resource.

string uid = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ExternalAddress.Builder

This builder for chaining.

clearUpdateTime()

public ExternalAddress.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
ExternalAddress.Builder

clone()

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

getDescription()

public String getDescription()

User-provided description for this resource.

string description = 11;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

User-provided description for this resource.

string description = 11;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getExternalIp()

public String getExternalIp()

Output only. The external IP address of a workload VM.

string external_ip = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The externalIp.

getExternalIpBytes()

public ByteString getExternalIpBytes()

Output only. The external IP address of a workload VM.

string external_ip = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for externalIp.

getInternalIp()

public String getInternalIp()

The internal IP address of a workload VM.

string internal_ip = 6;

Returns
Type Description
String

The internalIp.

getInternalIpBytes()

public ByteString getInternalIpBytes()

The internal IP address of a workload VM.

string internal_ip = 6;

Returns
Type Description
ByteString

The bytes for internalIp.

getName()

public String getName()

Output only. The resource name of this external IP address. 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/externalAddresses/my-address

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 external IP address. 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/externalAddresses/my-address

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

Returns
Type Description
ByteString

The bytes for name.

getState()

public ExternalAddress.State getState()

Output only. The state of the resource.

.google.cloud.vmwareengine.v1.ExternalAddress.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ExternalAddress.State

The state.

getStateValue()

public int getStateValue()

Output only. The state of the resource.

.google.cloud.vmwareengine.v1.ExternalAddress.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getUid()

public String getUid()

Output only. System-generated unique identifier for the resource.

string uid = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The uid.

getUidBytes()

public ByteString getUidBytes()

Output only. System-generated unique identifier for the resource.

string uid = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for uid.

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 ExternalAddress.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
ExternalAddress.Builder

mergeFrom(ExternalAddress other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public ExternalAddress.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
ExternalAddress.Builder

setCreateTime(Timestamp value)

public ExternalAddress.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
ExternalAddress.Builder

setCreateTime(Timestamp.Builder builderForValue)

public ExternalAddress.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
ExternalAddress.Builder

setDescription(String value)

public ExternalAddress.Builder setDescription(String value)

User-provided description for this resource.

string description = 11;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
ExternalAddress.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public ExternalAddress.Builder setDescriptionBytes(ByteString value)

User-provided description for this resource.

string description = 11;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
ExternalAddress.Builder

This builder for chaining.

setExternalIp(String value)

public ExternalAddress.Builder setExternalIp(String value)

Output only. The external IP address of a workload VM.

string external_ip = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The externalIp to set.

Returns
Type Description
ExternalAddress.Builder

This builder for chaining.

setExternalIpBytes(ByteString value)

public ExternalAddress.Builder setExternalIpBytes(ByteString value)

Output only. The external IP address of a workload VM.

string external_ip = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for externalIp to set.

Returns
Type Description
ExternalAddress.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setInternalIp(String value)

public ExternalAddress.Builder setInternalIp(String value)

The internal IP address of a workload VM.

string internal_ip = 6;

Parameter
Name Description
value String

The internalIp to set.

Returns
Type Description
ExternalAddress.Builder

This builder for chaining.

setInternalIpBytes(ByteString value)

public ExternalAddress.Builder setInternalIpBytes(ByteString value)

The internal IP address of a workload VM.

string internal_ip = 6;

Parameter
Name Description
value ByteString

The bytes for internalIp to set.

Returns
Type Description
ExternalAddress.Builder

This builder for chaining.

setName(String value)

public ExternalAddress.Builder setName(String value)

Output only. The resource name of this external IP address. 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/externalAddresses/my-address

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ExternalAddress.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ExternalAddress.Builder setNameBytes(ByteString value)

Output only. The resource name of this external IP address. 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/externalAddresses/my-address

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ExternalAddress.Builder

This builder for chaining.

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

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

setState(ExternalAddress.State value)

public ExternalAddress.Builder setState(ExternalAddress.State value)

Output only. The state of the resource.

.google.cloud.vmwareengine.v1.ExternalAddress.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ExternalAddress.State

The state to set.

Returns
Type Description
ExternalAddress.Builder

This builder for chaining.

setStateValue(int value)

public ExternalAddress.Builder setStateValue(int value)

Output only. The state of the resource.

.google.cloud.vmwareengine.v1.ExternalAddress.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
ExternalAddress.Builder

This builder for chaining.

setUid(String value)

public ExternalAddress.Builder setUid(String value)

Output only. System-generated unique identifier for the resource.

string uid = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The uid to set.

Returns
Type Description
ExternalAddress.Builder

This builder for chaining.

setUidBytes(ByteString value)

public ExternalAddress.Builder setUidBytes(ByteString value)

Output only. System-generated unique identifier for the resource.

string uid = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for uid to set.

Returns
Type Description
ExternalAddress.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public ExternalAddress.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
ExternalAddress.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public ExternalAddress.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
ExternalAddress.Builder