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

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

The newest version!
/*
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/api/servicecontrol/v1/service_controller.proto

// Protobuf Java Version: 3.25.5
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_ = ""; serviceRolloutId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CheckResponse(); } 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 { /** * * *
     * 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; * * @return A list containing the unusedArguments. */ java.util.List 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; * * @return The count of unusedArguments. */ 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; * * @param index The index of the element to return. * @return The unusedArguments at the given index. */ java.lang.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; * * @param index The index of the value to return. * @return The bytes of the unusedArguments at the given index. */ com.google.protobuf.ByteString getUnusedArgumentsBytes(int index); /** * * *
     * Consumer info of this check.
     * 
* * .google.api.servicecontrol.v1.CheckResponse.ConsumerInfo consumer_info = 2; * * @return Whether the consumerInfo field is set. */ boolean hasConsumerInfo(); /** * * *
     * Consumer info of this check.
     * 
* * .google.api.servicecontrol.v1.CheckResponse.ConsumerInfo consumer_info = 2; * * @return The consumerInfo. */ 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(); /** * * *
     * 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; * * @return The apiKeyUid. */ java.lang.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; * * @return The bytes for apiKeyUid. */ com.google.protobuf.ByteString getApiKeyUidBytes(); } /** * * *
   * Contains additional information about the check operation.
   * 
* * 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() { unusedArguments_ = com.google.protobuf.LazyStringArrayList.emptyList(); apiKeyUid_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CheckInfo(); } 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); } private int bitField0_; public static final int UNUSED_ARGUMENTS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList unusedArguments_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * * *
     * 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; * * @return A list containing the unusedArguments. */ public com.google.protobuf.ProtocolStringList getUnusedArgumentsList() { return unusedArguments_; } /** * * *
     * 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; * * @return The count of unusedArguments. */ public int getUnusedArgumentsCount() { return unusedArguments_.size(); } /** * * *
     * 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; * * @param index The index of the element to return. * @return The unusedArguments at the given index. */ public java.lang.String getUnusedArguments(int index) { return unusedArguments_.get(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; * * @param index The index of the value to return. * @return The bytes of the unusedArguments at the given index. */ public com.google.protobuf.ByteString getUnusedArgumentsBytes(int index) { return unusedArguments_.getByteString(index); } 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; * * @return Whether the consumerInfo field is set. */ @java.lang.Override public boolean hasConsumerInfo() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * Consumer info of this check.
     * 
* * .google.api.servicecontrol.v1.CheckResponse.ConsumerInfo consumer_info = 2; * * @return The consumerInfo. */ @java.lang.Override 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; */ @java.lang.Override public com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfoOrBuilder getConsumerInfoOrBuilder() { return consumerInfo_ == null ? com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.getDefaultInstance() : consumerInfo_; } public static final int API_KEY_UID_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object apiKeyUid_ = ""; /** * * *
     * 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; * * @return The apiKeyUid. */ @java.lang.Override public java.lang.String getApiKeyUid() { java.lang.Object ref = apiKeyUid_; 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(); apiKeyUid_ = s; return s; } } /** * * *
     * 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; * * @return The bytes for apiKeyUid. */ @java.lang.Override public com.google.protobuf.ByteString getApiKeyUidBytes() { java.lang.Object ref = apiKeyUid_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiKeyUid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 { for (int i = 0; i < unusedArguments_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, unusedArguments_.getRaw(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getConsumerInfo()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiKeyUid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, apiKeyUid_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < unusedArguments_.size(); i++) { dataSize += computeStringSizeNoTag(unusedArguments_.getRaw(i)); } size += dataSize; size += 1 * getUnusedArgumentsList().size(); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConsumerInfo()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiKeyUid_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, apiKeyUid_); } size += getUnknownFields().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 (!getUnusedArgumentsList().equals(other.getUnusedArgumentsList())) return false; if (hasConsumerInfo() != other.hasConsumerInfo()) return false; if (hasConsumerInfo()) { if (!getConsumerInfo().equals(other.getConsumerInfo())) return false; } if (!getApiKeyUid().equals(other.getApiKeyUid())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getUnusedArgumentsCount() > 0) { hash = (37 * hash) + UNUSED_ARGUMENTS_FIELD_NUMBER; hash = (53 * hash) + getUnusedArgumentsList().hashCode(); } if (hasConsumerInfo()) { hash = (37 * hash) + CONSUMER_INFO_FIELD_NUMBER; hash = (53 * hash) + getConsumerInfo().hashCode(); } hash = (37 * hash) + API_KEY_UID_FIELD_NUMBER; hash = (53 * hash) + getApiKeyUid().hashCode(); hash = (29 * hash) + getUnknownFields().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; } /** * * *
     * Contains additional information about the check operation.
     * 
* * 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) { getConsumerInfoFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; unusedArguments_ = com.google.protobuf.LazyStringArrayList.emptyList(); consumerInfo_ = null; if (consumerInfoBuilder_ != null) { consumerInfoBuilder_.dispose(); consumerInfoBuilder_ = null; } apiKeyUid_ = ""; 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 (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.api.servicecontrol.v1.CheckResponse.CheckInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { unusedArguments_.makeImmutable(); result.unusedArguments_ = unusedArguments_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.consumerInfo_ = consumerInfoBuilder_ == null ? consumerInfo_ : consumerInfoBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.apiKeyUid_ = apiKeyUid_; } result.bitField0_ |= to_bitField0_; } @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.unusedArguments_.isEmpty()) { if (unusedArguments_.isEmpty()) { unusedArguments_ = other.unusedArguments_; bitField0_ |= 0x00000001; } else { ensureUnusedArgumentsIsMutable(); unusedArguments_.addAll(other.unusedArguments_); } onChanged(); } if (other.hasConsumerInfo()) { mergeConsumerInfo(other.getConsumerInfo()); } if (!other.getApiKeyUid().isEmpty()) { apiKeyUid_ = other.apiKeyUid_; bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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(); ensureUnusedArgumentsIsMutable(); unusedArguments_.add(s); break; } // case 10 case 18: { input.readMessage(getConsumerInfoFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 42: { apiKeyUid_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.LazyStringArrayList unusedArguments_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureUnusedArgumentsIsMutable() { if (!unusedArguments_.isModifiable()) { unusedArguments_ = new com.google.protobuf.LazyStringArrayList(unusedArguments_); } bitField0_ |= 0x00000001; } /** * * *
       * 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; * * @return A list containing the unusedArguments. */ public com.google.protobuf.ProtocolStringList getUnusedArgumentsList() { unusedArguments_.makeImmutable(); return unusedArguments_; } /** * * *
       * 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; * * @return The count of unusedArguments. */ public int getUnusedArgumentsCount() { return unusedArguments_.size(); } /** * * *
       * 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; * * @param index The index of the element to return. * @return The unusedArguments at the given index. */ public java.lang.String getUnusedArguments(int index) { return unusedArguments_.get(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; * * @param index The index of the value to return. * @return The bytes of the unusedArguments at the given index. */ public com.google.protobuf.ByteString getUnusedArgumentsBytes(int index) { return unusedArguments_.getByteString(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; * * @param index The index to set the value at. * @param value The unusedArguments to set. * @return This builder for chaining. */ public Builder setUnusedArguments(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureUnusedArgumentsIsMutable(); unusedArguments_.set(index, value); bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * 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; * * @param value The unusedArguments to add. * @return This builder for chaining. */ public Builder addUnusedArguments(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureUnusedArgumentsIsMutable(); unusedArguments_.add(value); bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * 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; * * @param values The unusedArguments to add. * @return This builder for chaining. */ public Builder addAllUnusedArguments(java.lang.Iterable values) { ensureUnusedArgumentsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unusedArguments_); bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * 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; * * @return This builder for chaining. */ public Builder clearUnusedArguments() { unusedArguments_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); ; onChanged(); return this; } /** * * *
       * 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; * * @param value The bytes of the unusedArguments to add. * @return This builder for chaining. */ public Builder addUnusedArgumentsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureUnusedArgumentsIsMutable(); unusedArguments_.add(value); bitField0_ |= 0x00000001; onChanged(); 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; * * @return Whether the consumerInfo field is set. */ public boolean hasConsumerInfo() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
       * Consumer info of this check.
       * 
* * .google.api.servicecontrol.v1.CheckResponse.ConsumerInfo consumer_info = 2; * * @return The consumerInfo. */ 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; } else { consumerInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); 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(); } else { consumerInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); 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 (((bitField0_ & 0x00000002) != 0) && consumerInfo_ != null && consumerInfo_ != com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo .getDefaultInstance()) { getConsumerInfoBuilder().mergeFrom(value); } else { consumerInfo_ = value; } } else { consumerInfoBuilder_.mergeFrom(value); } if (consumerInfo_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * * *
       * Consumer info of this check.
       * 
* * .google.api.servicecontrol.v1.CheckResponse.ConsumerInfo consumer_info = 2; */ public Builder clearConsumerInfo() { bitField0_ = (bitField0_ & ~0x00000002); consumerInfo_ = null; if (consumerInfoBuilder_ != null) { consumerInfoBuilder_.dispose(); consumerInfoBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000002; 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_; } private java.lang.Object apiKeyUid_ = ""; /** * * *
       * 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; * * @return The apiKeyUid. */ public java.lang.String getApiKeyUid() { java.lang.Object ref = apiKeyUid_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiKeyUid_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * 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; * * @return The bytes for apiKeyUid. */ public com.google.protobuf.ByteString getApiKeyUidBytes() { java.lang.Object ref = apiKeyUid_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiKeyUid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * 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; * * @param value The apiKeyUid to set. * @return This builder for chaining. */ public Builder setApiKeyUid(java.lang.String value) { if (value == null) { throw new NullPointerException(); } apiKeyUid_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
       * 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; * * @return This builder for chaining. */ public Builder clearApiKeyUid() { apiKeyUid_ = getDefaultInstance().getApiKeyUid(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
       * 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; * * @param value The bytes for apiKeyUid to set. * @return This builder for chaining. */ public Builder setApiKeyUidBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); apiKeyUid_ = value; bitField0_ |= 0x00000004; 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.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.
     *
     * NOTE: This field is deprecated after we support flexible consumer
     * id. New code should not depend on this field anymore.
     * 
* * int64 project_number = 1; * * @return The projectNumber. */ long getProjectNumber(); /** * * *
     * The type of the consumer which should have been defined in
     * [Google Resource Manager](https://cloud.google.com/resource-manager/).
     * 
* * .google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType type = 2; * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** * * *
     * The type of the consumer which should have been defined in
     * [Google Resource Manager](https://cloud.google.com/resource-manager/).
     * 
* * .google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType type = 2; * * @return The type. */ com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType getType(); /** * * *
     * The consumer identity number, can be Google cloud project number, folder
     * number or organization number e.g. 1234567890. A value of 0 indicates no
     * consumer number is found.
     * 
* * int64 consumer_number = 3; * * @return The consumerNumber. */ long getConsumerNumber(); } /** * * *
   * `ConsumerInfo` provides information about the consumer.
   * 
* * 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() { type_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ConsumerInfo(); } 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); } /** * * *
     * The type of the consumer as defined in
     * [Google Resource Manager](https://cloud.google.com/resource-manager/).
     * 
* * Protobuf enum {@code google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType} */ public enum ConsumerType implements com.google.protobuf.ProtocolMessageEnum { /** * * *
       * This is never used.
       * 
* * CONSUMER_TYPE_UNSPECIFIED = 0; */ CONSUMER_TYPE_UNSPECIFIED(0), /** * * *
       * The consumer is a Google Cloud Project.
       * 
* * PROJECT = 1; */ PROJECT(1), /** * * *
       * The consumer is a Google Cloud Folder.
       * 
* * FOLDER = 2; */ FOLDER(2), /** * * *
       * The consumer is a Google Cloud Organization.
       * 
* * ORGANIZATION = 3; */ ORGANIZATION(3), /** * * *
       * Service-specific resource container which is defined by the service
       * producer to offer their users the ability to manage service control
       * functionalities at a finer level of granularity than the PROJECT.
       * 
* * SERVICE_SPECIFIC = 4; */ SERVICE_SPECIFIC(4), UNRECOGNIZED(-1), ; /** * * *
       * This is never used.
       * 
* * CONSUMER_TYPE_UNSPECIFIED = 0; */ public static final int CONSUMER_TYPE_UNSPECIFIED_VALUE = 0; /** * * *
       * The consumer is a Google Cloud Project.
       * 
* * PROJECT = 1; */ public static final int PROJECT_VALUE = 1; /** * * *
       * The consumer is a Google Cloud Folder.
       * 
* * FOLDER = 2; */ public static final int FOLDER_VALUE = 2; /** * * *
       * The consumer is a Google Cloud Organization.
       * 
* * ORGANIZATION = 3; */ public static final int ORGANIZATION_VALUE = 3; /** * * *
       * Service-specific resource container which is defined by the service
       * producer to offer their users the ability to manage service control
       * functionalities at a finer level of granularity than the PROJECT.
       * 
* * SERVICE_SPECIFIC = 4; */ public static final int SERVICE_SPECIFIC_VALUE = 4; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ConsumerType valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static ConsumerType forNumber(int value) { switch (value) { case 0: return CONSUMER_TYPE_UNSPECIFIED; case 1: return PROJECT; case 2: return FOLDER; case 3: return ORGANIZATION; case 4: return SERVICE_SPECIFIC; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public ConsumerType findValueByNumber(int number) { return ConsumerType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.getDescriptor() .getEnumTypes() .get(0); } private static final ConsumerType[] VALUES = values(); public static ConsumerType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private ConsumerType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType) } public static final int PROJECT_NUMBER_FIELD_NUMBER = 1; private long projectNumber_ = 0L; /** * * *
     * The Google cloud project number, e.g. 1234567890. A value of 0 indicates
     * no project number is found.
     *
     * NOTE: This field is deprecated after we support flexible consumer
     * id. New code should not depend on this field anymore.
     * 
* * int64 project_number = 1; * * @return The projectNumber. */ @java.lang.Override public long getProjectNumber() { return projectNumber_; } public static final int TYPE_FIELD_NUMBER = 2; private int type_ = 0; /** * * *
     * The type of the consumer which should have been defined in
     * [Google Resource Manager](https://cloud.google.com/resource-manager/).
     * 
* * .google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType type = 2; * * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * * *
     * The type of the consumer which should have been defined in
     * [Google Resource Manager](https://cloud.google.com/resource-manager/).
     * 
* * .google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType type = 2; * * @return The type. */ @java.lang.Override public com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType getType() { com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType result = com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType.forNumber(type_); return result == null ? com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType.UNRECOGNIZED : result; } public static final int CONSUMER_NUMBER_FIELD_NUMBER = 3; private long consumerNumber_ = 0L; /** * * *
     * The consumer identity number, can be Google cloud project number, folder
     * number or organization number e.g. 1234567890. A value of 0 indicates no
     * consumer number is found.
     * 
* * int64 consumer_number = 3; * * @return The consumerNumber. */ @java.lang.Override public long getConsumerNumber() { return consumerNumber_; } 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_); } if (type_ != com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType .CONSUMER_TYPE_UNSPECIFIED .getNumber()) { output.writeEnum(2, type_); } if (consumerNumber_ != 0L) { output.writeInt64(3, consumerNumber_); } getUnknownFields().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_); } if (type_ != com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType .CONSUMER_TYPE_UNSPECIFIED .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); } if (consumerNumber_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, consumerNumber_); } size += getUnknownFields().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 (type_ != other.type_) return false; if (getConsumerNumber() != other.getConsumerNumber()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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 = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + CONSUMER_NUMBER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getConsumerNumber()); hash = (29 * hash) + getUnknownFields().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.
     * 
* * 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() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; projectNumber_ = 0L; type_ = 0; consumerNumber_ = 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); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0( com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.projectNumber_ = projectNumber_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.type_ = type_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.consumerNumber_ = consumerNumber_; } } @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()); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.getConsumerNumber() != 0L) { setConsumerNumber(other.getConsumerNumber()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { projectNumber_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { type_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { consumerNumber_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long projectNumber_; /** * * *
       * The Google cloud project number, e.g. 1234567890. A value of 0 indicates
       * no project number is found.
       *
       * NOTE: This field is deprecated after we support flexible consumer
       * id. New code should not depend on this field anymore.
       * 
* * int64 project_number = 1; * * @return The projectNumber. */ @java.lang.Override public long getProjectNumber() { return projectNumber_; } /** * * *
       * The Google cloud project number, e.g. 1234567890. A value of 0 indicates
       * no project number is found.
       *
       * NOTE: This field is deprecated after we support flexible consumer
       * id. New code should not depend on this field anymore.
       * 
* * int64 project_number = 1; * * @param value The projectNumber to set. * @return This builder for chaining. */ public Builder setProjectNumber(long value) { projectNumber_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * The Google cloud project number, e.g. 1234567890. A value of 0 indicates
       * no project number is found.
       *
       * NOTE: This field is deprecated after we support flexible consumer
       * id. New code should not depend on this field anymore.
       * 
* * int64 project_number = 1; * * @return This builder for chaining. */ public Builder clearProjectNumber() { bitField0_ = (bitField0_ & ~0x00000001); projectNumber_ = 0L; onChanged(); return this; } private int type_ = 0; /** * * *
       * The type of the consumer which should have been defined in
       * [Google Resource Manager](https://cloud.google.com/resource-manager/).
       * 
* * .google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType type = 2; * * * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * * *
       * The type of the consumer which should have been defined in
       * [Google Resource Manager](https://cloud.google.com/resource-manager/).
       * 
* * .google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType type = 2; * * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { type_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * The type of the consumer which should have been defined in
       * [Google Resource Manager](https://cloud.google.com/resource-manager/).
       * 
* * .google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType type = 2; * * * @return The type. */ @java.lang.Override public com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType getType() { com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType result = com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType.forNumber( type_); return result == null ? com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType.UNRECOGNIZED : result; } /** * * *
       * The type of the consumer which should have been defined in
       * [Google Resource Manager](https://cloud.google.com/resource-manager/).
       * 
* * .google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType type = 2; * * * @param value The type to set. * @return This builder for chaining. */ public Builder setType( com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; type_ = value.getNumber(); onChanged(); return this; } /** * * *
       * The type of the consumer which should have been defined in
       * [Google Resource Manager](https://cloud.google.com/resource-manager/).
       * 
* * .google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType type = 2; * * * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000002); type_ = 0; onChanged(); return this; } private long consumerNumber_; /** * * *
       * The consumer identity number, can be Google cloud project number, folder
       * number or organization number e.g. 1234567890. A value of 0 indicates no
       * consumer number is found.
       * 
* * int64 consumer_number = 3; * * @return The consumerNumber. */ @java.lang.Override public long getConsumerNumber() { return consumerNumber_; } /** * * *
       * The consumer identity number, can be Google cloud project number, folder
       * number or organization number e.g. 1234567890. A value of 0 indicates no
       * consumer number is found.
       * 
* * int64 consumer_number = 3; * * @param value The consumerNumber to set. * @return This builder for chaining. */ public Builder setConsumerNumber(long value) { consumerNumber_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
       * The consumer identity number, can be Google cloud project number, folder
       * number or organization number e.g. 1234567890. A value of 0 indicates no
       * consumer number is found.
       * 
* * int64 consumer_number = 3; * * @return This builder for chaining. */ public Builder clearConsumerNumber() { bitField0_ = (bitField0_ & ~0x00000004); consumerNumber_ = 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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; } } private int bitField0_; public static final int OPERATION_ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object operationId_ = ""; /** * * *
   * The same operation_id value used in the
   * [CheckRequest][google.api.servicecontrol.v1.CheckRequest]. Used for logging
   * and diagnostics purposes.
   * 
* * string operation_id = 1; * * @return The operationId. */ @java.lang.Override 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][google.api.servicecontrol.v1.CheckRequest]. Used for logging
   * and diagnostics purposes.
   * 
* * string operation_id = 1; * * @return The bytes for operationId. */ @java.lang.Override 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; @SuppressWarnings("serial") 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; */ @java.lang.Override 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; */ @java.lang.Override 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; */ @java.lang.Override 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; */ @java.lang.Override 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; */ @java.lang.Override public com.google.api.servicecontrol.v1.CheckErrorOrBuilder getCheckErrorsOrBuilder(int index) { return checkErrors_.get(index); } public static final int SERVICE_CONFIG_ID_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object serviceConfigId_ = ""; /** * * *
   * The actual config id used to process the request.
   * 
* * string service_config_id = 5; * * @return The serviceConfigId. */ @java.lang.Override 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; * * @return The bytes for serviceConfigId. */ @java.lang.Override 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 SERVICE_ROLLOUT_ID_FIELD_NUMBER = 11; @SuppressWarnings("serial") private volatile java.lang.Object serviceRolloutId_ = ""; /** * * *
   * The current service rollout id used to process the request.
   * 
* * string service_rollout_id = 11; * * @return The serviceRolloutId. */ @java.lang.Override public java.lang.String getServiceRolloutId() { java.lang.Object ref = serviceRolloutId_; 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(); serviceRolloutId_ = s; return s; } } /** * * *
   * The current service rollout id used to process the request.
   * 
* * string service_rollout_id = 11; * * @return The bytes for serviceRolloutId. */ @java.lang.Override public com.google.protobuf.ByteString getServiceRolloutIdBytes() { java.lang.Object ref = serviceRolloutId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceRolloutId_ = 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; * * @return Whether the checkInfo field is set. */ @java.lang.Override public boolean hasCheckInfo() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * Feedback data returned from the server during processing a Check request.
   * 
* * .google.api.servicecontrol.v1.CheckResponse.CheckInfo check_info = 6; * * @return The checkInfo. */ @java.lang.Override 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; */ @java.lang.Override public com.google.api.servicecontrol.v1.CheckResponse.CheckInfoOrBuilder getCheckInfoOrBuilder() { return checkInfo_ == null ? com.google.api.servicecontrol.v1.CheckResponse.CheckInfo.getDefaultInstance() : checkInfo_; } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, operationId_); } for (int i = 0; i < checkErrors_.size(); i++) { output.writeMessage(2, checkErrors_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceConfigId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, serviceConfigId_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(6, getCheckInfo()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceRolloutId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, serviceRolloutId_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationId_)) { 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceConfigId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, serviceConfigId_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCheckInfo()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceRolloutId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, serviceRolloutId_); } size += getUnknownFields().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 (!getServiceRolloutId().equals(other.getServiceRolloutId())) return false; if (hasCheckInfo() != other.hasCheckInfo()) return false; if (hasCheckInfo()) { if (!getCheckInfo().equals(other.getCheckInfo())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) 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(); hash = (37 * hash) + SERVICE_ROLLOUT_ID_FIELD_NUMBER; hash = (53 * hash) + getServiceRolloutId().hashCode(); if (hasCheckInfo()) { hash = (37 * hash) + CHECK_INFO_FIELD_NUMBER; hash = (53 * hash) + getCheckInfo().hashCode(); } hash = (29 * hash) + getUnknownFields().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(); getCheckInfoFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; operationId_ = ""; if (checkErrorsBuilder_ == null) { checkErrors_ = java.util.Collections.emptyList(); } else { checkErrors_ = null; checkErrorsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); serviceConfigId_ = ""; serviceRolloutId_ = ""; checkInfo_ = null; if (checkInfoBuilder_ != null) { checkInfoBuilder_.dispose(); 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); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.api.servicecontrol.v1.CheckResponse result) { if (checkErrorsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { checkErrors_ = java.util.Collections.unmodifiableList(checkErrors_); bitField0_ = (bitField0_ & ~0x00000002); } result.checkErrors_ = checkErrors_; } else { result.checkErrors_ = checkErrorsBuilder_.build(); } } private void buildPartial0(com.google.api.servicecontrol.v1.CheckResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.operationId_ = operationId_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.serviceConfigId_ = serviceConfigId_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.serviceRolloutId_ = serviceRolloutId_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000010) != 0)) { result.checkInfo_ = checkInfoBuilder_ == null ? checkInfo_ : checkInfoBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @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_; bitField0_ |= 0x00000001; onChanged(); } if (checkErrorsBuilder_ == null) { if (!other.checkErrors_.isEmpty()) { if (checkErrors_.isEmpty()) { checkErrors_ = other.checkErrors_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureCheckErrorsIsMutable(); checkErrors_.addAll(other.checkErrors_); } onChanged(); } } else { if (!other.checkErrors_.isEmpty()) { if (checkErrorsBuilder_.isEmpty()) { checkErrorsBuilder_.dispose(); checkErrorsBuilder_ = null; checkErrors_ = other.checkErrors_; bitField0_ = (bitField0_ & ~0x00000002); checkErrorsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCheckErrorsFieldBuilder() : null; } else { checkErrorsBuilder_.addAllMessages(other.checkErrors_); } } } if (!other.getServiceConfigId().isEmpty()) { serviceConfigId_ = other.serviceConfigId_; bitField0_ |= 0x00000004; onChanged(); } if (!other.getServiceRolloutId().isEmpty()) { serviceRolloutId_ = other.serviceRolloutId_; bitField0_ |= 0x00000008; onChanged(); } if (other.hasCheckInfo()) { mergeCheckInfo(other.getCheckInfo()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { operationId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { com.google.api.servicecontrol.v1.CheckError m = input.readMessage( com.google.api.servicecontrol.v1.CheckError.parser(), extensionRegistry); if (checkErrorsBuilder_ == null) { ensureCheckErrorsIsMutable(); checkErrors_.add(m); } else { checkErrorsBuilder_.addMessage(m); } break; } // case 18 case 42: { serviceConfigId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 42 case 50: { input.readMessage(getCheckInfoFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 50 case 90: { serviceRolloutId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object operationId_ = ""; /** * * *
     * The same operation_id value used in the
     * [CheckRequest][google.api.servicecontrol.v1.CheckRequest]. Used for logging
     * and diagnostics purposes.
     * 
* * string operation_id = 1; * * @return The operationId. */ 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][google.api.servicecontrol.v1.CheckRequest]. Used for logging
     * and diagnostics purposes.
     * 
* * string operation_id = 1; * * @return The bytes for operationId. */ 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][google.api.servicecontrol.v1.CheckRequest]. Used for logging
     * and diagnostics purposes.
     * 
* * string operation_id = 1; * * @param value The operationId to set. * @return This builder for chaining. */ public Builder setOperationId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } operationId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * The same operation_id value used in the
     * [CheckRequest][google.api.servicecontrol.v1.CheckRequest]. Used for logging
     * and diagnostics purposes.
     * 
* * string operation_id = 1; * * @return This builder for chaining. */ public Builder clearOperationId() { operationId_ = getDefaultInstance().getOperationId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * The same operation_id value used in the
     * [CheckRequest][google.api.servicecontrol.v1.CheckRequest]. Used for logging
     * and diagnostics purposes.
     * 
* * string operation_id = 1; * * @param value The bytes for operationId to set. * @return This builder for chaining. */ public Builder setOperationIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); operationId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.util.List checkErrors_ = java.util.Collections.emptyList(); private void ensureCheckErrorsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { checkErrors_ = new java.util.ArrayList(checkErrors_); bitField0_ |= 0x00000002; } } 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_ & ~0x00000002); 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_ & 0x00000002) != 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; * * @return The serviceConfigId. */ 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; * * @return The bytes for serviceConfigId. */ 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; * * @param value The serviceConfigId to set. * @return This builder for chaining. */ public Builder setServiceConfigId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } serviceConfigId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * The actual config id used to process the request.
     * 
