Class ExternalAddress.Builder (0.28.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ExternalAddress build()
Returns
TypeDescription
ExternalAddress

buildPartial()

public ExternalAddress buildPartial()
Returns
TypeDescription
ExternalAddress

clear()

public ExternalAddress.Builder clear()
Returns
TypeDescription
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
TypeDescription
ExternalAddress.Builder

clearDescription()

public ExternalAddress.Builder clearDescription()

User-provided description for this resource.

string description = 11;

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearInternalIp()

public ExternalAddress.Builder clearInternalIp()

The internal IP address of a workload VM.

string internal_ip = 6;

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ExternalAddress.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ExternalAddress.Builder

clone()

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

getDescription()

public String getDescription()

User-provided description for this resource.

string description = 11;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

User-provided description for this resource.

string description = 11;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for externalIp.

getInternalIp()

public String getInternalIp()

The internal IP address of a workload VM.

string internal_ip = 6;

Returns
TypeDescription
String

The internalIp.

getInternalIpBytes()

public ByteString getInternalIpBytes()

The internal IP address of a workload VM.

string internal_ip = 6;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
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 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
NameDescription
valueTimestamp
Returns
TypeDescription
ExternalAddress.Builder

mergeFrom(ExternalAddress other)

public ExternalAddress.Builder mergeFrom(ExternalAddress other)
Parameter
NameDescription
otherExternalAddress
Returns
TypeDescription
ExternalAddress.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ExternalAddress.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
ExternalAddress.Builder

setDescription(String value)

public ExternalAddress.Builder setDescription(String value)

User-provided description for this resource.

string description = 11;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
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
NameDescription
valueString

The externalIp to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for externalIp to set.

Returns
TypeDescription
ExternalAddress.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ExternalAddress.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The internalIp to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for internalIp to set.

Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueExternalAddress.State

The state to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueString

The uid to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for uid to set.

Returns
TypeDescription
ExternalAddress.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ExternalAddress.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
ExternalAddress.Builder