Class Control.Builder

  • All Implemented Interfaces:
    ControlOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    Control

    public static final class Control.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<Control.Builder>
    implements ControlOrBuilder
     Selects and configures the service controller used by the service.
    
     Example:
    
     control:
     environment: servicecontrol.googleapis.com
     
    Protobuf type google.api.Control
    • Method Detail

      • getDescriptor

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

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

        public Control.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessage.Builder<Control.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Control.Builder>
      • getDefaultInstanceForType

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

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

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

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

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

        public Control.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                  throws java.io.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<Control.Builder>
        Throws:
        java.io.IOException
      • getEnvironment

        public java.lang.String getEnvironment()
         The service controller environment to use. If empty, no control plane
         feature (like quota and billing) will be enabled. The recommended value for
         most services is servicecontrol.googleapis.com
         
        string environment = 1;
        Specified by:
        getEnvironment in interface ControlOrBuilder
        Returns:
        The environment.
      • getEnvironmentBytes

        public com.google.protobuf.ByteString getEnvironmentBytes()
         The service controller environment to use. If empty, no control plane
         feature (like quota and billing) will be enabled. The recommended value for
         most services is servicecontrol.googleapis.com
         
        string environment = 1;
        Specified by:
        getEnvironmentBytes in interface ControlOrBuilder
        Returns:
        The bytes for environment.
      • setEnvironment

        public Control.Builder setEnvironment​(java.lang.String value)
         The service controller environment to use. If empty, no control plane
         feature (like quota and billing) will be enabled. The recommended value for
         most services is servicecontrol.googleapis.com
         
        string environment = 1;
        Parameters:
        value - The environment to set.
        Returns:
        This builder for chaining.
      • clearEnvironment

        public Control.Builder clearEnvironment()
         The service controller environment to use. If empty, no control plane
         feature (like quota and billing) will be enabled. The recommended value for
         most services is servicecontrol.googleapis.com
         
        string environment = 1;
        Returns:
        This builder for chaining.
      • setEnvironmentBytes

        public Control.Builder setEnvironmentBytes​(com.google.protobuf.ByteString value)
         The service controller environment to use. If empty, no control plane
         feature (like quota and billing) will be enabled. The recommended value for
         most services is servicecontrol.googleapis.com
         
        string environment = 1;
        Parameters:
        value - The bytes for environment to set.
        Returns:
        This builder for chaining.
      • getMethodPoliciesList

        public java.util.List<MethodPolicy> getMethodPoliciesList()
         Defines policies applying to the API methods of the service.
         
        repeated .google.api.MethodPolicy method_policies = 4;
        Specified by:
        getMethodPoliciesList in interface ControlOrBuilder
      • getMethodPoliciesCount

        public int getMethodPoliciesCount()
         Defines policies applying to the API methods of the service.
         
        repeated .google.api.MethodPolicy method_policies = 4;
        Specified by:
        getMethodPoliciesCount in interface ControlOrBuilder
      • getMethodPolicies

        public MethodPolicy getMethodPolicies​(int index)
         Defines policies applying to the API methods of the service.
         
        repeated .google.api.MethodPolicy method_policies = 4;
        Specified by:
        getMethodPolicies in interface ControlOrBuilder
      • setMethodPolicies

        public Control.Builder setMethodPolicies​(int index,
                                                 MethodPolicy value)
         Defines policies applying to the API methods of the service.
         
        repeated .google.api.MethodPolicy method_policies = 4;
      • setMethodPolicies

        public Control.Builder setMethodPolicies​(int index,
                                                 MethodPolicy.Builder builderForValue)
         Defines policies applying to the API methods of the service.
         
        repeated .google.api.MethodPolicy method_policies = 4;
      • addMethodPolicies

        public Control.Builder addMethodPolicies​(MethodPolicy value)
         Defines policies applying to the API methods of the service.
         
        repeated .google.api.MethodPolicy method_policies = 4;
      • addMethodPolicies

        public Control.Builder addMethodPolicies​(int index,
                                                 MethodPolicy value)
         Defines policies applying to the API methods of the service.
         
        repeated .google.api.MethodPolicy method_policies = 4;
      • addMethodPolicies

        public Control.Builder addMethodPolicies​(MethodPolicy.Builder builderForValue)
         Defines policies applying to the API methods of the service.
         
        repeated .google.api.MethodPolicy method_policies = 4;
      • addMethodPolicies

        public Control.Builder addMethodPolicies​(int index,
                                                 MethodPolicy.Builder builderForValue)
         Defines policies applying to the API methods of the service.
         
        repeated .google.api.MethodPolicy method_policies = 4;
      • addAllMethodPolicies

        public Control.Builder addAllMethodPolicies​(java.lang.Iterable<? extends MethodPolicy> values)
         Defines policies applying to the API methods of the service.
         
        repeated .google.api.MethodPolicy method_policies = 4;
      • clearMethodPolicies

        public Control.Builder clearMethodPolicies()
         Defines policies applying to the API methods of the service.
         
        repeated .google.api.MethodPolicy method_policies = 4;
      • removeMethodPolicies

        public Control.Builder removeMethodPolicies​(int index)
         Defines policies applying to the API methods of the service.
         
        repeated .google.api.MethodPolicy method_policies = 4;
      • getMethodPoliciesBuilder

        public MethodPolicy.Builder getMethodPoliciesBuilder​(int index)
         Defines policies applying to the API methods of the service.
         
        repeated .google.api.MethodPolicy method_policies = 4;
      • addMethodPoliciesBuilder

        public MethodPolicy.Builder addMethodPoliciesBuilder()
         Defines policies applying to the API methods of the service.
         
        repeated .google.api.MethodPolicy method_policies = 4;
      • addMethodPoliciesBuilder

        public MethodPolicy.Builder addMethodPoliciesBuilder​(int index)
         Defines policies applying to the API methods of the service.
         
        repeated .google.api.MethodPolicy method_policies = 4;
      • getMethodPoliciesBuilderList

        public java.util.List<MethodPolicy.Builder> getMethodPoliciesBuilderList()
         Defines policies applying to the API methods of the service.
         
        repeated .google.api.MethodPolicy method_policies = 4;