Package com.google.cloud.deploy.v1
Class KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder>
com.google.cloud.deploy.v1.KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder
- All Implemented Interfaces:
KubernetesConfig.GatewayServiceMesh.RouteDestinationsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- KubernetesConfig.GatewayServiceMesh.RouteDestinations
public static final class KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder
extends com.google.protobuf.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-
Method Summary
Modifier and TypeMethodDescriptionaddAllDestinationIds(Iterable<String> values) Required.addDestinationIds(String value) Required.addDestinationIdsBytes(com.google.protobuf.ByteString value) Required.build()clear()Required.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetDestinationIds(int index) Required.com.google.protobuf.ByteStringgetDestinationIdsBytes(int index) Required.intRequired.com.google.protobuf.ProtocolStringListRequired.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setDestinationIds(int index, String value) Required.setPropagateService(boolean value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder>
-
mergeFrom
public KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder>- Throws:
IOException
-
getDestinationIdsList
public com.google.protobuf.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];- Specified by:
getDestinationIdsListin interfaceKubernetesConfig.GatewayServiceMesh.RouteDestinationsOrBuilder- Returns:
- A list containing the destinationIds.
-
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];- Specified by:
getDestinationIdsCountin interfaceKubernetesConfig.GatewayServiceMesh.RouteDestinationsOrBuilder- Returns:
- The count of destinationIds.
-
getDestinationIds
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];- Specified by:
getDestinationIdsin interfaceKubernetesConfig.GatewayServiceMesh.RouteDestinationsOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The destinationIds at the given index.
-
getDestinationIdsBytes
public com.google.protobuf.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];- Specified by:
getDestinationIdsBytesin interfaceKubernetesConfig.GatewayServiceMesh.RouteDestinationsOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the destinationIds at the given index.
-
setDestinationIds
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:
index- The index to set the value at.value- The destinationIds to set.- Returns:
- This builder for chaining.
-
addDestinationIds
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];- Parameters:
value- The destinationIds to add.- Returns:
- This builder for chaining.
-
addAllDestinationIds
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];- Parameters:
values- The destinationIds to add.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
addDestinationIdsBytes
public KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder addDestinationIdsBytes(com.google.protobuf.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];- Parameters:
value- The bytes of the destinationIds to add.- Returns:
- This builder for chaining.
-
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];- Specified by:
getPropagateServicein interfaceKubernetesConfig.GatewayServiceMesh.RouteDestinationsOrBuilder- Returns:
- The propagateService.
-
setPropagateService
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];- Parameters:
value- The propagateService to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-