io.provenance.scope.contract.proto.Commons Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of contract-proto Show documentation
Show all versions of contract-proto Show documentation
A collection of libraries that interact and run Provenance Java based contracts.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: io/provenance/scope/contract/common.proto
package io.provenance.scope.contract.proto;
public final class Commons {
private Commons() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface DefinitionSpecOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.provenance.scope.contract.DefinitionSpec)
com.google.protobuf.MessageOrBuilder {
/**
* string name = 1;
* @return The name.
*/
java.lang.String getName();
/**
* string name = 1;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* .io.provenance.scope.contract.Location resource_location = 2;
* @return Whether the resourceLocation field is set.
*/
boolean hasResourceLocation();
/**
* .io.provenance.scope.contract.Location resource_location = 2;
* @return The resourceLocation.
*/
io.provenance.scope.contract.proto.Commons.Location getResourceLocation();
/**
* .io.provenance.scope.contract.Location resource_location = 2;
*/
io.provenance.scope.contract.proto.Commons.LocationOrBuilder getResourceLocationOrBuilder();
/**
* .io.provenance.scope.Signature signature = 3;
* @return Whether the signature field is set.
*/
boolean hasSignature();
/**
* .io.provenance.scope.Signature signature = 3;
* @return The signature.
*/
io.provenance.scope.proto.Common.Signature getSignature();
/**
* .io.provenance.scope.Signature signature = 3;
*/
io.provenance.scope.proto.Common.SignatureOrBuilder getSignatureOrBuilder();
/**
* .io.provenance.scope.contract.DefinitionSpec.Type type = 4;
* @return The enum numeric value on the wire for type.
*/
int getTypeValue();
/**
* .io.provenance.scope.contract.DefinitionSpec.Type type = 4;
* @return The type.
*/
io.provenance.scope.contract.proto.Commons.DefinitionSpec.Type getType();
}
/**
* Protobuf type {@code io.provenance.scope.contract.DefinitionSpec}
*/
public static final class DefinitionSpec extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.provenance.scope.contract.DefinitionSpec)
DefinitionSpecOrBuilder {
private static final long serialVersionUID = 0L;
// Use DefinitionSpec.newBuilder() to construct.
private DefinitionSpec(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DefinitionSpec() {
name_ = "";
type_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DefinitionSpec();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DefinitionSpec(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 18: {
io.provenance.scope.contract.proto.Commons.Location.Builder subBuilder = null;
if (resourceLocation_ != null) {
subBuilder = resourceLocation_.toBuilder();
}
resourceLocation_ = input.readMessage(io.provenance.scope.contract.proto.Commons.Location.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(resourceLocation_);
resourceLocation_ = subBuilder.buildPartial();
}
break;
}
case 26: {
io.provenance.scope.proto.Common.Signature.Builder subBuilder = null;
if (signature_ != null) {
subBuilder = signature_.toBuilder();
}
signature_ = input.readMessage(io.provenance.scope.proto.Common.Signature.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(signature_);
signature_ = subBuilder.buildPartial();
}
break;
}
case 32: {
int rawValue = input.readEnum();
type_ = rawValue;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.provenance.scope.contract.proto.Commons.internal_static_io_provenance_scope_contract_DefinitionSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.provenance.scope.contract.proto.Commons.internal_static_io_provenance_scope_contract_DefinitionSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.provenance.scope.contract.proto.Commons.DefinitionSpec.class, io.provenance.scope.contract.proto.Commons.DefinitionSpec.Builder.class);
}
/**
* Protobuf enum {@code io.provenance.scope.contract.DefinitionSpec.Type}
*/
public enum Type
implements com.google.protobuf.ProtocolMessageEnum {
/**
* NO_DEF_TYPE = 0;
*/
NO_DEF_TYPE(0),
/**
* PROPOSED = 1;
*/
PROPOSED(1),
/**
* FACT = 2;
*/
FACT(2),
/**
* FACT_LIST = 3;
*/
FACT_LIST(3),
UNRECOGNIZED(-1),
;
/**
* NO_DEF_TYPE = 0;
*/
public static final int NO_DEF_TYPE_VALUE = 0;
/**
* PROPOSED = 1;
*/
public static final int PROPOSED_VALUE = 1;
/**
* FACT = 2;
*/
public static final int FACT_VALUE = 2;
/**
* FACT_LIST = 3;
*/
public static final int FACT_LIST_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Type valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Type forNumber(int value) {
switch (value) {
case 0: return NO_DEF_TYPE;
case 1: return PROPOSED;
case 2: return FACT;
case 3: return FACT_LIST;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Type> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Type findValueByNumber(int number) {
return Type.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.provenance.scope.contract.proto.Commons.DefinitionSpec.getDescriptor().getEnumTypes().get(0);
}
private static final Type[] VALUES = values();
public static Type valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Type(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:io.provenance.scope.contract.DefinitionSpec.Type)
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
* string name = 1;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
* string name = 1;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RESOURCE_LOCATION_FIELD_NUMBER = 2;
private io.provenance.scope.contract.proto.Commons.Location resourceLocation_;
/**
* .io.provenance.scope.contract.Location resource_location = 2;
* @return Whether the resourceLocation field is set.
*/
@java.lang.Override
public boolean hasResourceLocation() {
return resourceLocation_ != null;
}
/**
* .io.provenance.scope.contract.Location resource_location = 2;
* @return The resourceLocation.
*/
@java.lang.Override
public io.provenance.scope.contract.proto.Commons.Location getResourceLocation() {
return resourceLocation_ == null ? io.provenance.scope.contract.proto.Commons.Location.getDefaultInstance() : resourceLocation_;
}
/**
* .io.provenance.scope.contract.Location resource_location = 2;
*/
@java.lang.Override
public io.provenance.scope.contract.proto.Commons.LocationOrBuilder getResourceLocationOrBuilder() {
return getResourceLocation();
}
public static final int SIGNATURE_FIELD_NUMBER = 3;
private io.provenance.scope.proto.Common.Signature signature_;
/**
* .io.provenance.scope.Signature signature = 3;
* @return Whether the signature field is set.
*/
@java.lang.Override
public boolean hasSignature() {
return signature_ != null;
}
/**
* .io.provenance.scope.Signature signature = 3;
* @return The signature.
*/
@java.lang.Override
public io.provenance.scope.proto.Common.Signature getSignature() {
return signature_ == null ? io.provenance.scope.proto.Common.Signature.getDefaultInstance() : signature_;
}
/**
* .io.provenance.scope.Signature signature = 3;
*/
@java.lang.Override
public io.provenance.scope.proto.Common.SignatureOrBuilder getSignatureOrBuilder() {
return getSignature();
}
public static final int TYPE_FIELD_NUMBER = 4;
private int type_;
/**
* .io.provenance.scope.contract.DefinitionSpec.Type type = 4;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
* .io.provenance.scope.contract.DefinitionSpec.Type type = 4;
* @return The type.
*/
@java.lang.Override public io.provenance.scope.contract.proto.Commons.DefinitionSpec.Type getType() {
@SuppressWarnings("deprecation")
io.provenance.scope.contract.proto.Commons.DefinitionSpec.Type result = io.provenance.scope.contract.proto.Commons.DefinitionSpec.Type.valueOf(type_);
return result == null ? io.provenance.scope.contract.proto.Commons.DefinitionSpec.Type.UNRECOGNIZED : result;
}
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 (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (resourceLocation_ != null) {
output.writeMessage(2, getResourceLocation());
}
if (signature_ != null) {
output.writeMessage(3, getSignature());
}
if (type_ != io.provenance.scope.contract.proto.Commons.DefinitionSpec.Type.NO_DEF_TYPE.getNumber()) {
output.writeEnum(4, type_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (resourceLocation_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getResourceLocation());
}
if (signature_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getSignature());
}
if (type_ != io.provenance.scope.contract.proto.Commons.DefinitionSpec.Type.NO_DEF_TYPE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, type_);
}
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.scope.contract.proto.Commons.DefinitionSpec)) {
return super.equals(obj);
}
io.provenance.scope.contract.proto.Commons.DefinitionSpec other = (io.provenance.scope.contract.proto.Commons.DefinitionSpec) obj;
if (!getName()
.equals(other.getName())) return false;
if (hasResourceLocation() != other.hasResourceLocation()) return false;
if (hasResourceLocation()) {
if (!getResourceLocation()
.equals(other.getResourceLocation())) return false;
}
if (hasSignature() != other.hasSignature()) return false;
if (hasSignature()) {
if (!getSignature()
.equals(other.getSignature())) return false;
}
if (type_ != other.type_) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (hasResourceLocation()) {
hash = (37 * hash) + RESOURCE_LOCATION_FIELD_NUMBER;
hash = (53 * hash) + getResourceLocation().hashCode();
}
if (hasSignature()) {
hash = (37 * hash) + SIGNATURE_FIELD_NUMBER;
hash = (53 * hash) + getSignature().hashCode();
}
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.provenance.scope.contract.proto.Commons.DefinitionSpec parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.scope.contract.proto.Commons.DefinitionSpec parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.provenance.scope.contract.proto.Commons.DefinitionSpec parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.scope.contract.proto.Commons.DefinitionSpec 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.scope.contract.proto.Commons.DefinitionSpec parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.scope.contract.proto.Commons.DefinitionSpec parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.provenance.scope.contract.proto.Commons.DefinitionSpec parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.provenance.scope.contract.proto.Commons.DefinitionSpec 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.scope.contract.proto.Commons.DefinitionSpec parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.provenance.scope.contract.proto.Commons.DefinitionSpec 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.scope.contract.proto.Commons.DefinitionSpec parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.provenance.scope.contract.proto.Commons.DefinitionSpec 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.scope.contract.proto.Commons.DefinitionSpec 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 io.provenance.scope.contract.DefinitionSpec}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.provenance.scope.contract.DefinitionSpec)
io.provenance.scope.contract.proto.Commons.DefinitionSpecOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.provenance.scope.contract.proto.Commons.internal_static_io_provenance_scope_contract_DefinitionSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.provenance.scope.contract.proto.Commons.internal_static_io_provenance_scope_contract_DefinitionSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.provenance.scope.contract.proto.Commons.DefinitionSpec.class, io.provenance.scope.contract.proto.Commons.DefinitionSpec.Builder.class);
}
// Construct using io.provenance.scope.contract.proto.Commons.DefinitionSpec.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
if (resourceLocationBuilder_ == null) {
resourceLocation_ = null;
} else {
resourceLocation_ = null;
resourceLocationBuilder_ = null;
}
if (signatureBuilder_ == null) {
signature_ = null;
} else {
signature_ = null;
signatureBuilder_ = null;
}
type_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.provenance.scope.contract.proto.Commons.internal_static_io_provenance_scope_contract_DefinitionSpec_descriptor;
}
@java.lang.Override
public io.provenance.scope.contract.proto.Commons.DefinitionSpec getDefaultInstanceForType() {
return io.provenance.scope.contract.proto.Commons.DefinitionSpec.getDefaultInstance();
}
@java.lang.Override
public io.provenance.scope.contract.proto.Commons.DefinitionSpec build() {
io.provenance.scope.contract.proto.Commons.DefinitionSpec result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.provenance.scope.contract.proto.Commons.DefinitionSpec buildPartial() {
io.provenance.scope.contract.proto.Commons.DefinitionSpec result = new io.provenance.scope.contract.proto.Commons.DefinitionSpec(this);
result.name_ = name_;
if (resourceLocationBuilder_ == null) {
result.resourceLocation_ = resourceLocation_;
} else {
result.resourceLocation_ = resourceLocationBuilder_.build();
}
if (signatureBuilder_ == null) {
result.signature_ = signature_;
} else {
result.signature_ = signatureBuilder_.build();
}
result.type_ = type_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.provenance.scope.contract.proto.Commons.DefinitionSpec) {
return mergeFrom((io.provenance.scope.contract.proto.Commons.DefinitionSpec)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.provenance.scope.contract.proto.Commons.DefinitionSpec other) {
if (other == io.provenance.scope.contract.proto.Commons.DefinitionSpec.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.hasResourceLocation()) {
mergeResourceLocation(other.getResourceLocation());
}
if (other.hasSignature()) {
mergeSignature(other.getSignature());
}
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
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.scope.contract.proto.Commons.DefinitionSpec parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.provenance.scope.contract.proto.Commons.DefinitionSpec) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object name_ = "";
/**
* string name = 1;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string name = 1;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string name = 1;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
* string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* string name = 1;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private io.provenance.scope.contract.proto.Commons.Location resourceLocation_;
private com.google.protobuf.SingleFieldBuilderV3<
io.provenance.scope.contract.proto.Commons.Location, io.provenance.scope.contract.proto.Commons.Location.Builder, io.provenance.scope.contract.proto.Commons.LocationOrBuilder> resourceLocationBuilder_;
/**
* .io.provenance.scope.contract.Location resource_location = 2;
* @return Whether the resourceLocation field is set.
*/
public boolean hasResourceLocation() {
return resourceLocationBuilder_ != null || resourceLocation_ != null;
}
/**
* .io.provenance.scope.contract.Location resource_location = 2;
* @return The resourceLocation.
*/
public io.provenance.scope.contract.proto.Commons.Location getResourceLocation() {
if (resourceLocationBuilder_ == null) {
return resourceLocation_ == null ? io.provenance.scope.contract.proto.Commons.Location.getDefaultInstance() : resourceLocation_;
} else {
return resourceLocationBuilder_.getMessage();
}
}
/**
* .io.provenance.scope.contract.Location resource_location = 2;
*/
public Builder setResourceLocation(io.provenance.scope.contract.proto.Commons.Location value) {
if (resourceLocationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
resourceLocation_ = value;
onChanged();
} else {
resourceLocationBuilder_.setMessage(value);
}
return this;
}
/**
* .io.provenance.scope.contract.Location resource_location = 2;
*/
public Builder setResourceLocation(
io.provenance.scope.contract.proto.Commons.Location.Builder builderForValue) {
if (resourceLocationBuilder_ == null) {
resourceLocation_ = builderForValue.build();
onChanged();
} else {
resourceLocationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .io.provenance.scope.contract.Location resource_location = 2;
*/
public Builder mergeResourceLocation(io.provenance.scope.contract.proto.Commons.Location value) {
if (resourceLocationBuilder_ == null) {
if (resourceLocation_ != null) {
resourceLocation_ =
io.provenance.scope.contract.proto.Commons.Location.newBuilder(resourceLocation_).mergeFrom(value).buildPartial();
} else {
resourceLocation_ = value;
}
onChanged();
} else {
resourceLocationBuilder_.mergeFrom(value);
}
return this;
}
/**
* .io.provenance.scope.contract.Location resource_location = 2;
*/
public Builder clearResourceLocation() {
if (resourceLocationBuilder_ == null) {
resourceLocation_ = null;
onChanged();
} else {
resourceLocation_ = null;
resourceLocationBuilder_ = null;
}
return this;
}
/**
* .io.provenance.scope.contract.Location resource_location = 2;
*/
public io.provenance.scope.contract.proto.Commons.Location.Builder getResourceLocationBuilder() {
onChanged();
return getResourceLocationFieldBuilder().getBuilder();
}
/**
* .io.provenance.scope.contract.Location resource_location = 2;
*/
public io.provenance.scope.contract.proto.Commons.LocationOrBuilder getResourceLocationOrBuilder() {
if (resourceLocationBuilder_ != null) {
return resourceLocationBuilder_.getMessageOrBuilder();
} else {
return resourceLocation_ == null ?
io.provenance.scope.contract.proto.Commons.Location.getDefaultInstance() : resourceLocation_;
}
}
/**
* .io.provenance.scope.contract.Location resource_location = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.provenance.scope.contract.proto.Commons.Location, io.provenance.scope.contract.proto.Commons.Location.Builder, io.provenance.scope.contract.proto.Commons.LocationOrBuilder>
getResourceLocationFieldBuilder() {
if (resourceLocationBuilder_ == null) {
resourceLocationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.provenance.scope.contract.proto.Commons.Location, io.provenance.scope.contract.proto.Commons.Location.Builder, io.provenance.scope.contract.proto.Commons.LocationOrBuilder>(
getResourceLocation(),
getParentForChildren(),
isClean());
resourceLocation_ = null;
}
return resourceLocationBuilder_;
}
private io.provenance.scope.proto.Common.Signature signature_;
private com.google.protobuf.SingleFieldBuilderV3<
io.provenance.scope.proto.Common.Signature, io.provenance.scope.proto.Common.Signature.Builder, io.provenance.scope.proto.Common.SignatureOrBuilder> signatureBuilder_;
/**
* .io.provenance.scope.Signature signature = 3;
* @return Whether the signature field is set.
*/
public boolean hasSignature() {
return signatureBuilder_ != null || signature_ != null;
}
/**
* .io.provenance.scope.Signature signature = 3;
* @return The signature.
*/
public io.provenance.scope.proto.Common.Signature getSignature() {
if (signatureBuilder_ == null) {
return signature_ == null ? io.provenance.scope.proto.Common.Signature.getDefaultInstance() : signature_;
} else {
return signatureBuilder_.getMessage();
}
}
/**
* .io.provenance.scope.Signature signature = 3;
*/
public Builder setSignature(io.provenance.scope.proto.Common.Signature value) {
if (signatureBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
signature_ = value;
onChanged();
} else {
signatureBuilder_.setMessage(value);
}
return this;
}
/**
* .io.provenance.scope.Signature signature = 3;
*/
public Builder setSignature(
io.provenance.scope.proto.Common.Signature.Builder builderForValue) {
if (signatureBuilder_ == null) {
signature_ = builderForValue.build();
onChanged();
} else {
signatureBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .io.provenance.scope.Signature signature = 3;
*/
public Builder mergeSignature(io.provenance.scope.proto.Common.Signature value) {
if (signatureBuilder_ == null) {
if (signature_ != null) {
signature_ =
io.provenance.scope.proto.Common.Signature.newBuilder(signature_).mergeFrom(value).buildPartial();
} else {
signature_ = value;
}
onChanged();
} else {
signatureBuilder_.mergeFrom(value);
}
return this;
}
/**
* .io.provenance.scope.Signature signature = 3;
*/
public Builder clearSignature() {
if (signatureBuilder_ == null) {
signature_ = null;
onChanged();
} else {
signature_ = null;
signatureBuilder_ = null;
}
return this;
}
/**
* .io.provenance.scope.Signature signature = 3;
*/
public io.provenance.scope.proto.Common.Signature.Builder getSignatureBuilder() {
onChanged();
return getSignatureFieldBuilder().getBuilder();
}
/**
* .io.provenance.scope.Signature signature = 3;
*/
public io.provenance.scope.proto.Common.SignatureOrBuilder getSignatureOrBuilder() {
if (signatureBuilder_ != null) {
return signatureBuilder_.getMessageOrBuilder();
} else {
return signature_ == null ?
io.provenance.scope.proto.Common.Signature.getDefaultInstance() : signature_;
}
}
/**
* .io.provenance.scope.Signature signature = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.provenance.scope.proto.Common.Signature, io.provenance.scope.proto.Common.Signature.Builder, io.provenance.scope.proto.Common.SignatureOrBuilder>
getSignatureFieldBuilder() {
if (signatureBuilder_ == null) {
signatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.provenance.scope.proto.Common.Signature, io.provenance.scope.proto.Common.Signature.Builder, io.provenance.scope.proto.Common.SignatureOrBuilder>(
getSignature(),
getParentForChildren(),
isClean());
signature_ = null;
}
return signatureBuilder_;
}
private int type_ = 0;
/**
* .io.provenance.scope.contract.DefinitionSpec.Type type = 4;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
* .io.provenance.scope.contract.DefinitionSpec.Type type = 4;
* @param value The enum numeric value on the wire for type to set.
* @return This builder for chaining.
*/
public Builder setTypeValue(int value) {
type_ = value;
onChanged();
return this;
}
/**
* .io.provenance.scope.contract.DefinitionSpec.Type type = 4;
* @return The type.
*/
@java.lang.Override
public io.provenance.scope.contract.proto.Commons.DefinitionSpec.Type getType() {
@SuppressWarnings("deprecation")
io.provenance.scope.contract.proto.Commons.DefinitionSpec.Type result = io.provenance.scope.contract.proto.Commons.DefinitionSpec.Type.valueOf(type_);
return result == null ? io.provenance.scope.contract.proto.Commons.DefinitionSpec.Type.UNRECOGNIZED : result;
}
/**
* .io.provenance.scope.contract.DefinitionSpec.Type type = 4;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(io.provenance.scope.contract.proto.Commons.DefinitionSpec.Type value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value.getNumber();
onChanged();
return this;
}
/**
* .io.provenance.scope.contract.DefinitionSpec.Type type = 4;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:io.provenance.scope.contract.DefinitionSpec)
}
// @@protoc_insertion_point(class_scope:io.provenance.scope.contract.DefinitionSpec)
private static final io.provenance.scope.contract.proto.Commons.DefinitionSpec DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.provenance.scope.contract.proto.Commons.DefinitionSpec();
}
public static io.provenance.scope.contract.proto.Commons.DefinitionSpec getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DefinitionSpec parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DefinitionSpec(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.scope.contract.proto.Commons.DefinitionSpec getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface OutputSpecOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.provenance.scope.contract.OutputSpec)
com.google.protobuf.MessageOrBuilder {
/**
* .io.provenance.scope.contract.DefinitionSpec spec = 1;
* @return Whether the spec field is set.
*/
boolean hasSpec();
/**
* .io.provenance.scope.contract.DefinitionSpec spec = 1;
* @return The spec.
*/
io.provenance.scope.contract.proto.Commons.DefinitionSpec getSpec();
/**
* .io.provenance.scope.contract.DefinitionSpec spec = 1;
*/
io.provenance.scope.contract.proto.Commons.DefinitionSpecOrBuilder getSpecOrBuilder();
}
/**
* Protobuf type {@code io.provenance.scope.contract.OutputSpec}
*/
public static final class OutputSpec extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.provenance.scope.contract.OutputSpec)
OutputSpecOrBuilder {
private static final long serialVersionUID = 0L;
// Use OutputSpec.newBuilder() to construct.
private OutputSpec(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private OutputSpec() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new OutputSpec();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private OutputSpec(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
io.provenance.scope.contract.proto.Commons.DefinitionSpec.Builder subBuilder = null;
if (spec_ != null) {
subBuilder = spec_.toBuilder();
}
spec_ = input.readMessage(io.provenance.scope.contract.proto.Commons.DefinitionSpec.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(spec_);
spec_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.provenance.scope.contract.proto.Commons.internal_static_io_provenance_scope_contract_OutputSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.provenance.scope.contract.proto.Commons.internal_static_io_provenance_scope_contract_OutputSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.provenance.scope.contract.proto.Commons.OutputSpec.class, io.provenance.scope.contract.proto.Commons.OutputSpec.Builder.class);
}
public static final int SPEC_FIELD_NUMBER = 1;
private io.provenance.scope.contract.proto.Commons.DefinitionSpec spec_;
/**
* .io.provenance.scope.contract.DefinitionSpec spec = 1;
* @return Whether the spec field is set.
*/
@java.lang.Override
public boolean hasSpec() {
return spec_ != null;
}
/**
* .io.provenance.scope.contract.DefinitionSpec spec = 1;
* @return The spec.
*/
@java.lang.Override
public io.provenance.scope.contract.proto.Commons.DefinitionSpec getSpec() {
return spec_ == null ? io.provenance.scope.contract.proto.Commons.DefinitionSpec.getDefaultInstance() : spec_;
}
/**
* .io.provenance.scope.contract.DefinitionSpec spec = 1;
*/
@java.lang.Override
public io.provenance.scope.contract.proto.Commons.DefinitionSpecOrBuilder getSpecOrBuilder() {
return getSpec();
}
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 (spec_ != null) {
output.writeMessage(1, getSpec());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (spec_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getSpec());
}
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.scope.contract.proto.Commons.OutputSpec)) {
return super.equals(obj);
}
io.provenance.scope.contract.proto.Commons.OutputSpec other = (io.provenance.scope.contract.proto.Commons.OutputSpec) obj;
if (hasSpec() != other.hasSpec()) return false;
if (hasSpec()) {
if (!getSpec()
.equals(other.getSpec())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasSpec()) {
hash = (37 * hash) + SPEC_FIELD_NUMBER;
hash = (53 * hash) + getSpec().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.provenance.scope.contract.proto.Commons.OutputSpec parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.scope.contract.proto.Commons.OutputSpec parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.provenance.scope.contract.proto.Commons.OutputSpec parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.scope.contract.proto.Commons.OutputSpec 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.scope.contract.proto.Commons.OutputSpec parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.scope.contract.proto.Commons.OutputSpec parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.provenance.scope.contract.proto.Commons.OutputSpec parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.provenance.scope.contract.proto.Commons.OutputSpec 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.scope.contract.proto.Commons.OutputSpec parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.provenance.scope.contract.proto.Commons.OutputSpec 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.scope.contract.proto.Commons.OutputSpec parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.provenance.scope.contract.proto.Commons.OutputSpec 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.scope.contract.proto.Commons.OutputSpec 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 io.provenance.scope.contract.OutputSpec}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.provenance.scope.contract.OutputSpec)
io.provenance.scope.contract.proto.Commons.OutputSpecOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.provenance.scope.contract.proto.Commons.internal_static_io_provenance_scope_contract_OutputSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.provenance.scope.contract.proto.Commons.internal_static_io_provenance_scope_contract_OutputSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.provenance.scope.contract.proto.Commons.OutputSpec.class, io.provenance.scope.contract.proto.Commons.OutputSpec.Builder.class);
}
// Construct using io.provenance.scope.contract.proto.Commons.OutputSpec.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (specBuilder_ == null) {
spec_ = null;
} else {
spec_ = null;
specBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.provenance.scope.contract.proto.Commons.internal_static_io_provenance_scope_contract_OutputSpec_descriptor;
}
@java.lang.Override
public io.provenance.scope.contract.proto.Commons.OutputSpec getDefaultInstanceForType() {
return io.provenance.scope.contract.proto.Commons.OutputSpec.getDefaultInstance();
}
@java.lang.Override
public io.provenance.scope.contract.proto.Commons.OutputSpec build() {
io.provenance.scope.contract.proto.Commons.OutputSpec result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.provenance.scope.contract.proto.Commons.OutputSpec buildPartial() {
io.provenance.scope.contract.proto.Commons.OutputSpec result = new io.provenance.scope.contract.proto.Commons.OutputSpec(this);
if (specBuilder_ == null) {
result.spec_ = spec_;
} else {
result.spec_ = specBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.provenance.scope.contract.proto.Commons.OutputSpec) {
return mergeFrom((io.provenance.scope.contract.proto.Commons.OutputSpec)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.provenance.scope.contract.proto.Commons.OutputSpec other) {
if (other == io.provenance.scope.contract.proto.Commons.OutputSpec.getDefaultInstance()) return this;
if (other.hasSpec()) {
mergeSpec(other.getSpec());
}
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.scope.contract.proto.Commons.OutputSpec parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.provenance.scope.contract.proto.Commons.OutputSpec) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private io.provenance.scope.contract.proto.Commons.DefinitionSpec spec_;
private com.google.protobuf.SingleFieldBuilderV3<
io.provenance.scope.contract.proto.Commons.DefinitionSpec, io.provenance.scope.contract.proto.Commons.DefinitionSpec.Builder, io.provenance.scope.contract.proto.Commons.DefinitionSpecOrBuilder> specBuilder_;
/**
* .io.provenance.scope.contract.DefinitionSpec spec = 1;
* @return Whether the spec field is set.
*/
public boolean hasSpec() {
return specBuilder_ != null || spec_ != null;
}
/**
* .io.provenance.scope.contract.DefinitionSpec spec = 1;
* @return The spec.
*/
public io.provenance.scope.contract.proto.Commons.DefinitionSpec getSpec() {
if (specBuilder_ == null) {
return spec_ == null ? io.provenance.scope.contract.proto.Commons.DefinitionSpec.getDefaultInstance() : spec_;
} else {
return specBuilder_.getMessage();
}
}
/**
* .io.provenance.scope.contract.DefinitionSpec spec = 1;
*/
public Builder setSpec(io.provenance.scope.contract.proto.Commons.DefinitionSpec value) {
if (specBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
spec_ = value;
onChanged();
} else {
specBuilder_.setMessage(value);
}
return this;
}
/**
* .io.provenance.scope.contract.DefinitionSpec spec = 1;
*/
public Builder setSpec(
io.provenance.scope.contract.proto.Commons.DefinitionSpec.Builder builderForValue) {
if (specBuilder_ == null) {
spec_ = builderForValue.build();
onChanged();
} else {
specBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .io.provenance.scope.contract.DefinitionSpec spec = 1;
*/
public Builder mergeSpec(io.provenance.scope.contract.proto.Commons.DefinitionSpec value) {
if (specBuilder_ == null) {
if (spec_ != null) {
spec_ =
io.provenance.scope.contract.proto.Commons.DefinitionSpec.newBuilder(spec_).mergeFrom(value).buildPartial();
} else {
spec_ = value;
}
onChanged();
} else {
specBuilder_.mergeFrom(value);
}
return this;
}
/**
* .io.provenance.scope.contract.DefinitionSpec spec = 1;
*/
public Builder clearSpec() {
if (specBuilder_ == null) {
spec_ = null;
onChanged();
} else {
spec_ = null;
specBuilder_ = null;
}
return this;
}
/**
* .io.provenance.scope.contract.DefinitionSpec spec = 1;
*/
public io.provenance.scope.contract.proto.Commons.DefinitionSpec.Builder getSpecBuilder() {
onChanged();
return getSpecFieldBuilder().getBuilder();
}
/**
* .io.provenance.scope.contract.DefinitionSpec spec = 1;
*/
public io.provenance.scope.contract.proto.Commons.DefinitionSpecOrBuilder getSpecOrBuilder() {
if (specBuilder_ != null) {
return specBuilder_.getMessageOrBuilder();
} else {
return spec_ == null ?
io.provenance.scope.contract.proto.Commons.DefinitionSpec.getDefaultInstance() : spec_;
}
}
/**
* .io.provenance.scope.contract.DefinitionSpec spec = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.provenance.scope.contract.proto.Commons.DefinitionSpec, io.provenance.scope.contract.proto.Commons.DefinitionSpec.Builder, io.provenance.scope.contract.proto.Commons.DefinitionSpecOrBuilder>
getSpecFieldBuilder() {
if (specBuilder_ == null) {
specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.provenance.scope.contract.proto.Commons.DefinitionSpec, io.provenance.scope.contract.proto.Commons.DefinitionSpec.Builder, io.provenance.scope.contract.proto.Commons.DefinitionSpecOrBuilder>(
getSpec(),
getParentForChildren(),
isClean());
spec_ = null;
}
return specBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:io.provenance.scope.contract.OutputSpec)
}
// @@protoc_insertion_point(class_scope:io.provenance.scope.contract.OutputSpec)
private static final io.provenance.scope.contract.proto.Commons.OutputSpec DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.provenance.scope.contract.proto.Commons.OutputSpec();
}
public static io.provenance.scope.contract.proto.Commons.OutputSpec getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public OutputSpec parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new OutputSpec(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.scope.contract.proto.Commons.OutputSpec getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LocationOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.provenance.scope.contract.Location)
com.google.protobuf.MessageOrBuilder {
/**
* .io.provenance.scope.contract.ProvenanceReference ref = 1;
* @return Whether the ref field is set.
*/
boolean hasRef();
/**
* .io.provenance.scope.contract.ProvenanceReference ref = 1;
* @return The ref.
*/
io.provenance.scope.contract.proto.Commons.ProvenanceReference getRef();
/**
* .io.provenance.scope.contract.ProvenanceReference ref = 1;
*/
io.provenance.scope.contract.proto.Commons.ProvenanceReferenceOrBuilder getRefOrBuilder();
/**
* string classname = 2;
* @return The classname.
*/
java.lang.String getClassname();
/**
* string classname = 2;
* @return The bytes for classname.
*/
com.google.protobuf.ByteString
getClassnameBytes();
}
/**
* Protobuf type {@code io.provenance.scope.contract.Location}
*/
public static final class Location extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.provenance.scope.contract.Location)
LocationOrBuilder {
private static final long serialVersionUID = 0L;
// Use Location.newBuilder() to construct.
private Location(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Location() {
classname_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Location();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Location(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
io.provenance.scope.contract.proto.Commons.ProvenanceReference.Builder subBuilder = null;
if (ref_ != null) {
subBuilder = ref_.toBuilder();
}
ref_ = input.readMessage(io.provenance.scope.contract.proto.Commons.ProvenanceReference.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(ref_);
ref_ = subBuilder.buildPartial();
}
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
classname_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.provenance.scope.contract.proto.Commons.internal_static_io_provenance_scope_contract_Location_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.provenance.scope.contract.proto.Commons.internal_static_io_provenance_scope_contract_Location_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.provenance.scope.contract.proto.Commons.Location.class, io.provenance.scope.contract.proto.Commons.Location.Builder.class);
}
public static final int REF_FIELD_NUMBER = 1;
private io.provenance.scope.contract.proto.Commons.ProvenanceReference ref_;
/**
* .io.provenance.scope.contract.ProvenanceReference ref = 1;
* @return Whether the ref field is set.
*/
@java.lang.Override
public boolean hasRef() {
return ref_ != null;
}
/**
* .io.provenance.scope.contract.ProvenanceReference ref = 1;
* @return The ref.
*/
@java.lang.Override
public io.provenance.scope.contract.proto.Commons.ProvenanceReference getRef() {
return ref_ == null ? io.provenance.scope.contract.proto.Commons.ProvenanceReference.getDefaultInstance() : ref_;
}
/**
* .io.provenance.scope.contract.ProvenanceReference ref = 1;
*/
@java.lang.Override
public io.provenance.scope.contract.proto.Commons.ProvenanceReferenceOrBuilder getRefOrBuilder() {
return getRef();
}
public static final int CLASSNAME_FIELD_NUMBER = 2;
private volatile java.lang.Object classname_;
/**
* string classname = 2;
* @return The classname.
*/
@java.lang.Override
public java.lang.String getClassname() {
java.lang.Object ref = classname_;
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();
classname_ = s;
return s;
}
}
/**
* string classname = 2;
* @return The bytes for classname.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getClassnameBytes() {
java.lang.Object ref = classname_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
classname_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (ref_ != null) {
output.writeMessage(1, getRef());
}
if (!getClassnameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, classname_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (ref_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getRef());
}
if (!getClassnameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, classname_);
}
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.scope.contract.proto.Commons.Location)) {
return super.equals(obj);
}
io.provenance.scope.contract.proto.Commons.Location other = (io.provenance.scope.contract.proto.Commons.Location) obj;
if (hasRef() != other.hasRef()) return false;
if (hasRef()) {
if (!getRef()
.equals(other.getRef())) return false;
}
if (!getClassname()
.equals(other.getClassname())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasRef()) {
hash = (37 * hash) + REF_FIELD_NUMBER;
hash = (53 * hash) + getRef().hashCode();
}
hash = (37 * hash) + CLASSNAME_FIELD_NUMBER;
hash = (53 * hash) + getClassname().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.provenance.scope.contract.proto.Commons.Location parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.scope.contract.proto.Commons.Location parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.provenance.scope.contract.proto.Commons.Location parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.scope.contract.proto.Commons.Location 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.scope.contract.proto.Commons.Location parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.scope.contract.proto.Commons.Location parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.provenance.scope.contract.proto.Commons.Location parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.provenance.scope.contract.proto.Commons.Location 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.scope.contract.proto.Commons.Location parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.provenance.scope.contract.proto.Commons.Location 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.scope.contract.proto.Commons.Location parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.provenance.scope.contract.proto.Commons.Location 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.scope.contract.proto.Commons.Location 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 io.provenance.scope.contract.Location}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.provenance.scope.contract.Location)
io.provenance.scope.contract.proto.Commons.LocationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.provenance.scope.contract.proto.Commons.internal_static_io_provenance_scope_contract_Location_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.provenance.scope.contract.proto.Commons.internal_static_io_provenance_scope_contract_Location_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.provenance.scope.contract.proto.Commons.Location.class, io.provenance.scope.contract.proto.Commons.Location.Builder.class);
}
// Construct using io.provenance.scope.contract.proto.Commons.Location.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (refBuilder_ == null) {
ref_ = null;
} else {
ref_ = null;
refBuilder_ = null;
}
classname_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.provenance.scope.contract.proto.Commons.internal_static_io_provenance_scope_contract_Location_descriptor;
}
@java.lang.Override
public io.provenance.scope.contract.proto.Commons.Location getDefaultInstanceForType() {
return io.provenance.scope.contract.proto.Commons.Location.getDefaultInstance();
}
@java.lang.Override
public io.provenance.scope.contract.proto.Commons.Location build() {
io.provenance.scope.contract.proto.Commons.Location result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.provenance.scope.contract.proto.Commons.Location buildPartial() {
io.provenance.scope.contract.proto.Commons.Location result = new io.provenance.scope.contract.proto.Commons.Location(this);
if (refBuilder_ == null) {
result.ref_ = ref_;
} else {
result.ref_ = refBuilder_.build();
}
result.classname_ = classname_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.provenance.scope.contract.proto.Commons.Location) {
return mergeFrom((io.provenance.scope.contract.proto.Commons.Location)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.provenance.scope.contract.proto.Commons.Location other) {
if (other == io.provenance.scope.contract.proto.Commons.Location.getDefaultInstance()) return this;
if (other.hasRef()) {
mergeRef(other.getRef());
}
if (!other.getClassname().isEmpty()) {
classname_ = other.classname_;
onChanged();
}
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.scope.contract.proto.Commons.Location parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.provenance.scope.contract.proto.Commons.Location) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private io.provenance.scope.contract.proto.Commons.ProvenanceReference ref_;
private com.google.protobuf.SingleFieldBuilderV3<
io.provenance.scope.contract.proto.Commons.ProvenanceReference, io.provenance.scope.contract.proto.Commons.ProvenanceReference.Builder, io.provenance.scope.contract.proto.Commons.ProvenanceReferenceOrBuilder> refBuilder_;
/**
* .io.provenance.scope.contract.ProvenanceReference ref = 1;
* @return Whether the ref field is set.
*/
public boolean hasRef() {
return refBuilder_ != null || ref_ != null;
}
/**
* .io.provenance.scope.contract.ProvenanceReference ref = 1;
* @return The ref.
*/
public io.provenance.scope.contract.proto.Commons.ProvenanceReference getRef() {
if (refBuilder_ == null) {
return ref_ == null ? io.provenance.scope.contract.proto.Commons.ProvenanceReference.getDefaultInstance() : ref_;
} else {
return refBuilder_.getMessage();
}
}
/**
* .io.provenance.scope.contract.ProvenanceReference ref = 1;
*/
public Builder setRef(io.provenance.scope.contract.proto.Commons.ProvenanceReference value) {
if (refBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ref_ = value;
onChanged();
} else {
refBuilder_.setMessage(value);
}
return this;
}
/**
* .io.provenance.scope.contract.ProvenanceReference ref = 1;
*/
public Builder setRef(
io.provenance.scope.contract.proto.Commons.ProvenanceReference.Builder builderForValue) {
if (refBuilder_ == null) {
ref_ = builderForValue.build();
onChanged();
} else {
refBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .io.provenance.scope.contract.ProvenanceReference ref = 1;
*/
public Builder mergeRef(io.provenance.scope.contract.proto.Commons.ProvenanceReference value) {
if (refBuilder_ == null) {
if (ref_ != null) {
ref_ =
io.provenance.scope.contract.proto.Commons.ProvenanceReference.newBuilder(ref_).mergeFrom(value).buildPartial();
} else {
ref_ = value;
}
onChanged();
} else {
refBuilder_.mergeFrom(value);
}
return this;
}
/**
* .io.provenance.scope.contract.ProvenanceReference ref = 1;
*/
public Builder clearRef() {
if (refBuilder_ == null) {
ref_ = null;
onChanged();
} else {
ref_ = null;
refBuilder_ = null;
}
return this;
}
/**
* .io.provenance.scope.contract.ProvenanceReference ref = 1;
*/
public io.provenance.scope.contract.proto.Commons.ProvenanceReference.Builder getRefBuilder() {
onChanged();
return getRefFieldBuilder().getBuilder();
}
/**
* .io.provenance.scope.contract.ProvenanceReference ref = 1;
*/
public io.provenance.scope.contract.proto.Commons.ProvenanceReferenceOrBuilder getRefOrBuilder() {
if (refBuilder_ != null) {
return refBuilder_.getMessageOrBuilder();
} else {
return ref_ == null ?
io.provenance.scope.contract.proto.Commons.ProvenanceReference.getDefaultInstance() : ref_;
}
}
/**
* .io.provenance.scope.contract.ProvenanceReference ref = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.provenance.scope.contract.proto.Commons.ProvenanceReference, io.provenance.scope.contract.proto.Commons.ProvenanceReference.Builder, io.provenance.scope.contract.proto.Commons.ProvenanceReferenceOrBuilder>
getRefFieldBuilder() {
if (refBuilder_ == null) {
refBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.provenance.scope.contract.proto.Commons.ProvenanceReference, io.provenance.scope.contract.proto.Commons.ProvenanceReference.Builder, io.provenance.scope.contract.proto.Commons.ProvenanceReferenceOrBuilder>(
getRef(),
getParentForChildren(),
isClean());
ref_ = null;
}
return refBuilder_;
}
private java.lang.Object classname_ = "";
/**
* string classname = 2;
* @return The classname.
*/
public java.lang.String getClassname() {
java.lang.Object ref = classname_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
classname_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string classname = 2;
* @return The bytes for classname.
*/
public com.google.protobuf.ByteString
getClassnameBytes() {
java.lang.Object ref = classname_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
classname_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string classname = 2;
* @param value The classname to set.
* @return This builder for chaining.
*/
public Builder setClassname(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
classname_ = value;
onChanged();
return this;
}
/**
* string classname = 2;
* @return This builder for chaining.
*/
public Builder clearClassname() {
classname_ = getDefaultInstance().getClassname();
onChanged();
return this;
}
/**
* string classname = 2;
* @param value The bytes for classname to set.
* @return This builder for chaining.
*/
public Builder setClassnameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
classname_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:io.provenance.scope.contract.Location)
}
// @@protoc_insertion_point(class_scope:io.provenance.scope.contract.Location)
private static final io.provenance.scope.contract.proto.Commons.Location DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.provenance.scope.contract.proto.Commons.Location();
}
public static io.provenance.scope.contract.proto.Commons.Location getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Location parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Location(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.scope.contract.proto.Commons.Location getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ProvenanceReferenceOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.provenance.scope.contract.ProvenanceReference)
com.google.protobuf.MessageOrBuilder {
/**
*
* [Req] [Scope.uuid] -- Scope ID
*
*
* .io.provenance.scope.UUID scope_uuid = 1;
* @return Whether the scopeUuid field is set.
*/
boolean hasScopeUuid();
/**
*
* [Req] [Scope.uuid] -- Scope ID
*
*
* .io.provenance.scope.UUID scope_uuid = 1;
* @return The scopeUuid.
*/
io.provenance.scope.proto.Util.UUID getScopeUuid();
/**
*
* [Req] [Scope.uuid] -- Scope ID
*
*
* .io.provenance.scope.UUID scope_uuid = 1;
*/
io.provenance.scope.proto.Util.UUIDOrBuilder getScopeUuidOrBuilder();
/**
*
* [Opt] [RecordGroup.session_uuid] -- require record to be within a specific session
*
*
* .io.provenance.scope.UUID session_uuid = 2;
* @return Whether the sessionUuid field is set.
*/
boolean hasSessionUuid();
/**
*
* [Opt] [RecordGroup.session_uuid] -- require record to be within a specific session
*
*
* .io.provenance.scope.UUID session_uuid = 2;
* @return The sessionUuid.
*/
io.provenance.scope.proto.Util.UUID getSessionUuid();
/**
*
* [Opt] [RecordGroup.session_uuid] -- require record to be within a specific session
*
*
* .io.provenance.scope.UUID session_uuid = 2;
*/
io.provenance.scope.proto.Util.UUIDOrBuilder getSessionUuidOrBuilder();
/**
*
* [Opt] [Record.result_hash] -- specify a specific record inside a scope (and session) by result-hash
*
*
* string hash = 3;
* @return The hash.
*/
java.lang.String getHash();
/**
*
* [Opt] [Record.result_hash] -- specify a specific record inside a scope (and session) by result-hash
*
*
* string hash = 3;
* @return The bytes for hash.
*/
com.google.protobuf.ByteString
getHashBytes();
/**
*
* [Opt] [Record.result_name] -- specify a result-name of a record within a scope
*
*
* string name = 4;
* @return The name.
*/
java.lang.String getName();
/**
*
* [Opt] [Record.result_name] -- specify a result-name of a record within a scope
*
*
* string name = 4;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
}
/**
* Protobuf type {@code io.provenance.scope.contract.ProvenanceReference}
*/
public static final class ProvenanceReference extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.provenance.scope.contract.ProvenanceReference)
ProvenanceReferenceOrBuilder {
private static final long serialVersionUID = 0L;
// Use ProvenanceReference.newBuilder() to construct.
private ProvenanceReference(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ProvenanceReference() {
hash_ = "";
name_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ProvenanceReference();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ProvenanceReference(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
io.provenance.scope.proto.Util.UUID.Builder subBuilder = null;
if (scopeUuid_ != null) {
subBuilder = scopeUuid_.toBuilder();
}
scopeUuid_ = input.readMessage(io.provenance.scope.proto.Util.UUID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(scopeUuid_);
scopeUuid_ = subBuilder.buildPartial();
}
break;
}
case 18: {
io.provenance.scope.proto.Util.UUID.Builder subBuilder = null;
if (sessionUuid_ != null) {
subBuilder = sessionUuid_.toBuilder();
}
sessionUuid_ = input.readMessage(io.provenance.scope.proto.Util.UUID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(sessionUuid_);
sessionUuid_ = subBuilder.buildPartial();
}
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
hash_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.provenance.scope.contract.proto.Commons.internal_static_io_provenance_scope_contract_ProvenanceReference_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.provenance.scope.contract.proto.Commons.internal_static_io_provenance_scope_contract_ProvenanceReference_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.provenance.scope.contract.proto.Commons.ProvenanceReference.class, io.provenance.scope.contract.proto.Commons.ProvenanceReference.Builder.class);
}
public static final int SCOPE_UUID_FIELD_NUMBER = 1;
private io.provenance.scope.proto.Util.UUID scopeUuid_;
/**
*
* [Req] [Scope.uuid] -- Scope ID
*
*
* .io.provenance.scope.UUID scope_uuid = 1;
* @return Whether the scopeUuid field is set.
*/
@java.lang.Override
public boolean hasScopeUuid() {
return scopeUuid_ != null;
}
/**
*
* [Req] [Scope.uuid] -- Scope ID
*
*
* .io.provenance.scope.UUID scope_uuid = 1;
* @return The scopeUuid.
*/
@java.lang.Override
public io.provenance.scope.proto.Util.UUID getScopeUuid() {
return scopeUuid_ == null ? io.provenance.scope.proto.Util.UUID.getDefaultInstance() : scopeUuid_;
}
/**
*
* [Req] [Scope.uuid] -- Scope ID
*
*
* .io.provenance.scope.UUID scope_uuid = 1;
*/
@java.lang.Override
public io.provenance.scope.proto.Util.UUIDOrBuilder getScopeUuidOrBuilder() {
return getScopeUuid();
}
public static final int SESSION_UUID_FIELD_NUMBER = 2;
private io.provenance.scope.proto.Util.UUID sessionUuid_;
/**
*
* [Opt] [RecordGroup.session_uuid] -- require record to be within a specific session
*
*
* .io.provenance.scope.UUID session_uuid = 2;
* @return Whether the sessionUuid field is set.
*/
@java.lang.Override
public boolean hasSessionUuid() {
return sessionUuid_ != null;
}
/**
*
* [Opt] [RecordGroup.session_uuid] -- require record to be within a specific session
*
*
* .io.provenance.scope.UUID session_uuid = 2;
* @return The sessionUuid.
*/
@java.lang.Override
public io.provenance.scope.proto.Util.UUID getSessionUuid() {
return sessionUuid_ == null ? io.provenance.scope.proto.Util.UUID.getDefaultInstance() : sessionUuid_;
}
/**
*
* [Opt] [RecordGroup.session_uuid] -- require record to be within a specific session
*
*
* .io.provenance.scope.UUID session_uuid = 2;
*/
@java.lang.Override
public io.provenance.scope.proto.Util.UUIDOrBuilder getSessionUuidOrBuilder() {
return getSessionUuid();
}
public static final int HASH_FIELD_NUMBER = 3;
private volatile java.lang.Object hash_;
/**
*
* [Opt] [Record.result_hash] -- specify a specific record inside a scope (and session) by result-hash
*
*
* string hash = 3;
* @return The hash.
*/
@java.lang.Override
public java.lang.String getHash() {
java.lang.Object ref = hash_;
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();
hash_ = s;
return s;
}
}
/**
*
* [Opt] [Record.result_hash] -- specify a specific record inside a scope (and session) by result-hash
*
*
* string hash = 3;
* @return The bytes for hash.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHashBytes() {
java.lang.Object ref = hash_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hash_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAME_FIELD_NUMBER = 4;
private volatile java.lang.Object name_;
/**
*
* [Opt] [Record.result_name] -- specify a result-name of a record within a scope
*
*
* string name = 4;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
*
* [Opt] [Record.result_name] -- specify a result-name of a record within a scope
*
*
* string name = 4;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (scopeUuid_ != null) {
output.writeMessage(1, getScopeUuid());
}
if (sessionUuid_ != null) {
output.writeMessage(2, getSessionUuid());
}
if (!getHashBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, hash_);
}
if (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (scopeUuid_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getScopeUuid());
}
if (sessionUuid_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getSessionUuid());
}
if (!getHashBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, hash_);
}
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_);
}
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.scope.contract.proto.Commons.ProvenanceReference)) {
return super.equals(obj);
}
io.provenance.scope.contract.proto.Commons.ProvenanceReference other = (io.provenance.scope.contract.proto.Commons.ProvenanceReference) obj;
if (hasScopeUuid() != other.hasScopeUuid()) return false;
if (hasScopeUuid()) {
if (!getScopeUuid()
.equals(other.getScopeUuid())) return false;
}
if (hasSessionUuid() != other.hasSessionUuid()) return false;
if (hasSessionUuid()) {
if (!getSessionUuid()
.equals(other.getSessionUuid())) return false;
}
if (!getHash()
.equals(other.getHash())) return false;
if (!getName()
.equals(other.getName())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasScopeUuid()) {
hash = (37 * hash) + SCOPE_UUID_FIELD_NUMBER;
hash = (53 * hash) + getScopeUuid().hashCode();
}
if (hasSessionUuid()) {
hash = (37 * hash) + SESSION_UUID_FIELD_NUMBER;
hash = (53 * hash) + getSessionUuid().hashCode();
}
hash = (37 * hash) + HASH_FIELD_NUMBER;
hash = (53 * hash) + getHash().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.provenance.scope.contract.proto.Commons.ProvenanceReference parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.scope.contract.proto.Commons.ProvenanceReference parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.provenance.scope.contract.proto.Commons.ProvenanceReference parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.scope.contract.proto.Commons.ProvenanceReference 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.scope.contract.proto.Commons.ProvenanceReference parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.scope.contract.proto.Commons.ProvenanceReference parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.provenance.scope.contract.proto.Commons.ProvenanceReference parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.provenance.scope.contract.proto.Commons.ProvenanceReference 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.scope.contract.proto.Commons.ProvenanceReference parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.provenance.scope.contract.proto.Commons.ProvenanceReference 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.scope.contract.proto.Commons.ProvenanceReference parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.provenance.scope.contract.proto.Commons.ProvenanceReference 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.scope.contract.proto.Commons.ProvenanceReference 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 io.provenance.scope.contract.ProvenanceReference}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.provenance.scope.contract.ProvenanceReference)
io.provenance.scope.contract.proto.Commons.ProvenanceReferenceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.provenance.scope.contract.proto.Commons.internal_static_io_provenance_scope_contract_ProvenanceReference_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.provenance.scope.contract.proto.Commons.internal_static_io_provenance_scope_contract_ProvenanceReference_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.provenance.scope.contract.proto.Commons.ProvenanceReference.class, io.provenance.scope.contract.proto.Commons.ProvenanceReference.Builder.class);
}
// Construct using io.provenance.scope.contract.proto.Commons.ProvenanceReference.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (scopeUuidBuilder_ == null) {
scopeUuid_ = null;
} else {
scopeUuid_ = null;
scopeUuidBuilder_ = null;
}
if (sessionUuidBuilder_ == null) {
sessionUuid_ = null;
} else {
sessionUuid_ = null;
sessionUuidBuilder_ = null;
}
hash_ = "";
name_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.provenance.scope.contract.proto.Commons.internal_static_io_provenance_scope_contract_ProvenanceReference_descriptor;
}
@java.lang.Override
public io.provenance.scope.contract.proto.Commons.ProvenanceReference getDefaultInstanceForType() {
return io.provenance.scope.contract.proto.Commons.ProvenanceReference.getDefaultInstance();
}
@java.lang.Override
public io.provenance.scope.contract.proto.Commons.ProvenanceReference build() {
io.provenance.scope.contract.proto.Commons.ProvenanceReference result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.provenance.scope.contract.proto.Commons.ProvenanceReference buildPartial() {
io.provenance.scope.contract.proto.Commons.ProvenanceReference result = new io.provenance.scope.contract.proto.Commons.ProvenanceReference(this);
if (scopeUuidBuilder_ == null) {
result.scopeUuid_ = scopeUuid_;
} else {
result.scopeUuid_ = scopeUuidBuilder_.build();
}
if (sessionUuidBuilder_ == null) {
result.sessionUuid_ = sessionUuid_;
} else {
result.sessionUuid_ = sessionUuidBuilder_.build();
}
result.hash_ = hash_;
result.name_ = name_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.provenance.scope.contract.proto.Commons.ProvenanceReference) {
return mergeFrom((io.provenance.scope.contract.proto.Commons.ProvenanceReference)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.provenance.scope.contract.proto.Commons.ProvenanceReference other) {
if (other == io.provenance.scope.contract.proto.Commons.ProvenanceReference.getDefaultInstance()) return this;
if (other.hasScopeUuid()) {
mergeScopeUuid(other.getScopeUuid());
}
if (other.hasSessionUuid()) {
mergeSessionUuid(other.getSessionUuid());
}
if (!other.getHash().isEmpty()) {
hash_ = other.hash_;
onChanged();
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
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.scope.contract.proto.Commons.ProvenanceReference parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.provenance.scope.contract.proto.Commons.ProvenanceReference) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private io.provenance.scope.proto.Util.UUID scopeUuid_;
private com.google.protobuf.SingleFieldBuilderV3<
io.provenance.scope.proto.Util.UUID, io.provenance.scope.proto.Util.UUID.Builder, io.provenance.scope.proto.Util.UUIDOrBuilder> scopeUuidBuilder_;
/**
*
* [Req] [Scope.uuid] -- Scope ID
*
*
* .io.provenance.scope.UUID scope_uuid = 1;
* @return Whether the scopeUuid field is set.
*/
public boolean hasScopeUuid() {
return scopeUuidBuilder_ != null || scopeUuid_ != null;
}
/**
*
* [Req] [Scope.uuid] -- Scope ID
*
*
* .io.provenance.scope.UUID scope_uuid = 1;
* @return The scopeUuid.
*/
public io.provenance.scope.proto.Util.UUID getScopeUuid() {
if (scopeUuidBuilder_ == null) {
return scopeUuid_ == null ? io.provenance.scope.proto.Util.UUID.getDefaultInstance() : scopeUuid_;
} else {
return scopeUuidBuilder_.getMessage();
}
}
/**
*
* [Req] [Scope.uuid] -- Scope ID
*
*
* .io.provenance.scope.UUID scope_uuid = 1;
*/
public Builder setScopeUuid(io.provenance.scope.proto.Util.UUID value) {
if (scopeUuidBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
scopeUuid_ = value;
onChanged();
} else {
scopeUuidBuilder_.setMessage(value);
}
return this;
}
/**
*
* [Req] [Scope.uuid] -- Scope ID
*
*
* .io.provenance.scope.UUID scope_uuid = 1;
*/
public Builder setScopeUuid(
io.provenance.scope.proto.Util.UUID.Builder builderForValue) {
if (scopeUuidBuilder_ == null) {
scopeUuid_ = builderForValue.build();
onChanged();
} else {
scopeUuidBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* [Req] [Scope.uuid] -- Scope ID
*
*
* .io.provenance.scope.UUID scope_uuid = 1;
*/
public Builder mergeScopeUuid(io.provenance.scope.proto.Util.UUID value) {
if (scopeUuidBuilder_ == null) {
if (scopeUuid_ != null) {
scopeUuid_ =
io.provenance.scope.proto.Util.UUID.newBuilder(scopeUuid_).mergeFrom(value).buildPartial();
} else {
scopeUuid_ = value;
}
onChanged();
} else {
scopeUuidBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* [Req] [Scope.uuid] -- Scope ID
*
*
* .io.provenance.scope.UUID scope_uuid = 1;
*/
public Builder clearScopeUuid() {
if (scopeUuidBuilder_ == null) {
scopeUuid_ = null;
onChanged();
} else {
scopeUuid_ = null;
scopeUuidBuilder_ = null;
}
return this;
}
/**
*
* [Req] [Scope.uuid] -- Scope ID
*
*
* .io.provenance.scope.UUID scope_uuid = 1;
*/
public io.provenance.scope.proto.Util.UUID.Builder getScopeUuidBuilder() {
onChanged();
return getScopeUuidFieldBuilder().getBuilder();
}
/**
*
* [Req] [Scope.uuid] -- Scope ID
*
*
* .io.provenance.scope.UUID scope_uuid = 1;
*/
public io.provenance.scope.proto.Util.UUIDOrBuilder getScopeUuidOrBuilder() {
if (scopeUuidBuilder_ != null) {
return scopeUuidBuilder_.getMessageOrBuilder();
} else {
return scopeUuid_ == null ?
io.provenance.scope.proto.Util.UUID.getDefaultInstance() : scopeUuid_;
}
}
/**
*
* [Req] [Scope.uuid] -- Scope ID
*
*
* .io.provenance.scope.UUID scope_uuid = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.provenance.scope.proto.Util.UUID, io.provenance.scope.proto.Util.UUID.Builder, io.provenance.scope.proto.Util.UUIDOrBuilder>
getScopeUuidFieldBuilder() {
if (scopeUuidBuilder_ == null) {
scopeUuidBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.provenance.scope.proto.Util.UUID, io.provenance.scope.proto.Util.UUID.Builder, io.provenance.scope.proto.Util.UUIDOrBuilder>(
getScopeUuid(),
getParentForChildren(),
isClean());
scopeUuid_ = null;
}
return scopeUuidBuilder_;
}
private io.provenance.scope.proto.Util.UUID sessionUuid_;
private com.google.protobuf.SingleFieldBuilderV3<
io.provenance.scope.proto.Util.UUID, io.provenance.scope.proto.Util.UUID.Builder, io.provenance.scope.proto.Util.UUIDOrBuilder> sessionUuidBuilder_;
/**
*
* [Opt] [RecordGroup.session_uuid] -- require record to be within a specific session
*
*
* .io.provenance.scope.UUID session_uuid = 2;
* @return Whether the sessionUuid field is set.
*/
public boolean hasSessionUuid() {
return sessionUuidBuilder_ != null || sessionUuid_ != null;
}
/**
*
* [Opt] [RecordGroup.session_uuid] -- require record to be within a specific session
*
*
* .io.provenance.scope.UUID session_uuid = 2;
* @return The sessionUuid.
*/
public io.provenance.scope.proto.Util.UUID getSessionUuid() {
if (sessionUuidBuilder_ == null) {
return sessionUuid_ == null ? io.provenance.scope.proto.Util.UUID.getDefaultInstance() : sessionUuid_;
} else {
return sessionUuidBuilder_.getMessage();
}
}
/**
*
* [Opt] [RecordGroup.session_uuid] -- require record to be within a specific session
*
*
* .io.provenance.scope.UUID session_uuid = 2;
*/
public Builder setSessionUuid(io.provenance.scope.proto.Util.UUID value) {
if (sessionUuidBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sessionUuid_ = value;
onChanged();
} else {
sessionUuidBuilder_.setMessage(value);
}
return this;
}
/**
*
* [Opt] [RecordGroup.session_uuid] -- require record to be within a specific session
*
*
* .io.provenance.scope.UUID session_uuid = 2;
*/
public Builder setSessionUuid(
io.provenance.scope.proto.Util.UUID.Builder builderForValue) {
if (sessionUuidBuilder_ == null) {
sessionUuid_ = builderForValue.build();
onChanged();
} else {
sessionUuidBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* [Opt] [RecordGroup.session_uuid] -- require record to be within a specific session
*
*
* .io.provenance.scope.UUID session_uuid = 2;
*/
public Builder mergeSessionUuid(io.provenance.scope.proto.Util.UUID value) {
if (sessionUuidBuilder_ == null) {
if (sessionUuid_ != null) {
sessionUuid_ =
io.provenance.scope.proto.Util.UUID.newBuilder(sessionUuid_).mergeFrom(value).buildPartial();
} else {
sessionUuid_ = value;
}
onChanged();
} else {
sessionUuidBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* [Opt] [RecordGroup.session_uuid] -- require record to be within a specific session
*
*
* .io.provenance.scope.UUID session_uuid = 2;
*/
public Builder clearSessionUuid() {
if (sessionUuidBuilder_ == null) {
sessionUuid_ = null;
onChanged();
} else {
sessionUuid_ = null;
sessionUuidBuilder_ = null;
}
return this;
}
/**
*
* [Opt] [RecordGroup.session_uuid] -- require record to be within a specific session
*
*
* .io.provenance.scope.UUID session_uuid = 2;
*/
public io.provenance.scope.proto.Util.UUID.Builder getSessionUuidBuilder() {
onChanged();
return getSessionUuidFieldBuilder().getBuilder();
}
/**
*
* [Opt] [RecordGroup.session_uuid] -- require record to be within a specific session
*
*
* .io.provenance.scope.UUID session_uuid = 2;
*/
public io.provenance.scope.proto.Util.UUIDOrBuilder getSessionUuidOrBuilder() {
if (sessionUuidBuilder_ != null) {
return sessionUuidBuilder_.getMessageOrBuilder();
} else {
return sessionUuid_ == null ?
io.provenance.scope.proto.Util.UUID.getDefaultInstance() : sessionUuid_;
}
}
/**
*
* [Opt] [RecordGroup.session_uuid] -- require record to be within a specific session
*
*
* .io.provenance.scope.UUID session_uuid = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.provenance.scope.proto.Util.UUID, io.provenance.scope.proto.Util.UUID.Builder, io.provenance.scope.proto.Util.UUIDOrBuilder>
getSessionUuidFieldBuilder() {
if (sessionUuidBuilder_ == null) {
sessionUuidBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.provenance.scope.proto.Util.UUID, io.provenance.scope.proto.Util.UUID.Builder, io.provenance.scope.proto.Util.UUIDOrBuilder>(
getSessionUuid(),
getParentForChildren(),
isClean());
sessionUuid_ = null;
}
return sessionUuidBuilder_;
}
private java.lang.Object hash_ = "";
/**
*
* [Opt] [Record.result_hash] -- specify a specific record inside a scope (and session) by result-hash
*
*
* string hash = 3;
* @return The hash.
*/
public java.lang.String getHash() {
java.lang.Object ref = hash_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hash_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* [Opt] [Record.result_hash] -- specify a specific record inside a scope (and session) by result-hash
*
*
* string hash = 3;
* @return The bytes for hash.
*/
public com.google.protobuf.ByteString
getHashBytes() {
java.lang.Object ref = hash_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hash_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* [Opt] [Record.result_hash] -- specify a specific record inside a scope (and session) by result-hash
*
*
* string hash = 3;
* @param value The hash to set.
* @return This builder for chaining.
*/
public Builder setHash(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
hash_ = value;
onChanged();
return this;
}
/**
*
* [Opt] [Record.result_hash] -- specify a specific record inside a scope (and session) by result-hash
*
*
* string hash = 3;
* @return This builder for chaining.
*/
public Builder clearHash() {
hash_ = getDefaultInstance().getHash();
onChanged();
return this;
}
/**
*
* [Opt] [Record.result_hash] -- specify a specific record inside a scope (and session) by result-hash
*
*
* string hash = 3;
* @param value The bytes for hash to set.
* @return This builder for chaining.
*/
public Builder setHashBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
hash_ = value;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
* [Opt] [Record.result_name] -- specify a result-name of a record within a scope
*
*
* string name = 4;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* [Opt] [Record.result_name] -- specify a result-name of a record within a scope
*
*
* string name = 4;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* [Opt] [Record.result_name] -- specify a result-name of a record within a scope
*
*
* string name = 4;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* [Opt] [Record.result_name] -- specify a result-name of a record within a scope
*
*
* string name = 4;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* [Opt] [Record.result_name] -- specify a result-name of a record within a scope
*
*
* string name = 4;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:io.provenance.scope.contract.ProvenanceReference)
}
// @@protoc_insertion_point(class_scope:io.provenance.scope.contract.ProvenanceReference)
private static final io.provenance.scope.contract.proto.Commons.ProvenanceReference DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.provenance.scope.contract.proto.Commons.ProvenanceReference();
}
public static io.provenance.scope.contract.proto.Commons.ProvenanceReference getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ProvenanceReference parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ProvenanceReference(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.scope.contract.proto.Commons.ProvenanceReference getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_io_provenance_scope_contract_DefinitionSpec_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_io_provenance_scope_contract_DefinitionSpec_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_io_provenance_scope_contract_OutputSpec_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_io_provenance_scope_contract_OutputSpec_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_io_provenance_scope_contract_Location_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_io_provenance_scope_contract_Location_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_io_provenance_scope_contract_ProvenanceReference_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_io_provenance_scope_contract_ProvenanceReference_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n)io/provenance/scope/contract/common.pr" +
"oto\022\034io.provenance.scope.contract\032\nutil." +
"proto\032\014common.proto\"\225\002\n\016DefinitionSpec\022\014" +
"\n\004name\030\001 \001(\t\022A\n\021resource_location\030\002 \001(\0132" +
"&.io.provenance.scope.contract.Location\022" +
"1\n\tsignature\030\003 \001(\0132\036.io.provenance.scope" +
".Signature\022?\n\004type\030\004 \001(\01621.io.provenance" +
".scope.contract.DefinitionSpec.Type\">\n\004T" +
"ype\022\017\n\013NO_DEF_TYPE\020\000\022\014\n\010PROPOSED\020\001\022\010\n\004FA" +
"CT\020\002\022\r\n\tFACT_LIST\020\003\"N\n\nOutputSpec\022:\n\004spe" +
"c\030\001 \001(\0132,.io.provenance.scope.contract.D" +
"efinitionSpecJ\004\010\002\020\003\"]\n\010Location\022>\n\003ref\030\001" +
" \001(\01321.io.provenance.scope.contract.Prov" +
"enanceReference\022\021\n\tclassname\030\002 \001(\t\"\221\001\n\023P" +
"rovenanceReference\022-\n\nscope_uuid\030\001 \001(\0132\031" +
".io.provenance.scope.UUID\022/\n\014session_uui" +
"d\030\002 \001(\0132\031.io.provenance.scope.UUID\022\014\n\004ha" +
"sh\030\003 \001(\t\022\014\n\004name\030\004 \001(\tB-\n\"io.provenance." +
"scope.contract.protoB\007Commonsb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
io.provenance.scope.proto.Util.getDescriptor(),
io.provenance.scope.proto.Common.getDescriptor(),
});
internal_static_io_provenance_scope_contract_DefinitionSpec_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_io_provenance_scope_contract_DefinitionSpec_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_io_provenance_scope_contract_DefinitionSpec_descriptor,
new java.lang.String[] { "Name", "ResourceLocation", "Signature", "Type", });
internal_static_io_provenance_scope_contract_OutputSpec_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_io_provenance_scope_contract_OutputSpec_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_io_provenance_scope_contract_OutputSpec_descriptor,
new java.lang.String[] { "Spec", });
internal_static_io_provenance_scope_contract_Location_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_io_provenance_scope_contract_Location_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_io_provenance_scope_contract_Location_descriptor,
new java.lang.String[] { "Ref", "Classname", });
internal_static_io_provenance_scope_contract_ProvenanceReference_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_io_provenance_scope_contract_ProvenanceReference_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_io_provenance_scope_contract_ProvenanceReference_descriptor,
new java.lang.String[] { "ScopeUuid", "SessionUuid", "Hash", "Name", });
io.provenance.scope.proto.Util.getDescriptor();
io.provenance.scope.proto.Common.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}