Class Service.Builder

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

    public static final class Service.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Service.Builder>
    implements ServiceOrBuilder
     A Service resource is a logical component of an application that can share
     state and communicate in a secure fashion with other services.
     For example, an application that handles customer requests might
     include separate services to handle tasks such as backend data
     analysis or API requests from mobile devices. Each service has a
     collection of versions that define a specific set of code used to
     implement the functionality of that service.
     
    Protobuf type google.appengine.v1.Service
    • 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<Service.Builder>
      • internalGetMutableMapField

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

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

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

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

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

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

        public Service.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<Service.Builder>
      • setField

        public Service.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<Service.Builder>
      • clearField

        public Service.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<Service.Builder>
      • clearOneof

        public Service.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<Service.Builder>
      • setRepeatedField

        public Service.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<Service.Builder>
      • addRepeatedField

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

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

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

        public Service.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<Service.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         Full path to the Service resource in the API.
         Example: `apps/myapp/services/default`.
        
         @OutputOnly
         
        string name = 1;
        Specified by:
        getName in interface ServiceOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Full path to the Service resource in the API.
         Example: `apps/myapp/services/default`.
        
         @OutputOnly
         
        string name = 1;
        Specified by:
        getNameBytes in interface ServiceOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Service.Builder setName​(String value)
         Full path to the Service resource in the API.
         Example: `apps/myapp/services/default`.
        
         @OutputOnly
         
        string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public Service.Builder clearName()
         Full path to the Service resource in the API.
         Example: `apps/myapp/services/default`.
        
         @OutputOnly
         
        string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public Service.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Full path to the Service resource in the API.
         Example: `apps/myapp/services/default`.
        
         @OutputOnly
         
        string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getId

        public String getId()
         Relative name of the service within the application.
         Example: `default`.
        
         @OutputOnly
         
        string id = 2;
        Specified by:
        getId in interface ServiceOrBuilder
        Returns:
        The id.
      • getIdBytes

        public com.google.protobuf.ByteString getIdBytes()
         Relative name of the service within the application.
         Example: `default`.
        
         @OutputOnly
         
        string id = 2;
        Specified by:
        getIdBytes in interface ServiceOrBuilder
        Returns:
        The bytes for id.
      • setId

        public Service.Builder setId​(String value)
         Relative name of the service within the application.
         Example: `default`.
        
         @OutputOnly
         
        string id = 2;
        Parameters:
        value - The id to set.
        Returns:
        This builder for chaining.
      • clearId

        public Service.Builder clearId()
         Relative name of the service within the application.
         Example: `default`.
        
         @OutputOnly
         
        string id = 2;
        Returns:
        This builder for chaining.
      • setIdBytes

        public Service.Builder setIdBytes​(com.google.protobuf.ByteString value)
         Relative name of the service within the application.
         Example: `default`.
        
         @OutputOnly
         
        string id = 2;
        Parameters:
        value - The bytes for id to set.
        Returns:
        This builder for chaining.
      • hasSplit

        public boolean hasSplit()
         Mapping that defines fractional HTTP traffic diversion to
         different versions within the service.
         
        .google.appengine.v1.TrafficSplit split = 3;
        Specified by:
        hasSplit in interface ServiceOrBuilder
        Returns:
        Whether the split field is set.
      • getSplit

        public TrafficSplit getSplit()
         Mapping that defines fractional HTTP traffic diversion to
         different versions within the service.
         
        .google.appengine.v1.TrafficSplit split = 3;
        Specified by:
        getSplit in interface ServiceOrBuilder
        Returns:
        The split.
      • setSplit

        public Service.Builder setSplit​(TrafficSplit value)
         Mapping that defines fractional HTTP traffic diversion to
         different versions within the service.
         
        .google.appengine.v1.TrafficSplit split = 3;
      • setSplit

        public Service.Builder setSplit​(TrafficSplit.Builder builderForValue)
         Mapping that defines fractional HTTP traffic diversion to
         different versions within the service.
         
        .google.appengine.v1.TrafficSplit split = 3;
      • mergeSplit

        public Service.Builder mergeSplit​(TrafficSplit value)
         Mapping that defines fractional HTTP traffic diversion to
         different versions within the service.
         
        .google.appengine.v1.TrafficSplit split = 3;
      • clearSplit

        public Service.Builder clearSplit()
         Mapping that defines fractional HTTP traffic diversion to
         different versions within the service.
         
        .google.appengine.v1.TrafficSplit split = 3;
      • getSplitBuilder

        public TrafficSplit.Builder getSplitBuilder()
         Mapping that defines fractional HTTP traffic diversion to
         different versions within the service.
         
        .google.appengine.v1.TrafficSplit split = 3;
      • getSplitOrBuilder

        public TrafficSplitOrBuilder getSplitOrBuilder()
         Mapping that defines fractional HTTP traffic diversion to
         different versions within the service.
         
        .google.appengine.v1.TrafficSplit split = 3;
        Specified by:
        getSplitOrBuilder in interface ServiceOrBuilder
      • getLabelsCount

        public int getLabelsCount()
        Description copied from interface: ServiceOrBuilder
         A set of labels to apply to this service. Labels are key/value pairs that
         describe the service and all resources that belong to it (e.g.,
         versions). The labels can be used to search and group resources, and are
         propagated to the usage and billing reports, enabling fine-grain analysis
         of costs. An example of using labels is to tag resources belonging to
         different environments (e.g., "env=prod", "env=qa").
        
         <p>Label keys and values can be no longer than 63 characters and can only
         contain lowercase letters, numeric characters, underscores, dashes, and
         international characters. Label keys must start with a lowercase letter
         or an international character. Each service can have at most 32 labels.
         
        map<string, string> labels = 4;
        Specified by:
        getLabelsCount in interface ServiceOrBuilder
      • containsLabels

        public boolean containsLabels​(String key)
         A set of labels to apply to this service. Labels are key/value pairs that
         describe the service and all resources that belong to it (e.g.,
         versions). The labels can be used to search and group resources, and are
         propagated to the usage and billing reports, enabling fine-grain analysis
         of costs. An example of using labels is to tag resources belonging to
         different environments (e.g., "env=prod", "env=qa").
        
         <p>Label keys and values can be no longer than 63 characters and can only
         contain lowercase letters, numeric characters, underscores, dashes, and
         international characters. Label keys must start with a lowercase letter
         or an international character. Each service can have at most 32 labels.
         
        map<string, string> labels = 4;
        Specified by:
        containsLabels in interface ServiceOrBuilder
      • getLabelsMap

        public Map<String,​String> getLabelsMap()
         A set of labels to apply to this service. Labels are key/value pairs that
         describe the service and all resources that belong to it (e.g.,
         versions). The labels can be used to search and group resources, and are
         propagated to the usage and billing reports, enabling fine-grain analysis
         of costs. An example of using labels is to tag resources belonging to
         different environments (e.g., "env=prod", "env=qa").
        
         <p>Label keys and values can be no longer than 63 characters and can only
         contain lowercase letters, numeric characters, underscores, dashes, and
         international characters. Label keys must start with a lowercase letter
         or an international character. Each service can have at most 32 labels.
         
        map<string, string> labels = 4;
        Specified by:
        getLabelsMap in interface ServiceOrBuilder
      • getLabelsOrDefault

        public String getLabelsOrDefault​(String key,
                                         String defaultValue)
         A set of labels to apply to this service. Labels are key/value pairs that
         describe the service and all resources that belong to it (e.g.,
         versions). The labels can be used to search and group resources, and are
         propagated to the usage and billing reports, enabling fine-grain analysis
         of costs. An example of using labels is to tag resources belonging to
         different environments (e.g., "env=prod", "env=qa").
        
         <p>Label keys and values can be no longer than 63 characters and can only
         contain lowercase letters, numeric characters, underscores, dashes, and
         international characters. Label keys must start with a lowercase letter
         or an international character. Each service can have at most 32 labels.
         
        map<string, string> labels = 4;
        Specified by:
        getLabelsOrDefault in interface ServiceOrBuilder
      • getLabelsOrThrow

        public String getLabelsOrThrow​(String key)
         A set of labels to apply to this service. Labels are key/value pairs that
         describe the service and all resources that belong to it (e.g.,
         versions). The labels can be used to search and group resources, and are
         propagated to the usage and billing reports, enabling fine-grain analysis
         of costs. An example of using labels is to tag resources belonging to
         different environments (e.g., "env=prod", "env=qa").
        
         <p>Label keys and values can be no longer than 63 characters and can only
         contain lowercase letters, numeric characters, underscores, dashes, and
         international characters. Label keys must start with a lowercase letter
         or an international character. Each service can have at most 32 labels.
         
        map<string, string> labels = 4;
        Specified by:
        getLabelsOrThrow in interface ServiceOrBuilder
      • removeLabels

        public Service.Builder removeLabels​(String key)
         A set of labels to apply to this service. Labels are key/value pairs that
         describe the service and all resources that belong to it (e.g.,
         versions). The labels can be used to search and group resources, and are
         propagated to the usage and billing reports, enabling fine-grain analysis
         of costs. An example of using labels is to tag resources belonging to
         different environments (e.g., "env=prod", "env=qa").
        
         <p>Label keys and values can be no longer than 63 characters and can only
         contain lowercase letters, numeric characters, underscores, dashes, and
         international characters. Label keys must start with a lowercase letter
         or an international character. Each service can have at most 32 labels.
         
        map<string, string> labels = 4;
      • getMutableLabels

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

        public Service.Builder putLabels​(String key,
                                         String value)
         A set of labels to apply to this service. Labels are key/value pairs that
         describe the service and all resources that belong to it (e.g.,
         versions). The labels can be used to search and group resources, and are
         propagated to the usage and billing reports, enabling fine-grain analysis
         of costs. An example of using labels is to tag resources belonging to
         different environments (e.g., "env=prod", "env=qa").
        
         <p>Label keys and values can be no longer than 63 characters and can only
         contain lowercase letters, numeric characters, underscores, dashes, and
         international characters. Label keys must start with a lowercase letter
         or an international character. Each service can have at most 32 labels.
         
        map<string, string> labels = 4;
      • putAllLabels

        public Service.Builder putAllLabels​(Map<String,​String> values)
         A set of labels to apply to this service. Labels are key/value pairs that
         describe the service and all resources that belong to it (e.g.,
         versions). The labels can be used to search and group resources, and are
         propagated to the usage and billing reports, enabling fine-grain analysis
         of costs. An example of using labels is to tag resources belonging to
         different environments (e.g., "env=prod", "env=qa").
        
         <p>Label keys and values can be no longer than 63 characters and can only
         contain lowercase letters, numeric characters, underscores, dashes, and
         international characters. Label keys must start with a lowercase letter
         or an international character. Each service can have at most 32 labels.
         
        map<string, string> labels = 4;
      • hasNetworkSettings

        public boolean hasNetworkSettings()
         Ingress settings for this service. Will apply to all versions.
         
        .google.appengine.v1.NetworkSettings network_settings = 6;
        Specified by:
        hasNetworkSettings in interface ServiceOrBuilder
        Returns:
        Whether the networkSettings field is set.
      • getNetworkSettings

        public NetworkSettings getNetworkSettings()
         Ingress settings for this service. Will apply to all versions.
         
        .google.appengine.v1.NetworkSettings network_settings = 6;
        Specified by:
        getNetworkSettings in interface ServiceOrBuilder
        Returns:
        The networkSettings.
      • setNetworkSettings

        public Service.Builder setNetworkSettings​(NetworkSettings value)
         Ingress settings for this service. Will apply to all versions.
         
        .google.appengine.v1.NetworkSettings network_settings = 6;
      • setNetworkSettings

        public Service.Builder setNetworkSettings​(NetworkSettings.Builder builderForValue)
         Ingress settings for this service. Will apply to all versions.
         
        .google.appengine.v1.NetworkSettings network_settings = 6;
      • mergeNetworkSettings

        public Service.Builder mergeNetworkSettings​(NetworkSettings value)
         Ingress settings for this service. Will apply to all versions.
         
        .google.appengine.v1.NetworkSettings network_settings = 6;
      • clearNetworkSettings

        public Service.Builder clearNetworkSettings()
         Ingress settings for this service. Will apply to all versions.
         
        .google.appengine.v1.NetworkSettings network_settings = 6;
      • getNetworkSettingsBuilder

        public NetworkSettings.Builder getNetworkSettingsBuilder()
         Ingress settings for this service. Will apply to all versions.
         
        .google.appengine.v1.NetworkSettings network_settings = 6;
      • setUnknownFields

        public final Service.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<Service.Builder>
      • mergeUnknownFields

        public final Service.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<Service.Builder>