Class Destination.Builder (1.73.0)

public static final class Destination.Builder extends GeneratedMessageV3.Builder<Destination.Builder> implements DestinationOrBuilder

The Destination resource. It specifies the IP prefix and the associated autonomous system numbers (ASN) that you want to include in a MulticloudDataTransferConfig resource.

Protobuf type google.cloud.networkconnectivity.v1.Destination

Static Methods

getDescriptor()

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

Methods

addAllEndpoints(Iterable<? extends Destination.DestinationEndpoint> values)

public Destination.Builder addAllEndpoints(Iterable<? extends Destination.DestinationEndpoint> values)

Required. Unordered list. The list of DestinationEndpoint resources configured for the IP prefix.

repeated .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint>
Returns
Type Description
Destination.Builder

addEndpoints(Destination.DestinationEndpoint value)

public Destination.Builder addEndpoints(Destination.DestinationEndpoint value)

Required. Unordered list. The list of DestinationEndpoint resources configured for the IP prefix.

repeated .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Destination.DestinationEndpoint
Returns
Type Description
Destination.Builder

addEndpoints(Destination.DestinationEndpoint.Builder builderForValue)

public Destination.Builder addEndpoints(Destination.DestinationEndpoint.Builder builderForValue)

Required. Unordered list. The list of DestinationEndpoint resources configured for the IP prefix.

repeated .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Destination.DestinationEndpoint.Builder
Returns
Type Description
Destination.Builder

addEndpoints(int index, Destination.DestinationEndpoint value)

public Destination.Builder addEndpoints(int index, Destination.DestinationEndpoint value)

Required. Unordered list. The list of DestinationEndpoint resources configured for the IP prefix.

repeated .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value Destination.DestinationEndpoint
Returns
Type Description
Destination.Builder

addEndpoints(int index, Destination.DestinationEndpoint.Builder builderForValue)

public Destination.Builder addEndpoints(int index, Destination.DestinationEndpoint.Builder builderForValue)

Required. Unordered list. The list of DestinationEndpoint resources configured for the IP prefix.

repeated .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue Destination.DestinationEndpoint.Builder
Returns
Type Description
Destination.Builder

addEndpointsBuilder()

public Destination.DestinationEndpoint.Builder addEndpointsBuilder()

Required. Unordered list. The list of DestinationEndpoint resources configured for the IP prefix.

repeated .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Destination.DestinationEndpoint.Builder

addEndpointsBuilder(int index)

public Destination.DestinationEndpoint.Builder addEndpointsBuilder(int index)

Required. Unordered list. The list of DestinationEndpoint resources configured for the IP prefix.

repeated .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Destination.DestinationEndpoint.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Destination build()
Returns
Type Description
Destination

buildPartial()

public Destination buildPartial()
Returns
Type Description
Destination

clear()

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

clearCreateTime()

public Destination.Builder clearCreateTime()

Output only. Time when the Destination resource was created.

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

Returns
Type Description
Destination.Builder

clearDescription()

public Destination.Builder clearDescription()

Optional. A description of this resource.

string description = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Destination.Builder

This builder for chaining.

clearEndpoints()

public Destination.Builder clearEndpoints()

Required. Unordered list. The list of DestinationEndpoint resources configured for the IP prefix.

repeated .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Destination.Builder

clearEtag()

public Destination.Builder clearEtag()

The etag is computed by the server, and might be sent with update and delete requests so that the client has an up-to-date value before proceeding.

string etag = 5;

Returns
Type Description
Destination.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearIpPrefix()

public Destination.Builder clearIpPrefix()

Required. Immutable. The IP prefix that represents your workload on another CSP.

string ip_prefix = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
Destination.Builder

This builder for chaining.

clearLabels()

public Destination.Builder clearLabels()
Returns
Type Description
Destination.Builder

clearName()

public Destination.Builder clearName()

Identifier. The name of the Destination resource. Format: projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}/destinations/{destination}.

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

Returns
Type Description
Destination.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStateTimeline()

public Destination.Builder clearStateTimeline()

Output only. The timeline of the expected Destination states or the current rest state. If a state change is expected, the value is ADDING, DELETING or SUSPENDING, depending on the action specified.