* * string service_config_id = 5; * * @return This builder for chaining. */ public Builder clearServiceConfigId() { serviceConfigId_ = getDefaultInstance().getServiceConfigId(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
     * The actual config id used to process the request.
     * 
* * string service_config_id = 5; * * @param value The bytes for serviceConfigId to set. * @return This builder for chaining. */ public Builder setServiceConfigIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); serviceConfigId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object serviceRolloutId_ = ""; /** * * *
     * The current service rollout id used to process the request.
     * 
* * string service_rollout_id = 11; * * @return The serviceRolloutId. */ public java.lang.String getServiceRolloutId() { java.lang.Object ref = serviceRolloutId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceRolloutId_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The current service rollout id used to process the request.
     * 
* * string service_rollout_id = 11; * * @return The bytes for serviceRolloutId. */ public com.google.protobuf.ByteString getServiceRolloutIdBytes() { java.lang.Object ref = serviceRolloutId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceRolloutId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The current service rollout id used to process the request.
     * 
* * string service_rollout_id = 11; * * @param value The serviceRolloutId to set. * @return This builder for chaining. */ public Builder setServiceRolloutId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } serviceRolloutId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * The current service rollout id used to process the request.
     * 
* * string service_rollout_id = 11; * * @return This builder for chaining. */ public Builder clearServiceRolloutId() { serviceRolloutId_ = getDefaultInstance().getServiceRolloutId(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * * *
     * The current service rollout id used to process the request.
     * 
* * string service_rollout_id = 11; * * @param value The bytes for serviceRolloutId to set. * @return This builder for chaining. */ public Builder setServiceRolloutIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); serviceRolloutId_ = value; bitField0_ |= 0x00000008; 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; * * @return Whether the checkInfo field is set. */ public boolean hasCheckInfo() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
     * Feedback data returned from the server during processing a Check request.
     * 
* * .google.api.servicecontrol.v1.CheckResponse.CheckInfo check_info = 6; * * @return The checkInfo. */ 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; } else { checkInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); 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(); } else { checkInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); 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 (((bitField0_ & 0x00000010) != 0) && checkInfo_ != null && checkInfo_ != com.google.api.servicecontrol.v1.CheckResponse.CheckInfo.getDefaultInstance()) { getCheckInfoBuilder().mergeFrom(value); } else { checkInfo_ = value; } } else { checkInfoBuilder_.mergeFrom(value); } if (checkInfo_ != null) { bitField0_ |= 0x00000010; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x00000010); checkInfo_ = null; if (checkInfoBuilder_ != null) { checkInfoBuilder_.dispose(); checkInfoBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000010; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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 - 2025 Weber Informatics LLC | Privacy Policy