Class CheckRequest.Builder

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

    public static final class CheckRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<CheckRequest.Builder>
    implements CheckRequestOrBuilder
     Request message for the Check method.
     
    Protobuf type google.api.servicecontrol.v2.CheckRequest
    • 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<CheckRequest.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public CheckRequest.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<CheckRequest.Builder>
        Throws:
        IOException
      • getServiceName

        public String getServiceName()
         The service name as specified in its service configuration. For example,
         `"pubsub.googleapis.com"`.
        
         See
         [google.api.Service](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service)
         for the definition of a service name.
         
        string service_name = 1;
        Specified by:
        getServiceName in interface CheckRequestOrBuilder
        Returns:
        The serviceName.
      • getServiceNameBytes

        public com.google.protobuf.ByteString getServiceNameBytes()
         The service name as specified in its service configuration. For example,
         `"pubsub.googleapis.com"`.
        
         See
         [google.api.Service](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service)
         for the definition of a service name.
         
        string service_name = 1;
        Specified by:
        getServiceNameBytes in interface CheckRequestOrBuilder
        Returns:
        The bytes for serviceName.
      • setServiceName

        public CheckRequest.Builder setServiceName​(String value)
         The service name as specified in its service configuration. For example,
         `"pubsub.googleapis.com"`.
        
         See
         [google.api.Service](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service)
         for the definition of a service name.
         
        string service_name = 1;
        Parameters:
        value - The serviceName to set.
        Returns:
        This builder for chaining.
      • clearServiceName

        public CheckRequest.Builder clearServiceName()
         The service name as specified in its service configuration. For example,
         `"pubsub.googleapis.com"`.
        
         See
         [google.api.Service](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service)
         for the definition of a service name.
         
        string service_name = 1;
        Returns:
        This builder for chaining.
      • setServiceNameBytes

        public CheckRequest.Builder setServiceNameBytes​(com.google.protobuf.ByteString value)
         The service name as specified in its service configuration. For example,
         `"pubsub.googleapis.com"`.
        
         See
         [google.api.Service](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service)
         for the definition of a service name.
         
        string service_name = 1;
        Parameters:
        value - The bytes for serviceName to set.
        Returns:
        This builder for chaining.
      • getServiceConfigId

        public String getServiceConfigId()
         Specifies the version of the service configuration that should be used to
         process the request. Must not be empty. Set this field to 'latest' to
         specify using the latest configuration.
         
        string service_config_id = 2;
        Specified by:
        getServiceConfigId in interface CheckRequestOrBuilder
        Returns:
        The serviceConfigId.
      • getServiceConfigIdBytes

        public com.google.protobuf.ByteString getServiceConfigIdBytes()
         Specifies the version of the service configuration that should be used to
         process the request. Must not be empty. Set this field to 'latest' to
         specify using the latest configuration.
         
        string service_config_id = 2;
        Specified by:
        getServiceConfigIdBytes in interface CheckRequestOrBuilder
        Returns:
        The bytes for serviceConfigId.
      • setServiceConfigId

        public CheckRequest.Builder setServiceConfigId​(String value)
         Specifies the version of the service configuration that should be used to
         process the request. Must not be empty. Set this field to 'latest' to
         specify using the latest configuration.
         
        string service_config_id = 2;
        Parameters:
        value - The serviceConfigId to set.
        Returns:
        This builder for chaining.
      • clearServiceConfigId

        public CheckRequest.Builder clearServiceConfigId()
         Specifies the version of the service configuration that should be used to
         process the request. Must not be empty. Set this field to 'latest' to
         specify using the latest configuration.
         
        string service_config_id = 2;
        Returns:
        This builder for chaining.
      • setServiceConfigIdBytes

        public CheckRequest.Builder setServiceConfigIdBytes​(com.google.protobuf.ByteString value)
         Specifies the version of the service configuration that should be used to
         process the request. Must not be empty. Set this field to 'latest' to
         specify using the latest configuration.
         
        string service_config_id = 2;
        Parameters:
        value - The bytes for serviceConfigId to set.
        Returns:
        This builder for chaining.
      • hasAttributes

        public boolean hasAttributes()
         Describes attributes about the operation being executed by the service.
         
        .google.rpc.context.AttributeContext attributes = 3;
        Specified by:
        hasAttributes in interface CheckRequestOrBuilder
        Returns:
        Whether the attributes field is set.
      • getAttributes

        public com.google.rpc.context.AttributeContext getAttributes()
         Describes attributes about the operation being executed by the service.
         
        .google.rpc.context.AttributeContext attributes = 3;
        Specified by:
        getAttributes in interface CheckRequestOrBuilder
        Returns:
        The attributes.
      • setAttributes

        public CheckRequest.Builder setAttributes​(com.google.rpc.context.AttributeContext value)
         Describes attributes about the operation being executed by the service.
         
        .google.rpc.context.AttributeContext attributes = 3;
      • setAttributes

        public CheckRequest.Builder setAttributes​(com.google.rpc.context.AttributeContext.Builder builderForValue)
         Describes attributes about the operation being executed by the service.
         
        .google.rpc.context.AttributeContext attributes = 3;
      • mergeAttributes

        public CheckRequest.Builder mergeAttributes​(com.google.rpc.context.AttributeContext value)
         Describes attributes about the operation being executed by the service.
         
        .google.rpc.context.AttributeContext attributes = 3;
      • clearAttributes

        public CheckRequest.Builder clearAttributes()
         Describes attributes about the operation being executed by the service.
         
        .google.rpc.context.AttributeContext attributes = 3;
      • getAttributesBuilder

        public com.google.rpc.context.AttributeContext.Builder getAttributesBuilder()
         Describes attributes about the operation being executed by the service.
         
        .google.rpc.context.AttributeContext attributes = 3;
      • getAttributesOrBuilder

        public com.google.rpc.context.AttributeContextOrBuilder getAttributesOrBuilder()
         Describes attributes about the operation being executed by the service.
         
        .google.rpc.context.AttributeContext attributes = 3;
        Specified by:
        getAttributesOrBuilder in interface CheckRequestOrBuilder
      • getResourcesList

        public List<ResourceInfo> getResourcesList()
         Describes the resources and the policies applied to each resource.
         
        repeated .google.api.servicecontrol.v2.ResourceInfo resources = 4;
        Specified by:
        getResourcesList in interface CheckRequestOrBuilder
      • getResourcesCount

        public int getResourcesCount()
         Describes the resources and the policies applied to each resource.
         
        repeated .google.api.servicecontrol.v2.ResourceInfo resources = 4;
        Specified by:
        getResourcesCount in interface CheckRequestOrBuilder
      • getResources

        public ResourceInfo getResources​(int index)
         Describes the resources and the policies applied to each resource.
         
        repeated .google.api.servicecontrol.v2.ResourceInfo resources = 4;
        Specified by:
        getResources in interface CheckRequestOrBuilder
      • setResources

        public CheckRequest.Builder setResources​(int index,
                                                 ResourceInfo value)
         Describes the resources and the policies applied to each resource.
         
        repeated .google.api.servicecontrol.v2.ResourceInfo resources = 4;
      • setResources

        public CheckRequest.Builder setResources​(int index,
                                                 ResourceInfo.Builder builderForValue)
         Describes the resources and the policies applied to each resource.
         
        repeated .google.api.servicecontrol.v2.ResourceInfo resources = 4;
      • addResources

        public CheckRequest.Builder addResources​(ResourceInfo value)
         Describes the resources and the policies applied to each resource.
         
        repeated .google.api.servicecontrol.v2.ResourceInfo resources = 4;
      • addResources

        public CheckRequest.Builder addResources​(int index,
                                                 ResourceInfo value)
         Describes the resources and the policies applied to each resource.
         
        repeated .google.api.servicecontrol.v2.ResourceInfo resources = 4;
      • addResources

        public CheckRequest.Builder addResources​(ResourceInfo.Builder builderForValue)
         Describes the resources and the policies applied to each resource.
         
        repeated .google.api.servicecontrol.v2.ResourceInfo resources = 4;
      • addResources

        public CheckRequest.Builder addResources​(int index,
                                                 ResourceInfo.Builder builderForValue)
         Describes the resources and the policies applied to each resource.
         
        repeated .google.api.servicecontrol.v2.ResourceInfo resources = 4;
      • addAllResources

        public CheckRequest.Builder addAllResources​(Iterable<? extends ResourceInfo> values)
         Describes the resources and the policies applied to each resource.
         
        repeated .google.api.servicecontrol.v2.ResourceInfo resources = 4;
      • clearResources

        public CheckRequest.Builder clearResources()
         Describes the resources and the policies applied to each resource.
         
        repeated .google.api.servicecontrol.v2.ResourceInfo resources = 4;
      • removeResources

        public CheckRequest.Builder removeResources​(int index)
         Describes the resources and the policies applied to each resource.
         
        repeated .google.api.servicecontrol.v2.ResourceInfo resources = 4;
      • getResourcesBuilder

        public ResourceInfo.Builder getResourcesBuilder​(int index)
         Describes the resources and the policies applied to each resource.
         
        repeated .google.api.servicecontrol.v2.ResourceInfo resources = 4;
      • addResourcesBuilder

        public ResourceInfo.Builder addResourcesBuilder()
         Describes the resources and the policies applied to each resource.
         
        repeated .google.api.servicecontrol.v2.ResourceInfo resources = 4;
      • addResourcesBuilder

        public ResourceInfo.Builder addResourcesBuilder​(int index)
         Describes the resources and the policies applied to each resource.
         
        repeated .google.api.servicecontrol.v2.ResourceInfo resources = 4;
      • getResourcesBuilderList

        public List<ResourceInfo.Builder> getResourcesBuilderList()
         Describes the resources and the policies applied to each resource.
         
        repeated .google.api.servicecontrol.v2.ResourceInfo resources = 4;
      • getFlags

        public String getFlags()
         Optional. Contains a comma-separated list of flags.
         
        string flags = 5;
        Specified by:
        getFlags in interface CheckRequestOrBuilder
        Returns:
        The flags.
      • getFlagsBytes

        public com.google.protobuf.ByteString getFlagsBytes()
         Optional. Contains a comma-separated list of flags.
         
        string flags = 5;
        Specified by:
        getFlagsBytes in interface CheckRequestOrBuilder
        Returns:
        The bytes for flags.
      • setFlags

        public CheckRequest.Builder setFlags​(String value)
         Optional. Contains a comma-separated list of flags.
         
        string flags = 5;
        Parameters:
        value - The flags to set.
        Returns:
        This builder for chaining.
      • clearFlags

        public CheckRequest.Builder clearFlags()
         Optional. Contains a comma-separated list of flags.
         
        string flags = 5;
        Returns:
        This builder for chaining.
      • setFlagsBytes

        public CheckRequest.Builder setFlagsBytes​(com.google.protobuf.ByteString value)
         Optional. Contains a comma-separated list of flags.
         
        string flags = 5;
        Parameters:
        value - The bytes for flags to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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