Class KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder (1.52.0)

public static final class KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder extends GeneratedMessageV3.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

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.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.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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.

clearField(Descriptors.FieldDescriptor field)

public KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder
Overrides

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 facilitiate 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.

clone()

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

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 facilitiate 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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

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

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 facilitiate 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.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder
Overrides