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

io.provenance.metadata.v1.ContractSpecificationResponse Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: provenance/metadata/v1/query.proto

package io.provenance.metadata.v1;

/**
 * 
 * ContractSpecificationResponse is the response type for the Query/ContractSpecification RPC method.
 * 
* * Protobuf type {@code provenance.metadata.v1.ContractSpecificationResponse} */ public final class ContractSpecificationResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:provenance.metadata.v1.ContractSpecificationResponse) ContractSpecificationResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ContractSpecificationResponse.newBuilder() to construct. private ContractSpecificationResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ContractSpecificationResponse() { recordSpecifications_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ContractSpecificationResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { io.provenance.metadata.v1.ContractSpecificationWrapper.Builder subBuilder = null; if (contractSpecification_ != null) { subBuilder = contractSpecification_.toBuilder(); } contractSpecification_ = input.readMessage(io.provenance.metadata.v1.ContractSpecificationWrapper.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(contractSpecification_); contractSpecification_ = subBuilder.buildPartial(); } break; } case 26: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { recordSpecifications_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } recordSpecifications_.add( input.readMessage(io.provenance.metadata.v1.RecordSpecificationWrapper.parser(), extensionRegistry)); break; } case 786: { io.provenance.metadata.v1.ContractSpecificationRequest.Builder subBuilder = null; if (request_ != null) { subBuilder = request_.toBuilder(); } request_ = input.readMessage(io.provenance.metadata.v1.ContractSpecificationRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(request_); request_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { recordSpecifications_ = java.util.Collections.unmodifiableList(recordSpecifications_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.provenance.metadata.v1.QueryOuterClass.internal_static_provenance_metadata_v1_ContractSpecificationResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.provenance.metadata.v1.QueryOuterClass.internal_static_provenance_metadata_v1_ContractSpecificationResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.provenance.metadata.v1.ContractSpecificationResponse.class, io.provenance.metadata.v1.ContractSpecificationResponse.Builder.class); } private int bitField0_; public static final int CONTRACT_SPECIFICATION_FIELD_NUMBER = 1; private io.provenance.metadata.v1.ContractSpecificationWrapper contractSpecification_; /** *
   * contract_specification is the wrapped contract specification.
   * 
* * .provenance.metadata.v1.ContractSpecificationWrapper contract_specification = 1 [(.gogoproto.moretags) = "yaml:\"contract_specification\""]; */ public boolean hasContractSpecification() { return contractSpecification_ != null; } /** *
   * contract_specification is the wrapped contract specification.
   * 
* * .provenance.metadata.v1.ContractSpecificationWrapper contract_specification = 1 [(.gogoproto.moretags) = "yaml:\"contract_specification\""]; */ public io.provenance.metadata.v1.ContractSpecificationWrapper getContractSpecification() { return contractSpecification_ == null ? io.provenance.metadata.v1.ContractSpecificationWrapper.getDefaultInstance() : contractSpecification_; } /** *
   * contract_specification is the wrapped contract specification.
   * 
* * .provenance.metadata.v1.ContractSpecificationWrapper contract_specification = 1 [(.gogoproto.moretags) = "yaml:\"contract_specification\""]; */ public io.provenance.metadata.v1.ContractSpecificationWrapperOrBuilder getContractSpecificationOrBuilder() { return getContractSpecification(); } public static final int RECORD_SPECIFICATIONS_FIELD_NUMBER = 3; private java.util.List recordSpecifications_; /** *
   * record_specifications is any number or wrapped record specifications associated with this contract_specification
   * (if requested).
   * 
* * repeated .provenance.metadata.v1.RecordSpecificationWrapper record_specifications = 3 [(.gogoproto.moretags) = "yaml:\"record_specifications,omitempty\""]; */ public java.util.List getRecordSpecificationsList() { return recordSpecifications_; } /** *
   * record_specifications is any number or wrapped record specifications associated with this contract_specification
   * (if requested).
   * 
* * repeated .provenance.metadata.v1.RecordSpecificationWrapper record_specifications = 3 [(.gogoproto.moretags) = "yaml:\"record_specifications,omitempty\""]; */ public java.util.List getRecordSpecificationsOrBuilderList() { return recordSpecifications_; } /** *
   * record_specifications is any number or wrapped record specifications associated with this contract_specification
   * (if requested).
   * 
* * repeated .provenance.metadata.v1.RecordSpecificationWrapper record_specifications = 3 [(.gogoproto.moretags) = "yaml:\"record_specifications,omitempty\""]; */ public int getRecordSpecificationsCount() { return recordSpecifications_.size(); } /** *
   * record_specifications is any number or wrapped record specifications associated with this contract_specification
   * (if requested).
   * 
* * repeated .provenance.metadata.v1.RecordSpecificationWrapper record_specifications = 3 [(.gogoproto.moretags) = "yaml:\"record_specifications,omitempty\""]; */ public io.provenance.metadata.v1.RecordSpecificationWrapper getRecordSpecifications(int index) { return recordSpecifications_.get(index); } /** *
   * record_specifications is any number or wrapped record specifications associated with this contract_specification
   * (if requested).
   * 
* * repeated .provenance.metadata.v1.RecordSpecificationWrapper record_specifications = 3 [(.gogoproto.moretags) = "yaml:\"record_specifications,omitempty\""]; */ public io.provenance.metadata.v1.RecordSpecificationWrapperOrBuilder getRecordSpecificationsOrBuilder( int index) { return recordSpecifications_.get(index); } public static final int REQUEST_FIELD_NUMBER = 98; private io.provenance.metadata.v1.ContractSpecificationRequest request_; /** *
   * request is a copy of the request that generated these results.
   * 
* * .provenance.metadata.v1.ContractSpecificationRequest request = 98; */ public boolean hasRequest() { return request_ != null; } /** *
   * request is a copy of the request that generated these results.
   * 
* * .provenance.metadata.v1.ContractSpecificationRequest request = 98; */ public io.provenance.metadata.v1.ContractSpecificationRequest getRequest() { return request_ == null ? io.provenance.metadata.v1.ContractSpecificationRequest.getDefaultInstance() : request_; } /** *
   * request is a copy of the request that generated these results.
   * 
* * .provenance.metadata.v1.ContractSpecificationRequest request = 98; */ public io.provenance.metadata.v1.ContractSpecificationRequestOrBuilder getRequestOrBuilder() { return getRequest(); } 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 (contractSpecification_ != null) { output.writeMessage(1, getContractSpecification()); } for (int i = 0; i < recordSpecifications_.size(); i++) { output.writeMessage(3, recordSpecifications_.get(i)); } if (request_ != null) { output.writeMessage(98, getRequest()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (contractSpecification_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getContractSpecification()); } for (int i = 0; i < recordSpecifications_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, recordSpecifications_.get(i)); } if (request_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(98, getRequest()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.provenance.metadata.v1.ContractSpecificationResponse)) { return super.equals(obj); } io.provenance.metadata.v1.ContractSpecificationResponse other = (io.provenance.metadata.v1.ContractSpecificationResponse) obj; boolean result = true; result = result && (hasContractSpecification() == other.hasContractSpecification()); if (hasContractSpecification()) { result = result && getContractSpecification() .equals(other.getContractSpecification()); } result = result && getRecordSpecificationsList() .equals(other.getRecordSpecificationsList()); result = result && (hasRequest() == other.hasRequest()); if (hasRequest()) { result = result && getRequest() .equals(other.getRequest()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasContractSpecification()) { hash = (37 * hash) + CONTRACT_SPECIFICATION_FIELD_NUMBER; hash = (53 * hash) + getContractSpecification().hashCode(); } if (getRecordSpecificationsCount() > 0) { hash = (37 * hash) + RECORD_SPECIFICATIONS_FIELD_NUMBER; hash = (53 * hash) + getRecordSpecificationsList().hashCode(); } if (hasRequest()) { hash = (37 * hash) + REQUEST_FIELD_NUMBER; hash = (53 * hash) + getRequest().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.provenance.metadata.v1.ContractSpecificationResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.provenance.metadata.v1.ContractSpecificationResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.provenance.metadata.v1.ContractSpecificationResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.provenance.metadata.v1.ContractSpecificationResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.provenance.metadata.v1.ContractSpecificationResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.provenance.metadata.v1.ContractSpecificationResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.provenance.metadata.v1.ContractSpecificationResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.provenance.metadata.v1.ContractSpecificationResponse 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 io.provenance.metadata.v1.ContractSpecificationResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.provenance.metadata.v1.ContractSpecificationResponse 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 io.provenance.metadata.v1.ContractSpecificationResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.provenance.metadata.v1.ContractSpecificationResponse 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(io.provenance.metadata.v1.ContractSpecificationResponse 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; } /** *
   * ContractSpecificationResponse is the response type for the Query/ContractSpecification RPC method.
   * 
* * Protobuf type {@code provenance.metadata.v1.ContractSpecificationResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:provenance.metadata.v1.ContractSpecificationResponse) io.provenance.metadata.v1.ContractSpecificationResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.provenance.metadata.v1.QueryOuterClass.internal_static_provenance_metadata_v1_ContractSpecificationResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.provenance.metadata.v1.QueryOuterClass.internal_static_provenance_metadata_v1_ContractSpecificationResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.provenance.metadata.v1.ContractSpecificationResponse.class, io.provenance.metadata.v1.ContractSpecificationResponse.Builder.class); } // Construct using io.provenance.metadata.v1.ContractSpecificationResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRecordSpecificationsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (contractSpecificationBuilder_ == null) { contractSpecification_ = null; } else { contractSpecification_ = null; contractSpecificationBuilder_ = null; } if (recordSpecificationsBuilder_ == null) { recordSpecifications_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { recordSpecificationsBuilder_.clear(); } if (requestBuilder_ == null) { request_ = null; } else { request_ = null; requestBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.provenance.metadata.v1.QueryOuterClass.internal_static_provenance_metadata_v1_ContractSpecificationResponse_descriptor; } @java.lang.Override public io.provenance.metadata.v1.ContractSpecificationResponse getDefaultInstanceForType() { return io.provenance.metadata.v1.ContractSpecificationResponse.getDefaultInstance(); } @java.lang.Override public io.provenance.metadata.v1.ContractSpecificationResponse build() { io.provenance.metadata.v1.ContractSpecificationResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.provenance.metadata.v1.ContractSpecificationResponse buildPartial() { io.provenance.metadata.v1.ContractSpecificationResponse result = new io.provenance.metadata.v1.ContractSpecificationResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (contractSpecificationBuilder_ == null) { result.contractSpecification_ = contractSpecification_; } else { result.contractSpecification_ = contractSpecificationBuilder_.build(); } if (recordSpecificationsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { recordSpecifications_ = java.util.Collections.unmodifiableList(recordSpecifications_); bitField0_ = (bitField0_ & ~0x00000002); } result.recordSpecifications_ = recordSpecifications_; } else { result.recordSpecifications_ = recordSpecificationsBuilder_.build(); } if (requestBuilder_ == null) { result.request_ = request_; } else { result.request_ = requestBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.provenance.metadata.v1.ContractSpecificationResponse) { return mergeFrom((io.provenance.metadata.v1.ContractSpecificationResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.provenance.metadata.v1.ContractSpecificationResponse other) { if (other == io.provenance.metadata.v1.ContractSpecificationResponse.getDefaultInstance()) return this; if (other.hasContractSpecification()) { mergeContractSpecification(other.getContractSpecification()); } if (recordSpecificationsBuilder_ == null) { if (!other.recordSpecifications_.isEmpty()) { if (recordSpecifications_.isEmpty()) { recordSpecifications_ = other.recordSpecifications_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRecordSpecificationsIsMutable(); recordSpecifications_.addAll(other.recordSpecifications_); } onChanged(); } } else { if (!other.recordSpecifications_.isEmpty()) { if (recordSpecificationsBuilder_.isEmpty()) { recordSpecificationsBuilder_.dispose(); recordSpecificationsBuilder_ = null; recordSpecifications_ = other.recordSpecifications_; bitField0_ = (bitField0_ & ~0x00000002); recordSpecificationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRecordSpecificationsFieldBuilder() : null; } else { recordSpecificationsBuilder_.addAllMessages(other.recordSpecifications_); } } } if (other.hasRequest()) { mergeRequest(other.getRequest()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.provenance.metadata.v1.ContractSpecificationResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.provenance.metadata.v1.ContractSpecificationResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.provenance.metadata.v1.ContractSpecificationWrapper contractSpecification_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.provenance.metadata.v1.ContractSpecificationWrapper, io.provenance.metadata.v1.ContractSpecificationWrapper.Builder, io.provenance.metadata.v1.ContractSpecificationWrapperOrBuilder> contractSpecificationBuilder_; /** *
     * contract_specification is the wrapped contract specification.
     * 
* * .provenance.metadata.v1.ContractSpecificationWrapper contract_specification = 1 [(.gogoproto.moretags) = "yaml:\"contract_specification\""]; */ public boolean hasContractSpecification() { return contractSpecificationBuilder_ != null || contractSpecification_ != null; } /** *
     * contract_specification is the wrapped contract specification.
     * 
* * .provenance.metadata.v1.ContractSpecificationWrapper contract_specification = 1 [(.gogoproto.moretags) = "yaml:\"contract_specification\""]; */ public io.provenance.metadata.v1.ContractSpecificationWrapper getContractSpecification() { if (contractSpecificationBuilder_ == null) { return contractSpecification_ == null ? io.provenance.metadata.v1.ContractSpecificationWrapper.getDefaultInstance() : contractSpecification_; } else { return contractSpecificationBuilder_.getMessage(); } } /** *
     * contract_specification is the wrapped contract specification.
     * 
* * .provenance.metadata.v1.ContractSpecificationWrapper contract_specification = 1 [(.gogoproto.moretags) = "yaml:\"contract_specification\""]; */ public Builder setContractSpecification(io.provenance.metadata.v1.ContractSpecificationWrapper value) { if (contractSpecificationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } contractSpecification_ = value; onChanged(); } else { contractSpecificationBuilder_.setMessage(value); } return this; } /** *
     * contract_specification is the wrapped contract specification.
     * 
* * .provenance.metadata.v1.ContractSpecificationWrapper contract_specification = 1 [(.gogoproto.moretags) = "yaml:\"contract_specification\""]; */ public Builder setContractSpecification( io.provenance.metadata.v1.ContractSpecificationWrapper.Builder builderForValue) { if (contractSpecificationBuilder_ == null) { contractSpecification_ = builderForValue.build(); onChanged(); } else { contractSpecificationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * contract_specification is the wrapped contract specification.
     * 
* * .provenance.metadata.v1.ContractSpecificationWrapper contract_specification = 1 [(.gogoproto.moretags) = "yaml:\"contract_specification\""]; */ public Builder mergeContractSpecification(io.provenance.metadata.v1.ContractSpecificationWrapper value) { if (contractSpecificationBuilder_ == null) { if (contractSpecification_ != null) { contractSpecification_ = io.provenance.metadata.v1.ContractSpecificationWrapper.newBuilder(contractSpecification_).mergeFrom(value).buildPartial(); } else { contractSpecification_ = value; } onChanged(); } else { contractSpecificationBuilder_.mergeFrom(value); } return this; } /** *
     * contract_specification is the wrapped contract specification.
     * 
* * .provenance.metadata.v1.ContractSpecificationWrapper contract_specification = 1 [(.gogoproto.moretags) = "yaml:\"contract_specification\""]; */ public Builder clearContractSpecification() { if (contractSpecificationBuilder_ == null) { contractSpecification_ = null; onChanged(); } else { contractSpecification_ = null; contractSpecificationBuilder_ = null; } return this; } /** *
     * contract_specification is the wrapped contract specification.
     * 
* * .provenance.metadata.v1.ContractSpecificationWrapper contract_specification = 1 [(.gogoproto.moretags) = "yaml:\"contract_specification\""]; */ public io.provenance.metadata.v1.ContractSpecificationWrapper.Builder getContractSpecificationBuilder() { onChanged(); return getContractSpecificationFieldBuilder().getBuilder(); } /** *
     * contract_specification is the wrapped contract specification.
     * 
* * .provenance.metadata.v1.ContractSpecificationWrapper contract_specification = 1 [(.gogoproto.moretags) = "yaml:\"contract_specification\""]; */ public io.provenance.metadata.v1.ContractSpecificationWrapperOrBuilder getContractSpecificationOrBuilder() { if (contractSpecificationBuilder_ != null) { return contractSpecificationBuilder_.getMessageOrBuilder(); } else { return contractSpecification_ == null ? io.provenance.metadata.v1.ContractSpecificationWrapper.getDefaultInstance() : contractSpecification_; } } /** *
     * contract_specification is the wrapped contract specification.
     * 
* * .provenance.metadata.v1.ContractSpecificationWrapper contract_specification = 1 [(.gogoproto.moretags) = "yaml:\"contract_specification\""]; */ private com.google.protobuf.SingleFieldBuilderV3< io.provenance.metadata.v1.ContractSpecificationWrapper, io.provenance.metadata.v1.ContractSpecificationWrapper.Builder, io.provenance.metadata.v1.ContractSpecificationWrapperOrBuilder> getContractSpecificationFieldBuilder() { if (contractSpecificationBuilder_ == null) { contractSpecificationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.provenance.metadata.v1.ContractSpecificationWrapper, io.provenance.metadata.v1.ContractSpecificationWrapper.Builder, io.provenance.metadata.v1.ContractSpecificationWrapperOrBuilder>( getContractSpecification(), getParentForChildren(), isClean()); contractSpecification_ = null; } return contractSpecificationBuilder_; } private java.util.List recordSpecifications_ = java.util.Collections.emptyList(); private void ensureRecordSpecificationsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { recordSpecifications_ = new java.util.ArrayList(recordSpecifications_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.provenance.metadata.v1.RecordSpecificationWrapper, io.provenance.metadata.v1.RecordSpecificationWrapper.Builder, io.provenance.metadata.v1.RecordSpecificationWrapperOrBuilder> recordSpecificationsBuilder_; /** *
     * record_specifications is any number or wrapped record specifications associated with this contract_specification
     * (if requested).
     * 
* * repeated .provenance.metadata.v1.RecordSpecificationWrapper record_specifications = 3 [(.gogoproto.moretags) = "yaml:\"record_specifications,omitempty\""]; */ public java.util.List getRecordSpecificationsList() { if (recordSpecificationsBuilder_ == null) { return java.util.Collections.unmodifiableList(recordSpecifications_); } else { return recordSpecificationsBuilder_.getMessageList(); } } /** *
     * record_specifications is any number or wrapped record specifications associated with this contract_specification
     * (if requested).
     * 
* * repeated .provenance.metadata.v1.RecordSpecificationWrapper record_specifications = 3 [(.gogoproto.moretags) = "yaml:\"record_specifications,omitempty\""]; */ public int getRecordSpecificationsCount() { if (recordSpecificationsBuilder_ == null) { return recordSpecifications_.size(); } else { return recordSpecificationsBuilder_.getCount(); } } /** *
     * record_specifications is any number or wrapped record specifications associated with this contract_specification
     * (if requested).
     * 
* * repeated .provenance.metadata.v1.RecordSpecificationWrapper record_specifications = 3 [(.gogoproto.moretags) = "yaml:\"record_specifications,omitempty\""]; */ public io.provenance.metadata.v1.RecordSpecificationWrapper getRecordSpecifications(int index) { if (recordSpecificationsBuilder_ == null) { return recordSpecifications_.get(index); } else { return recordSpecificationsBuilder_.getMessage(index); } } /** *
     * record_specifications is any number or wrapped record specifications associated with this contract_specification
     * (if requested).
     * 
* * repeated .provenance.metadata.v1.RecordSpecificationWrapper record_specifications = 3 [(.gogoproto.moretags) = "yaml:\"record_specifications,omitempty\""]; */ public Builder setRecordSpecifications( int index, io.provenance.metadata.v1.RecordSpecificationWrapper value) { if (recordSpecificationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRecordSpecificationsIsMutable(); recordSpecifications_.set(index, value); onChanged(); } else { recordSpecificationsBuilder_.setMessage(index, value); } return this; } /** *
     * record_specifications is any number or wrapped record specifications associated with this contract_specification
     * (if requested).
     * 
* * repeated .provenance.metadata.v1.RecordSpecificationWrapper record_specifications = 3 [(.gogoproto.moretags) = "yaml:\"record_specifications,omitempty\""]; */ public Builder setRecordSpecifications( int index, io.provenance.metadata.v1.RecordSpecificationWrapper.Builder builderForValue) { if (recordSpecificationsBuilder_ == null) { ensureRecordSpecificationsIsMutable(); recordSpecifications_.set(index, builderForValue.build()); onChanged(); } else { recordSpecificationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * record_specifications is any number or wrapped record specifications associated with this contract_specification
     * (if requested).
     * 
* * repeated .provenance.metadata.v1.RecordSpecificationWrapper record_specifications = 3 [(.gogoproto.moretags) = "yaml:\"record_specifications,omitempty\""]; */ public Builder addRecordSpecifications(io.provenance.metadata.v1.RecordSpecificationWrapper value) { if (recordSpecificationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRecordSpecificationsIsMutable(); recordSpecifications_.add(value); onChanged(); } else { recordSpecificationsBuilder_.addMessage(value); } return this; } /** *
     * record_specifications is any number or wrapped record specifications associated with this contract_specification
     * (if requested).
     * 
* * repeated .provenance.metadata.v1.RecordSpecificationWrapper record_specifications = 3 [(.gogoproto.moretags) = "yaml:\"record_specifications,omitempty\""]; */ public Builder addRecordSpecifications( int index, io.provenance.metadata.v1.RecordSpecificationWrapper value) { if (recordSpecificationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRecordSpecificationsIsMutable(); recordSpecifications_.add(index, value); onChanged(); } else { recordSpecificationsBuilder_.addMessage(index, value); } return this; } /** *
     * record_specifications is any number or wrapped record specifications associated with this contract_specification
     * (if requested).
     * 
* * repeated .provenance.metadata.v1.RecordSpecificationWrapper record_specifications = 3 [(.gogoproto.moretags) = "yaml:\"record_specifications,omitempty\""]; */ public Builder addRecordSpecifications( io.provenance.metadata.v1.RecordSpecificationWrapper.Builder builderForValue) { if (recordSpecificationsBuilder_ == null) { ensureRecordSpecificationsIsMutable(); recordSpecifications_.add(builderForValue.build()); onChanged(); } else { recordSpecificationsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * record_specifications is any number or wrapped record specifications associated with this contract_specification
     * (if requested).
     * 
* * repeated .provenance.metadata.v1.RecordSpecificationWrapper record_specifications = 3 [(.gogoproto.moretags) = "yaml:\"record_specifications,omitempty\""]; */ public Builder addRecordSpecifications( int index, io.provenance.metadata.v1.RecordSpecificationWrapper.Builder builderForValue) { if (recordSpecificationsBuilder_ == null) { ensureRecordSpecificationsIsMutable(); recordSpecifications_.add(index, builderForValue.build()); onChanged(); } else { recordSpecificationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * record_specifications is any number or wrapped record specifications associated with this contract_specification
     * (if requested).
     * 
* * repeated .provenance.metadata.v1.RecordSpecificationWrapper record_specifications = 3 [(.gogoproto.moretags) = "yaml:\"record_specifications,omitempty\""]; */ public Builder addAllRecordSpecifications( java.lang.Iterable values) { if (recordSpecificationsBuilder_ == null) { ensureRecordSpecificationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, recordSpecifications_); onChanged(); } else { recordSpecificationsBuilder_.addAllMessages(values); } return this; } /** *
     * record_specifications is any number or wrapped record specifications associated with this contract_specification
     * (if requested).
     * 
* * repeated .provenance.metadata.v1.RecordSpecificationWrapper record_specifications = 3 [(.gogoproto.moretags) = "yaml:\"record_specifications,omitempty\""]; */ public Builder clearRecordSpecifications() { if (recordSpecificationsBuilder_ == null) { recordSpecifications_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { recordSpecificationsBuilder_.clear(); } return this; } /** *
     * record_specifications is any number or wrapped record specifications associated with this contract_specification
     * (if requested).
     * 
* * repeated .provenance.metadata.v1.RecordSpecificationWrapper record_specifications = 3 [(.gogoproto.moretags) = "yaml:\"record_specifications,omitempty\""]; */ public Builder removeRecordSpecifications(int index) { if (recordSpecificationsBuilder_ == null) { ensureRecordSpecificationsIsMutable(); recordSpecifications_.remove(index); onChanged(); } else { recordSpecificationsBuilder_.remove(index); } return this; } /** *
     * record_specifications is any number or wrapped record specifications associated with this contract_specification
     * (if requested).
     * 
* * repeated .provenance.metadata.v1.RecordSpecificationWrapper record_specifications = 3 [(.gogoproto.moretags) = "yaml:\"record_specifications,omitempty\""]; */ public io.provenance.metadata.v1.RecordSpecificationWrapper.Builder getRecordSpecificationsBuilder( int index) { return getRecordSpecificationsFieldBuilder().getBuilder(index); } /** *
     * record_specifications is any number or wrapped record specifications associated with this contract_specification
     * (if requested).
     * 
* * repeated .provenance.metadata.v1.RecordSpecificationWrapper record_specifications = 3 [(.gogoproto.moretags) = "yaml:\"record_specifications,omitempty\""]; */ public io.provenance.metadata.v1.RecordSpecificationWrapperOrBuilder getRecordSpecificationsOrBuilder( int index) { if (recordSpecificationsBuilder_ == null) { return recordSpecifications_.get(index); } else { return recordSpecificationsBuilder_.getMessageOrBuilder(index); } } /** *
     * record_specifications is any number or wrapped record specifications associated with this contract_specification
     * (if requested).
     * 
* * repeated .provenance.metadata.v1.RecordSpecificationWrapper record_specifications = 3 [(.gogoproto.moretags) = "yaml:\"record_specifications,omitempty\""]; */ public java.util.List getRecordSpecificationsOrBuilderList() { if (recordSpecificationsBuilder_ != null) { return recordSpecificationsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(recordSpecifications_); } } /** *
     * record_specifications is any number or wrapped record specifications associated with this contract_specification
     * (if requested).
     * 
* * repeated .provenance.metadata.v1.RecordSpecificationWrapper record_specifications = 3 [(.gogoproto.moretags) = "yaml:\"record_specifications,omitempty\""]; */ public io.provenance.metadata.v1.RecordSpecificationWrapper.Builder addRecordSpecificationsBuilder() { return getRecordSpecificationsFieldBuilder().addBuilder( io.provenance.metadata.v1.RecordSpecificationWrapper.getDefaultInstance()); } /** *
     * record_specifications is any number or wrapped record specifications associated with this contract_specification
     * (if requested).
     * 
* * repeated .provenance.metadata.v1.RecordSpecificationWrapper record_specifications = 3 [(.gogoproto.moretags) = "yaml:\"record_specifications,omitempty\""]; */ public io.provenance.metadata.v1.RecordSpecificationWrapper.Builder addRecordSpecificationsBuilder( int index) { return getRecordSpecificationsFieldBuilder().addBuilder( index, io.provenance.metadata.v1.RecordSpecificationWrapper.getDefaultInstance()); } /** *
     * record_specifications is any number or wrapped record specifications associated with this contract_specification
     * (if requested).
     * 
* * repeated .provenance.metadata.v1.RecordSpecificationWrapper record_specifications = 3 [(.gogoproto.moretags) = "yaml:\"record_specifications,omitempty\""]; */ public java.util.List getRecordSpecificationsBuilderList() { return getRecordSpecificationsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.provenance.metadata.v1.RecordSpecificationWrapper, io.provenance.metadata.v1.RecordSpecificationWrapper.Builder, io.provenance.metadata.v1.RecordSpecificationWrapperOrBuilder> getRecordSpecificationsFieldBuilder() { if (recordSpecificationsBuilder_ == null) { recordSpecificationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.provenance.metadata.v1.RecordSpecificationWrapper, io.provenance.metadata.v1.RecordSpecificationWrapper.Builder, io.provenance.metadata.v1.RecordSpecificationWrapperOrBuilder>( recordSpecifications_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); recordSpecifications_ = null; } return recordSpecificationsBuilder_; } private io.provenance.metadata.v1.ContractSpecificationRequest request_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.provenance.metadata.v1.ContractSpecificationRequest, io.provenance.metadata.v1.ContractSpecificationRequest.Builder, io.provenance.metadata.v1.ContractSpecificationRequestOrBuilder> requestBuilder_; /** *
     * request is a copy of the request that generated these results.
     * 
* * .provenance.metadata.v1.ContractSpecificationRequest request = 98; */ public boolean hasRequest() { return requestBuilder_ != null || request_ != null; } /** *
     * request is a copy of the request that generated these results.
     * 
* * .provenance.metadata.v1.ContractSpecificationRequest request = 98; */ public io.provenance.metadata.v1.ContractSpecificationRequest getRequest() { if (requestBuilder_ == null) { return request_ == null ? io.provenance.metadata.v1.ContractSpecificationRequest.getDefaultInstance() : request_; } else { return requestBuilder_.getMessage(); } } /** *
     * request is a copy of the request that generated these results.
     * 
* * .provenance.metadata.v1.ContractSpecificationRequest request = 98; */ public Builder setRequest(io.provenance.metadata.v1.ContractSpecificationRequest value) { if (requestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } request_ = value; onChanged(); } else { requestBuilder_.setMessage(value); } return this; } /** *
     * request is a copy of the request that generated these results.
     * 
* * .provenance.metadata.v1.ContractSpecificationRequest request = 98; */ public Builder setRequest( io.provenance.metadata.v1.ContractSpecificationRequest.Builder builderForValue) { if (requestBuilder_ == null) { request_ = builderForValue.build(); onChanged(); } else { requestBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * request is a copy of the request that generated these results.
     * 
* * .provenance.metadata.v1.ContractSpecificationRequest request = 98; */ public Builder mergeRequest(io.provenance.metadata.v1.ContractSpecificationRequest value) { if (requestBuilder_ == null) { if (request_ != null) { request_ = io.provenance.metadata.v1.ContractSpecificationRequest.newBuilder(request_).mergeFrom(value).buildPartial(); } else { request_ = value; } onChanged(); } else { requestBuilder_.mergeFrom(value); } return this; } /** *
     * request is a copy of the request that generated these results.
     * 
* * .provenance.metadata.v1.ContractSpecificationRequest request = 98; */ public Builder clearRequest() { if (requestBuilder_ == null) { request_ = null; onChanged(); } else { request_ = null; requestBuilder_ = null; } return this; } /** *
     * request is a copy of the request that generated these results.
     * 
* * .provenance.metadata.v1.ContractSpecificationRequest request = 98; */ public io.provenance.metadata.v1.ContractSpecificationRequest.Builder getRequestBuilder() { onChanged(); return getRequestFieldBuilder().getBuilder(); } /** *
     * request is a copy of the request that generated these results.
     * 
* * .provenance.metadata.v1.ContractSpecificationRequest request = 98; */ public io.provenance.metadata.v1.ContractSpecificationRequestOrBuilder getRequestOrBuilder() { if (requestBuilder_ != null) { return requestBuilder_.getMessageOrBuilder(); } else { return request_ == null ? io.provenance.metadata.v1.ContractSpecificationRequest.getDefaultInstance() : request_; } } /** *
     * request is a copy of the request that generated these results.
     * 
* * .provenance.metadata.v1.ContractSpecificationRequest request = 98; */ private com.google.protobuf.SingleFieldBuilderV3< io.provenance.metadata.v1.ContractSpecificationRequest, io.provenance.metadata.v1.ContractSpecificationRequest.Builder, io.provenance.metadata.v1.ContractSpecificationRequestOrBuilder> getRequestFieldBuilder() { if (requestBuilder_ == null) { requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.provenance.metadata.v1.ContractSpecificationRequest, io.provenance.metadata.v1.ContractSpecificationRequest.Builder, io.provenance.metadata.v1.ContractSpecificationRequestOrBuilder>( getRequest(), getParentForChildren(), isClean()); request_ = null; } return requestBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:provenance.metadata.v1.ContractSpecificationResponse) } // @@protoc_insertion_point(class_scope:provenance.metadata.v1.ContractSpecificationResponse) private static final io.provenance.metadata.v1.ContractSpecificationResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.provenance.metadata.v1.ContractSpecificationResponse(); } public static io.provenance.metadata.v1.ContractSpecificationResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ContractSpecificationResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ContractSpecificationResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.provenance.metadata.v1.ContractSpecificationResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy