Class Service

  • All Implemented Interfaces:
    ServiceOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class Service
    extends com.google.protobuf.GeneratedMessageV3
    implements ServiceOrBuilder
     Service acts as a top-level container that manages a set of
     configurations and revision templates which implement a network service.
     Service exists to provide a singular abstraction which can be access
     controlled, reasoned about, and which encapsulates software lifecycle
     decisions such as rollout policy and team resource ownership.
     
    Protobuf type google.cloud.run.v2.Service
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getName

        public String getName()
         The fully qualified name of this Service. In CreateServiceRequest, this
         field is ignored, and instead composed from CreateServiceRequest.parent and
         CreateServiceRequest.service_id.
        
         Format:
         projects/{project}/locations/{location}/services/{service_id}
         
        string name = 1;
        Specified by:
        getName in interface ServiceOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The fully qualified name of this Service. In CreateServiceRequest, this
         field is ignored, and instead composed from CreateServiceRequest.parent and
         CreateServiceRequest.service_id.
        
         Format:
         projects/{project}/locations/{location}/services/{service_id}
         
        string name = 1;
        Specified by:
        getNameBytes in interface ServiceOrBuilder
        Returns:
        The bytes for name.
      • getDescription

        public String getDescription()
         User-provided description of the Service. This field currently has a
         512-character limit.
         
        string description = 2;
        Specified by:
        getDescription in interface ServiceOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         User-provided description of the Service. This field currently has a
         512-character limit.
         
        string description = 2;
        Specified by:
        getDescriptionBytes in interface ServiceOrBuilder
        Returns:
        The bytes for description.
      • getUid

        public String getUid()
         Output only. Server assigned unique identifier for the trigger. The value
         is a UUID4 string and guaranteed to remain unchanged until the resource is
         deleted.
         
        string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUid in interface ServiceOrBuilder
        Returns:
        The uid.
      • getUidBytes

        public com.google.protobuf.ByteString getUidBytes()
         Output only. Server assigned unique identifier for the trigger. The value
         is a UUID4 string and guaranteed to remain unchanged until the resource is
         deleted.
         
        string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUidBytes in interface ServiceOrBuilder
        Returns:
        The bytes for uid.
      • getGeneration

        public long getGeneration()
         Output only. A number that monotonically increases every time the user
         modifies the desired state.
         Please note that unlike v1, this is an int64 value. As with most Google
         APIs, its JSON representation will be a `string` instead of an `integer`.
         
        int64 generation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getGeneration in interface ServiceOrBuilder
        Returns:
        The generation.
      • getLabelsCount

        public int getLabelsCount()
        Description copied from interface: ServiceOrBuilder
         Unstructured key value map that can be used to organize and categorize
         objects.
         User-provided labels are shared with Google's billing system, so they can
         be used to filter, or break down billing charges by team, component,
         environment, state, etc. For more information, visit
         https://cloud.google.com/resource-manager/docs/creating-managing-labels or
         https://cloud.google.com/run/docs/configuring/labels.
        
         <p>Cloud Run API v2 does not support labels with  `run.googleapis.com`,
         `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
         namespaces, and they will be rejected. All system labels in v1 now have a
         corresponding field in v2 Service.
         
        map<string, string> labels = 5;
        Specified by:
        getLabelsCount in interface ServiceOrBuilder
      • containsLabels

        public boolean containsLabels​(String key)
         Unstructured key value map that can be used to organize and categorize
         objects.
         User-provided labels are shared with Google's billing system, so they can
         be used to filter, or break down billing charges by team, component,
         environment, state, etc. For more information, visit
         https://cloud.google.com/resource-manager/docs/creating-managing-labels or
         https://cloud.google.com/run/docs/configuring/labels.
        
         <p>Cloud Run API v2 does not support labels with  `run.googleapis.com`,
         `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
         namespaces, and they will be rejected. All system labels in v1 now have a
         corresponding field in v2 Service.
         
        map<string, string> labels = 5;
        Specified by:
        containsLabels in interface ServiceOrBuilder
      • getLabelsMap

        public Map<String,​String> getLabelsMap()
         Unstructured key value map that can be used to organize and categorize
         objects.
         User-provided labels are shared with Google's billing system, so they can
         be used to filter, or break down billing charges by team, component,
         environment, state, etc. For more information, visit
         https://cloud.google.com/resource-manager/docs/creating-managing-labels or
         https://cloud.google.com/run/docs/configuring/labels.
        
         <p>Cloud Run API v2 does not support labels with  `run.googleapis.com`,
         `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
         namespaces, and they will be rejected. All system labels in v1 now have a
         corresponding field in v2 Service.
         
        map<string, string> labels = 5;
        Specified by:
        getLabelsMap in interface ServiceOrBuilder
      • getLabelsOrDefault

        public String getLabelsOrDefault​(String key,
                                         String defaultValue)
         Unstructured key value map that can be used to organize and categorize
         objects.
         User-provided labels are shared with Google's billing system, so they can
         be used to filter, or break down billing charges by team, component,
         environment, state, etc. For more information, visit
         https://cloud.google.com/resource-manager/docs/creating-managing-labels or
         https://cloud.google.com/run/docs/configuring/labels.
        
         <p>Cloud Run API v2 does not support labels with  `run.googleapis.com`,
         `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
         namespaces, and they will be rejected. All system labels in v1 now have a
         corresponding field in v2 Service.
         
        map<string, string> labels = 5;
        Specified by:
        getLabelsOrDefault in interface ServiceOrBuilder
      • getLabelsOrThrow

        public String getLabelsOrThrow​(String key)
         Unstructured key value map that can be used to organize and categorize
         objects.
         User-provided labels are shared with Google's billing system, so they can
         be used to filter, or break down billing charges by team, component,
         environment, state, etc. For more information, visit
         https://cloud.google.com/resource-manager/docs/creating-managing-labels or
         https://cloud.google.com/run/docs/configuring/labels.
        
         <p>Cloud Run API v2 does not support labels with  `run.googleapis.com`,
         `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
         namespaces, and they will be rejected. All system labels in v1 now have a
         corresponding field in v2 Service.
         
        map<string, string> labels = 5;
        Specified by:
        getLabelsOrThrow in interface ServiceOrBuilder
      • getAnnotationsCount

        public int getAnnotationsCount()
        Description copied from interface: ServiceOrBuilder
         Unstructured key value map that may be set by external tools to store and
         arbitrary metadata. They are not queryable and should be preserved
         when modifying objects.
        
         <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
         `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
         namespaces, and they will be rejected in new resources. All system
         annotations in v1 now have a corresponding field in v2 Service.
        
         <p>This field follows Kubernetes
         annotations' namespacing, limits, and rules.
         
        map<string, string> annotations = 6;
        Specified by:
        getAnnotationsCount in interface ServiceOrBuilder
      • containsAnnotations

        public boolean containsAnnotations​(String key)
         Unstructured key value map that may be set by external tools to store and
         arbitrary metadata. They are not queryable and should be preserved
         when modifying objects.
        
         <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
         `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
         namespaces, and they will be rejected in new resources. All system
         annotations in v1 now have a corresponding field in v2 Service.
        
         <p>This field follows Kubernetes
         annotations' namespacing, limits, and rules.
         
        map<string, string> annotations = 6;
        Specified by:
        containsAnnotations in interface ServiceOrBuilder
      • getAnnotationsMap

        public Map<String,​String> getAnnotationsMap()
         Unstructured key value map that may be set by external tools to store and
         arbitrary metadata. They are not queryable and should be preserved
         when modifying objects.
        
         <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
         `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
         namespaces, and they will be rejected in new resources. All system
         annotations in v1 now have a corresponding field in v2 Service.
        
         <p>This field follows Kubernetes
         annotations' namespacing, limits, and rules.
         
        map<string, string> annotations = 6;
        Specified by:
        getAnnotationsMap in interface ServiceOrBuilder
      • getAnnotationsOrDefault

        public String getAnnotationsOrDefault​(String key,
                                              String defaultValue)
         Unstructured key value map that may be set by external tools to store and
         arbitrary metadata. They are not queryable and should be preserved
         when modifying objects.
        
         <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
         `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
         namespaces, and they will be rejected in new resources. All system
         annotations in v1 now have a corresponding field in v2 Service.
        
         <p>This field follows Kubernetes
         annotations' namespacing, limits, and rules.
         
        map<string, string> annotations = 6;
        Specified by:
        getAnnotationsOrDefault in interface ServiceOrBuilder
      • getAnnotationsOrThrow

        public String getAnnotationsOrThrow​(String key)
         Unstructured key value map that may be set by external tools to store and
         arbitrary metadata. They are not queryable and should be preserved
         when modifying objects.
        
         <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
         `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
         namespaces, and they will be rejected in new resources. All system
         annotations in v1 now have a corresponding field in v2 Service.
        
         <p>This field follows Kubernetes
         annotations' namespacing, limits, and rules.
         
        map<string, string> annotations = 6;
        Specified by:
        getAnnotationsOrThrow in interface ServiceOrBuilder
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. The creation time.
         
        .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCreateTime in interface ServiceOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. The creation time.
         
        .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface ServiceOrBuilder
        Returns:
        The createTime.
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. The creation time.
         
        .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface ServiceOrBuilder
      • hasUpdateTime

        public boolean hasUpdateTime()
         Output only. The last-modified time.
         
        .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasUpdateTime in interface ServiceOrBuilder
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        public com.google.protobuf.Timestamp getUpdateTime()
         Output only. The last-modified time.
         
        .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTime in interface ServiceOrBuilder
        Returns:
        The updateTime.
      • getUpdateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
         Output only. The last-modified time.
         
        .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTimeOrBuilder in interface ServiceOrBuilder
      • hasDeleteTime

        public boolean hasDeleteTime()
         Output only. The deletion time.
         
        .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasDeleteTime in interface ServiceOrBuilder
        Returns:
        Whether the deleteTime field is set.
      • getDeleteTime

        public com.google.protobuf.Timestamp getDeleteTime()
         Output only. The deletion time.
         
        .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getDeleteTime in interface ServiceOrBuilder
        Returns:
        The deleteTime.
      • getDeleteTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder()
         Output only. The deletion time.
         
        .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getDeleteTimeOrBuilder in interface ServiceOrBuilder
      • hasExpireTime

        public boolean hasExpireTime()
         Output only. For a deleted resource, the time after which it will be
         permamently deleted.
         
        .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasExpireTime in interface ServiceOrBuilder
        Returns:
        Whether the expireTime field is set.
      • getExpireTime

        public com.google.protobuf.Timestamp getExpireTime()
         Output only. For a deleted resource, the time after which it will be
         permamently deleted.
         
        .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getExpireTime in interface ServiceOrBuilder
        Returns:
        The expireTime.
      • getExpireTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder()
         Output only. For a deleted resource, the time after which it will be
         permamently deleted.
         
        .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getExpireTimeOrBuilder in interface ServiceOrBuilder
      • getCreator

        public String getCreator()
         Output only. Email address of the authenticated creator.
         
        string creator = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreator in interface ServiceOrBuilder
        Returns:
        The creator.
      • getCreatorBytes

        public com.google.protobuf.ByteString getCreatorBytes()
         Output only. Email address of the authenticated creator.
         
        string creator = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreatorBytes in interface ServiceOrBuilder
        Returns:
        The bytes for creator.
      • getLastModifier

        public String getLastModifier()
         Output only. Email address of the last authenticated modifier.
         
        string last_modifier = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getLastModifier in interface ServiceOrBuilder
        Returns:
        The lastModifier.
      • getLastModifierBytes

        public com.google.protobuf.ByteString getLastModifierBytes()
         Output only. Email address of the last authenticated modifier.
         
        string last_modifier = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getLastModifierBytes in interface ServiceOrBuilder
        Returns:
        The bytes for lastModifier.
      • getClient

        public String getClient()
         Arbitrary identifier for the API client.
         
        string client = 13;
        Specified by:
        getClient in interface ServiceOrBuilder
        Returns:
        The client.
      • getClientBytes

        public com.google.protobuf.ByteString getClientBytes()
         Arbitrary identifier for the API client.
         
        string client = 13;
        Specified by:
        getClientBytes in interface ServiceOrBuilder
        Returns:
        The bytes for client.
      • getClientVersion

        public String getClientVersion()
         Arbitrary version identifier for the API client.
         
        string client_version = 14;
        Specified by:
        getClientVersion in interface ServiceOrBuilder
        Returns:
        The clientVersion.
      • getClientVersionBytes

        public com.google.protobuf.ByteString getClientVersionBytes()
         Arbitrary version identifier for the API client.
         
        string client_version = 14;
        Specified by:
        getClientVersionBytes in interface ServiceOrBuilder
        Returns:
        The bytes for clientVersion.
      • getIngressValue

        public int getIngressValue()
         Provides the ingress settings for this Service. On output, returns the
         currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no
         revision is active.
         
        .google.cloud.run.v2.IngressTraffic ingress = 15;
        Specified by:
        getIngressValue in interface ServiceOrBuilder
        Returns:
        The enum numeric value on the wire for ingress.
      • getIngress

        public IngressTraffic getIngress()
         Provides the ingress settings for this Service. On output, returns the
         currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no
         revision is active.
         
        .google.cloud.run.v2.IngressTraffic ingress = 15;
        Specified by:
        getIngress in interface ServiceOrBuilder
        Returns:
        The ingress.
      • getLaunchStageValue

        public int getLaunchStageValue()
         The launch stage as defined by [Google Cloud Platform
         Launch Stages](https://cloud.google.com/terms/launch-stages).
         Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA
         is assumed.
         Set the launch stage to a preview stage on input to allow use of preview
         features in that stage. On read (or output), describes whether the resource
         uses preview features.
         <p>
         For example, if ALPHA is provided as input, but only BETA and GA-level
         features are used, this field will be BETA on output.
         
        .google.api.LaunchStage launch_stage = 16;
        Specified by:
        getLaunchStageValue in interface ServiceOrBuilder
        Returns:
        The enum numeric value on the wire for launchStage.
      • getLaunchStage

        public com.google.api.LaunchStage getLaunchStage()
         The launch stage as defined by [Google Cloud Platform
         Launch Stages](https://cloud.google.com/terms/launch-stages).
         Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA
         is assumed.
         Set the launch stage to a preview stage on input to allow use of preview
         features in that stage. On read (or output), describes whether the resource
         uses preview features.
         <p>
         For example, if ALPHA is provided as input, but only BETA and GA-level
         features are used, this field will be BETA on output.
         
        .google.api.LaunchStage launch_stage = 16;
        Specified by:
        getLaunchStage in interface ServiceOrBuilder
        Returns:
        The launchStage.
      • hasBinaryAuthorization

        public boolean hasBinaryAuthorization()
         Settings for the Binary Authorization feature.
         
        .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17;
        Specified by:
        hasBinaryAuthorization in interface ServiceOrBuilder
        Returns:
        Whether the binaryAuthorization field is set.
      • getBinaryAuthorization

        public BinaryAuthorization getBinaryAuthorization()
         Settings for the Binary Authorization feature.
         
        .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17;
        Specified by:
        getBinaryAuthorization in interface ServiceOrBuilder
        Returns:
        The binaryAuthorization.
      • hasTemplate

        public boolean hasTemplate()
         Required. The template used to create revisions for this Service.
         
        .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasTemplate in interface ServiceOrBuilder
        Returns:
        Whether the template field is set.
      • getTemplate

        public RevisionTemplate getTemplate()
         Required. The template used to create revisions for this Service.
         
        .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getTemplate in interface ServiceOrBuilder
        Returns:
        The template.
      • getTemplateOrBuilder

        public RevisionTemplateOrBuilder getTemplateOrBuilder()
         Required. The template used to create revisions for this Service.
         
        .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getTemplateOrBuilder in interface ServiceOrBuilder
      • getTrafficList

        public List<TrafficTarget> getTrafficList()
         Specifies how to distribute traffic over a collection of Revisions
         belonging to the Service. If traffic is empty or not provided, defaults to
         100% traffic to the latest `Ready` Revision.
         
        repeated .google.cloud.run.v2.TrafficTarget traffic = 19;
        Specified by:
        getTrafficList in interface ServiceOrBuilder
      • getTrafficOrBuilderList

        public List<? extends TrafficTargetOrBuilder> getTrafficOrBuilderList()
         Specifies how to distribute traffic over a collection of Revisions
         belonging to the Service. If traffic is empty or not provided, defaults to
         100% traffic to the latest `Ready` Revision.
         
        repeated .google.cloud.run.v2.TrafficTarget traffic = 19;
        Specified by:
        getTrafficOrBuilderList in interface ServiceOrBuilder
      • getTrafficCount

        public int getTrafficCount()
         Specifies how to distribute traffic over a collection of Revisions
         belonging to the Service. If traffic is empty or not provided, defaults to
         100% traffic to the latest `Ready` Revision.
         
        repeated .google.cloud.run.v2.TrafficTarget traffic = 19;
        Specified by:
        getTrafficCount in interface ServiceOrBuilder
      • getTraffic

        public TrafficTarget getTraffic​(int index)
         Specifies how to distribute traffic over a collection of Revisions
         belonging to the Service. If traffic is empty or not provided, defaults to
         100% traffic to the latest `Ready` Revision.
         
        repeated .google.cloud.run.v2.TrafficTarget traffic = 19;
        Specified by:
        getTraffic in interface ServiceOrBuilder
      • getTrafficOrBuilder

        public TrafficTargetOrBuilder getTrafficOrBuilder​(int index)
         Specifies how to distribute traffic over a collection of Revisions
         belonging to the Service. If traffic is empty or not provided, defaults to
         100% traffic to the latest `Ready` Revision.
         
        repeated .google.cloud.run.v2.TrafficTarget traffic = 19;
        Specified by:
        getTrafficOrBuilder in interface ServiceOrBuilder
      • getObservedGeneration

        public long getObservedGeneration()
         Output only. The generation of this Service currently serving traffic. See
         comments in `reconciling` for additional information on reconciliation
         process in Cloud Run. Please note that unlike v1, this is an int64 value.
         As with most Google APIs, its JSON representation will be a `string`
         instead of an `integer`.
         
        int64 observed_generation = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getObservedGeneration in interface ServiceOrBuilder
        Returns:
        The observedGeneration.
      • hasTerminalCondition

        public boolean hasTerminalCondition()
         Output only. The Condition of this Service, containing its readiness
         status, and detailed error information in case it did not reach a serving
         state. See comments in `reconciling` for additional information on
         reconciliation process in Cloud Run.
         
        .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasTerminalCondition in interface ServiceOrBuilder
        Returns:
        Whether the terminalCondition field is set.
      • getTerminalCondition

        public Condition getTerminalCondition()
         Output only. The Condition of this Service, containing its readiness
         status, and detailed error information in case it did not reach a serving
         state. See comments in `reconciling` for additional information on
         reconciliation process in Cloud Run.
         
        .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getTerminalCondition in interface ServiceOrBuilder
        Returns:
        The terminalCondition.
      • getTerminalConditionOrBuilder

        public ConditionOrBuilder getTerminalConditionOrBuilder()
         Output only. The Condition of this Service, containing its readiness
         status, and detailed error information in case it did not reach a serving
         state. See comments in `reconciling` for additional information on
         reconciliation process in Cloud Run.
         
        .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getTerminalConditionOrBuilder in interface ServiceOrBuilder
      • getConditionsList

        public List<Condition> getConditionsList()
         Output only. The Conditions of all other associated sub-resources. They
         contain additional diagnostics information in case the Service does not
         reach its Serving state. See comments in `reconciling` for additional
         information on reconciliation process in Cloud Run.
         
        repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getConditionsList in interface ServiceOrBuilder
      • getConditionsOrBuilderList

        public List<? extends ConditionOrBuilder> getConditionsOrBuilderList()
         Output only. The Conditions of all other associated sub-resources. They
         contain additional diagnostics information in case the Service does not
         reach its Serving state. See comments in `reconciling` for additional
         information on reconciliation process in Cloud Run.
         
        repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getConditionsOrBuilderList in interface ServiceOrBuilder
      • getConditionsCount

        public int getConditionsCount()
         Output only. The Conditions of all other associated sub-resources. They
         contain additional diagnostics information in case the Service does not
         reach its Serving state. See comments in `reconciling` for additional
         information on reconciliation process in Cloud Run.
         
        repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getConditionsCount in interface ServiceOrBuilder
      • getConditions

        public Condition getConditions​(int index)
         Output only. The Conditions of all other associated sub-resources. They
         contain additional diagnostics information in case the Service does not
         reach its Serving state. See comments in `reconciling` for additional
         information on reconciliation process in Cloud Run.
         
        repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getConditions in interface ServiceOrBuilder
      • getConditionsOrBuilder

        public ConditionOrBuilder getConditionsOrBuilder​(int index)
         Output only. The Conditions of all other associated sub-resources. They
         contain additional diagnostics information in case the Service does not
         reach its Serving state. See comments in `reconciling` for additional
         information on reconciliation process in Cloud Run.
         
        repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getConditionsOrBuilder in interface ServiceOrBuilder
      • getLatestReadyRevision

        public String getLatestReadyRevision()
         Output only. Name of the latest revision that is serving traffic. See
         comments in `reconciling` for additional information on reconciliation
         process in Cloud Run.
         
        string latest_ready_revision = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getLatestReadyRevision in interface ServiceOrBuilder
        Returns:
        The latestReadyRevision.
      • getLatestReadyRevisionBytes

        public com.google.protobuf.ByteString getLatestReadyRevisionBytes()
         Output only. Name of the latest revision that is serving traffic. See
         comments in `reconciling` for additional information on reconciliation
         process in Cloud Run.
         
        string latest_ready_revision = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getLatestReadyRevisionBytes in interface ServiceOrBuilder
        Returns:
        The bytes for latestReadyRevision.
      • getLatestCreatedRevision

        public String getLatestCreatedRevision()
         Output only. Name of the last created revision. See comments in
         `reconciling` for additional information on reconciliation process in Cloud
         Run.
         
        string latest_created_revision = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getLatestCreatedRevision in interface ServiceOrBuilder
        Returns:
        The latestCreatedRevision.
      • getLatestCreatedRevisionBytes

        public com.google.protobuf.ByteString getLatestCreatedRevisionBytes()
         Output only. Name of the last created revision. See comments in
         `reconciling` for additional information on reconciliation process in Cloud
         Run.
         
        string latest_created_revision = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getLatestCreatedRevisionBytes in interface ServiceOrBuilder
        Returns:
        The bytes for latestCreatedRevision.
      • getTrafficStatusesList

        public List<TrafficTargetStatus> getTrafficStatusesList()
         Output only. Detailed status information for corresponding traffic targets.
         See comments in `reconciling` for additional information on reconciliation
         process in Cloud Run.
         
        repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getTrafficStatusesList in interface ServiceOrBuilder
      • getTrafficStatusesOrBuilderList

        public List<? extends TrafficTargetStatusOrBuilder> getTrafficStatusesOrBuilderList()
         Output only. Detailed status information for corresponding traffic targets.
         See comments in `reconciling` for additional information on reconciliation
         process in Cloud Run.
         
        repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getTrafficStatusesOrBuilderList in interface ServiceOrBuilder
      • getTrafficStatusesCount

        public int getTrafficStatusesCount()
         Output only. Detailed status information for corresponding traffic targets.
         See comments in `reconciling` for additional information on reconciliation
         process in Cloud Run.
         
        repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getTrafficStatusesCount in interface ServiceOrBuilder
      • getTrafficStatuses

        public TrafficTargetStatus getTrafficStatuses​(int index)
         Output only. Detailed status information for corresponding traffic targets.
         See comments in `reconciling` for additional information on reconciliation
         process in Cloud Run.
         
        repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getTrafficStatuses in interface ServiceOrBuilder
      • getTrafficStatusesOrBuilder

        public TrafficTargetStatusOrBuilder getTrafficStatusesOrBuilder​(int index)
         Output only. Detailed status information for corresponding traffic targets.
         See comments in `reconciling` for additional information on reconciliation
         process in Cloud Run.
         
        repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getTrafficStatusesOrBuilder in interface ServiceOrBuilder
      • getUri

        public String getUri()
         Output only. The main URI in which this Service is serving traffic.
         
        string uri = 36 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUri in interface ServiceOrBuilder
        Returns:
        The uri.
      • getUriBytes

        public com.google.protobuf.ByteString getUriBytes()
         Output only. The main URI in which this Service is serving traffic.
         
        string uri = 36 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUriBytes in interface ServiceOrBuilder
        Returns:
        The bytes for uri.
      • getCustomAudiencesList

        public com.google.protobuf.ProtocolStringList getCustomAudiencesList()
         One or more custom audiences that you want this service to support. Specify
         each custom audience as the full URL in a string. The custom audiences are
         encoded in the token and used to authenticate requests. For more
         information, see
         https://cloud.google.com/run/docs/configuring/custom-audiences.
         
        repeated string custom_audiences = 37;
        Specified by:
        getCustomAudiencesList in interface ServiceOrBuilder
        Returns:
        A list containing the customAudiences.
      • getCustomAudiencesCount

        public int getCustomAudiencesCount()
         One or more custom audiences that you want this service to support. Specify
         each custom audience as the full URL in a string. The custom audiences are
         encoded in the token and used to authenticate requests. For more
         information, see
         https://cloud.google.com/run/docs/configuring/custom-audiences.
         
        repeated string custom_audiences = 37;
        Specified by:
        getCustomAudiencesCount in interface ServiceOrBuilder
        Returns:
        The count of customAudiences.
      • getCustomAudiences

        public String getCustomAudiences​(int index)
         One or more custom audiences that you want this service to support. Specify
         each custom audience as the full URL in a string. The custom audiences are
         encoded in the token and used to authenticate requests. For more
         information, see
         https://cloud.google.com/run/docs/configuring/custom-audiences.
         
        repeated string custom_audiences = 37;
        Specified by:
        getCustomAudiences in interface ServiceOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The customAudiences at the given index.
      • getCustomAudiencesBytes

        public com.google.protobuf.ByteString getCustomAudiencesBytes​(int index)
         One or more custom audiences that you want this service to support. Specify
         each custom audience as the full URL in a string. The custom audiences are
         encoded in the token and used to authenticate requests. For more
         information, see
         https://cloud.google.com/run/docs/configuring/custom-audiences.
         
        repeated string custom_audiences = 37;
        Specified by:
        getCustomAudiencesBytes in interface ServiceOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the customAudiences at the given index.
      • getSatisfiesPzs

        public boolean getSatisfiesPzs()
         Output only. Reserved for future use.
         
        bool satisfies_pzs = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getSatisfiesPzs in interface ServiceOrBuilder
        Returns:
        The satisfiesPzs.
      • getReconciling

        public boolean getReconciling()
         Output only. Returns true if the Service is currently being acted upon by
         the system to bring it into the desired state.
        
         When a new Service is created, or an existing one is updated, Cloud Run
         will asynchronously perform all necessary steps to bring the Service to the
         desired serving state. This process is called reconciliation.
         While reconciliation is in process, `observed_generation`,
         `latest_ready_revison`, `traffic_statuses`, and `uri` will have transient
         values that might mismatch the intended state: Once reconciliation is over
         (and this field is false), there are two possible outcomes: reconciliation
         succeeded and the serving state matches the Service, or there was an error,
         and reconciliation failed. This state can be found in
         `terminal_condition.state`.
        
         If reconciliation succeeded, the following fields will match: `traffic` and
         `traffic_statuses`, `observed_generation` and `generation`,
         `latest_ready_revision` and `latest_created_revision`.
        
         If reconciliation failed, `traffic_statuses`, `observed_generation`, and
         `latest_ready_revision` will have the state of the last serving revision,
         or empty for newly created Services. Additional information on the failure
         can be found in `terminal_condition` and `conditions`.
         
        bool reconciling = 98 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getReconciling in interface ServiceOrBuilder
        Returns:
        The reconciling.
      • getEtag

        public String getEtag()
         Output only. A system-generated fingerprint for this version of the
         resource. May be used to detect modification conflict during updates.
         
        string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getEtag in interface ServiceOrBuilder
        Returns:
        The etag.
      • getEtagBytes

        public com.google.protobuf.ByteString getEtagBytes()
         Output only. A system-generated fingerprint for this version of the
         resource. May be used to detect modification conflict during updates.
         
        string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getEtagBytes in interface ServiceOrBuilder
        Returns:
        The bytes for etag.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static Service parseFrom​(ByteBuffer data)
                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Service parseFrom​(ByteBuffer data,
                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Service parseFrom​(com.google.protobuf.ByteString data)
                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Service parseFrom​(com.google.protobuf.ByteString data,
                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Service parseFrom​(byte[] data)
                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Service parseFrom​(byte[] data,
                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Service parseFrom​(com.google.protobuf.CodedInputStream input,
                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                 throws IOException
        Throws:
        IOException
      • newBuilderForType

        public Service.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public Service.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected Service.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static Service getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<Service> parser()
      • getParserForType

        public com.google.protobuf.Parser<Service> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public Service getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder