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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder>
    • getDefaultInstanceForType

      public KubernetesConfig.GatewayServiceMesh.RouteDestinations getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<KubernetesConfig.GatewayServiceMesh.RouteDestinations.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      getDestinationIdsList in interface KubernetesConfig.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:
      getDestinationIdsCount in interface KubernetesConfig.GatewayServiceMesh.RouteDestinationsOrBuilder
      Returns:
      The count of destinationIds.
    • getDestinationIds

      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];
      Specified by:
      getDestinationIds in interface KubernetesConfig.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:
      getDestinationIdsBytes in interface KubernetesConfig.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

       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

       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:
      getPropagateService in interface KubernetesConfig.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.