Example: "state_timeline": { "states": [ { // The time when the Destination resource will be activated. "effectiveTime": "2024-12-01T08:00:00Z", "state": "ADDING" }, { // The time when the Destination resource will be suspended. "effectiveTime": "2024-12-01T20:00:00Z", "state": "SUSPENDING" } ] }

.google.cloud.networkconnectivity.v1.StateTimeline state_timeline = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Destination.Builder

clearUid()

public Destination.Builder clearUid()

Output only. The Google-generated unique ID for the Destination resource. This value is unique across all Destination resources. If a resource is deleted and another with the same name is created, the new resource is assigned a different and unique ID.

string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Returns
Type Description
Destination.Builder

This builder for chaining.

clearUpdateTime()

public Destination.Builder clearUpdateTime()

Output only. Time when the Destination resource was updated.

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

Returns
Type Description
Destination.Builder

clone()

public Destination.Builder clone()
Returns
Type Description
Destination.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

Optional. User-defined labels.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

getCreateTime()

public Timestamp getCreateTime()

Output only. Time when the Destination resource was created.

.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. Time when the Destination resource was created.

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

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Time when the Destination resource was created.

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

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Destination getDefaultInstanceForType()
Returns
Type Description
Destination

getDescription()

public String getDescription()

Optional. A description of this resource.

string description = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. A description of this resource.

string description = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getEndpoints(int index)

public Destination.DestinationEndpoint getEndpoints(int index)

Required. Unordered list. The list of DestinationEndpoint resources configured for the IP prefix.

repeated .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Destination.DestinationEndpoint

getEndpointsBuilder(int index)

public Destination.DestinationEndpoint.Builder getEndpointsBuilder(int index)

Required. Unordered list. The list of DestinationEndpoint resources configured for the IP prefix.

repeated .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Destination.DestinationEndpoint.Builder

getEndpointsBuilderList()

public List<Destination.DestinationEndpoint.Builder> getEndpointsBuilderList()

Required. Unordered list. The list of DestinationEndpoint resources configured for the IP prefix.

repeated .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getEndpointsCount()

public int getEndpointsCount()

Required. Unordered list. The list of DestinationEndpoint resources configured for the IP prefix.

repeated .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getEndpointsList()

public List<Destination.DestinationEndpoint> getEndpointsList()

Required. Unordered list. The list of DestinationEndpoint resources configured for the IP prefix.

repeated .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<DestinationEndpoint>

getEndpointsOrBuilder(int index)

public Destination.DestinationEndpointOrBuilder getEndpointsOrBuilder(int index)

Required. Unordered list. The list of DestinationEndpoint resources configured for the IP prefix.

repeated .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Destination.DestinationEndpointOrBuilder

getEndpointsOrBuilderList()

public List<? extends Destination.DestinationEndpointOrBuilder> getEndpointsOrBuilderList()

Required. Unordered list. The list of DestinationEndpoint resources configured for the IP prefix.

repeated .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpointOrBuilder>

getEtag()

public String getEtag()

The etag is computed by the server, and might be sent with update and delete requests so that the client has an up-to-date value before proceeding.

string etag = 5;

Returns
Type Description
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

The etag is computed by the server, and might be sent with update and delete requests so that the client has an up-to-date value before proceeding.

string etag = 5;

Returns
Type Description
ByteString

The bytes for etag.

getIpPrefix()

public String getIpPrefix()

Required. Immutable. The IP prefix that represents your workload on another CSP.

string ip_prefix = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The ipPrefix.

getIpPrefixBytes()

public ByteString getIpPrefixBytes()

Required. Immutable. The IP prefix that represents your workload on another CSP.

string ip_prefix = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for ipPrefix.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. User-defined labels.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. User-defined labels.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Optional. User-defined labels.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Optional. User-defined labels.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

Identifier. The name of the Destination resource. Format: projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}/destinations/{destination}.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The name of the Destination resource. Format: projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}/destinations/{destination}.

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

Returns
Type Description
ByteString

The bytes for name.

getStateTimeline()

public StateTimeline getStateTimeline()

Output only. The timeline of the expected Destination states or the current rest state. If a state change is expected, the value is ADDING, DELETING or SUSPENDING, depending on the action specified.

Example: "state_timeline": { "states": [ { // The time when the Destination resource will be activated. "effectiveTime": "2024-12-01T08:00:00Z", "state": "ADDING" }, { // The time when the Destination resource will be suspended. "effectiveTime": "2024-12-01T20:00:00Z", "state": "SUSPENDING" } ] }

.google.cloud.networkconnectivity.v1.StateTimeline state_timeline = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
StateTimeline

The stateTimeline.

getStateTimelineBuilder()

public StateTimeline.Builder getStateTimelineBuilder()

Output only. The timeline of the expected Destination states or the current rest state. If a state change is expected, the value is ADDING, DELETING or SUSPENDING, depending on the action specified.

Example: "state_timeline": { "states": [ { // The time when the Destination resource will be activated. "effectiveTime": "2024-12-01T08:00:00Z", "state": "ADDING" }, { // The time when the Destination resource will be suspended. "effectiveTime": "2024-12-01T20:00:00Z", "state": "SUSPENDING" } ] }

.google.cloud.networkconnectivity.v1.StateTimeline state_timeline = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
StateTimeline.Builder

getStateTimelineOrBuilder()

public StateTimelineOrBuilder getStateTimelineOrBuilder()

Output only. The timeline of the expected Destination states or the current rest state. If a state change is expected, the value is ADDING, DELETING or SUSPENDING, depending on the action specified.

Example: "state_timeline": { "states": [ { // The time when the Destination resource will be activated. "effectiveTime": "2024-12-01T08:00:00Z", "state": "ADDING" }, { // The time when the Destination resource will be suspended. "effectiveTime": "2024-12-01T20:00:00Z", "state": "SUSPENDING" } ] }

.google.cloud.networkconnectivity.v1.StateTimeline state_timeline = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
StateTimelineOrBuilder

getUid()

public String getUid()

Output only. The Google-generated unique ID for the Destination resource. This value is unique across all Destination resources. If a resource is deleted and another with the same name is created, the new resource is assigned a different and unique ID.

string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Returns
Type Description
String

The uid.

getUidBytes()

public ByteString getUidBytes()

Output only. The Google-generated unique ID for the Destination resource. This value is unique across all Destination resources. If a resource is deleted and another with the same name is created, the new resource is assigned a different and unique ID.

string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Returns
Type Description
ByteString

The bytes for uid.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Time when the Destination resource was updated.

.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. Time when the Destination resource was updated.

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

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Time when the Destination resource was updated.

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

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Time when the Destination resource was created.

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

Returns
Type Description
boolean

Whether the createTime field is set.

hasStateTimeline()

public boolean hasStateTimeline()

Output only. The timeline of the expected Destination states or the current rest state. If a state change is expected, the value is ADDING, DELETING or SUSPENDING, depending on the action specified.

Example: "state_timeline": { "states": [ { // The time when the Destination resource will be activated. "effectiveTime": "2024-12-01T08:00:00Z", "state": "ADDING" }, { // The time when the Destination resource will be suspended. "effectiveTime": "2024-12-01T20:00:00Z", "state": "SUSPENDING" } ] }

.google.cloud.networkconnectivity.v1.StateTimeline state_timeline = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the stateTimeline field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Time when the Destination resource was updated.

.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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public Destination.Builder mergeCreateTime(Timestamp value)

Output only. Time when the Destination resource was created.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Destination.Builder

mergeFrom(Destination other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStateTimeline(StateTimeline value)

public Destination.Builder mergeStateTimeline(StateTimeline value)

Output only. The timeline of the expected Destination states or the current rest state. If a state change is expected, the value is ADDING, DELETING or SUSPENDING, depending on the action specified.

Example: "state_timeline": { "states": [ { // The time when the Destination resource will be activated. "effectiveTime": "2024-12-01T08:00:00Z", "state": "ADDING" }, { // The time when the Destination resource will be suspended. "effectiveTime": "2024-12-01T20:00:00Z", "state": "SUSPENDING" } ] }

.google.cloud.networkconnectivity.v1.StateTimeline state_timeline = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value StateTimeline
Returns
Type Description
Destination.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public Destination.Builder mergeUpdateTime(Timestamp value)

Output only. Time when the Destination resource was updated.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Destination.Builder

putAllLabels(Map<String,String> values)

public Destination.Builder putAllLabels(Map<String,String> values)

Optional. User-defined labels.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
Destination.Builder

putLabels(String key, String value)

public Destination.Builder putLabels(String key, String value)

Optional. User-defined labels.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
value String
Returns
Type Description
Destination.Builder

removeEndpoints(int index)

public Destination.Builder removeEndpoints(int index)

Required. Unordered list. The list of DestinationEndpoint resources configured for the IP prefix.

repeated .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Destination.Builder

removeLabels(String key)

public Destination.Builder removeLabels(String key)

Optional. User-defined labels.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
Destination.Builder

setCreateTime(Timestamp value)

public Destination.Builder setCreateTime(Timestamp value)

Output only. Time when the Destination resource was created.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Destination.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Destination.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Time when the Destination resource was created.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Destination.Builder

setDescription(String value)

public Destination.Builder setDescription(String value)

Optional. A description of this resource.

string description = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The description to set.

Returns
Type Description
Destination.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Destination.Builder setDescriptionBytes(ByteString value)

Optional. A description of this resource.

string description = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
Destination.Builder

This builder for chaining.

setEndpoints(int index, Destination.DestinationEndpoint value)

public Destination.Builder setEndpoints(int index, Destination.DestinationEndpoint value)

Required. Unordered list. The list of DestinationEndpoint resources configured for the IP prefix.

repeated .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value Destination.DestinationEndpoint
Returns
Type Description
Destination.Builder

setEndpoints(int index, Destination.DestinationEndpoint.Builder builderForValue)

public Destination.Builder setEndpoints(int index, Destination.DestinationEndpoint.Builder builderForValue)

Required. Unordered list. The list of DestinationEndpoint resources configured for the IP prefix.

repeated .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue Destination.DestinationEndpoint.Builder
Returns
Type Description
Destination.Builder

setEtag(String value)

public Destination.Builder setEtag(String value)

The etag is computed by the server, and might be sent with update and delete requests so that the client has an up-to-date value before proceeding.

string etag = 5;

Parameter
Name Description
value String

The etag to set.

Returns
Type Description
Destination.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public Destination.Builder setEtagBytes(ByteString value)

The etag is computed by the server, and might be sent with update and delete requests so that the client has an up-to-date value before proceeding.

string etag = 5;

Parameter
Name Description
value ByteString

The bytes for etag to set.

Returns
Type Description
Destination.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setIpPrefix(String value)

public Destination.Builder setIpPrefix(String value)

Required. Immutable. The IP prefix that represents your workload on another CSP.

string ip_prefix = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value String

The ipPrefix to set.

Returns
Type Description
Destination.Builder

This builder for chaining.

setIpPrefixBytes(ByteString value)

public Destination.Builder setIpPrefixBytes(ByteString value)

Required. Immutable. The IP prefix that represents your workload on another CSP.

string ip_prefix = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value ByteString

The bytes for ipPrefix to set.

Returns
Type Description
Destination.Builder

This builder for chaining.

setName(String value)

public Destination.Builder setName(String value)

Identifier. The name of the Destination resource. Format: projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}/destinations/{destination}.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Destination.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Destination.Builder setNameBytes(ByteString value)

Identifier. The name of the Destination resource. Format: projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}/destinations/{destination}.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Destination.Builder

This builder for chaining.

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

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

setStateTimeline(StateTimeline value)

public Destination.Builder setStateTimeline(StateTimeline value)

Output only. The timeline of the expected Destination states or the current rest state. If a state change is expected, the value is ADDING, DELETING or SUSPENDING, depending on the action specified.

Example: "state_timeline": { "states": [ { // The time when the Destination resource will be activated. "effectiveTime": "2024-12-01T08:00:00Z", "state": "ADDING" }, { // The time when the Destination resource will be suspended. "effectiveTime": "2024-12-01T20:00:00Z", "state": "SUSPENDING" } ] }

.google.cloud.networkconnectivity.v1.StateTimeline state_timeline = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value StateTimeline
Returns
Type Description
Destination.Builder

setStateTimeline(StateTimeline.Builder builderForValue)

public Destination.Builder setStateTimeline(StateTimeline.Builder builderForValue)

Output only. The timeline of the expected Destination states or the current rest state. If a state change is expected, the value is ADDING, DELETING or SUSPENDING, depending on the action specified.

Example: "state_timeline": { "states": [ { // The time when the Destination resource will be activated. "effectiveTime": "2024-12-01T08:00:00Z", "state": "ADDING" }, { // The time when the Destination resource will be suspended. "effectiveTime": "2024-12-01T20:00:00Z", "state": "SUSPENDING" } ] }

.google.cloud.networkconnectivity.v1.StateTimeline state_timeline = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue StateTimeline.Builder
Returns
Type Description
Destination.Builder

setUid(String value)

public Destination.Builder setUid(String value)

Output only. The Google-generated unique ID for the Destination resource. This value is unique across all Destination resources. If a resource is deleted and another with the same name is created, the new resource is assigned a different and unique ID.

string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Parameter
Name Description
value String

The uid to set.

Returns
Type Description
Destination.Builder

This builder for chaining.

setUidBytes(ByteString value)

public Destination.Builder setUidBytes(ByteString value)

Output only. The Google-generated unique ID for the Destination resource. This value is unique across all Destination resources. If a resource is deleted and another with the same name is created, the new resource is assigned a different and unique ID.

string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Parameter
Name Description
value ByteString

The bytes for uid to set.

Returns
Type Description
Destination.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public Destination.Builder setUpdateTime(Timestamp value)

Output only. Time when the Destination resource was updated.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Destination.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Destination.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Time when the Destination resource was updated.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Destination.Builder