Class KubernetesConfig.GatewayServiceMesh.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<KubernetesConfig.GatewayServiceMesh.Builder>
com.google.cloud.deploy.v1.KubernetesConfig.GatewayServiceMesh.Builder
All Implemented Interfaces:
KubernetesConfig.GatewayServiceMeshOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
KubernetesConfig.GatewayServiceMesh

public static final class KubernetesConfig.GatewayServiceMesh.Builder extends com.google.protobuf.GeneratedMessage.Builder<KubernetesConfig.GatewayServiceMesh.Builder> implements KubernetesConfig.GatewayServiceMeshOrBuilder
 Information about the Kubernetes Gateway API service mesh configuration.
 
Protobuf type google.cloud.deploy.v1.KubernetesConfig.GatewayServiceMesh
  • 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.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.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.Builder>
    • getDefaultInstanceForType

      public KubernetesConfig.GatewayServiceMesh 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

      public KubernetesConfig.GatewayServiceMesh 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.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.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.Builder>
    • mergeFrom

      public KubernetesConfig.GatewayServiceMesh.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.Builder>
      Throws:
      IOException
    • getHttpRoute

      public String getHttpRoute()
       Required. Name of the Gateway API HTTPRoute.
       
      string http_route = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getHttpRoute in interface KubernetesConfig.GatewayServiceMeshOrBuilder
      Returns:
      The httpRoute.
    • getHttpRouteBytes

      public com.google.protobuf.ByteString getHttpRouteBytes()
       Required. Name of the Gateway API HTTPRoute.
       
      string http_route = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getHttpRouteBytes in interface KubernetesConfig.GatewayServiceMeshOrBuilder
      Returns:
      The bytes for httpRoute.
    • setHttpRoute

       Required. Name of the Gateway API HTTPRoute.
       
      string http_route = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The httpRoute to set.
      Returns:
      This builder for chaining.
    • clearHttpRoute

       Required. Name of the Gateway API HTTPRoute.
       
      string http_route = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setHttpRouteBytes

      public KubernetesConfig.GatewayServiceMesh.Builder setHttpRouteBytes(com.google.protobuf.ByteString value)
       Required. Name of the Gateway API HTTPRoute.
       
      string http_route = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for httpRoute to set.
      Returns:
      This builder for chaining.
    • getService

      public String getService()
       Required. Name of the Kubernetes Service.
       
      string service = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getService in interface KubernetesConfig.GatewayServiceMeshOrBuilder
      Returns:
      The service.
    • getServiceBytes

      public com.google.protobuf.ByteString getServiceBytes()
       Required. Name of the Kubernetes Service.
       
      string service = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getServiceBytes in interface KubernetesConfig.GatewayServiceMeshOrBuilder
      Returns:
      The bytes for service.
    • setService

       Required. Name of the Kubernetes Service.
       
      string service = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The service to set.
      Returns:
      This builder for chaining.
    • clearService

       Required. Name of the Kubernetes Service.
       
      string service = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setServiceBytes

      public KubernetesConfig.GatewayServiceMesh.Builder setServiceBytes(com.google.protobuf.ByteString value)
       Required. Name of the Kubernetes Service.
       
      string service = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for service to set.
      Returns:
      This builder for chaining.
    • getDeployment

      public String getDeployment()
       Required. Name of the Kubernetes Deployment whose traffic is managed by
       the specified HTTPRoute and Service.
       
      string deployment = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDeployment in interface KubernetesConfig.GatewayServiceMeshOrBuilder
      Returns:
      The deployment.
    • getDeploymentBytes

      public com.google.protobuf.ByteString getDeploymentBytes()
       Required. Name of the Kubernetes Deployment whose traffic is managed by
       the specified HTTPRoute and Service.
       
      string deployment = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDeploymentBytes in interface KubernetesConfig.GatewayServiceMeshOrBuilder
      Returns:
      The bytes for deployment.
    • setDeployment

       Required. Name of the Kubernetes Deployment whose traffic is managed by
       the specified HTTPRoute and Service.
       
      string deployment = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The deployment to set.
      Returns:
      This builder for chaining.
    • clearDeployment

       Required. Name of the Kubernetes Deployment whose traffic is managed by
       the specified HTTPRoute and Service.
       
      string deployment = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setDeploymentBytes

      public KubernetesConfig.GatewayServiceMesh.Builder setDeploymentBytes(com.google.protobuf.ByteString value)
       Required. Name of the Kubernetes Deployment whose traffic is managed by
       the specified HTTPRoute and Service.
       
      string deployment = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for deployment to set.
      Returns:
      This builder for chaining.
    • hasRouteUpdateWaitTime

      public boolean hasRouteUpdateWaitTime()
       Optional. The time to wait for route updates to propagate. The maximum
       configurable time is 3 hours, in seconds format. If unspecified, there is
       no wait time.
       
      .google.protobuf.Duration route_update_wait_time = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasRouteUpdateWaitTime in interface KubernetesConfig.GatewayServiceMeshOrBuilder
      Returns:
      Whether the routeUpdateWaitTime field is set.
    • getRouteUpdateWaitTime

      public com.google.protobuf.Duration getRouteUpdateWaitTime()
       Optional. The time to wait for route updates to propagate. The maximum
       configurable time is 3 hours, in seconds format. If unspecified, there is
       no wait time.
       
      .google.protobuf.Duration route_update_wait_time = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRouteUpdateWaitTime in interface KubernetesConfig.GatewayServiceMeshOrBuilder
      Returns:
      The routeUpdateWaitTime.
    • setRouteUpdateWaitTime

      public KubernetesConfig.GatewayServiceMesh.Builder setRouteUpdateWaitTime(com.google.protobuf.Duration value)
       Optional. The time to wait for route updates to propagate. The maximum
       configurable time is 3 hours, in seconds format. If unspecified, there is
       no wait time.
       
      .google.protobuf.Duration route_update_wait_time = 4 [(.google.api.field_behavior) = OPTIONAL];
    • setRouteUpdateWaitTime

      public KubernetesConfig.GatewayServiceMesh.Builder setRouteUpdateWaitTime(com.google.protobuf.Duration.Builder builderForValue)
       Optional. The time to wait for route updates to propagate. The maximum
       configurable time is 3 hours, in seconds format. If unspecified, there is
       no wait time.
       
      .google.protobuf.Duration route_update_wait_time = 4 [(.google.api.field_behavior) = OPTIONAL];
    • mergeRouteUpdateWaitTime

      public KubernetesConfig.GatewayServiceMesh.Builder mergeRouteUpdateWaitTime(com.google.protobuf.Duration value)
       Optional. The time to wait for route updates to propagate. The maximum
       configurable time is 3 hours, in seconds format. If unspecified, there is
       no wait time.
       
      .google.protobuf.Duration route_update_wait_time = 4 [(.google.api.field_behavior) = OPTIONAL];
    • clearRouteUpdateWaitTime

      public KubernetesConfig.GatewayServiceMesh.Builder clearRouteUpdateWaitTime()
       Optional. The time to wait for route updates to propagate. The maximum
       configurable time is 3 hours, in seconds format. If unspecified, there is
       no wait time.
       
      .google.protobuf.Duration route_update_wait_time = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getRouteUpdateWaitTimeBuilder

      public com.google.protobuf.Duration.Builder getRouteUpdateWaitTimeBuilder()
       Optional. The time to wait for route updates to propagate. The maximum
       configurable time is 3 hours, in seconds format. If unspecified, there is
       no wait time.
       
      .google.protobuf.Duration route_update_wait_time = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getRouteUpdateWaitTimeOrBuilder

      public com.google.protobuf.DurationOrBuilder getRouteUpdateWaitTimeOrBuilder()
       Optional. The time to wait for route updates to propagate. The maximum
       configurable time is 3 hours, in seconds format. If unspecified, there is
       no wait time.
       
      .google.protobuf.Duration route_update_wait_time = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRouteUpdateWaitTimeOrBuilder in interface KubernetesConfig.GatewayServiceMeshOrBuilder
    • hasStableCutbackDuration

      public boolean hasStableCutbackDuration()
       Optional. The amount of time to migrate traffic back from the canary
       Service to the original Service during the stable phase deployment. If
       specified, must be between 15s and 3600s. If unspecified, there is no
       cutback time.
       
      .google.protobuf.Duration stable_cutback_duration = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasStableCutbackDuration in interface KubernetesConfig.GatewayServiceMeshOrBuilder
      Returns:
      Whether the stableCutbackDuration field is set.
    • getStableCutbackDuration

      public com.google.protobuf.Duration getStableCutbackDuration()
       Optional. The amount of time to migrate traffic back from the canary
       Service to the original Service during the stable phase deployment. If
       specified, must be between 15s and 3600s. If unspecified, there is no
       cutback time.
       
      .google.protobuf.Duration stable_cutback_duration = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStableCutbackDuration in interface KubernetesConfig.GatewayServiceMeshOrBuilder
      Returns:
      The stableCutbackDuration.
    • setStableCutbackDuration

      public KubernetesConfig.GatewayServiceMesh.Builder setStableCutbackDuration(com.google.protobuf.Duration value)
       Optional. The amount of time to migrate traffic back from the canary
       Service to the original Service during the stable phase deployment. If
       specified, must be between 15s and 3600s. If unspecified, there is no
       cutback time.
       
      .google.protobuf.Duration stable_cutback_duration = 5 [(.google.api.field_behavior) = OPTIONAL];
    • setStableCutbackDuration

      public KubernetesConfig.GatewayServiceMesh.Builder setStableCutbackDuration(com.google.protobuf.Duration.Builder builderForValue)
       Optional. The amount of time to migrate traffic back from the canary
       Service to the original Service during the stable phase deployment. If
       specified, must be between 15s and 3600s. If unspecified, there is no
       cutback time.
       
      .google.protobuf.Duration stable_cutback_duration = 5 [(.google.api.field_behavior) = OPTIONAL];
    • mergeStableCutbackDuration

      public KubernetesConfig.GatewayServiceMesh.Builder mergeStableCutbackDuration(com.google.protobuf.Duration value)
       Optional. The amount of time to migrate traffic back from the canary
       Service to the original Service during the stable phase deployment. If
       specified, must be between 15s and 3600s. If unspecified, there is no
       cutback time.
       
      .google.protobuf.Duration stable_cutback_duration = 5 [(.google.api.field_behavior) = OPTIONAL];
    • clearStableCutbackDuration

      public KubernetesConfig.GatewayServiceMesh.Builder clearStableCutbackDuration()
       Optional. The amount of time to migrate traffic back from the canary
       Service to the original Service during the stable phase deployment. If
       specified, must be between 15s and 3600s. If unspecified, there is no
       cutback time.
       
      .google.protobuf.Duration stable_cutback_duration = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getStableCutbackDurationBuilder

      public com.google.protobuf.Duration.Builder getStableCutbackDurationBuilder()
       Optional. The amount of time to migrate traffic back from the canary
       Service to the original Service during the stable phase deployment. If
       specified, must be between 15s and 3600s. If unspecified, there is no
       cutback time.
       
      .google.protobuf.Duration stable_cutback_duration = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getStableCutbackDurationOrBuilder

      public com.google.protobuf.DurationOrBuilder getStableCutbackDurationOrBuilder()
       Optional. The amount of time to migrate traffic back from the canary
       Service to the original Service during the stable phase deployment. If
       specified, must be between 15s and 3600s. If unspecified, there is no
       cutback time.
       
      .google.protobuf.Duration stable_cutback_duration = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStableCutbackDurationOrBuilder in interface KubernetesConfig.GatewayServiceMeshOrBuilder
    • getPodSelectorLabel

      public String getPodSelectorLabel()
       Optional. The label to use when selecting Pods for the Deployment and
       Service resources. This label must already be present in both resources.
       
      string pod_selector_label = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPodSelectorLabel in interface KubernetesConfig.GatewayServiceMeshOrBuilder
      Returns:
      The podSelectorLabel.
    • getPodSelectorLabelBytes

      public com.google.protobuf.ByteString getPodSelectorLabelBytes()
       Optional. The label to use when selecting Pods for the Deployment and
       Service resources. This label must already be present in both resources.
       
      string pod_selector_label = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPodSelectorLabelBytes in interface KubernetesConfig.GatewayServiceMeshOrBuilder
      Returns:
      The bytes for podSelectorLabel.
    • setPodSelectorLabel

      public KubernetesConfig.GatewayServiceMesh.Builder setPodSelectorLabel(String value)
       Optional. The label to use when selecting Pods for the Deployment and
       Service resources. This label must already be present in both resources.
       
      string pod_selector_label = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The podSelectorLabel to set.
      Returns:
      This builder for chaining.
    • clearPodSelectorLabel

      public KubernetesConfig.GatewayServiceMesh.Builder clearPodSelectorLabel()
       Optional. The label to use when selecting Pods for the Deployment and
       Service resources. This label must already be present in both resources.
       
      string pod_selector_label = 6 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setPodSelectorLabelBytes

      public KubernetesConfig.GatewayServiceMesh.Builder setPodSelectorLabelBytes(com.google.protobuf.ByteString value)
       Optional. The label to use when selecting Pods for the Deployment and
       Service resources. This label must already be present in both resources.
       
      string pod_selector_label = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for podSelectorLabel to set.
      Returns:
      This builder for chaining.
    • hasRouteDestinations

      public boolean hasRouteDestinations()
       Optional. Route destinations allow configuring the Gateway API HTTPRoute
       to be deployed to additional clusters. This option is available for
       multi-cluster service mesh set ups that require the route to exist in the
       clusters that call the service. If unspecified, the HTTPRoute will only
       be deployed to the Target cluster.
       
      .google.cloud.deploy.v1.KubernetesConfig.GatewayServiceMesh.RouteDestinations route_destinations = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasRouteDestinations in interface KubernetesConfig.GatewayServiceMeshOrBuilder
      Returns:
      Whether the routeDestinations field is set.
    • getRouteDestinations

       Optional. Route destinations allow configuring the Gateway API HTTPRoute
       to be deployed to additional clusters. This option is available for
       multi-cluster service mesh set ups that require the route to exist in the
       clusters that call the service. If unspecified, the HTTPRoute will only
       be deployed to the Target cluster.
       
      .google.cloud.deploy.v1.KubernetesConfig.GatewayServiceMesh.RouteDestinations route_destinations = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRouteDestinations in interface KubernetesConfig.GatewayServiceMeshOrBuilder
      Returns:
      The routeDestinations.
    • setRouteDestinations

       Optional. Route destinations allow configuring the Gateway API HTTPRoute
       to be deployed to additional clusters. This option is available for
       multi-cluster service mesh set ups that require the route to exist in the
       clusters that call the service. If unspecified, the HTTPRoute will only
       be deployed to the Target cluster.
       
      .google.cloud.deploy.v1.KubernetesConfig.GatewayServiceMesh.RouteDestinations route_destinations = 8 [(.google.api.field_behavior) = OPTIONAL];
    • setRouteDestinations

       Optional. Route destinations allow configuring the Gateway API HTTPRoute
       to be deployed to additional clusters. This option is available for
       multi-cluster service mesh set ups that require the route to exist in the
       clusters that call the service. If unspecified, the HTTPRoute will only
       be deployed to the Target cluster.
       
      .google.cloud.deploy.v1.KubernetesConfig.GatewayServiceMesh.RouteDestinations route_destinations = 8 [(.google.api.field_behavior) = OPTIONAL];
    • mergeRouteDestinations

       Optional. Route destinations allow configuring the Gateway API HTTPRoute
       to be deployed to additional clusters. This option is available for
       multi-cluster service mesh set ups that require the route to exist in the
       clusters that call the service. If unspecified, the HTTPRoute will only
       be deployed to the Target cluster.
       
      .google.cloud.deploy.v1.KubernetesConfig.GatewayServiceMesh.RouteDestinations route_destinations = 8 [(.google.api.field_behavior) = OPTIONAL];
    • clearRouteDestinations

      public KubernetesConfig.GatewayServiceMesh.Builder clearRouteDestinations()
       Optional. Route destinations allow configuring the Gateway API HTTPRoute
       to be deployed to additional clusters. This option is available for
       multi-cluster service mesh set ups that require the route to exist in the
       clusters that call the service. If unspecified, the HTTPRoute will only
       be deployed to the Target cluster.
       
      .google.cloud.deploy.v1.KubernetesConfig.GatewayServiceMesh.RouteDestinations route_destinations = 8 [(.google.api.field_behavior) = OPTIONAL];
    • getRouteDestinationsBuilder

       Optional. Route destinations allow configuring the Gateway API HTTPRoute
       to be deployed to additional clusters. This option is available for
       multi-cluster service mesh set ups that require the route to exist in the
       clusters that call the service. If unspecified, the HTTPRoute will only
       be deployed to the Target cluster.
       
      .google.cloud.deploy.v1.KubernetesConfig.GatewayServiceMesh.RouteDestinations route_destinations = 8 [(.google.api.field_behavior) = OPTIONAL];
    • getRouteDestinationsOrBuilder

       Optional. Route destinations allow configuring the Gateway API HTTPRoute
       to be deployed to additional clusters. This option is available for
       multi-cluster service mesh set ups that require the route to exist in the
       clusters that call the service. If unspecified, the HTTPRoute will only
       be deployed to the Target cluster.
       
      .google.cloud.deploy.v1.KubernetesConfig.GatewayServiceMesh.RouteDestinations route_destinations = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRouteDestinationsOrBuilder in interface KubernetesConfig.GatewayServiceMeshOrBuilder