Class KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder (1.56.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
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.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
Overrides

build()

public KubernetesConfig.GatewayServiceMesh.RouteDestinations build()

buildPartial()

public KubernetesConfig.GatewayServiceMesh.RouteDestinations buildPartial()

clear()

public KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder clear()
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
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
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()
Overrides

getDefaultInstanceForType()

public KubernetesConfig.GatewayServiceMesh.RouteDestinations getDefaultInstanceForType()

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)

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setUnknownFields(UnknownFieldSet unknownFields)

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