Class RevisionTemplate.Builder

  • All Implemented Interfaces:
    RevisionTemplateOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    RevisionTemplate

    public static final class RevisionTemplate.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>
    implements RevisionTemplateOrBuilder
     RevisionTemplate describes the data a revision should have when created from
     a template.
     
    Protobuf type google.cloud.run.v2.RevisionTemplate
    • Method Detail

      • 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.Builder<RevisionTemplate.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>
      • clear

        public RevisionTemplate.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.GeneratedMessageV3.Builder<RevisionTemplate.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.GeneratedMessageV3.Builder<RevisionTemplate.Builder>
      • getDefaultInstanceForType

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

        public RevisionTemplate build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public RevisionTemplate buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public RevisionTemplate.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>
      • setField

        public RevisionTemplate.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>
      • clearField

        public RevisionTemplate.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>
      • clearOneof

        public RevisionTemplate.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>
      • setRepeatedField

        public RevisionTemplate.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                         int index,
                                                         Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>
      • addRepeatedField

        public RevisionTemplate.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                         Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>
      • mergeFrom

        public RevisionTemplate.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<RevisionTemplate.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>
      • mergeFrom

        public RevisionTemplate.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<RevisionTemplate.Builder>
        Throws:
        IOException
      • getRevision

        public String getRevision()
         The unique name for the revision. If this field is omitted, it will be
         automatically generated based on the Service name.
         
        string revision = 1 [(.google.api.resource_reference) = { ... }
        Specified by:
        getRevision in interface RevisionTemplateOrBuilder
        Returns:
        The revision.
      • getRevisionBytes

        public com.google.protobuf.ByteString getRevisionBytes()
         The unique name for the revision. If this field is omitted, it will be
         automatically generated based on the Service name.
         
        string revision = 1 [(.google.api.resource_reference) = { ... }
        Specified by:
        getRevisionBytes in interface RevisionTemplateOrBuilder
        Returns:
        The bytes for revision.
      • setRevision

        public RevisionTemplate.Builder setRevision​(String value)
         The unique name for the revision. If this field is omitted, it will be
         automatically generated based on the Service name.
         
        string revision = 1 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The revision to set.
        Returns:
        This builder for chaining.
      • clearRevision

        public RevisionTemplate.Builder clearRevision()
         The unique name for the revision. If this field is omitted, it will be
         automatically generated based on the Service name.
         
        string revision = 1 [(.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setRevisionBytes

        public RevisionTemplate.Builder setRevisionBytes​(com.google.protobuf.ByteString value)
         The unique name for the revision. If this field is omitted, it will be
         automatically generated based on the Service name.
         
        string revision = 1 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for revision to set.
        Returns:
        This builder for chaining.
      • getLabelsCount

        public int getLabelsCount()
        Description copied from interface: RevisionTemplateOrBuilder
         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 RevisionTemplate.
         
        map<string, string> labels = 2;
        Specified by:
        getLabelsCount in interface RevisionTemplateOrBuilder
      • 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 RevisionTemplate.
         
        map<string, string> labels = 2;
        Specified by:
        containsLabels in interface RevisionTemplateOrBuilder
      • 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 RevisionTemplate.
         
        map<string, string> labels = 2;
        Specified by:
        getLabelsMap in interface RevisionTemplateOrBuilder
      • 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 RevisionTemplate.
         
        map<string, string> labels = 2;
        Specified by:
        getLabelsOrDefault in interface RevisionTemplateOrBuilder
      • 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 RevisionTemplate.
         
        map<string, string> labels = 2;
        Specified by:
        getLabelsOrThrow in interface RevisionTemplateOrBuilder
      • removeLabels

        public RevisionTemplate.Builder removeLabels​(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 RevisionTemplate.
         
        map<string, string> labels = 2;
      • getMutableLabels

        @Deprecated
        public Map<String,​String> getMutableLabels()
        Deprecated.
        Use alternate mutation accessors instead.
      • putLabels

        public RevisionTemplate.Builder putLabels​(String key,
                                                  String value)
         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 RevisionTemplate.
         
        map<string, string> labels = 2;
      • putAllLabels

        public RevisionTemplate.Builder putAllLabels​(Map<String,​String> values)
         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 RevisionTemplate.
         
        map<string, string> labels = 2;
      • getAnnotationsCount

        public int getAnnotationsCount()
        Description copied from interface: RevisionTemplateOrBuilder
         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. All system annotations in v1 now
         have a corresponding field in v2 RevisionTemplate.
        
         <p>This field follows Kubernetes annotations' namespacing, limits, and
         rules.
         
        map<string, string> annotations = 3;
        Specified by:
        getAnnotationsCount in interface RevisionTemplateOrBuilder
      • 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. All system annotations in v1 now
         have a corresponding field in v2 RevisionTemplate.
        
         <p>This field follows Kubernetes annotations' namespacing, limits, and
         rules.
         
        map<string, string> annotations = 3;
        Specified by:
        containsAnnotations in interface RevisionTemplateOrBuilder
      • 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. All system annotations in v1 now
         have a corresponding field in v2 RevisionTemplate.
        
         <p>This field follows Kubernetes annotations' namespacing, limits, and
         rules.
         
        map<string, string> annotations = 3;
        Specified by:
        getAnnotationsMap in interface RevisionTemplateOrBuilder
      • 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. All system annotations in v1 now
         have a corresponding field in v2 RevisionTemplate.
        
         <p>This field follows Kubernetes annotations' namespacing, limits, and
         rules.
         
        map<string, string> annotations = 3;
        Specified by:
        getAnnotationsOrDefault in interface RevisionTemplateOrBuilder
      • 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. All system annotations in v1 now
         have a corresponding field in v2 RevisionTemplate.
        
         <p>This field follows Kubernetes annotations' namespacing, limits, and
         rules.
         
        map<string, string> annotations = 3;
        Specified by:
        getAnnotationsOrThrow in interface RevisionTemplateOrBuilder
      • removeAnnotations

        public RevisionTemplate.Builder removeAnnotations​(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. All system annotations in v1 now
         have a corresponding field in v2 RevisionTemplate.
        
         <p>This field follows Kubernetes annotations' namespacing, limits, and
         rules.
         
        map<string, string> annotations = 3;
      • getMutableAnnotations

        @Deprecated
        public Map<String,​String> getMutableAnnotations()
        Deprecated.
        Use alternate mutation accessors instead.
      • putAnnotations

        public RevisionTemplate.Builder putAnnotations​(String key,
                                                       String value)
         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. All system annotations in v1 now
         have a corresponding field in v2 RevisionTemplate.
        
         <p>This field follows Kubernetes annotations' namespacing, limits, and
         rules.
         
        map<string, string> annotations = 3;
      • putAllAnnotations

        public RevisionTemplate.Builder putAllAnnotations​(Map<String,​String> values)
         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. All system annotations in v1 now
         have a corresponding field in v2 RevisionTemplate.
        
         <p>This field follows Kubernetes annotations' namespacing, limits, and
         rules.
         
        map<string, string> annotations = 3;
      • hasScaling

        public boolean hasScaling()
         Scaling settings for this Revision.
         
        .google.cloud.run.v2.RevisionScaling scaling = 4;
        Specified by:
        hasScaling in interface RevisionTemplateOrBuilder
        Returns:
        Whether the scaling field is set.
      • clearScaling

        public RevisionTemplate.Builder clearScaling()
         Scaling settings for this Revision.
         
        .google.cloud.run.v2.RevisionScaling scaling = 4;
      • getScalingBuilder

        public RevisionScaling.Builder getScalingBuilder()
         Scaling settings for this Revision.
         
        .google.cloud.run.v2.RevisionScaling scaling = 4;
      • hasVpcAccess

        public boolean hasVpcAccess()
         VPC Access configuration to use for this Revision. For more information,
         visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
         
        .google.cloud.run.v2.VpcAccess vpc_access = 6;
        Specified by:
        hasVpcAccess in interface RevisionTemplateOrBuilder
        Returns:
        Whether the vpcAccess field is set.
      • getVpcAccess

        public VpcAccess getVpcAccess()
         VPC Access configuration to use for this Revision. For more information,
         visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
         
        .google.cloud.run.v2.VpcAccess vpc_access = 6;
        Specified by:
        getVpcAccess in interface RevisionTemplateOrBuilder
        Returns:
        The vpcAccess.
      • setVpcAccess

        public RevisionTemplate.Builder setVpcAccess​(VpcAccess value)
         VPC Access configuration to use for this Revision. For more information,
         visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
         
        .google.cloud.run.v2.VpcAccess vpc_access = 6;
      • setVpcAccess

        public RevisionTemplate.Builder setVpcAccess​(VpcAccess.Builder builderForValue)
         VPC Access configuration to use for this Revision. For more information,
         visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
         
        .google.cloud.run.v2.VpcAccess vpc_access = 6;
      • mergeVpcAccess

        public RevisionTemplate.Builder mergeVpcAccess​(VpcAccess value)
         VPC Access configuration to use for this Revision. For more information,
         visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
         
        .google.cloud.run.v2.VpcAccess vpc_access = 6;
      • clearVpcAccess

        public RevisionTemplate.Builder clearVpcAccess()
         VPC Access configuration to use for this Revision. For more information,
         visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
         
        .google.cloud.run.v2.VpcAccess vpc_access = 6;
      • getVpcAccessBuilder

        public VpcAccess.Builder getVpcAccessBuilder()
         VPC Access configuration to use for this Revision. For more information,
         visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
         
        .google.cloud.run.v2.VpcAccess vpc_access = 6;
      • getVpcAccessOrBuilder

        public VpcAccessOrBuilder getVpcAccessOrBuilder()
         VPC Access configuration to use for this Revision. For more information,
         visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
         
        .google.cloud.run.v2.VpcAccess vpc_access = 6;
        Specified by:
        getVpcAccessOrBuilder in interface RevisionTemplateOrBuilder
      • hasTimeout

        public boolean hasTimeout()
         Max allowed time for an instance to respond to a request.
         
        .google.protobuf.Duration timeout = 8;
        Specified by:
        hasTimeout in interface RevisionTemplateOrBuilder
        Returns:
        Whether the timeout field is set.
      • getTimeout

        public com.google.protobuf.Duration getTimeout()
         Max allowed time for an instance to respond to a request.
         
        .google.protobuf.Duration timeout = 8;
        Specified by:
        getTimeout in interface RevisionTemplateOrBuilder
        Returns:
        The timeout.
      • setTimeout

        public RevisionTemplate.Builder setTimeout​(com.google.protobuf.Duration value)
         Max allowed time for an instance to respond to a request.
         
        .google.protobuf.Duration timeout = 8;
      • setTimeout

        public RevisionTemplate.Builder setTimeout​(com.google.protobuf.Duration.Builder builderForValue)
         Max allowed time for an instance to respond to a request.
         
        .google.protobuf.Duration timeout = 8;
      • mergeTimeout

        public RevisionTemplate.Builder mergeTimeout​(com.google.protobuf.Duration value)
         Max allowed time for an instance to respond to a request.
         
        .google.protobuf.Duration timeout = 8;
      • clearTimeout

        public RevisionTemplate.Builder clearTimeout()
         Max allowed time for an instance to respond to a request.
         
        .google.protobuf.Duration timeout = 8;
      • getTimeoutBuilder

        public com.google.protobuf.Duration.Builder getTimeoutBuilder()
         Max allowed time for an instance to respond to a request.
         
        .google.protobuf.Duration timeout = 8;
      • getTimeoutOrBuilder

        public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder()
         Max allowed time for an instance to respond to a request.
         
        .google.protobuf.Duration timeout = 8;
        Specified by:
        getTimeoutOrBuilder in interface RevisionTemplateOrBuilder
      • getServiceAccount

        public String getServiceAccount()
         Email address of the IAM service account associated with the revision of
         the service. The service account represents the identity of the running
         revision, and determines what permissions the revision has. If not
         provided, the revision will use the project's default service account.
         
        string service_account = 9;
        Specified by:
        getServiceAccount in interface RevisionTemplateOrBuilder
        Returns:
        The serviceAccount.
      • getServiceAccountBytes

        public com.google.protobuf.ByteString getServiceAccountBytes()
         Email address of the IAM service account associated with the revision of
         the service. The service account represents the identity of the running
         revision, and determines what permissions the revision has. If not
         provided, the revision will use the project's default service account.
         
        string service_account = 9;
        Specified by:
        getServiceAccountBytes in interface RevisionTemplateOrBuilder
        Returns:
        The bytes for serviceAccount.
      • setServiceAccount

        public RevisionTemplate.Builder setServiceAccount​(String value)
         Email address of the IAM service account associated with the revision of
         the service. The service account represents the identity of the running
         revision, and determines what permissions the revision has. If not
         provided, the revision will use the project's default service account.
         
        string service_account = 9;
        Parameters:
        value - The serviceAccount to set.
        Returns:
        This builder for chaining.
      • clearServiceAccount

        public RevisionTemplate.Builder clearServiceAccount()
         Email address of the IAM service account associated with the revision of
         the service. The service account represents the identity of the running
         revision, and determines what permissions the revision has. If not
         provided, the revision will use the project's default service account.
         
        string service_account = 9;
        Returns:
        This builder for chaining.
      • setServiceAccountBytes

        public RevisionTemplate.Builder setServiceAccountBytes​(com.google.protobuf.ByteString value)
         Email address of the IAM service account associated with the revision of
         the service. The service account represents the identity of the running
         revision, and determines what permissions the revision has. If not
         provided, the revision will use the project's default service account.
         
        string service_account = 9;
        Parameters:
        value - The bytes for serviceAccount to set.
        Returns:
        This builder for chaining.
      • getContainersList

        public List<Container> getContainersList()
         Holds the single container that defines the unit of execution for this
         Revision.
         
        repeated .google.cloud.run.v2.Container containers = 10;
        Specified by:
        getContainersList in interface RevisionTemplateOrBuilder
      • getContainersCount

        public int getContainersCount()
         Holds the single container that defines the unit of execution for this
         Revision.
         
        repeated .google.cloud.run.v2.Container containers = 10;
        Specified by:
        getContainersCount in interface RevisionTemplateOrBuilder
      • getContainers

        public Container getContainers​(int index)
         Holds the single container that defines the unit of execution for this
         Revision.
         
        repeated .google.cloud.run.v2.Container containers = 10;
        Specified by:
        getContainers in interface RevisionTemplateOrBuilder
      • setContainers

        public RevisionTemplate.Builder setContainers​(int index,
                                                      Container value)
         Holds the single container that defines the unit of execution for this
         Revision.
         
        repeated .google.cloud.run.v2.Container containers = 10;
      • setContainers

        public RevisionTemplate.Builder setContainers​(int index,
                                                      Container.Builder builderForValue)
         Holds the single container that defines the unit of execution for this
         Revision.
         
        repeated .google.cloud.run.v2.Container containers = 10;
      • addContainers

        public RevisionTemplate.Builder addContainers​(Container value)
         Holds the single container that defines the unit of execution for this
         Revision.
         
        repeated .google.cloud.run.v2.Container containers = 10;
      • addContainers

        public RevisionTemplate.Builder addContainers​(int index,
                                                      Container value)
         Holds the single container that defines the unit of execution for this
         Revision.
         
        repeated .google.cloud.run.v2.Container containers = 10;
      • addContainers

        public RevisionTemplate.Builder addContainers​(Container.Builder builderForValue)
         Holds the single container that defines the unit of execution for this
         Revision.
         
        repeated .google.cloud.run.v2.Container containers = 10;
      • addContainers

        public RevisionTemplate.Builder addContainers​(int index,
                                                      Container.Builder builderForValue)
         Holds the single container that defines the unit of execution for this
         Revision.
         
        repeated .google.cloud.run.v2.Container containers = 10;
      • addAllContainers

        public RevisionTemplate.Builder addAllContainers​(Iterable<? extends Container> values)
         Holds the single container that defines the unit of execution for this
         Revision.
         
        repeated .google.cloud.run.v2.Container containers = 10;
      • clearContainers

        public RevisionTemplate.Builder clearContainers()
         Holds the single container that defines the unit of execution for this
         Revision.
         
        repeated .google.cloud.run.v2.Container containers = 10;
      • removeContainers

        public RevisionTemplate.Builder removeContainers​(int index)
         Holds the single container that defines the unit of execution for this
         Revision.
         
        repeated .google.cloud.run.v2.Container containers = 10;
      • getContainersBuilder

        public Container.Builder getContainersBuilder​(int index)
         Holds the single container that defines the unit of execution for this
         Revision.
         
        repeated .google.cloud.run.v2.Container containers = 10;
      • addContainersBuilder

        public Container.Builder addContainersBuilder()
         Holds the single container that defines the unit of execution for this
         Revision.
         
        repeated .google.cloud.run.v2.Container containers = 10;
      • addContainersBuilder

        public Container.Builder addContainersBuilder​(int index)
         Holds the single container that defines the unit of execution for this
         Revision.
         
        repeated .google.cloud.run.v2.Container containers = 10;
      • getContainersBuilderList

        public List<Container.Builder> getContainersBuilderList()
         Holds the single container that defines the unit of execution for this
         Revision.
         
        repeated .google.cloud.run.v2.Container containers = 10;
      • getVolumesCount

        public int getVolumesCount()
         A list of Volumes to make available to containers.
         
        repeated .google.cloud.run.v2.Volume volumes = 11;
        Specified by:
        getVolumesCount in interface RevisionTemplateOrBuilder
      • getVolumes

        public Volume getVolumes​(int index)
         A list of Volumes to make available to containers.
         
        repeated .google.cloud.run.v2.Volume volumes = 11;
        Specified by:
        getVolumes in interface RevisionTemplateOrBuilder
      • setVolumes

        public RevisionTemplate.Builder setVolumes​(int index,
                                                   Volume value)
         A list of Volumes to make available to containers.
         
        repeated .google.cloud.run.v2.Volume volumes = 11;
      • setVolumes

        public RevisionTemplate.Builder setVolumes​(int index,
                                                   Volume.Builder builderForValue)
         A list of Volumes to make available to containers.
         
        repeated .google.cloud.run.v2.Volume volumes = 11;
      • addVolumes

        public RevisionTemplate.Builder addVolumes​(Volume value)
         A list of Volumes to make available to containers.
         
        repeated .google.cloud.run.v2.Volume volumes = 11;
      • addVolumes

        public RevisionTemplate.Builder addVolumes​(int index,
                                                   Volume value)
         A list of Volumes to make available to containers.
         
        repeated .google.cloud.run.v2.Volume volumes = 11;
      • addVolumes

        public RevisionTemplate.Builder addVolumes​(Volume.Builder builderForValue)
         A list of Volumes to make available to containers.
         
        repeated .google.cloud.run.v2.Volume volumes = 11;
      • addVolumes

        public RevisionTemplate.Builder addVolumes​(int index,
                                                   Volume.Builder builderForValue)
         A list of Volumes to make available to containers.
         
        repeated .google.cloud.run.v2.Volume volumes = 11;
      • addAllVolumes

        public RevisionTemplate.Builder addAllVolumes​(Iterable<? extends Volume> values)
         A list of Volumes to make available to containers.
         
        repeated .google.cloud.run.v2.Volume volumes = 11;
      • clearVolumes

        public RevisionTemplate.Builder clearVolumes()
         A list of Volumes to make available to containers.
         
        repeated .google.cloud.run.v2.Volume volumes = 11;
      • removeVolumes

        public RevisionTemplate.Builder removeVolumes​(int index)
         A list of Volumes to make available to containers.
         
        repeated .google.cloud.run.v2.Volume volumes = 11;
      • getVolumesBuilder

        public Volume.Builder getVolumesBuilder​(int index)
         A list of Volumes to make available to containers.
         
        repeated .google.cloud.run.v2.Volume volumes = 11;
      • addVolumesBuilder

        public Volume.Builder addVolumesBuilder()
         A list of Volumes to make available to containers.
         
        repeated .google.cloud.run.v2.Volume volumes = 11;
      • addVolumesBuilder

        public Volume.Builder addVolumesBuilder​(int index)
         A list of Volumes to make available to containers.
         
        repeated .google.cloud.run.v2.Volume volumes = 11;
      • getVolumesBuilderList

        public List<Volume.Builder> getVolumesBuilderList()
         A list of Volumes to make available to containers.
         
        repeated .google.cloud.run.v2.Volume volumes = 11;
      • getExecutionEnvironmentValue

        public int getExecutionEnvironmentValue()
         The sandbox environment to host this Revision.
         
        .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13;
        Specified by:
        getExecutionEnvironmentValue in interface RevisionTemplateOrBuilder
        Returns:
        The enum numeric value on the wire for executionEnvironment.
      • setExecutionEnvironmentValue

        public RevisionTemplate.Builder setExecutionEnvironmentValue​(int value)
         The sandbox environment to host this Revision.
         
        .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13;
        Parameters:
        value - The enum numeric value on the wire for executionEnvironment to set.
        Returns:
        This builder for chaining.
      • setExecutionEnvironment

        public RevisionTemplate.Builder setExecutionEnvironment​(ExecutionEnvironment value)
         The sandbox environment to host this Revision.
         
        .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13;
        Parameters:
        value - The executionEnvironment to set.
        Returns:
        This builder for chaining.
      • clearExecutionEnvironment

        public RevisionTemplate.Builder clearExecutionEnvironment()
         The sandbox environment to host this Revision.
         
        .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13;
        Returns:
        This builder for chaining.
      • getEncryptionKey

        public String getEncryptionKey()
         A reference to a customer managed encryption key (CMEK) to use to encrypt
         this container image. For more information, go to
         https://cloud.google.com/run/docs/securing/using-cmek
         
        string encryption_key = 14 [(.google.api.resource_reference) = { ... }
        Specified by:
        getEncryptionKey in interface RevisionTemplateOrBuilder
        Returns:
        The encryptionKey.
      • getEncryptionKeyBytes

        public com.google.protobuf.ByteString getEncryptionKeyBytes()
         A reference to a customer managed encryption key (CMEK) to use to encrypt
         this container image. For more information, go to
         https://cloud.google.com/run/docs/securing/using-cmek
         
        string encryption_key = 14 [(.google.api.resource_reference) = { ... }
        Specified by:
        getEncryptionKeyBytes in interface RevisionTemplateOrBuilder
        Returns:
        The bytes for encryptionKey.
      • setEncryptionKey

        public RevisionTemplate.Builder setEncryptionKey​(String value)
         A reference to a customer managed encryption key (CMEK) to use to encrypt
         this container image. For more information, go to
         https://cloud.google.com/run/docs/securing/using-cmek
         
        string encryption_key = 14 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The encryptionKey to set.
        Returns:
        This builder for chaining.
      • clearEncryptionKey

        public RevisionTemplate.Builder clearEncryptionKey()
         A reference to a customer managed encryption key (CMEK) to use to encrypt
         this container image. For more information, go to
         https://cloud.google.com/run/docs/securing/using-cmek
         
        string encryption_key = 14 [(.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setEncryptionKeyBytes

        public RevisionTemplate.Builder setEncryptionKeyBytes​(com.google.protobuf.ByteString value)
         A reference to a customer managed encryption key (CMEK) to use to encrypt
         this container image. For more information, go to
         https://cloud.google.com/run/docs/securing/using-cmek
         
        string encryption_key = 14 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for encryptionKey to set.
        Returns:
        This builder for chaining.
      • getMaxInstanceRequestConcurrency

        public int getMaxInstanceRequestConcurrency()
         Sets the maximum number of requests that each serving instance can receive.
         
        int32 max_instance_request_concurrency = 15;
        Specified by:
        getMaxInstanceRequestConcurrency in interface RevisionTemplateOrBuilder
        Returns:
        The maxInstanceRequestConcurrency.
      • setMaxInstanceRequestConcurrency

        public RevisionTemplate.Builder setMaxInstanceRequestConcurrency​(int value)
         Sets the maximum number of requests that each serving instance can receive.
         
        int32 max_instance_request_concurrency = 15;
        Parameters:
        value - The maxInstanceRequestConcurrency to set.
        Returns:
        This builder for chaining.
      • clearMaxInstanceRequestConcurrency

        public RevisionTemplate.Builder clearMaxInstanceRequestConcurrency()
         Sets the maximum number of requests that each serving instance can receive.
         
        int32 max_instance_request_concurrency = 15;
        Returns:
        This builder for chaining.
      • getSessionAffinity

        public boolean getSessionAffinity()
         Enable session affinity.
         
        bool session_affinity = 19;
        Specified by:
        getSessionAffinity in interface RevisionTemplateOrBuilder
        Returns:
        The sessionAffinity.
      • setSessionAffinity

        public RevisionTemplate.Builder setSessionAffinity​(boolean value)
         Enable session affinity.
         
        bool session_affinity = 19;
        Parameters:
        value - The sessionAffinity to set.
        Returns:
        This builder for chaining.
      • clearSessionAffinity

        public RevisionTemplate.Builder clearSessionAffinity()
         Enable session affinity.
         
        bool session_affinity = 19;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final RevisionTemplate.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>
      • mergeUnknownFields

        public final RevisionTemplate.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RevisionTemplate.Builder>