Class CheckResponse.CheckInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CheckResponse.CheckInfo.Builder>
com.google.api.servicecontrol.v1.CheckResponse.CheckInfo.Builder
All Implemented Interfaces:
CheckResponse.CheckInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CheckResponse.CheckInfo

public static final class CheckResponse.CheckInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<CheckResponse.CheckInfo.Builder> implements CheckResponse.CheckInfoOrBuilder
 Contains additional information about the check operation.
 
Protobuf type google.api.servicecontrol.v1.CheckResponse.CheckInfo
  • Method Details

    • 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<CheckResponse.CheckInfo.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<CheckResponse.CheckInfo.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<CheckResponse.CheckInfo.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

      public CheckResponse.CheckInfo.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<CheckResponse.CheckInfo.Builder>
      Throws:
      IOException
    • getUnusedArgumentsList

      public com.google.protobuf.ProtocolStringList getUnusedArgumentsList()
       A list of fields and label keys that are ignored by the server.
       The client doesn't need to send them for following requests to improve
       performance and allow better aggregation.
       
      repeated string unused_arguments = 1;
      Specified by:
      getUnusedArgumentsList in interface CheckResponse.CheckInfoOrBuilder
      Returns:
      A list containing the unusedArguments.
    • getUnusedArgumentsCount

      public int getUnusedArgumentsCount()
       A list of fields and label keys that are ignored by the server.
       The client doesn't need to send them for following requests to improve
       performance and allow better aggregation.
       
      repeated string unused_arguments = 1;
      Specified by:
      getUnusedArgumentsCount in interface CheckResponse.CheckInfoOrBuilder
      Returns:
      The count of unusedArguments.
    • getUnusedArguments

      public String getUnusedArguments(int index)
       A list of fields and label keys that are ignored by the server.
       The client doesn't need to send them for following requests to improve
       performance and allow better aggregation.
       
      repeated string unused_arguments = 1;
      Specified by:
      getUnusedArguments in interface CheckResponse.CheckInfoOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The unusedArguments at the given index.
    • getUnusedArgumentsBytes

      public com.google.protobuf.ByteString getUnusedArgumentsBytes(int index)
       A list of fields and label keys that are ignored by the server.
       The client doesn't need to send them for following requests to improve
       performance and allow better aggregation.
       
      repeated string unused_arguments = 1;
      Specified by:
      getUnusedArgumentsBytes in interface CheckResponse.CheckInfoOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the unusedArguments at the given index.
    • setUnusedArguments

      public CheckResponse.CheckInfo.Builder setUnusedArguments(int index, String value)
       A list of fields and label keys that are ignored by the server.
       The client doesn't need to send them for following requests to improve
       performance and allow better aggregation.
       
      repeated string unused_arguments = 1;
      Parameters:
      index - The index to set the value at.
      value - The unusedArguments to set.
      Returns:
      This builder for chaining.
    • addUnusedArguments

      public CheckResponse.CheckInfo.Builder addUnusedArguments(String value)
       A list of fields and label keys that are ignored by the server.
       The client doesn't need to send them for following requests to improve
       performance and allow better aggregation.
       
      repeated string unused_arguments = 1;
      Parameters:
      value - The unusedArguments to add.
      Returns:
      This builder for chaining.
    • addAllUnusedArguments

      public CheckResponse.CheckInfo.Builder addAllUnusedArguments(Iterable<String> values)
       A list of fields and label keys that are ignored by the server.
       The client doesn't need to send them for following requests to improve
       performance and allow better aggregation.
       
      repeated string unused_arguments = 1;
      Parameters:
      values - The unusedArguments to add.
      Returns:
      This builder for chaining.
    • clearUnusedArguments

      public CheckResponse.CheckInfo.Builder clearUnusedArguments()
       A list of fields and label keys that are ignored by the server.
       The client doesn't need to send them for following requests to improve
       performance and allow better aggregation.
       
      repeated string unused_arguments = 1;
      Returns:
      This builder for chaining.
    • addUnusedArgumentsBytes

      public CheckResponse.CheckInfo.Builder addUnusedArgumentsBytes(com.google.protobuf.ByteString value)
       A list of fields and label keys that are ignored by the server.
       The client doesn't need to send them for following requests to improve
       performance and allow better aggregation.
       
      repeated string unused_arguments = 1;
      Parameters:
      value - The bytes of the unusedArguments to add.
      Returns:
      This builder for chaining.
    • hasConsumerInfo

      public boolean hasConsumerInfo()
       Consumer info of this check.
       
      .google.api.servicecontrol.v1.CheckResponse.ConsumerInfo consumer_info = 2;
      Specified by:
      hasConsumerInfo in interface CheckResponse.CheckInfoOrBuilder
      Returns:
      Whether the consumerInfo field is set.
    • getConsumerInfo

      public CheckResponse.ConsumerInfo getConsumerInfo()
       Consumer info of this check.
       
      .google.api.servicecontrol.v1.CheckResponse.ConsumerInfo consumer_info = 2;
      Specified by:
      getConsumerInfo in interface CheckResponse.CheckInfoOrBuilder
      Returns:
      The consumerInfo.
    • setConsumerInfo

       Consumer info of this check.
       
      .google.api.servicecontrol.v1.CheckResponse.ConsumerInfo consumer_info = 2;
    • setConsumerInfo

      public CheckResponse.CheckInfo.Builder setConsumerInfo(CheckResponse.ConsumerInfo.Builder builderForValue)
       Consumer info of this check.
       
      .google.api.servicecontrol.v1.CheckResponse.ConsumerInfo consumer_info = 2;
    • mergeConsumerInfo

       Consumer info of this check.
       
      .google.api.servicecontrol.v1.CheckResponse.ConsumerInfo consumer_info = 2;
    • clearConsumerInfo

      public CheckResponse.CheckInfo.Builder clearConsumerInfo()
       Consumer info of this check.
       
      .google.api.servicecontrol.v1.CheckResponse.ConsumerInfo consumer_info = 2;
    • getConsumerInfoBuilder

      public CheckResponse.ConsumerInfo.Builder getConsumerInfoBuilder()
       Consumer info of this check.
       
      .google.api.servicecontrol.v1.CheckResponse.ConsumerInfo consumer_info = 2;
    • getConsumerInfoOrBuilder

      public CheckResponse.ConsumerInfoOrBuilder getConsumerInfoOrBuilder()
       Consumer info of this check.
       
      .google.api.servicecontrol.v1.CheckResponse.ConsumerInfo consumer_info = 2;
      Specified by:
      getConsumerInfoOrBuilder in interface CheckResponse.CheckInfoOrBuilder
    • getApiKeyUid

      public String getApiKeyUid()
       The unique id of the api key in the format of "apikey:<UID>".
       This field will be populated when the consumer passed to Service Control
       is an API key and all the API key related validations are successful.
       
      string api_key_uid = 5;
      Specified by:
      getApiKeyUid in interface CheckResponse.CheckInfoOrBuilder
      Returns:
      The apiKeyUid.
    • getApiKeyUidBytes

      public com.google.protobuf.ByteString getApiKeyUidBytes()
       The unique id of the api key in the format of "apikey:<UID>".
       This field will be populated when the consumer passed to Service Control
       is an API key and all the API key related validations are successful.
       
      string api_key_uid = 5;
      Specified by:
      getApiKeyUidBytes in interface CheckResponse.CheckInfoOrBuilder
      Returns:
      The bytes for apiKeyUid.
    • setApiKeyUid

      public CheckResponse.CheckInfo.Builder setApiKeyUid(String value)
       The unique id of the api key in the format of "apikey:<UID>".
       This field will be populated when the consumer passed to Service Control
       is an API key and all the API key related validations are successful.
       
      string api_key_uid = 5;
      Parameters:
      value - The apiKeyUid to set.
      Returns:
      This builder for chaining.
    • clearApiKeyUid

      public CheckResponse.CheckInfo.Builder clearApiKeyUid()
       The unique id of the api key in the format of "apikey:<UID>".
       This field will be populated when the consumer passed to Service Control
       is an API key and all the API key related validations are successful.
       
      string api_key_uid = 5;
      Returns:
      This builder for chaining.
    • setApiKeyUidBytes

      public CheckResponse.CheckInfo.Builder setApiKeyUidBytes(com.google.protobuf.ByteString value)
       The unique id of the api key in the format of "apikey:<UID>".
       This field will be populated when the consumer passed to Service Control
       is an API key and all the API key related validations are successful.
       
      string api_key_uid = 5;
      Parameters:
      value - The bytes for apiKeyUid to set.
      Returns:
      This builder for chaining.