io.provenance.metadata.v1.p8e.ProvenanceReference Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: provenance/metadata/v1/p8e/p8e.proto
package io.provenance.metadata.v1.p8e;
/**
* Protobuf type {@code provenance.metadata.v1.p8e.ProvenanceReference}
*/
public final class ProvenanceReference extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:provenance.metadata.v1.p8e.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
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();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
io.provenance.metadata.v1.p8e.UUID.Builder subBuilder = null;
if (scopeUuid_ != null) {
subBuilder = scopeUuid_.toBuilder();
}
scopeUuid_ = input.readMessage(io.provenance.metadata.v1.p8e.UUID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(scopeUuid_);
scopeUuid_ = subBuilder.buildPartial();
}
break;
}
case 18: {
io.provenance.metadata.v1.p8e.UUID.Builder subBuilder = null;
if (groupUuid_ != null) {
subBuilder = groupUuid_.toBuilder();
}
groupUuid_ = input.readMessage(io.provenance.metadata.v1.p8e.UUID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(groupUuid_);
groupUuid_ = 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 (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.provenance.metadata.v1.p8e.P8E.internal_static_provenance_metadata_v1_p8e_ProvenanceReference_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.provenance.metadata.v1.p8e.P8E.internal_static_provenance_metadata_v1_p8e_ProvenanceReference_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.provenance.metadata.v1.p8e.ProvenanceReference.class, io.provenance.metadata.v1.p8e.ProvenanceReference.Builder.class);
}
public static final int SCOPE_UUID_FIELD_NUMBER = 1;
private io.provenance.metadata.v1.p8e.UUID scopeUuid_;
/**
*
* [Req] [Scope.uuid]
* Scope ID
*
*
* .provenance.metadata.v1.p8e.UUID scope_uuid = 1;
*/
public boolean hasScopeUuid() {
return scopeUuid_ != null;
}
/**
*
* [Req] [Scope.uuid]
* Scope ID
*
*
* .provenance.metadata.v1.p8e.UUID scope_uuid = 1;
*/
public io.provenance.metadata.v1.p8e.UUID getScopeUuid() {
return scopeUuid_ == null ? io.provenance.metadata.v1.p8e.UUID.getDefaultInstance() : scopeUuid_;
}
/**
*
* [Req] [Scope.uuid]
* Scope ID
*
*
* .provenance.metadata.v1.p8e.UUID scope_uuid = 1;
*/
public io.provenance.metadata.v1.p8e.UUIDOrBuilder getScopeUuidOrBuilder() {
return getScopeUuid();
}
public static final int GROUP_UUID_FIELD_NUMBER = 2;
private io.provenance.metadata.v1.p8e.UUID groupUuid_;
/**
*
* [Opt] [RecordGroup.group_uuid]
* require record to be within a specific group
*
*
* .provenance.metadata.v1.p8e.UUID group_uuid = 2;
*/
public boolean hasGroupUuid() {
return groupUuid_ != null;
}
/**
*
* [Opt] [RecordGroup.group_uuid]
* require record to be within a specific group
*
*
* .provenance.metadata.v1.p8e.UUID group_uuid = 2;
*/
public io.provenance.metadata.v1.p8e.UUID getGroupUuid() {
return groupUuid_ == null ? io.provenance.metadata.v1.p8e.UUID.getDefaultInstance() : groupUuid_;
}
/**
*
* [Opt] [RecordGroup.group_uuid]
* require record to be within a specific group
*
*
* .provenance.metadata.v1.p8e.UUID group_uuid = 2;
*/
public io.provenance.metadata.v1.p8e.UUIDOrBuilder getGroupUuidOrBuilder() {
return getGroupUuid();
}
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 group) by result-hash
*
*
* string hash = 3;
*/
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 group) by result-hash
*
*
* string hash = 3;
*/
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;
*/
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;
*/
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 (groupUuid_ != null) {
output.writeMessage(2, getGroupUuid());
}
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 (groupUuid_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getGroupUuid());
}
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.metadata.v1.p8e.ProvenanceReference)) {
return super.equals(obj);
}
io.provenance.metadata.v1.p8e.ProvenanceReference other = (io.provenance.metadata.v1.p8e.ProvenanceReference) obj;
boolean result = true;
result = result && (hasScopeUuid() == other.hasScopeUuid());
if (hasScopeUuid()) {
result = result && getScopeUuid()
.equals(other.getScopeUuid());
}
result = result && (hasGroupUuid() == other.hasGroupUuid());
if (hasGroupUuid()) {
result = result && getGroupUuid()
.equals(other.getGroupUuid());
}
result = result && getHash()
.equals(other.getHash());
result = result && getName()
.equals(other.getName());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasScopeUuid()) {
hash = (37 * hash) + SCOPE_UUID_FIELD_NUMBER;
hash = (53 * hash) + getScopeUuid().hashCode();
}
if (hasGroupUuid()) {
hash = (37 * hash) + GROUP_UUID_FIELD_NUMBER;
hash = (53 * hash) + getGroupUuid().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.metadata.v1.p8e.ProvenanceReference parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.metadata.v1.p8e.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.metadata.v1.p8e.ProvenanceReference parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.metadata.v1.p8e.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.metadata.v1.p8e.ProvenanceReference parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.metadata.v1.p8e.ProvenanceReference parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.provenance.metadata.v1.p8e.ProvenanceReference parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.provenance.metadata.v1.p8e.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.metadata.v1.p8e.ProvenanceReference parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.provenance.metadata.v1.p8e.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.metadata.v1.p8e.ProvenanceReference parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.provenance.metadata.v1.p8e.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.metadata.v1.p8e.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 provenance.metadata.v1.p8e.ProvenanceReference}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:provenance.metadata.v1.p8e.ProvenanceReference)
io.provenance.metadata.v1.p8e.ProvenanceReferenceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.provenance.metadata.v1.p8e.P8E.internal_static_provenance_metadata_v1_p8e_ProvenanceReference_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.provenance.metadata.v1.p8e.P8E.internal_static_provenance_metadata_v1_p8e_ProvenanceReference_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.provenance.metadata.v1.p8e.ProvenanceReference.class, io.provenance.metadata.v1.p8e.ProvenanceReference.Builder.class);
}
// Construct using io.provenance.metadata.v1.p8e.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 (groupUuidBuilder_ == null) {
groupUuid_ = null;
} else {
groupUuid_ = null;
groupUuidBuilder_ = null;
}
hash_ = "";
name_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.provenance.metadata.v1.p8e.P8E.internal_static_provenance_metadata_v1_p8e_ProvenanceReference_descriptor;
}
@java.lang.Override
public io.provenance.metadata.v1.p8e.ProvenanceReference getDefaultInstanceForType() {
return io.provenance.metadata.v1.p8e.ProvenanceReference.getDefaultInstance();
}
@java.lang.Override
public io.provenance.metadata.v1.p8e.ProvenanceReference build() {
io.provenance.metadata.v1.p8e.ProvenanceReference result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.provenance.metadata.v1.p8e.ProvenanceReference buildPartial() {
io.provenance.metadata.v1.p8e.ProvenanceReference result = new io.provenance.metadata.v1.p8e.ProvenanceReference(this);
if (scopeUuidBuilder_ == null) {
result.scopeUuid_ = scopeUuid_;
} else {
result.scopeUuid_ = scopeUuidBuilder_.build();
}
if (groupUuidBuilder_ == null) {
result.groupUuid_ = groupUuid_;
} else {
result.groupUuid_ = groupUuidBuilder_.build();
}
result.hash_ = hash_;
result.name_ = name_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.provenance.metadata.v1.p8e.ProvenanceReference) {
return mergeFrom((io.provenance.metadata.v1.p8e.ProvenanceReference)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.provenance.metadata.v1.p8e.ProvenanceReference other) {
if (other == io.provenance.metadata.v1.p8e.ProvenanceReference.getDefaultInstance()) return this;
if (other.hasScopeUuid()) {
mergeScopeUuid(other.getScopeUuid());
}
if (other.hasGroupUuid()) {
mergeGroupUuid(other.getGroupUuid());
}
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.metadata.v1.p8e.ProvenanceReference parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.provenance.metadata.v1.p8e.ProvenanceReference) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private io.provenance.metadata.v1.p8e.UUID scopeUuid_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.provenance.metadata.v1.p8e.UUID, io.provenance.metadata.v1.p8e.UUID.Builder, io.provenance.metadata.v1.p8e.UUIDOrBuilder> scopeUuidBuilder_;
/**
*
* [Req] [Scope.uuid]
* Scope ID
*
*
* .provenance.metadata.v1.p8e.UUID scope_uuid = 1;
*/
public boolean hasScopeUuid() {
return scopeUuidBuilder_ != null || scopeUuid_ != null;
}
/**
*
* [Req] [Scope.uuid]
* Scope ID
*
*
* .provenance.metadata.v1.p8e.UUID scope_uuid = 1;
*/
public io.provenance.metadata.v1.p8e.UUID getScopeUuid() {
if (scopeUuidBuilder_ == null) {
return scopeUuid_ == null ? io.provenance.metadata.v1.p8e.UUID.getDefaultInstance() : scopeUuid_;
} else {
return scopeUuidBuilder_.getMessage();
}
}
/**
*
* [Req] [Scope.uuid]
* Scope ID
*
*
* .provenance.metadata.v1.p8e.UUID scope_uuid = 1;
*/
public Builder setScopeUuid(io.provenance.metadata.v1.p8e.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
*
*
* .provenance.metadata.v1.p8e.UUID scope_uuid = 1;
*/
public Builder setScopeUuid(
io.provenance.metadata.v1.p8e.UUID.Builder builderForValue) {
if (scopeUuidBuilder_ == null) {
scopeUuid_ = builderForValue.build();
onChanged();
} else {
scopeUuidBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* [Req] [Scope.uuid]
* Scope ID
*
*
* .provenance.metadata.v1.p8e.UUID scope_uuid = 1;
*/
public Builder mergeScopeUuid(io.provenance.metadata.v1.p8e.UUID value) {
if (scopeUuidBuilder_ == null) {
if (scopeUuid_ != null) {
scopeUuid_ =
io.provenance.metadata.v1.p8e.UUID.newBuilder(scopeUuid_).mergeFrom(value).buildPartial();
} else {
scopeUuid_ = value;
}
onChanged();
} else {
scopeUuidBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* [Req] [Scope.uuid]
* Scope ID
*
*
* .provenance.metadata.v1.p8e.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
*
*
* .provenance.metadata.v1.p8e.UUID scope_uuid = 1;
*/
public io.provenance.metadata.v1.p8e.UUID.Builder getScopeUuidBuilder() {
onChanged();
return getScopeUuidFieldBuilder().getBuilder();
}
/**
*
* [Req] [Scope.uuid]
* Scope ID
*
*
* .provenance.metadata.v1.p8e.UUID scope_uuid = 1;
*/
public io.provenance.metadata.v1.p8e.UUIDOrBuilder getScopeUuidOrBuilder() {
if (scopeUuidBuilder_ != null) {
return scopeUuidBuilder_.getMessageOrBuilder();
} else {
return scopeUuid_ == null ?
io.provenance.metadata.v1.p8e.UUID.getDefaultInstance() : scopeUuid_;
}
}
/**
*
* [Req] [Scope.uuid]
* Scope ID
*
*
* .provenance.metadata.v1.p8e.UUID scope_uuid = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.provenance.metadata.v1.p8e.UUID, io.provenance.metadata.v1.p8e.UUID.Builder, io.provenance.metadata.v1.p8e.UUIDOrBuilder>
getScopeUuidFieldBuilder() {
if (scopeUuidBuilder_ == null) {
scopeUuidBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.provenance.metadata.v1.p8e.UUID, io.provenance.metadata.v1.p8e.UUID.Builder, io.provenance.metadata.v1.p8e.UUIDOrBuilder>(
getScopeUuid(),
getParentForChildren(),
isClean());
scopeUuid_ = null;
}
return scopeUuidBuilder_;
}
private io.provenance.metadata.v1.p8e.UUID groupUuid_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.provenance.metadata.v1.p8e.UUID, io.provenance.metadata.v1.p8e.UUID.Builder, io.provenance.metadata.v1.p8e.UUIDOrBuilder> groupUuidBuilder_;
/**
*
* [Opt] [RecordGroup.group_uuid]
* require record to be within a specific group
*
*
* .provenance.metadata.v1.p8e.UUID group_uuid = 2;
*/
public boolean hasGroupUuid() {
return groupUuidBuilder_ != null || groupUuid_ != null;
}
/**
*
* [Opt] [RecordGroup.group_uuid]
* require record to be within a specific group
*
*
* .provenance.metadata.v1.p8e.UUID group_uuid = 2;
*/
public io.provenance.metadata.v1.p8e.UUID getGroupUuid() {
if (groupUuidBuilder_ == null) {
return groupUuid_ == null ? io.provenance.metadata.v1.p8e.UUID.getDefaultInstance() : groupUuid_;
} else {
return groupUuidBuilder_.getMessage();
}
}
/**
*
* [Opt] [RecordGroup.group_uuid]
* require record to be within a specific group
*
*
* .provenance.metadata.v1.p8e.UUID group_uuid = 2;
*/
public Builder setGroupUuid(io.provenance.metadata.v1.p8e.UUID value) {
if (groupUuidBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
groupUuid_ = value;
onChanged();
} else {
groupUuidBuilder_.setMessage(value);
}
return this;
}
/**
*
* [Opt] [RecordGroup.group_uuid]
* require record to be within a specific group
*
*
* .provenance.metadata.v1.p8e.UUID group_uuid = 2;
*/
public Builder setGroupUuid(
io.provenance.metadata.v1.p8e.UUID.Builder builderForValue) {
if (groupUuidBuilder_ == null) {
groupUuid_ = builderForValue.build();
onChanged();
} else {
groupUuidBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* [Opt] [RecordGroup.group_uuid]
* require record to be within a specific group
*
*
* .provenance.metadata.v1.p8e.UUID group_uuid = 2;
*/
public Builder mergeGroupUuid(io.provenance.metadata.v1.p8e.UUID value) {
if (groupUuidBuilder_ == null) {
if (groupUuid_ != null) {
groupUuid_ =
io.provenance.metadata.v1.p8e.UUID.newBuilder(groupUuid_).mergeFrom(value).buildPartial();
} else {
groupUuid_ = value;
}
onChanged();
} else {
groupUuidBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* [Opt] [RecordGroup.group_uuid]
* require record to be within a specific group
*
*
* .provenance.metadata.v1.p8e.UUID group_uuid = 2;
*/
public Builder clearGroupUuid() {
if (groupUuidBuilder_ == null) {
groupUuid_ = null;
onChanged();
} else {
groupUuid_ = null;
groupUuidBuilder_ = null;
}
return this;
}
/**
*
* [Opt] [RecordGroup.group_uuid]
* require record to be within a specific group
*
*
* .provenance.metadata.v1.p8e.UUID group_uuid = 2;
*/
public io.provenance.metadata.v1.p8e.UUID.Builder getGroupUuidBuilder() {
onChanged();
return getGroupUuidFieldBuilder().getBuilder();
}
/**
*
* [Opt] [RecordGroup.group_uuid]
* require record to be within a specific group
*
*
* .provenance.metadata.v1.p8e.UUID group_uuid = 2;
*/
public io.provenance.metadata.v1.p8e.UUIDOrBuilder getGroupUuidOrBuilder() {
if (groupUuidBuilder_ != null) {
return groupUuidBuilder_.getMessageOrBuilder();
} else {
return groupUuid_ == null ?
io.provenance.metadata.v1.p8e.UUID.getDefaultInstance() : groupUuid_;
}
}
/**
*
* [Opt] [RecordGroup.group_uuid]
* require record to be within a specific group
*
*
* .provenance.metadata.v1.p8e.UUID group_uuid = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.provenance.metadata.v1.p8e.UUID, io.provenance.metadata.v1.p8e.UUID.Builder, io.provenance.metadata.v1.p8e.UUIDOrBuilder>
getGroupUuidFieldBuilder() {
if (groupUuidBuilder_ == null) {
groupUuidBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.provenance.metadata.v1.p8e.UUID, io.provenance.metadata.v1.p8e.UUID.Builder, io.provenance.metadata.v1.p8e.UUIDOrBuilder>(
getGroupUuid(),
getParentForChildren(),
isClean());
groupUuid_ = null;
}
return groupUuidBuilder_;
}
private java.lang.Object hash_ = "";
/**
*
* [Opt] [Record.result_hash]
* specify a specific record inside a scope (and group) by result-hash
*
*
* string hash = 3;
*/
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 group) by result-hash
*
*
* string hash = 3;
*/
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 group) by result-hash
*
*
* string hash = 3;
*/
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 group) by result-hash
*
*
* string hash = 3;
*/
public Builder clearHash() {
hash_ = getDefaultInstance().getHash();
onChanged();
return this;
}
/**
*
* [Opt] [Record.result_hash]
* specify a specific record inside a scope (and group) by result-hash
*
*
* string hash = 3;
*/
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;
*/
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;
*/
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;
*/
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;
*/
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;
*/
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.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:provenance.metadata.v1.p8e.ProvenanceReference)
}
// @@protoc_insertion_point(class_scope:provenance.metadata.v1.p8e.ProvenanceReference)
private static final io.provenance.metadata.v1.p8e.ProvenanceReference DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.provenance.metadata.v1.p8e.ProvenanceReference();
}
public static io.provenance.metadata.v1.p8e.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.metadata.v1.p8e.ProvenanceReference getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}