Class KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder (1.81.0)

public static final class KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder extends GeneratedMessage.Builder<KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder> implements KubernetesConfig.GatewayServiceMesh.RouteDestinationsOrBuilder

Information about route destinations for the Gateway API service mesh.

Protobuf type google.cloud.deploy.v1.KubernetesConfig.GatewayServiceMesh.RouteDestinations

Inheritance

java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder

Static Methods

getDescriptor()

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

Methods

addAllDestinationIds(Iterable<String> values)

public KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder addAllDestinationIds(Iterable<String> values)

Required. The clusters where the Gateway API HTTPRoute resource will be deployed to. Valid entries include the associated entities IDs configured in the Target resource and "@self" to include the Target cluster.

repeated string destination_ids = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<String>

The destinationIds to add.

Returns
Type Description
KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder

This builder for chaining.

addDestinationIds(String value)

public KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder addDestinationIds(String value)

Required. The clusters where the Gateway API HTTPRoute resource will be deployed to. Valid entries include the associated entities IDs configured in the Target resource and "@self" to include the Target cluster.

repeated string destination_ids = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The destinationIds to add.

Returns
Type Description
KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder

This builder for chaining.

addDestinationIdsBytes(ByteString value)

public KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder addDestinationIdsBytes(ByteString value)

Required. The clusters where the Gateway API HTTPRoute resource will be deployed to. Valid entries include the associated entities IDs configured in the Target resource and "@self" to include the Target cluster.

repeated string destination_ids = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes of the destinationIds to add.

Returns
Type Description
KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder

This builder for chaining.

build()

public KubernetesConfig.GatewayServiceMesh.RouteDestinations build()
Returns
Type Description
KubernetesConfig.GatewayServiceMesh.RouteDestinations

buildPartial()

public KubernetesConfig.GatewayServiceMesh.RouteDestinations buildPartial()
Returns
Type Description
KubernetesConfig.GatewayServiceMesh.RouteDestinations

clear()

public KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder clear()
Returns
Type Description
KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder
Overrides

clearDestinationIds()

public KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder clearDestinationIds()

Required. The clusters where the Gateway API HTTPRoute resource will be deployed to. Valid entries include the associated entities IDs configured in the Target resource and "@self" to include the Target cluster.

repeated string destination_ids = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder

This builder for chaining.

clearPropagateService()

public KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder clearPropagateService()

Optional. Whether to propagate the Kubernetes Service to the route destination clusters. The Service will always be deployed to the Target cluster even if the HTTPRoute is not. This option may be used to facilitate successful DNS lookup in the route destination clusters. Can only be set to true if destinations are specified.

bool propagate_service = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder

This builder for chaining.

getDefaultInstanceForType()

public KubernetesConfig.GatewayServiceMesh.RouteDestinations getDefaultInstanceForType()
Returns
Type Description
KubernetesConfig.GatewayServiceMesh.RouteDestinations

getDescriptorForType()

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

getDestinationIds(int index)

public String getDestinationIds(int index)

Required. The clusters where the Gateway API HTTPRoute resource will be deployed to. Valid entries include the associated entities IDs configured in the Target resource and "@self" to include the Target cluster.

repeated string destination_ids = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The destinationIds at the given index.

getDestinationIdsBytes(int index)

public ByteString getDestinationIdsBytes(int index)

Required. The clusters where the Gateway API HTTPRoute resource will be deployed to. Valid entries include the associated entities IDs configured in the Target resource and "@self" to include the Target cluster.

repeated string destination_ids = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the destinationIds at the given index.

getDestinationIdsCount()

public int getDestinationIdsCount()

Required. The clusters where the Gateway API HTTPRoute resource will be deployed to. Valid entries include the associated entities IDs configured in the Target resource and "@self" to include the Target cluster.

repeated string destination_ids = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The count of destinationIds.

getDestinationIdsList()

public ProtocolStringList getDestinationIdsList()

Required. The clusters where the Gateway API HTTPRoute resource will be deployed to. Valid entries include the associated entities IDs configured in the Target resource and "@self" to include the Target cluster.

repeated string destination_ids = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProtocolStringList

A list containing the destinationIds.

getPropagateService()

public boolean getPropagateService()

Optional. Whether to propagate the Kubernetes Service to the route destination clusters. The Service will always be deployed to the Target cluster even if the HTTPRoute is not. This option may be used to facilitate successful DNS lookup in the route destination clusters. Can only be set to true if destinations are specified.

bool propagate_service = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The propagateService.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(KubernetesConfig.GatewayServiceMesh.RouteDestinations other)

public KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder mergeFrom(KubernetesConfig.GatewayServiceMesh.RouteDestinations other)
Parameter
Name Description
other KubernetesConfig.GatewayServiceMesh.RouteDestinations
Returns
Type Description
KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder
Overrides

setDestinationIds(int index, String value)

public KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder setDestinationIds(int index, String value)

Required. The clusters where the Gateway API HTTPRoute resource will be deployed to. Valid entries include the associated entities IDs configured in the Target resource and "@self" to include the Target cluster.

repeated string destination_ids = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int

The index to set the value at.

value String

The destinationIds to set.

Returns
Type Description
KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder

This builder for chaining.

setPropagateService(boolean value)

public KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder setPropagateService(boolean value)

Optional. Whether to propagate the Kubernetes Service to the route destination clusters. The Service will always be deployed to the Target cluster even if the HTTPRoute is not. This option may be used to facilitate successful DNS lookup in the route destination clusters. Can only be set to true if destinations are specified.

bool propagate_service = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The propagateService to set.

Returns
Type Description
KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder

This builder for chaining.