Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
io.provenance.metadata.v1.p8e.ConsiderationSpec Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: provenance/metadata/v1/p8e/p8e.proto
package io.provenance.metadata.v1.p8e;
/**
* Protobuf type {@code provenance.metadata.v1.p8e.ConsiderationSpec}
*/
public final class ConsiderationSpec extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:provenance.metadata.v1.p8e.ConsiderationSpec)
ConsiderationSpecOrBuilder {
private static final long serialVersionUID = 0L;
// Use ConsiderationSpec.newBuilder() to construct.
private ConsiderationSpec(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConsiderationSpec() {
funcName_ = "";
responsibleParty_ = 0;
inputSpecs_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ConsiderationSpec(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
funcName_ = s;
break;
}
case 16: {
int rawValue = input.readEnum();
responsibleParty_ = rawValue;
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
inputSpecs_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
inputSpecs_.add(
input.readMessage(io.provenance.metadata.v1.p8e.DefinitionSpec.parser(), extensionRegistry));
break;
}
case 34: {
io.provenance.metadata.v1.p8e.OutputSpec.Builder subBuilder = null;
if (outputSpec_ != null) {
subBuilder = outputSpec_.toBuilder();
}
outputSpec_ = input.readMessage(io.provenance.metadata.v1.p8e.OutputSpec.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(outputSpec_);
outputSpec_ = 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_ & 0x00000004) == 0x00000004)) {
inputSpecs_ = java.util.Collections.unmodifiableList(inputSpecs_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.provenance.metadata.v1.p8e.P8E.internal_static_provenance_metadata_v1_p8e_ConsiderationSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.provenance.metadata.v1.p8e.P8E.internal_static_provenance_metadata_v1_p8e_ConsiderationSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.provenance.metadata.v1.p8e.ConsiderationSpec.class, io.provenance.metadata.v1.p8e.ConsiderationSpec.Builder.class);
}
private int bitField0_;
public static final int FUNC_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object funcName_;
/**
* string func_name = 1;
*/
public java.lang.String getFuncName() {
java.lang.Object ref = funcName_;
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();
funcName_ = s;
return s;
}
}
/**
* string func_name = 1;
*/
public com.google.protobuf.ByteString
getFuncNameBytes() {
java.lang.Object ref = funcName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
funcName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RESPONSIBLE_PARTY_FIELD_NUMBER = 2;
private int responsibleParty_;
/**
*
* Invoking party
*
*
* .provenance.metadata.v1.p8e.PartyType responsible_party = 2;
*/
public int getResponsiblePartyValue() {
return responsibleParty_;
}
/**
*
* Invoking party
*
*
* .provenance.metadata.v1.p8e.PartyType responsible_party = 2;
*/
public io.provenance.metadata.v1.p8e.PartyType getResponsibleParty() {
@SuppressWarnings("deprecation")
io.provenance.metadata.v1.p8e.PartyType result = io.provenance.metadata.v1.p8e.PartyType.valueOf(responsibleParty_);
return result == null ? io.provenance.metadata.v1.p8e.PartyType.UNRECOGNIZED : result;
}
public static final int INPUT_SPECS_FIELD_NUMBER = 3;
private java.util.List inputSpecs_;
/**
* repeated .provenance.metadata.v1.p8e.DefinitionSpec input_specs = 3;
*/
public java.util.List getInputSpecsList() {
return inputSpecs_;
}
/**
* repeated .provenance.metadata.v1.p8e.DefinitionSpec input_specs = 3;
*/
public java.util.List extends io.provenance.metadata.v1.p8e.DefinitionSpecOrBuilder>
getInputSpecsOrBuilderList() {
return inputSpecs_;
}
/**
* repeated .provenance.metadata.v1.p8e.DefinitionSpec input_specs = 3;
*/
public int getInputSpecsCount() {
return inputSpecs_.size();
}
/**
* repeated .provenance.metadata.v1.p8e.DefinitionSpec input_specs = 3;
*/
public io.provenance.metadata.v1.p8e.DefinitionSpec getInputSpecs(int index) {
return inputSpecs_.get(index);
}
/**
* repeated .provenance.metadata.v1.p8e.DefinitionSpec input_specs = 3;
*/
public io.provenance.metadata.v1.p8e.DefinitionSpecOrBuilder getInputSpecsOrBuilder(
int index) {
return inputSpecs_.get(index);
}
public static final int OUTPUT_SPEC_FIELD_NUMBER = 4;
private io.provenance.metadata.v1.p8e.OutputSpec outputSpec_;
/**
* .provenance.metadata.v1.p8e.OutputSpec output_spec = 4;
*/
public boolean hasOutputSpec() {
return outputSpec_ != null;
}
/**
* .provenance.metadata.v1.p8e.OutputSpec output_spec = 4;
*/
public io.provenance.metadata.v1.p8e.OutputSpec getOutputSpec() {
return outputSpec_ == null ? io.provenance.metadata.v1.p8e.OutputSpec.getDefaultInstance() : outputSpec_;
}
/**
* .provenance.metadata.v1.p8e.OutputSpec output_spec = 4;
*/
public io.provenance.metadata.v1.p8e.OutputSpecOrBuilder getOutputSpecOrBuilder() {
return getOutputSpec();
}
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 (!getFuncNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, funcName_);
}
if (responsibleParty_ != io.provenance.metadata.v1.p8e.PartyType.PARTY_TYPE_UNKNOWN.getNumber()) {
output.writeEnum(2, responsibleParty_);
}
for (int i = 0; i < inputSpecs_.size(); i++) {
output.writeMessage(3, inputSpecs_.get(i));
}
if (outputSpec_ != null) {
output.writeMessage(4, getOutputSpec());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getFuncNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, funcName_);
}
if (responsibleParty_ != io.provenance.metadata.v1.p8e.PartyType.PARTY_TYPE_UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, responsibleParty_);
}
for (int i = 0; i < inputSpecs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, inputSpecs_.get(i));
}
if (outputSpec_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getOutputSpec());
}
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.p8e.ConsiderationSpec)) {
return super.equals(obj);
}
io.provenance.metadata.v1.p8e.ConsiderationSpec other = (io.provenance.metadata.v1.p8e.ConsiderationSpec) obj;
boolean result = true;
result = result && getFuncName()
.equals(other.getFuncName());
result = result && responsibleParty_ == other.responsibleParty_;
result = result && getInputSpecsList()
.equals(other.getInputSpecsList());
result = result && (hasOutputSpec() == other.hasOutputSpec());
if (hasOutputSpec()) {
result = result && getOutputSpec()
.equals(other.getOutputSpec());
}
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();
hash = (37 * hash) + FUNC_NAME_FIELD_NUMBER;
hash = (53 * hash) + getFuncName().hashCode();
hash = (37 * hash) + RESPONSIBLE_PARTY_FIELD_NUMBER;
hash = (53 * hash) + responsibleParty_;
if (getInputSpecsCount() > 0) {
hash = (37 * hash) + INPUT_SPECS_FIELD_NUMBER;
hash = (53 * hash) + getInputSpecsList().hashCode();
}
if (hasOutputSpec()) {
hash = (37 * hash) + OUTPUT_SPEC_FIELD_NUMBER;
hash = (53 * hash) + getOutputSpec().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.provenance.metadata.v1.p8e.ConsiderationSpec parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.metadata.v1.p8e.ConsiderationSpec 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.p8e.ConsiderationSpec parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.metadata.v1.p8e.ConsiderationSpec 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.p8e.ConsiderationSpec parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.metadata.v1.p8e.ConsiderationSpec parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.provenance.metadata.v1.p8e.ConsiderationSpec parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.provenance.metadata.v1.p8e.ConsiderationSpec 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.p8e.ConsiderationSpec parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.provenance.metadata.v1.p8e.ConsiderationSpec 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.p8e.ConsiderationSpec parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.provenance.metadata.v1.p8e.ConsiderationSpec 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.p8e.ConsiderationSpec prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code provenance.metadata.v1.p8e.ConsiderationSpec}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:provenance.metadata.v1.p8e.ConsiderationSpec)
io.provenance.metadata.v1.p8e.ConsiderationSpecOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.provenance.metadata.v1.p8e.P8E.internal_static_provenance_metadata_v1_p8e_ConsiderationSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.provenance.metadata.v1.p8e.P8E.internal_static_provenance_metadata_v1_p8e_ConsiderationSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.provenance.metadata.v1.p8e.ConsiderationSpec.class, io.provenance.metadata.v1.p8e.ConsiderationSpec.Builder.class);
}
// Construct using io.provenance.metadata.v1.p8e.ConsiderationSpec.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getInputSpecsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
funcName_ = "";
responsibleParty_ = 0;
if (inputSpecsBuilder_ == null) {
inputSpecs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
inputSpecsBuilder_.clear();
}
if (outputSpecBuilder_ == null) {
outputSpec_ = null;
} else {
outputSpec_ = null;
outputSpecBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.provenance.metadata.v1.p8e.P8E.internal_static_provenance_metadata_v1_p8e_ConsiderationSpec_descriptor;
}
@java.lang.Override
public io.provenance.metadata.v1.p8e.ConsiderationSpec getDefaultInstanceForType() {
return io.provenance.metadata.v1.p8e.ConsiderationSpec.getDefaultInstance();
}
@java.lang.Override
public io.provenance.metadata.v1.p8e.ConsiderationSpec build() {
io.provenance.metadata.v1.p8e.ConsiderationSpec result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.provenance.metadata.v1.p8e.ConsiderationSpec buildPartial() {
io.provenance.metadata.v1.p8e.ConsiderationSpec result = new io.provenance.metadata.v1.p8e.ConsiderationSpec(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.funcName_ = funcName_;
result.responsibleParty_ = responsibleParty_;
if (inputSpecsBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
inputSpecs_ = java.util.Collections.unmodifiableList(inputSpecs_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.inputSpecs_ = inputSpecs_;
} else {
result.inputSpecs_ = inputSpecsBuilder_.build();
}
if (outputSpecBuilder_ == null) {
result.outputSpec_ = outputSpec_;
} else {
result.outputSpec_ = outputSpecBuilder_.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.p8e.ConsiderationSpec) {
return mergeFrom((io.provenance.metadata.v1.p8e.ConsiderationSpec)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.provenance.metadata.v1.p8e.ConsiderationSpec other) {
if (other == io.provenance.metadata.v1.p8e.ConsiderationSpec.getDefaultInstance()) return this;
if (!other.getFuncName().isEmpty()) {
funcName_ = other.funcName_;
onChanged();
}
if (other.responsibleParty_ != 0) {
setResponsiblePartyValue(other.getResponsiblePartyValue());
}
if (inputSpecsBuilder_ == null) {
if (!other.inputSpecs_.isEmpty()) {
if (inputSpecs_.isEmpty()) {
inputSpecs_ = other.inputSpecs_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureInputSpecsIsMutable();
inputSpecs_.addAll(other.inputSpecs_);
}
onChanged();
}
} else {
if (!other.inputSpecs_.isEmpty()) {
if (inputSpecsBuilder_.isEmpty()) {
inputSpecsBuilder_.dispose();
inputSpecsBuilder_ = null;
inputSpecs_ = other.inputSpecs_;
bitField0_ = (bitField0_ & ~0x00000004);
inputSpecsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getInputSpecsFieldBuilder() : null;
} else {
inputSpecsBuilder_.addAllMessages(other.inputSpecs_);
}
}
}
if (other.hasOutputSpec()) {
mergeOutputSpec(other.getOutputSpec());
}
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.p8e.ConsiderationSpec parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.provenance.metadata.v1.p8e.ConsiderationSpec) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object funcName_ = "";
/**
* string func_name = 1;
*/
public java.lang.String getFuncName() {
java.lang.Object ref = funcName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
funcName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string func_name = 1;
*/
public com.google.protobuf.ByteString
getFuncNameBytes() {
java.lang.Object ref = funcName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
funcName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string func_name = 1;
*/
public Builder setFuncName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
funcName_ = value;
onChanged();
return this;
}
/**
* string func_name = 1;
*/
public Builder clearFuncName() {
funcName_ = getDefaultInstance().getFuncName();
onChanged();
return this;
}
/**
* string func_name = 1;
*/
public Builder setFuncNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
funcName_ = value;
onChanged();
return this;
}
private int responsibleParty_ = 0;
/**
*
* Invoking party
*
*
* .provenance.metadata.v1.p8e.PartyType responsible_party = 2;
*/
public int getResponsiblePartyValue() {
return responsibleParty_;
}
/**
*
* Invoking party
*
*
* .provenance.metadata.v1.p8e.PartyType responsible_party = 2;
*/
public Builder setResponsiblePartyValue(int value) {
responsibleParty_ = value;
onChanged();
return this;
}
/**
*
* Invoking party
*
*
* .provenance.metadata.v1.p8e.PartyType responsible_party = 2;
*/
public io.provenance.metadata.v1.p8e.PartyType getResponsibleParty() {
@SuppressWarnings("deprecation")
io.provenance.metadata.v1.p8e.PartyType result = io.provenance.metadata.v1.p8e.PartyType.valueOf(responsibleParty_);
return result == null ? io.provenance.metadata.v1.p8e.PartyType.UNRECOGNIZED : result;
}
/**
*
* Invoking party
*
*
* .provenance.metadata.v1.p8e.PartyType responsible_party = 2;
*/
public Builder setResponsibleParty(io.provenance.metadata.v1.p8e.PartyType value) {
if (value == null) {
throw new NullPointerException();
}
responsibleParty_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Invoking party
*
*
* .provenance.metadata.v1.p8e.PartyType responsible_party = 2;
*/
public Builder clearResponsibleParty() {
responsibleParty_ = 0;
onChanged();
return this;
}
private java.util.List inputSpecs_ =
java.util.Collections.emptyList();
private void ensureInputSpecsIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
inputSpecs_ = new java.util.ArrayList(inputSpecs_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.provenance.metadata.v1.p8e.DefinitionSpec, io.provenance.metadata.v1.p8e.DefinitionSpec.Builder, io.provenance.metadata.v1.p8e.DefinitionSpecOrBuilder> inputSpecsBuilder_;
/**
* repeated .provenance.metadata.v1.p8e.DefinitionSpec input_specs = 3;
*/
public java.util.List getInputSpecsList() {
if (inputSpecsBuilder_ == null) {
return java.util.Collections.unmodifiableList(inputSpecs_);
} else {
return inputSpecsBuilder_.getMessageList();
}
}
/**
* repeated .provenance.metadata.v1.p8e.DefinitionSpec input_specs = 3;
*/
public int getInputSpecsCount() {
if (inputSpecsBuilder_ == null) {
return inputSpecs_.size();
} else {
return inputSpecsBuilder_.getCount();
}
}
/**
* repeated .provenance.metadata.v1.p8e.DefinitionSpec input_specs = 3;
*/
public io.provenance.metadata.v1.p8e.DefinitionSpec getInputSpecs(int index) {
if (inputSpecsBuilder_ == null) {
return inputSpecs_.get(index);
} else {
return inputSpecsBuilder_.getMessage(index);
}
}
/**
* repeated .provenance.metadata.v1.p8e.DefinitionSpec input_specs = 3;
*/
public Builder setInputSpecs(
int index, io.provenance.metadata.v1.p8e.DefinitionSpec value) {
if (inputSpecsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInputSpecsIsMutable();
inputSpecs_.set(index, value);
onChanged();
} else {
inputSpecsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .provenance.metadata.v1.p8e.DefinitionSpec input_specs = 3;
*/
public Builder setInputSpecs(
int index, io.provenance.metadata.v1.p8e.DefinitionSpec.Builder builderForValue) {
if (inputSpecsBuilder_ == null) {
ensureInputSpecsIsMutable();
inputSpecs_.set(index, builderForValue.build());
onChanged();
} else {
inputSpecsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .provenance.metadata.v1.p8e.DefinitionSpec input_specs = 3;
*/
public Builder addInputSpecs(io.provenance.metadata.v1.p8e.DefinitionSpec value) {
if (inputSpecsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInputSpecsIsMutable();
inputSpecs_.add(value);
onChanged();
} else {
inputSpecsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .provenance.metadata.v1.p8e.DefinitionSpec input_specs = 3;
*/
public Builder addInputSpecs(
int index, io.provenance.metadata.v1.p8e.DefinitionSpec value) {
if (inputSpecsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInputSpecsIsMutable();
inputSpecs_.add(index, value);
onChanged();
} else {
inputSpecsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .provenance.metadata.v1.p8e.DefinitionSpec input_specs = 3;
*/
public Builder addInputSpecs(
io.provenance.metadata.v1.p8e.DefinitionSpec.Builder builderForValue) {
if (inputSpecsBuilder_ == null) {
ensureInputSpecsIsMutable();
inputSpecs_.add(builderForValue.build());
onChanged();
} else {
inputSpecsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .provenance.metadata.v1.p8e.DefinitionSpec input_specs = 3;
*/
public Builder addInputSpecs(
int index, io.provenance.metadata.v1.p8e.DefinitionSpec.Builder builderForValue) {
if (inputSpecsBuilder_ == null) {
ensureInputSpecsIsMutable();
inputSpecs_.add(index, builderForValue.build());
onChanged();
} else {
inputSpecsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .provenance.metadata.v1.p8e.DefinitionSpec input_specs = 3;
*/
public Builder addAllInputSpecs(
java.lang.Iterable extends io.provenance.metadata.v1.p8e.DefinitionSpec> values) {
if (inputSpecsBuilder_ == null) {
ensureInputSpecsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, inputSpecs_);
onChanged();
} else {
inputSpecsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .provenance.metadata.v1.p8e.DefinitionSpec input_specs = 3;
*/
public Builder clearInputSpecs() {
if (inputSpecsBuilder_ == null) {
inputSpecs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
inputSpecsBuilder_.clear();
}
return this;
}
/**
* repeated .provenance.metadata.v1.p8e.DefinitionSpec input_specs = 3;
*/
public Builder removeInputSpecs(int index) {
if (inputSpecsBuilder_ == null) {
ensureInputSpecsIsMutable();
inputSpecs_.remove(index);
onChanged();
} else {
inputSpecsBuilder_.remove(index);
}
return this;
}
/**
* repeated .provenance.metadata.v1.p8e.DefinitionSpec input_specs = 3;
*/
public io.provenance.metadata.v1.p8e.DefinitionSpec.Builder getInputSpecsBuilder(
int index) {
return getInputSpecsFieldBuilder().getBuilder(index);
}
/**
* repeated .provenance.metadata.v1.p8e.DefinitionSpec input_specs = 3;
*/
public io.provenance.metadata.v1.p8e.DefinitionSpecOrBuilder getInputSpecsOrBuilder(
int index) {
if (inputSpecsBuilder_ == null) {
return inputSpecs_.get(index); } else {
return inputSpecsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .provenance.metadata.v1.p8e.DefinitionSpec input_specs = 3;
*/
public java.util.List extends io.provenance.metadata.v1.p8e.DefinitionSpecOrBuilder>
getInputSpecsOrBuilderList() {
if (inputSpecsBuilder_ != null) {
return inputSpecsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(inputSpecs_);
}
}
/**
* repeated .provenance.metadata.v1.p8e.DefinitionSpec input_specs = 3;
*/
public io.provenance.metadata.v1.p8e.DefinitionSpec.Builder addInputSpecsBuilder() {
return getInputSpecsFieldBuilder().addBuilder(
io.provenance.metadata.v1.p8e.DefinitionSpec.getDefaultInstance());
}
/**
* repeated .provenance.metadata.v1.p8e.DefinitionSpec input_specs = 3;
*/
public io.provenance.metadata.v1.p8e.DefinitionSpec.Builder addInputSpecsBuilder(
int index) {
return getInputSpecsFieldBuilder().addBuilder(
index, io.provenance.metadata.v1.p8e.DefinitionSpec.getDefaultInstance());
}
/**
* repeated .provenance.metadata.v1.p8e.DefinitionSpec input_specs = 3;
*/
public java.util.List
getInputSpecsBuilderList() {
return getInputSpecsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.provenance.metadata.v1.p8e.DefinitionSpec, io.provenance.metadata.v1.p8e.DefinitionSpec.Builder, io.provenance.metadata.v1.p8e.DefinitionSpecOrBuilder>
getInputSpecsFieldBuilder() {
if (inputSpecsBuilder_ == null) {
inputSpecsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.provenance.metadata.v1.p8e.DefinitionSpec, io.provenance.metadata.v1.p8e.DefinitionSpec.Builder, io.provenance.metadata.v1.p8e.DefinitionSpecOrBuilder>(
inputSpecs_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
inputSpecs_ = null;
}
return inputSpecsBuilder_;
}
private io.provenance.metadata.v1.p8e.OutputSpec outputSpec_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.provenance.metadata.v1.p8e.OutputSpec, io.provenance.metadata.v1.p8e.OutputSpec.Builder, io.provenance.metadata.v1.p8e.OutputSpecOrBuilder> outputSpecBuilder_;
/**
* .provenance.metadata.v1.p8e.OutputSpec output_spec = 4;
*/
public boolean hasOutputSpec() {
return outputSpecBuilder_ != null || outputSpec_ != null;
}
/**
* .provenance.metadata.v1.p8e.OutputSpec output_spec = 4;
*/
public io.provenance.metadata.v1.p8e.OutputSpec getOutputSpec() {
if (outputSpecBuilder_ == null) {
return outputSpec_ == null ? io.provenance.metadata.v1.p8e.OutputSpec.getDefaultInstance() : outputSpec_;
} else {
return outputSpecBuilder_.getMessage();
}
}
/**
* .provenance.metadata.v1.p8e.OutputSpec output_spec = 4;
*/
public Builder setOutputSpec(io.provenance.metadata.v1.p8e.OutputSpec value) {
if (outputSpecBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
outputSpec_ = value;
onChanged();
} else {
outputSpecBuilder_.setMessage(value);
}
return this;
}
/**
* .provenance.metadata.v1.p8e.OutputSpec output_spec = 4;
*/
public Builder setOutputSpec(
io.provenance.metadata.v1.p8e.OutputSpec.Builder builderForValue) {
if (outputSpecBuilder_ == null) {
outputSpec_ = builderForValue.build();
onChanged();
} else {
outputSpecBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .provenance.metadata.v1.p8e.OutputSpec output_spec = 4;
*/
public Builder mergeOutputSpec(io.provenance.metadata.v1.p8e.OutputSpec value) {
if (outputSpecBuilder_ == null) {
if (outputSpec_ != null) {
outputSpec_ =
io.provenance.metadata.v1.p8e.OutputSpec.newBuilder(outputSpec_).mergeFrom(value).buildPartial();
} else {
outputSpec_ = value;
}
onChanged();
} else {
outputSpecBuilder_.mergeFrom(value);
}
return this;
}
/**
* .provenance.metadata.v1.p8e.OutputSpec output_spec = 4;
*/
public Builder clearOutputSpec() {
if (outputSpecBuilder_ == null) {
outputSpec_ = null;
onChanged();
} else {
outputSpec_ = null;
outputSpecBuilder_ = null;
}
return this;
}
/**
* .provenance.metadata.v1.p8e.OutputSpec output_spec = 4;
*/
public io.provenance.metadata.v1.p8e.OutputSpec.Builder getOutputSpecBuilder() {
onChanged();
return getOutputSpecFieldBuilder().getBuilder();
}
/**
* .provenance.metadata.v1.p8e.OutputSpec output_spec = 4;
*/
public io.provenance.metadata.v1.p8e.OutputSpecOrBuilder getOutputSpecOrBuilder() {
if (outputSpecBuilder_ != null) {
return outputSpecBuilder_.getMessageOrBuilder();
} else {
return outputSpec_ == null ?
io.provenance.metadata.v1.p8e.OutputSpec.getDefaultInstance() : outputSpec_;
}
}
/**
* .provenance.metadata.v1.p8e.OutputSpec output_spec = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.provenance.metadata.v1.p8e.OutputSpec, io.provenance.metadata.v1.p8e.OutputSpec.Builder, io.provenance.metadata.v1.p8e.OutputSpecOrBuilder>
getOutputSpecFieldBuilder() {
if (outputSpecBuilder_ == null) {
outputSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.provenance.metadata.v1.p8e.OutputSpec, io.provenance.metadata.v1.p8e.OutputSpec.Builder, io.provenance.metadata.v1.p8e.OutputSpecOrBuilder>(
getOutputSpec(),
getParentForChildren(),
isClean());
outputSpec_ = null;
}
return outputSpecBuilder_;
}
@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.p8e.ConsiderationSpec)
}
// @@protoc_insertion_point(class_scope:provenance.metadata.v1.p8e.ConsiderationSpec)
private static final io.provenance.metadata.v1.p8e.ConsiderationSpec DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.provenance.metadata.v1.p8e.ConsiderationSpec();
}
public static io.provenance.metadata.v1.p8e.ConsiderationSpec getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ConsiderationSpec parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ConsiderationSpec(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.p8e.ConsiderationSpec getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}