Class CheckResponse.Builder

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

public static final class CheckResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<CheckResponse.Builder> implements CheckResponseOrBuilder
 Response message for the Check method.
 
Protobuf type google.api.servicecontrol.v2.CheckResponse
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<CheckResponse.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<CheckResponse.Builder>
    • internalGetFieldAccessorTable

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

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

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

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

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

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

      public CheckResponse.Builder mergeFrom(CheckResponse other)
    • isInitialized

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

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

      public boolean hasStatus()
       Operation is allowed when this field is not set. Any non-'OK' status
       indicates a denial; [google.rpc.Status.details][google.rpc.Status.details]
       would contain additional details about the denial.
       
      .google.rpc.Status status = 1;
      Specified by:
      hasStatus in interface CheckResponseOrBuilder
      Returns:
      Whether the status field is set.
    • getStatus

      public Status getStatus()
       Operation is allowed when this field is not set. Any non-'OK' status
       indicates a denial; [google.rpc.Status.details][google.rpc.Status.details]
       would contain additional details about the denial.
       
      .google.rpc.Status status = 1;
      Specified by:
      getStatus in interface CheckResponseOrBuilder
      Returns:
      The status.
    • setStatus

      public CheckResponse.Builder setStatus(Status value)
       Operation is allowed when this field is not set. Any non-'OK' status
       indicates a denial; [google.rpc.Status.details][google.rpc.Status.details]
       would contain additional details about the denial.
       
      .google.rpc.Status status = 1;
    • setStatus

      public CheckResponse.Builder setStatus(Status.Builder builderForValue)
       Operation is allowed when this field is not set. Any non-'OK' status
       indicates a denial; [google.rpc.Status.details][google.rpc.Status.details]
       would contain additional details about the denial.
       
      .google.rpc.Status status = 1;
    • mergeStatus

      public CheckResponse.Builder mergeStatus(Status value)
       Operation is allowed when this field is not set. Any non-'OK' status
       indicates a denial; [google.rpc.Status.details][google.rpc.Status.details]
       would contain additional details about the denial.
       
      .google.rpc.Status status = 1;
    • clearStatus

      public CheckResponse.Builder clearStatus()
       Operation is allowed when this field is not set. Any non-'OK' status
       indicates a denial; [google.rpc.Status.details][google.rpc.Status.details]
       would contain additional details about the denial.
       
      .google.rpc.Status status = 1;
    • getStatusBuilder

      public Status.Builder getStatusBuilder()
       Operation is allowed when this field is not set. Any non-'OK' status
       indicates a denial; [google.rpc.Status.details][google.rpc.Status.details]
       would contain additional details about the denial.
       
      .google.rpc.Status status = 1;
    • getStatusOrBuilder

      public StatusOrBuilder getStatusOrBuilder()
       Operation is allowed when this field is not set. Any non-'OK' status
       indicates a denial; [google.rpc.Status.details][google.rpc.Status.details]
       would contain additional details about the denial.
       
      .google.rpc.Status status = 1;
      Specified by:
      getStatusOrBuilder in interface CheckResponseOrBuilder
    • getHeadersCount

      public int getHeadersCount()
      Description copied from interface: CheckResponseOrBuilder
       Returns a set of request contexts generated from the `CheckRequest`.
       
      map<string, string> headers = 2;
      Specified by:
      getHeadersCount in interface CheckResponseOrBuilder
    • containsHeaders

      public boolean containsHeaders(String key)
       Returns a set of request contexts generated from the `CheckRequest`.
       
      map<string, string> headers = 2;
      Specified by:
      containsHeaders in interface CheckResponseOrBuilder
    • getHeaders

      @Deprecated public Map<String,String> getHeaders()
      Deprecated.
      Use getHeadersMap() instead.
      Specified by:
      getHeaders in interface CheckResponseOrBuilder
    • getHeadersMap

      public Map<String,String> getHeadersMap()
       Returns a set of request contexts generated from the `CheckRequest`.
       
      map<string, string> headers = 2;
      Specified by:
      getHeadersMap in interface CheckResponseOrBuilder
    • getHeadersOrDefault

      public String getHeadersOrDefault(String key, String defaultValue)
       Returns a set of request contexts generated from the `CheckRequest`.
       
      map<string, string> headers = 2;
      Specified by:
      getHeadersOrDefault in interface CheckResponseOrBuilder
    • getHeadersOrThrow

      public String getHeadersOrThrow(String key)
       Returns a set of request contexts generated from the `CheckRequest`.
       
      map<string, string> headers = 2;
      Specified by:
      getHeadersOrThrow in interface CheckResponseOrBuilder
    • clearHeaders

      public CheckResponse.Builder clearHeaders()
    • removeHeaders

      public CheckResponse.Builder removeHeaders(String key)
       Returns a set of request contexts generated from the `CheckRequest`.
       
      map<string, string> headers = 2;
    • getMutableHeaders

      @Deprecated public Map<String,String> getMutableHeaders()
      Deprecated.
      Use alternate mutation accessors instead.
    • putHeaders

      public CheckResponse.Builder putHeaders(String key, String value)
       Returns a set of request contexts generated from the `CheckRequest`.
       
      map<string, string> headers = 2;
    • putAllHeaders

      public CheckResponse.Builder putAllHeaders(Map<String,String> values)
       Returns a set of request contexts generated from the `CheckRequest`.
       
      map<string, string> headers = 2;