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

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

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

package com.google.api.servicecontrol.v1;

/**
 * 
 * Response message for the Check method.
 * 
* * Protobuf type {@code google.api.servicecontrol.v1.CheckResponse} */ public final class CheckResponse extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.api.servicecontrol.v1.CheckResponse) CheckResponseOrBuilder { // Use CheckResponse.newBuilder() to construct. private CheckResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private CheckResponse() { operationId_ = ""; checkErrors_ = java.util.Collections.emptyList(); serviceConfigId_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private CheckResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); operationId_ = s; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { checkErrors_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } checkErrors_.add( input.readMessage(com.google.api.servicecontrol.v1.CheckError.parser(), extensionRegistry)); break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); serviceConfigId_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { checkErrors_ = java.util.Collections.unmodifiableList(checkErrors_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.servicecontrol.v1.ServiceControllerProto.internal_static_google_api_servicecontrol_v1_CheckResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.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); } private int bitField0_; public static final int OPERATION_ID_FIELD_NUMBER = 1; private volatile java.lang.Object operationId_; /** *
   * The same operation_id value used in the CheckRequest.
   * Used for logging and diagnostics purposes.
   * 
* * optional string operation_id = 1; */ public java.lang.String getOperationId() { java.lang.Object ref = operationId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operationId_ = s; return s; } } /** *
   * The same operation_id value used in the CheckRequest.
   * Used for logging and diagnostics purposes.
   * 
* * optional string operation_id = 1; */ public com.google.protobuf.ByteString getOperationIdBytes() { java.lang.Object ref = operationId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); operationId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CHECK_ERRORS_FIELD_NUMBER = 2; private java.util.List checkErrors_; /** *
   * Indicate the decision of the check.
   * If no check errors are present, the service should process the operation.
   * Otherwise the service should use the list of errors to determine the
   * appropriate action.
   * 
* * repeated .google.api.servicecontrol.v1.CheckError check_errors = 2; */ public java.util.List getCheckErrorsList() { return checkErrors_; } /** *
   * Indicate the decision of the check.
   * If no check errors are present, the service should process the operation.
   * Otherwise the service should use the list of errors to determine the
   * appropriate action.
   * 
* * repeated .google.api.servicecontrol.v1.CheckError check_errors = 2; */ public java.util.List getCheckErrorsOrBuilderList() { return checkErrors_; } /** *
   * Indicate the decision of the check.
   * If no check errors are present, the service should process the operation.
   * Otherwise the service should use the list of errors to determine the
   * appropriate action.
   * 
* * repeated .google.api.servicecontrol.v1.CheckError check_errors = 2; */ public int getCheckErrorsCount() { return checkErrors_.size(); } /** *
   * Indicate the decision of the check.
   * If no check errors are present, the service should process the operation.
   * Otherwise the service should use the list of errors to determine the
   * appropriate action.
   * 
* * repeated .google.api.servicecontrol.v1.CheckError check_errors = 2; */ public com.google.api.servicecontrol.v1.CheckError getCheckErrors(int index) { return checkErrors_.get(index); } /** *
   * Indicate the decision of the check.
   * If no check errors are present, the service should process the operation.
   * Otherwise the service should use the list of errors to determine the
   * appropriate action.
   * 
* * repeated .google.api.servicecontrol.v1.CheckError check_errors = 2; */ public com.google.api.servicecontrol.v1.CheckErrorOrBuilder getCheckErrorsOrBuilder( int index) { return checkErrors_.get(index); } public static final int SERVICE_CONFIG_ID_FIELD_NUMBER = 5; private volatile java.lang.Object serviceConfigId_; /** *
   * The actual config id used to process the request.
   * 
* * optional string service_config_id = 5; */ public java.lang.String getServiceConfigId() { java.lang.Object ref = serviceConfigId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceConfigId_ = s; return s; } } /** *
   * The actual config id used to process the request.
   * 
* * optional string service_config_id = 5; */ public com.google.protobuf.ByteString getServiceConfigIdBytes() { java.lang.Object ref = serviceConfigId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); serviceConfigId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getOperationIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessage.writeString(output, 1, operationId_); } for (int i = 0; i < checkErrors_.size(); i++) { output.writeMessage(2, checkErrors_.get(i)); } if (!getServiceConfigIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessage.writeString(output, 5, serviceConfigId_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getOperationIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, operationId_); } for (int i = 0; i < checkErrors_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, checkErrors_.get(i)); } if (!getServiceConfigIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessage.computeStringSize(5, serviceConfigId_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @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; boolean result = true; result = result && getOperationId() .equals(other.getOperationId()); result = result && getCheckErrorsList() .equals(other.getCheckErrorsList()); result = result && getServiceConfigId() .equals(other.getServiceConfigId()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().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 = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } 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.GeneratedMessage .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.GeneratedMessage .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.GeneratedMessage .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.GeneratedMessage .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.GeneratedMessage .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.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } 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); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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; } protected com.google.protobuf.GeneratedMessage.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.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getCheckErrorsFieldBuilder(); } } public Builder clear() { super.clear(); operationId_ = ""; if (checkErrorsBuilder_ == null) { checkErrors_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { checkErrorsBuilder_.clear(); } serviceConfigId_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.api.servicecontrol.v1.ServiceControllerProto.internal_static_google_api_servicecontrol_v1_CheckResponse_descriptor; } public com.google.api.servicecontrol.v1.CheckResponse getDefaultInstanceForType() { return com.google.api.servicecontrol.v1.CheckResponse.getDefaultInstance(); } public com.google.api.servicecontrol.v1.CheckResponse build() { com.google.api.servicecontrol.v1.CheckResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.api.servicecontrol.v1.CheckResponse buildPartial() { com.google.api.servicecontrol.v1.CheckResponse result = new com.google.api.servicecontrol.v1.CheckResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.operationId_ = operationId_; if (checkErrorsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { checkErrors_ = java.util.Collections.unmodifiableList(checkErrors_); bitField0_ = (bitField0_ & ~0x00000002); } result.checkErrors_ = checkErrors_; } else { result.checkErrors_ = checkErrorsBuilder_.build(); } result.serviceConfigId_ = serviceConfigId_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.servicecontrol.v1.CheckResponse) { return mergeFrom((com.google.api.servicecontrol.v1.CheckResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.api.servicecontrol.v1.CheckResponse other) { if (other == com.google.api.servicecontrol.v1.CheckResponse.getDefaultInstance()) return this; if (!other.getOperationId().isEmpty()) { operationId_ = other.operationId_; onChanged(); } if (checkErrorsBuilder_ == null) { if (!other.checkErrors_.isEmpty()) { if (checkErrors_.isEmpty()) { checkErrors_ = other.checkErrors_; bitField0_ = (bitField0_ & ~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.GeneratedMessage.alwaysUseFieldBuilders ? getCheckErrorsFieldBuilder() : null; } else { checkErrorsBuilder_.addAllMessages(other.checkErrors_); } } } if (!other.getServiceConfigId().isEmpty()) { serviceConfigId_ = other.serviceConfigId_; onChanged(); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.api.servicecontrol.v1.CheckResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.api.servicecontrol.v1.CheckResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object operationId_ = ""; /** *
     * The same operation_id value used in the CheckRequest.
     * Used for logging and diagnostics purposes.
     * 
* * optional string operation_id = 1; */ public java.lang.String getOperationId() { java.lang.Object ref = operationId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operationId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The same operation_id value used in the CheckRequest.
     * Used for logging and diagnostics purposes.
     * 
* * optional string operation_id = 1; */ public com.google.protobuf.ByteString getOperationIdBytes() { java.lang.Object ref = operationId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); operationId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The same operation_id value used in the CheckRequest.
     * Used for logging and diagnostics purposes.
     * 
* * optional string operation_id = 1; */ public Builder setOperationId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } operationId_ = value; onChanged(); return this; } /** *
     * The same operation_id value used in the CheckRequest.
     * Used for logging and diagnostics purposes.
     * 
* * optional string operation_id = 1; */ public Builder clearOperationId() { operationId_ = getDefaultInstance().getOperationId(); onChanged(); return this; } /** *
     * The same operation_id value used in the CheckRequest.
     * Used for logging and diagnostics purposes.
     * 
* * optional string operation_id = 1; */ public Builder setOperationIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); operationId_ = value; onChanged(); return this; } private java.util.List checkErrors_ = java.util.Collections.emptyList(); private void ensureCheckErrorsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { 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) == 0x00000002), getParentForChildren(), isClean()); checkErrors_ = null; } return checkErrorsBuilder_; } private java.lang.Object serviceConfigId_ = ""; /** *
     * The actual config id used to process the request.
     * 
* * optional string service_config_id = 5; */ public java.lang.String getServiceConfigId() { java.lang.Object ref = serviceConfigId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceConfigId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The actual config id used to process the request.
     * 
* * optional string service_config_id = 5; */ public com.google.protobuf.ByteString getServiceConfigIdBytes() { java.lang.Object ref = serviceConfigId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); serviceConfigId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The actual config id used to process the request.
     * 
* * optional string service_config_id = 5; */ public Builder setServiceConfigId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } serviceConfigId_ = value; onChanged(); return this; } /** *
     * The actual config id used to process the request.
     * 
* * optional string service_config_id = 5; */ public Builder clearServiceConfigId() { serviceConfigId_ = getDefaultInstance().getServiceConfigId(); onChanged(); return this; } /** *
     * The actual config id used to process the request.
     * 
* * optional string service_config_id = 5; */ public Builder setServiceConfigIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); serviceConfigId_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@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() { public CheckResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CheckResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.google.api.servicecontrol.v1.CheckResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy