Class EndpointsApiService.Builder

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

    public static final class EndpointsApiService.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<EndpointsApiService.Builder>
    implements EndpointsApiServiceOrBuilder
     [Cloud Endpoints](https://cloud.google.com/endpoints) configuration.
     The Endpoints API Service provides tooling for serving Open API and gRPC
     endpoints via an NGINX proxy. Only valid for App Engine Flexible environment
     deployments.
    
     The fields here refer to the name and configuration ID of a "service"
     resource in the [Service Management API](https://cloud.google.com/service-management/overview).
     
    Protobuf type google.appengine.v1.EndpointsApiService
    • Method Detail

      • getDescriptor

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public String getName()
         Endpoints service name which is the name of the "service" resource in the
         Service Management API. For example "myapi.endpoints.myproject.cloud.goog"
         
        string name = 1;
        Specified by:
        getName in interface EndpointsApiServiceOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Endpoints service name which is the name of the "service" resource in the
         Service Management API. For example "myapi.endpoints.myproject.cloud.goog"
         
        string name = 1;
        Specified by:
        getNameBytes in interface EndpointsApiServiceOrBuilder
        Returns:
        The bytes for name.
      • setName

        public EndpointsApiService.Builder setName​(String value)
         Endpoints service name which is the name of the "service" resource in the
         Service Management API. For example "myapi.endpoints.myproject.cloud.goog"
         
        string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public EndpointsApiService.Builder clearName()
         Endpoints service name which is the name of the "service" resource in the
         Service Management API. For example "myapi.endpoints.myproject.cloud.goog"
         
        string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public EndpointsApiService.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Endpoints service name which is the name of the "service" resource in the
         Service Management API. For example "myapi.endpoints.myproject.cloud.goog"
         
        string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getConfigId

        public String getConfigId()
         Endpoints service configuration ID as specified by the Service Management
         API. For example "2016-09-19r1".
        
         By default, the rollout strategy for Endpoints is `RolloutStrategy.FIXED`.
         This means that Endpoints starts up with a particular configuration ID.
         When a new configuration is rolled out, Endpoints must be given the new
         configuration ID. The `config_id` field is used to give the configuration
         ID and is required in this case.
        
         Endpoints also has a rollout strategy called `RolloutStrategy.MANAGED`.
         When using this, Endpoints fetches the latest configuration and does not
         need the configuration ID. In this case, `config_id` must be omitted.
         
        string config_id = 2;
        Specified by:
        getConfigId in interface EndpointsApiServiceOrBuilder
        Returns:
        The configId.
      • getConfigIdBytes

        public com.google.protobuf.ByteString getConfigIdBytes()
         Endpoints service configuration ID as specified by the Service Management
         API. For example "2016-09-19r1".
        
         By default, the rollout strategy for Endpoints is `RolloutStrategy.FIXED`.
         This means that Endpoints starts up with a particular configuration ID.
         When a new configuration is rolled out, Endpoints must be given the new
         configuration ID. The `config_id` field is used to give the configuration
         ID and is required in this case.
        
         Endpoints also has a rollout strategy called `RolloutStrategy.MANAGED`.
         When using this, Endpoints fetches the latest configuration and does not
         need the configuration ID. In this case, `config_id` must be omitted.
         
        string config_id = 2;
        Specified by:
        getConfigIdBytes in interface EndpointsApiServiceOrBuilder
        Returns:
        The bytes for configId.
      • setConfigId

        public EndpointsApiService.Builder setConfigId​(String value)
         Endpoints service configuration ID as specified by the Service Management
         API. For example "2016-09-19r1".
        
         By default, the rollout strategy for Endpoints is `RolloutStrategy.FIXED`.
         This means that Endpoints starts up with a particular configuration ID.
         When a new configuration is rolled out, Endpoints must be given the new
         configuration ID. The `config_id` field is used to give the configuration
         ID and is required in this case.
        
         Endpoints also has a rollout strategy called `RolloutStrategy.MANAGED`.
         When using this, Endpoints fetches the latest configuration and does not
         need the configuration ID. In this case, `config_id` must be omitted.
         
        string config_id = 2;
        Parameters:
        value - The configId to set.
        Returns:
        This builder for chaining.
      • clearConfigId

        public EndpointsApiService.Builder clearConfigId()
         Endpoints service configuration ID as specified by the Service Management
         API. For example "2016-09-19r1".
        
         By default, the rollout strategy for Endpoints is `RolloutStrategy.FIXED`.
         This means that Endpoints starts up with a particular configuration ID.
         When a new configuration is rolled out, Endpoints must be given the new
         configuration ID. The `config_id` field is used to give the configuration
         ID and is required in this case.
        
         Endpoints also has a rollout strategy called `RolloutStrategy.MANAGED`.
         When using this, Endpoints fetches the latest configuration and does not
         need the configuration ID. In this case, `config_id` must be omitted.
         
        string config_id = 2;
        Returns:
        This builder for chaining.
      • setConfigIdBytes

        public EndpointsApiService.Builder setConfigIdBytes​(com.google.protobuf.ByteString value)
         Endpoints service configuration ID as specified by the Service Management
         API. For example "2016-09-19r1".
        
         By default, the rollout strategy for Endpoints is `RolloutStrategy.FIXED`.
         This means that Endpoints starts up with a particular configuration ID.
         When a new configuration is rolled out, Endpoints must be given the new
         configuration ID. The `config_id` field is used to give the configuration
         ID and is required in this case.
        
         Endpoints also has a rollout strategy called `RolloutStrategy.MANAGED`.
         When using this, Endpoints fetches the latest configuration and does not
         need the configuration ID. In this case, `config_id` must be omitted.
         
        string config_id = 2;
        Parameters:
        value - The bytes for configId to set.
        Returns:
        This builder for chaining.
      • getRolloutStrategyValue

        public int getRolloutStrategyValue()
         Endpoints rollout strategy. If `FIXED`, `config_id` must be specified. If
         `MANAGED`, `config_id` must be omitted.
         
        .google.appengine.v1.EndpointsApiService.RolloutStrategy rollout_strategy = 3;
        Specified by:
        getRolloutStrategyValue in interface EndpointsApiServiceOrBuilder
        Returns:
        The enum numeric value on the wire for rolloutStrategy.
      • setRolloutStrategyValue

        public EndpointsApiService.Builder setRolloutStrategyValue​(int value)
         Endpoints rollout strategy. If `FIXED`, `config_id` must be specified. If
         `MANAGED`, `config_id` must be omitted.
         
        .google.appengine.v1.EndpointsApiService.RolloutStrategy rollout_strategy = 3;
        Parameters:
        value - The enum numeric value on the wire for rolloutStrategy to set.
        Returns:
        This builder for chaining.
      • setRolloutStrategy

        public EndpointsApiService.Builder setRolloutStrategy​(EndpointsApiService.RolloutStrategy value)
         Endpoints rollout strategy. If `FIXED`, `config_id` must be specified. If
         `MANAGED`, `config_id` must be omitted.
         
        .google.appengine.v1.EndpointsApiService.RolloutStrategy rollout_strategy = 3;
        Parameters:
        value - The rolloutStrategy to set.
        Returns:
        This builder for chaining.
      • clearRolloutStrategy

        public EndpointsApiService.Builder clearRolloutStrategy()
         Endpoints rollout strategy. If `FIXED`, `config_id` must be specified. If
         `MANAGED`, `config_id` must be omitted.
         
        .google.appengine.v1.EndpointsApiService.RolloutStrategy rollout_strategy = 3;
        Returns:
        This builder for chaining.
      • getDisableTraceSampling

        public boolean getDisableTraceSampling()
         Enable or disable trace sampling. By default, this is set to false for
         enabled.
         
        bool disable_trace_sampling = 4;
        Specified by:
        getDisableTraceSampling in interface EndpointsApiServiceOrBuilder
        Returns:
        The disableTraceSampling.
      • setDisableTraceSampling

        public EndpointsApiService.Builder setDisableTraceSampling​(boolean value)
         Enable or disable trace sampling. By default, this is set to false for
         enabled.
         
        bool disable_trace_sampling = 4;
        Parameters:
        value - The disableTraceSampling to set.
        Returns:
        This builder for chaining.
      • clearDisableTraceSampling

        public EndpointsApiService.Builder clearDisableTraceSampling()
         Enable or disable trace sampling. By default, this is set to false for
         enabled.
         
        bool disable_trace_sampling = 4;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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