All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.servicecontrol.v1.CheckResponse Maven / Gradle / Ivy

There is a newer version: 1.0.14
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/api/servicecontrol/v1/service_controller.proto

package com.google.api.servicecontrol.v1;

/**
 * 
 * Response message for the Check method.
 * 
* * Protobuf type {@code google.api.servicecontrol.v1.CheckResponse} */ public final class CheckResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.api.servicecontrol.v1.CheckResponse) CheckResponseOrBuilder { private static final long serialVersionUID = 0L; // Use CheckResponse.newBuilder() to construct. private CheckResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CheckResponse() { operationId_ = ""; checkErrors_ = java.util.Collections.emptyList(); serviceConfigId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CheckResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CheckResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); operationId_ = s; break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { checkErrors_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } checkErrors_.add( input.readMessage(com.google.api.servicecontrol.v1.CheckError.parser(), extensionRegistry)); break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); serviceConfigId_ = s; break; } case 50: { com.google.api.servicecontrol.v1.CheckResponse.CheckInfo.Builder subBuilder = null; if (checkInfo_ != null) { subBuilder = checkInfo_.toBuilder(); } checkInfo_ = input.readMessage(com.google.api.servicecontrol.v1.CheckResponse.CheckInfo.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(checkInfo_); checkInfo_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { checkErrors_ = java.util.Collections.unmodifiableList(checkErrors_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.servicecontrol.v1.ServiceControllerProto.internal_static_google_api_servicecontrol_v1_CheckResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.api.servicecontrol.v1.ServiceControllerProto.internal_static_google_api_servicecontrol_v1_CheckResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.api.servicecontrol.v1.CheckResponse.class, com.google.api.servicecontrol.v1.CheckResponse.Builder.class); } public interface CheckInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.api.servicecontrol.v1.CheckResponse.CheckInfo) com.google.protobuf.MessageOrBuilder { /** *
     * Consumer info of this check.
     * 
* * .google.api.servicecontrol.v1.CheckResponse.ConsumerInfo consumer_info = 2; */ boolean hasConsumerInfo(); /** *
     * Consumer info of this check.
     * 
* * .google.api.servicecontrol.v1.CheckResponse.ConsumerInfo consumer_info = 2; */ com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo getConsumerInfo(); /** *
     * Consumer info of this check.
     * 
* * .google.api.servicecontrol.v1.CheckResponse.ConsumerInfo consumer_info = 2; */ com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfoOrBuilder getConsumerInfoOrBuilder(); } /** * Protobuf type {@code google.api.servicecontrol.v1.CheckResponse.CheckInfo} */ public static final class CheckInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.api.servicecontrol.v1.CheckResponse.CheckInfo) CheckInfoOrBuilder { private static final long serialVersionUID = 0L; // Use CheckInfo.newBuilder() to construct. private CheckInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CheckInfo() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CheckInfo(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CheckInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 18: { com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.Builder subBuilder = null; if (consumerInfo_ != null) { subBuilder = consumerInfo_.toBuilder(); } consumerInfo_ = input.readMessage(com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(consumerInfo_); consumerInfo_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.servicecontrol.v1.ServiceControllerProto.internal_static_google_api_servicecontrol_v1_CheckResponse_CheckInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.api.servicecontrol.v1.ServiceControllerProto.internal_static_google_api_servicecontrol_v1_CheckResponse_CheckInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.api.servicecontrol.v1.CheckResponse.CheckInfo.class, com.google.api.servicecontrol.v1.CheckResponse.CheckInfo.Builder.class); } public static final int CONSUMER_INFO_FIELD_NUMBER = 2; private com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo consumerInfo_; /** *
     * Consumer info of this check.
     * 
* * .google.api.servicecontrol.v1.CheckResponse.ConsumerInfo consumer_info = 2; */ public boolean hasConsumerInfo() { return consumerInfo_ != null; } /** *
     * Consumer info of this check.
     * 
* * .google.api.servicecontrol.v1.CheckResponse.ConsumerInfo consumer_info = 2; */ public com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo getConsumerInfo() { return consumerInfo_ == null ? com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.getDefaultInstance() : consumerInfo_; } /** *
     * Consumer info of this check.
     * 
* * .google.api.servicecontrol.v1.CheckResponse.ConsumerInfo consumer_info = 2; */ public com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfoOrBuilder getConsumerInfoOrBuilder() { return getConsumerInfo(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (consumerInfo_ != null) { output.writeMessage(2, getConsumerInfo()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (consumerInfo_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getConsumerInfo()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.api.servicecontrol.v1.CheckResponse.CheckInfo)) { return super.equals(obj); } com.google.api.servicecontrol.v1.CheckResponse.CheckInfo other = (com.google.api.servicecontrol.v1.CheckResponse.CheckInfo) obj; if (hasConsumerInfo() != other.hasConsumerInfo()) return false; if (hasConsumerInfo()) { if (!getConsumerInfo() .equals(other.getConsumerInfo())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasConsumerInfo()) { hash = (37 * hash) + CONSUMER_INFO_FIELD_NUMBER; hash = (53 * hash) + getConsumerInfo().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.api.servicecontrol.v1.CheckResponse.CheckInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.api.servicecontrol.v1.CheckResponse.CheckInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.api.servicecontrol.v1.CheckResponse.CheckInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.api.servicecontrol.v1.CheckResponse.CheckInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.api.servicecontrol.v1.CheckResponse.CheckInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.api.servicecontrol.v1.CheckResponse.CheckInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.api.servicecontrol.v1.CheckResponse.CheckInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.api.servicecontrol.v1.CheckResponse.CheckInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.api.servicecontrol.v1.CheckResponse.CheckInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.api.servicecontrol.v1.CheckResponse.CheckInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.api.servicecontrol.v1.CheckResponse.CheckInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.api.servicecontrol.v1.CheckResponse.CheckInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.api.servicecontrol.v1.CheckResponse.CheckInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code google.api.servicecontrol.v1.CheckResponse.CheckInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.api.servicecontrol.v1.CheckResponse.CheckInfo) com.google.api.servicecontrol.v1.CheckResponse.CheckInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.servicecontrol.v1.ServiceControllerProto.internal_static_google_api_servicecontrol_v1_CheckResponse_CheckInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.api.servicecontrol.v1.ServiceControllerProto.internal_static_google_api_servicecontrol_v1_CheckResponse_CheckInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.api.servicecontrol.v1.CheckResponse.CheckInfo.class, com.google.api.servicecontrol.v1.CheckResponse.CheckInfo.Builder.class); } // Construct using com.google.api.servicecontrol.v1.CheckResponse.CheckInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (consumerInfoBuilder_ == null) { consumerInfo_ = null; } else { consumerInfo_ = null; consumerInfoBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.api.servicecontrol.v1.ServiceControllerProto.internal_static_google_api_servicecontrol_v1_CheckResponse_CheckInfo_descriptor; } @java.lang.Override public com.google.api.servicecontrol.v1.CheckResponse.CheckInfo getDefaultInstanceForType() { return com.google.api.servicecontrol.v1.CheckResponse.CheckInfo.getDefaultInstance(); } @java.lang.Override public com.google.api.servicecontrol.v1.CheckResponse.CheckInfo build() { com.google.api.servicecontrol.v1.CheckResponse.CheckInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.api.servicecontrol.v1.CheckResponse.CheckInfo buildPartial() { com.google.api.servicecontrol.v1.CheckResponse.CheckInfo result = new com.google.api.servicecontrol.v1.CheckResponse.CheckInfo(this); if (consumerInfoBuilder_ == null) { result.consumerInfo_ = consumerInfo_; } else { result.consumerInfo_ = consumerInfoBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.servicecontrol.v1.CheckResponse.CheckInfo) { return mergeFrom((com.google.api.servicecontrol.v1.CheckResponse.CheckInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.api.servicecontrol.v1.CheckResponse.CheckInfo other) { if (other == com.google.api.servicecontrol.v1.CheckResponse.CheckInfo.getDefaultInstance()) return this; if (other.hasConsumerInfo()) { mergeConsumerInfo(other.getConsumerInfo()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.api.servicecontrol.v1.CheckResponse.CheckInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.api.servicecontrol.v1.CheckResponse.CheckInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo consumerInfo_; private com.google.protobuf.SingleFieldBuilderV3< com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo, com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.Builder, com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfoOrBuilder> consumerInfoBuilder_; /** *
       * Consumer info of this check.
       * 
* * .google.api.servicecontrol.v1.CheckResponse.ConsumerInfo consumer_info = 2; */ public boolean hasConsumerInfo() { return consumerInfoBuilder_ != null || consumerInfo_ != null; } /** *
       * Consumer info of this check.
       * 
* * .google.api.servicecontrol.v1.CheckResponse.ConsumerInfo consumer_info = 2; */ public com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo getConsumerInfo() { if (consumerInfoBuilder_ == null) { return consumerInfo_ == null ? com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.getDefaultInstance() : consumerInfo_; } else { return consumerInfoBuilder_.getMessage(); } } /** *
       * Consumer info of this check.
       * 
* * .google.api.servicecontrol.v1.CheckResponse.ConsumerInfo consumer_info = 2; */ public Builder setConsumerInfo(com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo value) { if (consumerInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } consumerInfo_ = value; onChanged(); } else { consumerInfoBuilder_.setMessage(value); } return this; } /** *
       * Consumer info of this check.
       * 
* * .google.api.servicecontrol.v1.CheckResponse.ConsumerInfo consumer_info = 2; */ public Builder setConsumerInfo( com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.Builder builderForValue) { if (consumerInfoBuilder_ == null) { consumerInfo_ = builderForValue.build(); onChanged(); } else { consumerInfoBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Consumer info of this check.
       * 
* * .google.api.servicecontrol.v1.CheckResponse.ConsumerInfo consumer_info = 2; */ public Builder mergeConsumerInfo(com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo value) { if (consumerInfoBuilder_ == null) { if (consumerInfo_ != null) { consumerInfo_ = com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.newBuilder(consumerInfo_).mergeFrom(value).buildPartial(); } else { consumerInfo_ = value; } onChanged(); } else { consumerInfoBuilder_.mergeFrom(value); } return this; } /** *
       * Consumer info of this check.
       * 
* * .google.api.servicecontrol.v1.CheckResponse.ConsumerInfo consumer_info = 2; */ public Builder clearConsumerInfo() { if (consumerInfoBuilder_ == null) { consumerInfo_ = null; onChanged(); } else { consumerInfo_ = null; consumerInfoBuilder_ = null; } return this; } /** *
       * Consumer info of this check.
       * 
* * .google.api.servicecontrol.v1.CheckResponse.ConsumerInfo consumer_info = 2; */ public com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.Builder getConsumerInfoBuilder() { onChanged(); return getConsumerInfoFieldBuilder().getBuilder(); } /** *
       * Consumer info of this check.
       * 
* * .google.api.servicecontrol.v1.CheckResponse.ConsumerInfo consumer_info = 2; */ public com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfoOrBuilder getConsumerInfoOrBuilder() { if (consumerInfoBuilder_ != null) { return consumerInfoBuilder_.getMessageOrBuilder(); } else { return consumerInfo_ == null ? com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.getDefaultInstance() : consumerInfo_; } } /** *
       * Consumer info of this check.
       * 
* * .google.api.servicecontrol.v1.CheckResponse.ConsumerInfo consumer_info = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo, com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.Builder, com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfoOrBuilder> getConsumerInfoFieldBuilder() { if (consumerInfoBuilder_ == null) { consumerInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo, com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.Builder, com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfoOrBuilder>( getConsumerInfo(), getParentForChildren(), isClean()); consumerInfo_ = null; } return consumerInfoBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.api.servicecontrol.v1.CheckResponse.CheckInfo) } // @@protoc_insertion_point(class_scope:google.api.servicecontrol.v1.CheckResponse.CheckInfo) private static final com.google.api.servicecontrol.v1.CheckResponse.CheckInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.api.servicecontrol.v1.CheckResponse.CheckInfo(); } public static com.google.api.servicecontrol.v1.CheckResponse.CheckInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CheckInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CheckInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.api.servicecontrol.v1.CheckResponse.CheckInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConsumerInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.api.servicecontrol.v1.CheckResponse.ConsumerInfo) com.google.protobuf.MessageOrBuilder { /** *
     * The Google cloud project number, e.g. 1234567890. A value of 0 indicates
     * no project number is found.
     * 
* * int64 project_number = 1; */ long getProjectNumber(); } /** *
   * `ConsumerInfo` provides information about the consumer project.
   * 
* * Protobuf type {@code google.api.servicecontrol.v1.CheckResponse.ConsumerInfo} */ public static final class ConsumerInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.api.servicecontrol.v1.CheckResponse.ConsumerInfo) ConsumerInfoOrBuilder { private static final long serialVersionUID = 0L; // Use ConsumerInfo.newBuilder() to construct. private ConsumerInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConsumerInfo() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ConsumerInfo(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ConsumerInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { projectNumber_ = input.readInt64(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.servicecontrol.v1.ServiceControllerProto.internal_static_google_api_servicecontrol_v1_CheckResponse_ConsumerInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.api.servicecontrol.v1.ServiceControllerProto.internal_static_google_api_servicecontrol_v1_CheckResponse_ConsumerInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.class, com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.Builder.class); } public static final int PROJECT_NUMBER_FIELD_NUMBER = 1; private long projectNumber_; /** *
     * The Google cloud project number, e.g. 1234567890. A value of 0 indicates
     * no project number is found.
     * 
* * int64 project_number = 1; */ public long getProjectNumber() { return projectNumber_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (projectNumber_ != 0L) { output.writeInt64(1, projectNumber_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (projectNumber_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, projectNumber_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo)) { return super.equals(obj); } com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo other = (com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo) obj; if (getProjectNumber() != other.getProjectNumber()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PROJECT_NUMBER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getProjectNumber()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * `ConsumerInfo` provides information about the consumer project.
     * 
* * Protobuf type {@code google.api.servicecontrol.v1.CheckResponse.ConsumerInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.api.servicecontrol.v1.CheckResponse.ConsumerInfo) com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.servicecontrol.v1.ServiceControllerProto.internal_static_google_api_servicecontrol_v1_CheckResponse_ConsumerInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.api.servicecontrol.v1.ServiceControllerProto.internal_static_google_api_servicecontrol_v1_CheckResponse_ConsumerInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.class, com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.Builder.class); } // Construct using com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); projectNumber_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.api.servicecontrol.v1.ServiceControllerProto.internal_static_google_api_servicecontrol_v1_CheckResponse_ConsumerInfo_descriptor; } @java.lang.Override public com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo getDefaultInstanceForType() { return com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.getDefaultInstance(); } @java.lang.Override public com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo build() { com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo buildPartial() { com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo result = new com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo(this); result.projectNumber_ = projectNumber_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo) { return mergeFrom((com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo other) { if (other == com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.getDefaultInstance()) return this; if (other.getProjectNumber() != 0L) { setProjectNumber(other.getProjectNumber()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long projectNumber_ ; /** *
       * The Google cloud project number, e.g. 1234567890. A value of 0 indicates
       * no project number is found.
       * 
* * int64 project_number = 1; */ public long getProjectNumber() { return projectNumber_; } /** *
       * The Google cloud project number, e.g. 1234567890. A value of 0 indicates
       * no project number is found.
       * 
* * int64 project_number = 1; */ public Builder setProjectNumber(long value) { projectNumber_ = value; onChanged(); return this; } /** *
       * The Google cloud project number, e.g. 1234567890. A value of 0 indicates
       * no project number is found.
       * 
* * int64 project_number = 1; */ public Builder clearProjectNumber() { projectNumber_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.api.servicecontrol.v1.CheckResponse.ConsumerInfo) } // @@protoc_insertion_point(class_scope:google.api.servicecontrol.v1.CheckResponse.ConsumerInfo) private static final com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo(); } public static com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConsumerInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ConsumerInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int OPERATION_ID_FIELD_NUMBER = 1; private volatile java.lang.Object operationId_; /** *
   * The same operation_id value used in the CheckRequest.
   * Used for logging and diagnostics purposes.
   * 
* * string operation_id = 1; */ public java.lang.String getOperationId() { java.lang.Object ref = operationId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operationId_ = s; return s; } } /** *
   * The same operation_id value used in the CheckRequest.
   * Used for logging and diagnostics purposes.
   * 
* * string operation_id = 1; */ public com.google.protobuf.ByteString getOperationIdBytes() { java.lang.Object ref = operationId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); operationId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CHECK_ERRORS_FIELD_NUMBER = 2; private java.util.List checkErrors_; /** *
   * Indicate the decision of the check.
   * If no check errors are present, the service should process the operation.
   * Otherwise the service should use the list of errors to determine the
   * appropriate action.
   * 
* * repeated .google.api.servicecontrol.v1.CheckError check_errors = 2; */ public java.util.List getCheckErrorsList() { return checkErrors_; } /** *
   * Indicate the decision of the check.
   * If no check errors are present, the service should process the operation.
   * Otherwise the service should use the list of errors to determine the
   * appropriate action.
   * 
* * repeated .google.api.servicecontrol.v1.CheckError check_errors = 2; */ public java.util.List getCheckErrorsOrBuilderList() { return checkErrors_; } /** *
   * Indicate the decision of the check.
   * If no check errors are present, the service should process the operation.
   * Otherwise the service should use the list of errors to determine the
   * appropriate action.
   * 
* * repeated .google.api.servicecontrol.v1.CheckError check_errors = 2; */ public int getCheckErrorsCount() { return checkErrors_.size(); } /** *
   * Indicate the decision of the check.
   * If no check errors are present, the service should process the operation.
   * Otherwise the service should use the list of errors to determine the
   * appropriate action.
   * 
* * repeated .google.api.servicecontrol.v1.CheckError check_errors = 2; */ public com.google.api.servicecontrol.v1.CheckError getCheckErrors(int index) { return checkErrors_.get(index); } /** *
   * Indicate the decision of the check.
   * If no check errors are present, the service should process the operation.
   * Otherwise the service should use the list of errors to determine the
   * appropriate action.
   * 
* * repeated .google.api.servicecontrol.v1.CheckError check_errors = 2; */ public com.google.api.servicecontrol.v1.CheckErrorOrBuilder getCheckErrorsOrBuilder( int index) { return checkErrors_.get(index); } public static final int SERVICE_CONFIG_ID_FIELD_NUMBER = 5; private volatile java.lang.Object serviceConfigId_; /** *
   * The actual config id used to process the request.
   * 
* * string service_config_id = 5; */ public java.lang.String getServiceConfigId() { java.lang.Object ref = serviceConfigId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceConfigId_ = s; return s; } } /** *
   * The actual config id used to process the request.
   * 
* * string service_config_id = 5; */ public com.google.protobuf.ByteString getServiceConfigIdBytes() { java.lang.Object ref = serviceConfigId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); serviceConfigId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CHECK_INFO_FIELD_NUMBER = 6; private com.google.api.servicecontrol.v1.CheckResponse.CheckInfo checkInfo_; /** *
   * Feedback data returned from the server during processing a Check request.
   * 
* * .google.api.servicecontrol.v1.CheckResponse.CheckInfo check_info = 6; */ public boolean hasCheckInfo() { return checkInfo_ != null; } /** *
   * Feedback data returned from the server during processing a Check request.
   * 
* * .google.api.servicecontrol.v1.CheckResponse.CheckInfo check_info = 6; */ public com.google.api.servicecontrol.v1.CheckResponse.CheckInfo getCheckInfo() { return checkInfo_ == null ? com.google.api.servicecontrol.v1.CheckResponse.CheckInfo.getDefaultInstance() : checkInfo_; } /** *
   * Feedback data returned from the server during processing a Check request.
   * 
* * .google.api.servicecontrol.v1.CheckResponse.CheckInfo check_info = 6; */ public com.google.api.servicecontrol.v1.CheckResponse.CheckInfoOrBuilder getCheckInfoOrBuilder() { return getCheckInfo(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getOperationIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, operationId_); } for (int i = 0; i < checkErrors_.size(); i++) { output.writeMessage(2, checkErrors_.get(i)); } if (!getServiceConfigIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, serviceConfigId_); } if (checkInfo_ != null) { output.writeMessage(6, getCheckInfo()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getOperationIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, operationId_); } for (int i = 0; i < checkErrors_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, checkErrors_.get(i)); } if (!getServiceConfigIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, serviceConfigId_); } if (checkInfo_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getCheckInfo()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.api.servicecontrol.v1.CheckResponse)) { return super.equals(obj); } com.google.api.servicecontrol.v1.CheckResponse other = (com.google.api.servicecontrol.v1.CheckResponse) obj; if (!getOperationId() .equals(other.getOperationId())) return false; if (!getCheckErrorsList() .equals(other.getCheckErrorsList())) return false; if (!getServiceConfigId() .equals(other.getServiceConfigId())) return false; if (hasCheckInfo() != other.hasCheckInfo()) return false; if (hasCheckInfo()) { if (!getCheckInfo() .equals(other.getCheckInfo())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + OPERATION_ID_FIELD_NUMBER; hash = (53 * hash) + getOperationId().hashCode(); if (getCheckErrorsCount() > 0) { hash = (37 * hash) + CHECK_ERRORS_FIELD_NUMBER; hash = (53 * hash) + getCheckErrorsList().hashCode(); } hash = (37 * hash) + SERVICE_CONFIG_ID_FIELD_NUMBER; hash = (53 * hash) + getServiceConfigId().hashCode(); if (hasCheckInfo()) { hash = (37 * hash) + CHECK_INFO_FIELD_NUMBER; hash = (53 * hash) + getCheckInfo().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.api.servicecontrol.v1.CheckResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.api.servicecontrol.v1.CheckResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.api.servicecontrol.v1.CheckResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.api.servicecontrol.v1.CheckResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.api.servicecontrol.v1.CheckResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.api.servicecontrol.v1.CheckResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.api.servicecontrol.v1.CheckResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.api.servicecontrol.v1.CheckResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.api.servicecontrol.v1.CheckResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.api.servicecontrol.v1.CheckResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.api.servicecontrol.v1.CheckResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.api.servicecontrol.v1.CheckResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.api.servicecontrol.v1.CheckResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * Response message for the Check method.
   * 
* * Protobuf type {@code google.api.servicecontrol.v1.CheckResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.api.servicecontrol.v1.CheckResponse) com.google.api.servicecontrol.v1.CheckResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.servicecontrol.v1.ServiceControllerProto.internal_static_google_api_servicecontrol_v1_CheckResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.api.servicecontrol.v1.ServiceControllerProto.internal_static_google_api_servicecontrol_v1_CheckResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.api.servicecontrol.v1.CheckResponse.class, com.google.api.servicecontrol.v1.CheckResponse.Builder.class); } // Construct using com.google.api.servicecontrol.v1.CheckResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCheckErrorsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); operationId_ = ""; if (checkErrorsBuilder_ == null) { checkErrors_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { checkErrorsBuilder_.clear(); } serviceConfigId_ = ""; if (checkInfoBuilder_ == null) { checkInfo_ = null; } else { checkInfo_ = null; checkInfoBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.api.servicecontrol.v1.ServiceControllerProto.internal_static_google_api_servicecontrol_v1_CheckResponse_descriptor; } @java.lang.Override public com.google.api.servicecontrol.v1.CheckResponse getDefaultInstanceForType() { return com.google.api.servicecontrol.v1.CheckResponse.getDefaultInstance(); } @java.lang.Override public com.google.api.servicecontrol.v1.CheckResponse build() { com.google.api.servicecontrol.v1.CheckResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.api.servicecontrol.v1.CheckResponse buildPartial() { com.google.api.servicecontrol.v1.CheckResponse result = new com.google.api.servicecontrol.v1.CheckResponse(this); int from_bitField0_ = bitField0_; result.operationId_ = operationId_; if (checkErrorsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { checkErrors_ = java.util.Collections.unmodifiableList(checkErrors_); bitField0_ = (bitField0_ & ~0x00000001); } result.checkErrors_ = checkErrors_; } else { result.checkErrors_ = checkErrorsBuilder_.build(); } result.serviceConfigId_ = serviceConfigId_; if (checkInfoBuilder_ == null) { result.checkInfo_ = checkInfo_; } else { result.checkInfo_ = checkInfoBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.servicecontrol.v1.CheckResponse) { return mergeFrom((com.google.api.servicecontrol.v1.CheckResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.api.servicecontrol.v1.CheckResponse other) { if (other == com.google.api.servicecontrol.v1.CheckResponse.getDefaultInstance()) return this; if (!other.getOperationId().isEmpty()) { operationId_ = other.operationId_; onChanged(); } if (checkErrorsBuilder_ == null) { if (!other.checkErrors_.isEmpty()) { if (checkErrors_.isEmpty()) { checkErrors_ = other.checkErrors_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureCheckErrorsIsMutable(); checkErrors_.addAll(other.checkErrors_); } onChanged(); } } else { if (!other.checkErrors_.isEmpty()) { if (checkErrorsBuilder_.isEmpty()) { checkErrorsBuilder_.dispose(); checkErrorsBuilder_ = null; checkErrors_ = other.checkErrors_; bitField0_ = (bitField0_ & ~0x00000001); checkErrorsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCheckErrorsFieldBuilder() : null; } else { checkErrorsBuilder_.addAllMessages(other.checkErrors_); } } } if (!other.getServiceConfigId().isEmpty()) { serviceConfigId_ = other.serviceConfigId_; onChanged(); } if (other.hasCheckInfo()) { mergeCheckInfo(other.getCheckInfo()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.api.servicecontrol.v1.CheckResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.api.servicecontrol.v1.CheckResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object operationId_ = ""; /** *
     * The same operation_id value used in the CheckRequest.
     * Used for logging and diagnostics purposes.
     * 
* * string operation_id = 1; */ public java.lang.String getOperationId() { java.lang.Object ref = operationId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operationId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The same operation_id value used in the CheckRequest.
     * Used for logging and diagnostics purposes.
     * 
* * string operation_id = 1; */ public com.google.protobuf.ByteString getOperationIdBytes() { java.lang.Object ref = operationId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); operationId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The same operation_id value used in the CheckRequest.
     * Used for logging and diagnostics purposes.
     * 
* * string operation_id = 1; */ public Builder setOperationId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } operationId_ = value; onChanged(); return this; } /** *
     * The same operation_id value used in the CheckRequest.
     * Used for logging and diagnostics purposes.
     * 
* * string operation_id = 1; */ public Builder clearOperationId() { operationId_ = getDefaultInstance().getOperationId(); onChanged(); return this; } /** *
     * The same operation_id value used in the CheckRequest.
     * Used for logging and diagnostics purposes.
     * 
* * string operation_id = 1; */ public Builder setOperationIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); operationId_ = value; onChanged(); return this; } private java.util.List checkErrors_ = java.util.Collections.emptyList(); private void ensureCheckErrorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { checkErrors_ = new java.util.ArrayList(checkErrors_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.api.servicecontrol.v1.CheckError, com.google.api.servicecontrol.v1.CheckError.Builder, com.google.api.servicecontrol.v1.CheckErrorOrBuilder> checkErrorsBuilder_; /** *
     * Indicate the decision of the check.
     * If no check errors are present, the service should process the operation.
     * Otherwise the service should use the list of errors to determine the
     * appropriate action.
     * 
* * repeated .google.api.servicecontrol.v1.CheckError check_errors = 2; */ public java.util.List getCheckErrorsList() { if (checkErrorsBuilder_ == null) { return java.util.Collections.unmodifiableList(checkErrors_); } else { return checkErrorsBuilder_.getMessageList(); } } /** *
     * Indicate the decision of the check.
     * If no check errors are present, the service should process the operation.
     * Otherwise the service should use the list of errors to determine the
     * appropriate action.
     * 
* * repeated .google.api.servicecontrol.v1.CheckError check_errors = 2; */ public int getCheckErrorsCount() { if (checkErrorsBuilder_ == null) { return checkErrors_.size(); } else { return checkErrorsBuilder_.getCount(); } } /** *
     * Indicate the decision of the check.
     * If no check errors are present, the service should process the operation.
     * Otherwise the service should use the list of errors to determine the
     * appropriate action.
     * 
* * repeated .google.api.servicecontrol.v1.CheckError check_errors = 2; */ public com.google.api.servicecontrol.v1.CheckError getCheckErrors(int index) { if (checkErrorsBuilder_ == null) { return checkErrors_.get(index); } else { return checkErrorsBuilder_.getMessage(index); } } /** *
     * Indicate the decision of the check.
     * If no check errors are present, the service should process the operation.
     * Otherwise the service should use the list of errors to determine the
     * appropriate action.
     * 
* * repeated .google.api.servicecontrol.v1.CheckError check_errors = 2; */ public Builder setCheckErrors( int index, com.google.api.servicecontrol.v1.CheckError value) { if (checkErrorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCheckErrorsIsMutable(); checkErrors_.set(index, value); onChanged(); } else { checkErrorsBuilder_.setMessage(index, value); } return this; } /** *
     * Indicate the decision of the check.
     * If no check errors are present, the service should process the operation.
     * Otherwise the service should use the list of errors to determine the
     * appropriate action.
     * 
* * repeated .google.api.servicecontrol.v1.CheckError check_errors = 2; */ public Builder setCheckErrors( int index, com.google.api.servicecontrol.v1.CheckError.Builder builderForValue) { if (checkErrorsBuilder_ == null) { ensureCheckErrorsIsMutable(); checkErrors_.set(index, builderForValue.build()); onChanged(); } else { checkErrorsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Indicate the decision of the check.
     * If no check errors are present, the service should process the operation.
     * Otherwise the service should use the list of errors to determine the
     * appropriate action.
     * 
* * repeated .google.api.servicecontrol.v1.CheckError check_errors = 2; */ public Builder addCheckErrors(com.google.api.servicecontrol.v1.CheckError value) { if (checkErrorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCheckErrorsIsMutable(); checkErrors_.add(value); onChanged(); } else { checkErrorsBuilder_.addMessage(value); } return this; } /** *
     * Indicate the decision of the check.
     * If no check errors are present, the service should process the operation.
     * Otherwise the service should use the list of errors to determine the
     * appropriate action.
     * 
* * repeated .google.api.servicecontrol.v1.CheckError check_errors = 2; */ public Builder addCheckErrors( int index, com.google.api.servicecontrol.v1.CheckError value) { if (checkErrorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCheckErrorsIsMutable(); checkErrors_.add(index, value); onChanged(); } else { checkErrorsBuilder_.addMessage(index, value); } return this; } /** *
     * Indicate the decision of the check.
     * If no check errors are present, the service should process the operation.
     * Otherwise the service should use the list of errors to determine the
     * appropriate action.
     * 
* * repeated .google.api.servicecontrol.v1.CheckError check_errors = 2; */ public Builder addCheckErrors( com.google.api.servicecontrol.v1.CheckError.Builder builderForValue) { if (checkErrorsBuilder_ == null) { ensureCheckErrorsIsMutable(); checkErrors_.add(builderForValue.build()); onChanged(); } else { checkErrorsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Indicate the decision of the check.
     * If no check errors are present, the service should process the operation.
     * Otherwise the service should use the list of errors to determine the
     * appropriate action.
     * 
* * repeated .google.api.servicecontrol.v1.CheckError check_errors = 2; */ public Builder addCheckErrors( int index, com.google.api.servicecontrol.v1.CheckError.Builder builderForValue) { if (checkErrorsBuilder_ == null) { ensureCheckErrorsIsMutable(); checkErrors_.add(index, builderForValue.build()); onChanged(); } else { checkErrorsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Indicate the decision of the check.
     * If no check errors are present, the service should process the operation.
     * Otherwise the service should use the list of errors to determine the
     * appropriate action.
     * 
* * repeated .google.api.servicecontrol.v1.CheckError check_errors = 2; */ public Builder addAllCheckErrors( java.lang.Iterable values) { if (checkErrorsBuilder_ == null) { ensureCheckErrorsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, checkErrors_); onChanged(); } else { checkErrorsBuilder_.addAllMessages(values); } return this; } /** *
     * Indicate the decision of the check.
     * If no check errors are present, the service should process the operation.
     * Otherwise the service should use the list of errors to determine the
     * appropriate action.
     * 
* * repeated .google.api.servicecontrol.v1.CheckError check_errors = 2; */ public Builder clearCheckErrors() { if (checkErrorsBuilder_ == null) { checkErrors_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { checkErrorsBuilder_.clear(); } return this; } /** *
     * Indicate the decision of the check.
     * If no check errors are present, the service should process the operation.
     * Otherwise the service should use the list of errors to determine the
     * appropriate action.
     * 
* * repeated .google.api.servicecontrol.v1.CheckError check_errors = 2; */ public Builder removeCheckErrors(int index) { if (checkErrorsBuilder_ == null) { ensureCheckErrorsIsMutable(); checkErrors_.remove(index); onChanged(); } else { checkErrorsBuilder_.remove(index); } return this; } /** *
     * Indicate the decision of the check.
     * If no check errors are present, the service should process the operation.
     * Otherwise the service should use the list of errors to determine the
     * appropriate action.
     * 
* * repeated .google.api.servicecontrol.v1.CheckError check_errors = 2; */ public com.google.api.servicecontrol.v1.CheckError.Builder getCheckErrorsBuilder( int index) { return getCheckErrorsFieldBuilder().getBuilder(index); } /** *
     * Indicate the decision of the check.
     * If no check errors are present, the service should process the operation.
     * Otherwise the service should use the list of errors to determine the
     * appropriate action.
     * 
* * repeated .google.api.servicecontrol.v1.CheckError check_errors = 2; */ public com.google.api.servicecontrol.v1.CheckErrorOrBuilder getCheckErrorsOrBuilder( int index) { if (checkErrorsBuilder_ == null) { return checkErrors_.get(index); } else { return checkErrorsBuilder_.getMessageOrBuilder(index); } } /** *
     * Indicate the decision of the check.
     * If no check errors are present, the service should process the operation.
     * Otherwise the service should use the list of errors to determine the
     * appropriate action.
     * 
* * repeated .google.api.servicecontrol.v1.CheckError check_errors = 2; */ public java.util.List getCheckErrorsOrBuilderList() { if (checkErrorsBuilder_ != null) { return checkErrorsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(checkErrors_); } } /** *
     * Indicate the decision of the check.
     * If no check errors are present, the service should process the operation.
     * Otherwise the service should use the list of errors to determine the
     * appropriate action.
     * 
* * repeated .google.api.servicecontrol.v1.CheckError check_errors = 2; */ public com.google.api.servicecontrol.v1.CheckError.Builder addCheckErrorsBuilder() { return getCheckErrorsFieldBuilder().addBuilder( com.google.api.servicecontrol.v1.CheckError.getDefaultInstance()); } /** *
     * Indicate the decision of the check.
     * If no check errors are present, the service should process the operation.
     * Otherwise the service should use the list of errors to determine the
     * appropriate action.
     * 
* * repeated .google.api.servicecontrol.v1.CheckError check_errors = 2; */ public com.google.api.servicecontrol.v1.CheckError.Builder addCheckErrorsBuilder( int index) { return getCheckErrorsFieldBuilder().addBuilder( index, com.google.api.servicecontrol.v1.CheckError.getDefaultInstance()); } /** *
     * Indicate the decision of the check.
     * If no check errors are present, the service should process the operation.
     * Otherwise the service should use the list of errors to determine the
     * appropriate action.
     * 
* * repeated .google.api.servicecontrol.v1.CheckError check_errors = 2; */ public java.util.List getCheckErrorsBuilderList() { return getCheckErrorsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.api.servicecontrol.v1.CheckError, com.google.api.servicecontrol.v1.CheckError.Builder, com.google.api.servicecontrol.v1.CheckErrorOrBuilder> getCheckErrorsFieldBuilder() { if (checkErrorsBuilder_ == null) { checkErrorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.api.servicecontrol.v1.CheckError, com.google.api.servicecontrol.v1.CheckError.Builder, com.google.api.servicecontrol.v1.CheckErrorOrBuilder>( checkErrors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); checkErrors_ = null; } return checkErrorsBuilder_; } private java.lang.Object serviceConfigId_ = ""; /** *
     * The actual config id used to process the request.
     * 
* * string service_config_id = 5; */ public java.lang.String getServiceConfigId() { java.lang.Object ref = serviceConfigId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceConfigId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The actual config id used to process the request.
     * 
* * string service_config_id = 5; */ public com.google.protobuf.ByteString getServiceConfigIdBytes() { java.lang.Object ref = serviceConfigId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); serviceConfigId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The actual config id used to process the request.
     * 
* * string service_config_id = 5; */ public Builder setServiceConfigId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } serviceConfigId_ = value; onChanged(); return this; } /** *
     * The actual config id used to process the request.
     * 
* * string service_config_id = 5; */ public Builder clearServiceConfigId() { serviceConfigId_ = getDefaultInstance().getServiceConfigId(); onChanged(); return this; } /** *
     * The actual config id used to process the request.
     * 
* * string service_config_id = 5; */ public Builder setServiceConfigIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); serviceConfigId_ = value; onChanged(); return this; } private com.google.api.servicecontrol.v1.CheckResponse.CheckInfo checkInfo_; private com.google.protobuf.SingleFieldBuilderV3< com.google.api.servicecontrol.v1.CheckResponse.CheckInfo, com.google.api.servicecontrol.v1.CheckResponse.CheckInfo.Builder, com.google.api.servicecontrol.v1.CheckResponse.CheckInfoOrBuilder> checkInfoBuilder_; /** *
     * Feedback data returned from the server during processing a Check request.
     * 
* * .google.api.servicecontrol.v1.CheckResponse.CheckInfo check_info = 6; */ public boolean hasCheckInfo() { return checkInfoBuilder_ != null || checkInfo_ != null; } /** *
     * Feedback data returned from the server during processing a Check request.
     * 
* * .google.api.servicecontrol.v1.CheckResponse.CheckInfo check_info = 6; */ public com.google.api.servicecontrol.v1.CheckResponse.CheckInfo getCheckInfo() { if (checkInfoBuilder_ == null) { return checkInfo_ == null ? com.google.api.servicecontrol.v1.CheckResponse.CheckInfo.getDefaultInstance() : checkInfo_; } else { return checkInfoBuilder_.getMessage(); } } /** *
     * Feedback data returned from the server during processing a Check request.
     * 
* * .google.api.servicecontrol.v1.CheckResponse.CheckInfo check_info = 6; */ public Builder setCheckInfo(com.google.api.servicecontrol.v1.CheckResponse.CheckInfo value) { if (checkInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } checkInfo_ = value; onChanged(); } else { checkInfoBuilder_.setMessage(value); } return this; } /** *
     * Feedback data returned from the server during processing a Check request.
     * 
* * .google.api.servicecontrol.v1.CheckResponse.CheckInfo check_info = 6; */ public Builder setCheckInfo( com.google.api.servicecontrol.v1.CheckResponse.CheckInfo.Builder builderForValue) { if (checkInfoBuilder_ == null) { checkInfo_ = builderForValue.build(); onChanged(); } else { checkInfoBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Feedback data returned from the server during processing a Check request.
     * 
* * .google.api.servicecontrol.v1.CheckResponse.CheckInfo check_info = 6; */ public Builder mergeCheckInfo(com.google.api.servicecontrol.v1.CheckResponse.CheckInfo value) { if (checkInfoBuilder_ == null) { if (checkInfo_ != null) { checkInfo_ = com.google.api.servicecontrol.v1.CheckResponse.CheckInfo.newBuilder(checkInfo_).mergeFrom(value).buildPartial(); } else { checkInfo_ = value; } onChanged(); } else { checkInfoBuilder_.mergeFrom(value); } return this; } /** *
     * Feedback data returned from the server during processing a Check request.
     * 
* * .google.api.servicecontrol.v1.CheckResponse.CheckInfo check_info = 6; */ public Builder clearCheckInfo() { if (checkInfoBuilder_ == null) { checkInfo_ = null; onChanged(); } else { checkInfo_ = null; checkInfoBuilder_ = null; } return this; } /** *
     * Feedback data returned from the server during processing a Check request.
     * 
* * .google.api.servicecontrol.v1.CheckResponse.CheckInfo check_info = 6; */ public com.google.api.servicecontrol.v1.CheckResponse.CheckInfo.Builder getCheckInfoBuilder() { onChanged(); return getCheckInfoFieldBuilder().getBuilder(); } /** *
     * Feedback data returned from the server during processing a Check request.
     * 
* * .google.api.servicecontrol.v1.CheckResponse.CheckInfo check_info = 6; */ public com.google.api.servicecontrol.v1.CheckResponse.CheckInfoOrBuilder getCheckInfoOrBuilder() { if (checkInfoBuilder_ != null) { return checkInfoBuilder_.getMessageOrBuilder(); } else { return checkInfo_ == null ? com.google.api.servicecontrol.v1.CheckResponse.CheckInfo.getDefaultInstance() : checkInfo_; } } /** *
     * Feedback data returned from the server during processing a Check request.
     * 
* * .google.api.servicecontrol.v1.CheckResponse.CheckInfo check_info = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.api.servicecontrol.v1.CheckResponse.CheckInfo, com.google.api.servicecontrol.v1.CheckResponse.CheckInfo.Builder, com.google.api.servicecontrol.v1.CheckResponse.CheckInfoOrBuilder> getCheckInfoFieldBuilder() { if (checkInfoBuilder_ == null) { checkInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.api.servicecontrol.v1.CheckResponse.CheckInfo, com.google.api.servicecontrol.v1.CheckResponse.CheckInfo.Builder, com.google.api.servicecontrol.v1.CheckResponse.CheckInfoOrBuilder>( getCheckInfo(), getParentForChildren(), isClean()); checkInfo_ = null; } return checkInfoBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.api.servicecontrol.v1.CheckResponse) } // @@protoc_insertion_point(class_scope:google.api.servicecontrol.v1.CheckResponse) private static final com.google.api.servicecontrol.v1.CheckResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.api.servicecontrol.v1.CheckResponse(); } public static com.google.api.servicecontrol.v1.CheckResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CheckResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CheckResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.api.servicecontrol.v1.CheckResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy