Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
io.provenance.metadata.v0.Scope Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: provenance/metadata/v0/scope.proto
package io.provenance.metadata.v0;
/**
*
* A ContractScope is a context that binds multiple p8e working together to create a set of facts managed a defined
* set of affiliates.
*
*
* Protobuf type {@code scope.Scope}
*/
public final class Scope extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:scope.Scope)
ScopeOrBuilder {
private static final long serialVersionUID = 0L;
// Use Scope.newBuilder() to construct.
private Scope(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Scope() {
parties_ = java.util.Collections.emptyList();
recordGroup_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Scope(
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.v0.UUID.Builder subBuilder = null;
if (uuid_ != null) {
subBuilder = uuid_.toBuilder();
}
uuid_ = input.readMessage(io.provenance.metadata.v0.UUID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(uuid_);
uuid_ = subBuilder.buildPartial();
}
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
parties_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
parties_.add(
input.readMessage(io.provenance.metadata.v0.Recital.parser(), extensionRegistry));
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
recordGroup_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
recordGroup_.add(
input.readMessage(io.provenance.metadata.v0.RecordGroup.parser(), extensionRegistry));
break;
}
case 34: {
io.provenance.metadata.v0.Event.Builder subBuilder = null;
if (lastEvent_ != null) {
subBuilder = lastEvent_.toBuilder();
}
lastEvent_ = input.readMessage(io.provenance.metadata.v0.Event.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(lastEvent_);
lastEvent_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
parties_ = java.util.Collections.unmodifiableList(parties_);
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
recordGroup_ = java.util.Collections.unmodifiableList(recordGroup_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.provenance.metadata.v0.ScopeOuterClass.internal_static_scope_Scope_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.provenance.metadata.v0.ScopeOuterClass.internal_static_scope_Scope_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.provenance.metadata.v0.Scope.class, io.provenance.metadata.v0.Scope.Builder.class);
}
private int bitField0_;
public static final int UUID_FIELD_NUMBER = 1;
private io.provenance.metadata.v0.UUID uuid_;
/**
*
* Unique ID for building up ProvenanceReferences
*
*
* .types.UUID uuid = 1;
*/
public boolean hasUuid() {
return uuid_ != null;
}
/**
*
* Unique ID for building up ProvenanceReferences
*
*
* .types.UUID uuid = 1;
*/
public io.provenance.metadata.v0.UUID getUuid() {
return uuid_ == null ? io.provenance.metadata.v0.UUID.getDefaultInstance() : uuid_;
}
/**
*
* Unique ID for building up ProvenanceReferences
*
*
* .types.UUID uuid = 1;
*/
public io.provenance.metadata.v0.UUIDOrBuilder getUuidOrBuilder() {
return getUuid();
}
public static final int PARTIES_FIELD_NUMBER = 2;
private java.util.List parties_;
/**
*
* Required parties on this scope. These are union with any contract specific recital requirements
*
*
* repeated .contract.Recital parties = 2;
*/
public java.util.List getPartiesList() {
return parties_;
}
/**
*
* Required parties on this scope. These are union with any contract specific recital requirements
*
*
* repeated .contract.Recital parties = 2;
*/
public java.util.List extends io.provenance.metadata.v0.RecitalOrBuilder>
getPartiesOrBuilderList() {
return parties_;
}
/**
*
* Required parties on this scope. These are union with any contract specific recital requirements
*
*
* repeated .contract.Recital parties = 2;
*/
public int getPartiesCount() {
return parties_.size();
}
/**
*
* Required parties on this scope. These are union with any contract specific recital requirements
*
*
* repeated .contract.Recital parties = 2;
*/
public io.provenance.metadata.v0.Recital getParties(int index) {
return parties_.get(index);
}
/**
*
* Required parties on this scope. These are union with any contract specific recital requirements
*
*
* repeated .contract.Recital parties = 2;
*/
public io.provenance.metadata.v0.RecitalOrBuilder getPartiesOrBuilder(
int index) {
return parties_.get(index);
}
public static final int RECORD_GROUP_FIELD_NUMBER = 3;
private java.util.List recordGroup_;
/**
*
* Each contract memorialized in this scope is stored in this list of contract_group. The list of groups is keyed
* as a hashmap based on the contract_spec_ref as a unique key.
*
*
* repeated .scope.RecordGroup record_group = 3;
*/
public java.util.List getRecordGroupList() {
return recordGroup_;
}
/**
*
* Each contract memorialized in this scope is stored in this list of contract_group. The list of groups is keyed
* as a hashmap based on the contract_spec_ref as a unique key.
*
*
* repeated .scope.RecordGroup record_group = 3;
*/
public java.util.List extends io.provenance.metadata.v0.RecordGroupOrBuilder>
getRecordGroupOrBuilderList() {
return recordGroup_;
}
/**
*
* Each contract memorialized in this scope is stored in this list of contract_group. The list of groups is keyed
* as a hashmap based on the contract_spec_ref as a unique key.
*
*
* repeated .scope.RecordGroup record_group = 3;
*/
public int getRecordGroupCount() {
return recordGroup_.size();
}
/**
*
* Each contract memorialized in this scope is stored in this list of contract_group. The list of groups is keyed
* as a hashmap based on the contract_spec_ref as a unique key.
*
*
* repeated .scope.RecordGroup record_group = 3;
*/
public io.provenance.metadata.v0.RecordGroup getRecordGroup(int index) {
return recordGroup_.get(index);
}
/**
*
* Each contract memorialized in this scope is stored in this list of contract_group. The list of groups is keyed
* as a hashmap based on the contract_spec_ref as a unique key.
*
*
* repeated .scope.RecordGroup record_group = 3;
*/
public io.provenance.metadata.v0.RecordGroupOrBuilder getRecordGroupOrBuilder(
int index) {
return recordGroup_.get(index);
}
public static final int LAST_EVENT_FIELD_NUMBER = 4;
private io.provenance.metadata.v0.Event lastEvent_;
/**
*
* Last event that resulted in scope changes.
*
*
* .scope.Event last_event = 4;
*/
public boolean hasLastEvent() {
return lastEvent_ != null;
}
/**
*
* Last event that resulted in scope changes.
*
*
* .scope.Event last_event = 4;
*/
public io.provenance.metadata.v0.Event getLastEvent() {
return lastEvent_ == null ? io.provenance.metadata.v0.Event.getDefaultInstance() : lastEvent_;
}
/**
*
* Last event that resulted in scope changes.
*
*
* .scope.Event last_event = 4;
*/
public io.provenance.metadata.v0.EventOrBuilder getLastEventOrBuilder() {
return getLastEvent();
}
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 (uuid_ != null) {
output.writeMessage(1, getUuid());
}
for (int i = 0; i < parties_.size(); i++) {
output.writeMessage(2, parties_.get(i));
}
for (int i = 0; i < recordGroup_.size(); i++) {
output.writeMessage(3, recordGroup_.get(i));
}
if (lastEvent_ != null) {
output.writeMessage(4, getLastEvent());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (uuid_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getUuid());
}
for (int i = 0; i < parties_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, parties_.get(i));
}
for (int i = 0; i < recordGroup_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, recordGroup_.get(i));
}
if (lastEvent_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getLastEvent());
}
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.v0.Scope)) {
return super.equals(obj);
}
io.provenance.metadata.v0.Scope other = (io.provenance.metadata.v0.Scope) obj;
boolean result = true;
result = result && (hasUuid() == other.hasUuid());
if (hasUuid()) {
result = result && getUuid()
.equals(other.getUuid());
}
result = result && getPartiesList()
.equals(other.getPartiesList());
result = result && getRecordGroupList()
.equals(other.getRecordGroupList());
result = result && (hasLastEvent() == other.hasLastEvent());
if (hasLastEvent()) {
result = result && getLastEvent()
.equals(other.getLastEvent());
}
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 (hasUuid()) {
hash = (37 * hash) + UUID_FIELD_NUMBER;
hash = (53 * hash) + getUuid().hashCode();
}
if (getPartiesCount() > 0) {
hash = (37 * hash) + PARTIES_FIELD_NUMBER;
hash = (53 * hash) + getPartiesList().hashCode();
}
if (getRecordGroupCount() > 0) {
hash = (37 * hash) + RECORD_GROUP_FIELD_NUMBER;
hash = (53 * hash) + getRecordGroupList().hashCode();
}
if (hasLastEvent()) {
hash = (37 * hash) + LAST_EVENT_FIELD_NUMBER;
hash = (53 * hash) + getLastEvent().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.provenance.metadata.v0.Scope parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.metadata.v0.Scope 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.v0.Scope parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.metadata.v0.Scope 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.v0.Scope parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.metadata.v0.Scope parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.provenance.metadata.v0.Scope parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.provenance.metadata.v0.Scope 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.v0.Scope parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.provenance.metadata.v0.Scope 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.v0.Scope parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.provenance.metadata.v0.Scope 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.v0.Scope 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;
}
/**
*
* A ContractScope is a context that binds multiple p8e working together to create a set of facts managed a defined
* set of affiliates.
*
*
* Protobuf type {@code scope.Scope}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:scope.Scope)
io.provenance.metadata.v0.ScopeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.provenance.metadata.v0.ScopeOuterClass.internal_static_scope_Scope_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.provenance.metadata.v0.ScopeOuterClass.internal_static_scope_Scope_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.provenance.metadata.v0.Scope.class, io.provenance.metadata.v0.Scope.Builder.class);
}
// Construct using io.provenance.metadata.v0.Scope.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getPartiesFieldBuilder();
getRecordGroupFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (uuidBuilder_ == null) {
uuid_ = null;
} else {
uuid_ = null;
uuidBuilder_ = null;
}
if (partiesBuilder_ == null) {
parties_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
partiesBuilder_.clear();
}
if (recordGroupBuilder_ == null) {
recordGroup_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
recordGroupBuilder_.clear();
}
if (lastEventBuilder_ == null) {
lastEvent_ = null;
} else {
lastEvent_ = null;
lastEventBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.provenance.metadata.v0.ScopeOuterClass.internal_static_scope_Scope_descriptor;
}
@java.lang.Override
public io.provenance.metadata.v0.Scope getDefaultInstanceForType() {
return io.provenance.metadata.v0.Scope.getDefaultInstance();
}
@java.lang.Override
public io.provenance.metadata.v0.Scope build() {
io.provenance.metadata.v0.Scope result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.provenance.metadata.v0.Scope buildPartial() {
io.provenance.metadata.v0.Scope result = new io.provenance.metadata.v0.Scope(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (uuidBuilder_ == null) {
result.uuid_ = uuid_;
} else {
result.uuid_ = uuidBuilder_.build();
}
if (partiesBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
parties_ = java.util.Collections.unmodifiableList(parties_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.parties_ = parties_;
} else {
result.parties_ = partiesBuilder_.build();
}
if (recordGroupBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
recordGroup_ = java.util.Collections.unmodifiableList(recordGroup_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.recordGroup_ = recordGroup_;
} else {
result.recordGroup_ = recordGroupBuilder_.build();
}
if (lastEventBuilder_ == null) {
result.lastEvent_ = lastEvent_;
} else {
result.lastEvent_ = lastEventBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.provenance.metadata.v0.Scope) {
return mergeFrom((io.provenance.metadata.v0.Scope)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.provenance.metadata.v0.Scope other) {
if (other == io.provenance.metadata.v0.Scope.getDefaultInstance()) return this;
if (other.hasUuid()) {
mergeUuid(other.getUuid());
}
if (partiesBuilder_ == null) {
if (!other.parties_.isEmpty()) {
if (parties_.isEmpty()) {
parties_ = other.parties_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensurePartiesIsMutable();
parties_.addAll(other.parties_);
}
onChanged();
}
} else {
if (!other.parties_.isEmpty()) {
if (partiesBuilder_.isEmpty()) {
partiesBuilder_.dispose();
partiesBuilder_ = null;
parties_ = other.parties_;
bitField0_ = (bitField0_ & ~0x00000002);
partiesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPartiesFieldBuilder() : null;
} else {
partiesBuilder_.addAllMessages(other.parties_);
}
}
}
if (recordGroupBuilder_ == null) {
if (!other.recordGroup_.isEmpty()) {
if (recordGroup_.isEmpty()) {
recordGroup_ = other.recordGroup_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureRecordGroupIsMutable();
recordGroup_.addAll(other.recordGroup_);
}
onChanged();
}
} else {
if (!other.recordGroup_.isEmpty()) {
if (recordGroupBuilder_.isEmpty()) {
recordGroupBuilder_.dispose();
recordGroupBuilder_ = null;
recordGroup_ = other.recordGroup_;
bitField0_ = (bitField0_ & ~0x00000004);
recordGroupBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRecordGroupFieldBuilder() : null;
} else {
recordGroupBuilder_.addAllMessages(other.recordGroup_);
}
}
}
if (other.hasLastEvent()) {
mergeLastEvent(other.getLastEvent());
}
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.v0.Scope parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.provenance.metadata.v0.Scope) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private io.provenance.metadata.v0.UUID uuid_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.provenance.metadata.v0.UUID, io.provenance.metadata.v0.UUID.Builder, io.provenance.metadata.v0.UUIDOrBuilder> uuidBuilder_;
/**
*
* Unique ID for building up ProvenanceReferences
*
*
* .types.UUID uuid = 1;
*/
public boolean hasUuid() {
return uuidBuilder_ != null || uuid_ != null;
}
/**
*
* Unique ID for building up ProvenanceReferences
*
*
* .types.UUID uuid = 1;
*/
public io.provenance.metadata.v0.UUID getUuid() {
if (uuidBuilder_ == null) {
return uuid_ == null ? io.provenance.metadata.v0.UUID.getDefaultInstance() : uuid_;
} else {
return uuidBuilder_.getMessage();
}
}
/**
*
* Unique ID for building up ProvenanceReferences
*
*
* .types.UUID uuid = 1;
*/
public Builder setUuid(io.provenance.metadata.v0.UUID value) {
if (uuidBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
uuid_ = value;
onChanged();
} else {
uuidBuilder_.setMessage(value);
}
return this;
}
/**
*
* Unique ID for building up ProvenanceReferences
*
*
* .types.UUID uuid = 1;
*/
public Builder setUuid(
io.provenance.metadata.v0.UUID.Builder builderForValue) {
if (uuidBuilder_ == null) {
uuid_ = builderForValue.build();
onChanged();
} else {
uuidBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Unique ID for building up ProvenanceReferences
*
*
* .types.UUID uuid = 1;
*/
public Builder mergeUuid(io.provenance.metadata.v0.UUID value) {
if (uuidBuilder_ == null) {
if (uuid_ != null) {
uuid_ =
io.provenance.metadata.v0.UUID.newBuilder(uuid_).mergeFrom(value).buildPartial();
} else {
uuid_ = value;
}
onChanged();
} else {
uuidBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Unique ID for building up ProvenanceReferences
*
*
* .types.UUID uuid = 1;
*/
public Builder clearUuid() {
if (uuidBuilder_ == null) {
uuid_ = null;
onChanged();
} else {
uuid_ = null;
uuidBuilder_ = null;
}
return this;
}
/**
*
* Unique ID for building up ProvenanceReferences
*
*
* .types.UUID uuid = 1;
*/
public io.provenance.metadata.v0.UUID.Builder getUuidBuilder() {
onChanged();
return getUuidFieldBuilder().getBuilder();
}
/**
*
* Unique ID for building up ProvenanceReferences
*
*
* .types.UUID uuid = 1;
*/
public io.provenance.metadata.v0.UUIDOrBuilder getUuidOrBuilder() {
if (uuidBuilder_ != null) {
return uuidBuilder_.getMessageOrBuilder();
} else {
return uuid_ == null ?
io.provenance.metadata.v0.UUID.getDefaultInstance() : uuid_;
}
}
/**
*
* Unique ID for building up ProvenanceReferences
*
*
* .types.UUID uuid = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.provenance.metadata.v0.UUID, io.provenance.metadata.v0.UUID.Builder, io.provenance.metadata.v0.UUIDOrBuilder>
getUuidFieldBuilder() {
if (uuidBuilder_ == null) {
uuidBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.provenance.metadata.v0.UUID, io.provenance.metadata.v0.UUID.Builder, io.provenance.metadata.v0.UUIDOrBuilder>(
getUuid(),
getParentForChildren(),
isClean());
uuid_ = null;
}
return uuidBuilder_;
}
private java.util.List parties_ =
java.util.Collections.emptyList();
private void ensurePartiesIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
parties_ = new java.util.ArrayList(parties_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.provenance.metadata.v0.Recital, io.provenance.metadata.v0.Recital.Builder, io.provenance.metadata.v0.RecitalOrBuilder> partiesBuilder_;
/**
*
* Required parties on this scope. These are union with any contract specific recital requirements
*
*
* repeated .contract.Recital parties = 2;
*/
public java.util.List getPartiesList() {
if (partiesBuilder_ == null) {
return java.util.Collections.unmodifiableList(parties_);
} else {
return partiesBuilder_.getMessageList();
}
}
/**
*
* Required parties on this scope. These are union with any contract specific recital requirements
*
*
* repeated .contract.Recital parties = 2;
*/
public int getPartiesCount() {
if (partiesBuilder_ == null) {
return parties_.size();
} else {
return partiesBuilder_.getCount();
}
}
/**
*
* Required parties on this scope. These are union with any contract specific recital requirements
*
*
* repeated .contract.Recital parties = 2;
*/
public io.provenance.metadata.v0.Recital getParties(int index) {
if (partiesBuilder_ == null) {
return parties_.get(index);
} else {
return partiesBuilder_.getMessage(index);
}
}
/**
*
* Required parties on this scope. These are union with any contract specific recital requirements
*
*
* repeated .contract.Recital parties = 2;
*/
public Builder setParties(
int index, io.provenance.metadata.v0.Recital value) {
if (partiesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePartiesIsMutable();
parties_.set(index, value);
onChanged();
} else {
partiesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Required parties on this scope. These are union with any contract specific recital requirements
*
*
* repeated .contract.Recital parties = 2;
*/
public Builder setParties(
int index, io.provenance.metadata.v0.Recital.Builder builderForValue) {
if (partiesBuilder_ == null) {
ensurePartiesIsMutable();
parties_.set(index, builderForValue.build());
onChanged();
} else {
partiesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Required parties on this scope. These are union with any contract specific recital requirements
*
*
* repeated .contract.Recital parties = 2;
*/
public Builder addParties(io.provenance.metadata.v0.Recital value) {
if (partiesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePartiesIsMutable();
parties_.add(value);
onChanged();
} else {
partiesBuilder_.addMessage(value);
}
return this;
}
/**
*
* Required parties on this scope. These are union with any contract specific recital requirements
*
*
* repeated .contract.Recital parties = 2;
*/
public Builder addParties(
int index, io.provenance.metadata.v0.Recital value) {
if (partiesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePartiesIsMutable();
parties_.add(index, value);
onChanged();
} else {
partiesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Required parties on this scope. These are union with any contract specific recital requirements
*
*
* repeated .contract.Recital parties = 2;
*/
public Builder addParties(
io.provenance.metadata.v0.Recital.Builder builderForValue) {
if (partiesBuilder_ == null) {
ensurePartiesIsMutable();
parties_.add(builderForValue.build());
onChanged();
} else {
partiesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Required parties on this scope. These are union with any contract specific recital requirements
*
*
* repeated .contract.Recital parties = 2;
*/
public Builder addParties(
int index, io.provenance.metadata.v0.Recital.Builder builderForValue) {
if (partiesBuilder_ == null) {
ensurePartiesIsMutable();
parties_.add(index, builderForValue.build());
onChanged();
} else {
partiesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Required parties on this scope. These are union with any contract specific recital requirements
*
*
* repeated .contract.Recital parties = 2;
*/
public Builder addAllParties(
java.lang.Iterable extends io.provenance.metadata.v0.Recital> values) {
if (partiesBuilder_ == null) {
ensurePartiesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, parties_);
onChanged();
} else {
partiesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Required parties on this scope. These are union with any contract specific recital requirements
*
*
* repeated .contract.Recital parties = 2;
*/
public Builder clearParties() {
if (partiesBuilder_ == null) {
parties_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
partiesBuilder_.clear();
}
return this;
}
/**
*
* Required parties on this scope. These are union with any contract specific recital requirements
*
*
* repeated .contract.Recital parties = 2;
*/
public Builder removeParties(int index) {
if (partiesBuilder_ == null) {
ensurePartiesIsMutable();
parties_.remove(index);
onChanged();
} else {
partiesBuilder_.remove(index);
}
return this;
}
/**
*
* Required parties on this scope. These are union with any contract specific recital requirements
*
*
* repeated .contract.Recital parties = 2;
*/
public io.provenance.metadata.v0.Recital.Builder getPartiesBuilder(
int index) {
return getPartiesFieldBuilder().getBuilder(index);
}
/**
*
* Required parties on this scope. These are union with any contract specific recital requirements
*
*
* repeated .contract.Recital parties = 2;
*/
public io.provenance.metadata.v0.RecitalOrBuilder getPartiesOrBuilder(
int index) {
if (partiesBuilder_ == null) {
return parties_.get(index); } else {
return partiesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Required parties on this scope. These are union with any contract specific recital requirements
*
*
* repeated .contract.Recital parties = 2;
*/
public java.util.List extends io.provenance.metadata.v0.RecitalOrBuilder>
getPartiesOrBuilderList() {
if (partiesBuilder_ != null) {
return partiesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(parties_);
}
}
/**
*
* Required parties on this scope. These are union with any contract specific recital requirements
*
*
* repeated .contract.Recital parties = 2;
*/
public io.provenance.metadata.v0.Recital.Builder addPartiesBuilder() {
return getPartiesFieldBuilder().addBuilder(
io.provenance.metadata.v0.Recital.getDefaultInstance());
}
/**
*
* Required parties on this scope. These are union with any contract specific recital requirements
*
*
* repeated .contract.Recital parties = 2;
*/
public io.provenance.metadata.v0.Recital.Builder addPartiesBuilder(
int index) {
return getPartiesFieldBuilder().addBuilder(
index, io.provenance.metadata.v0.Recital.getDefaultInstance());
}
/**
*
* Required parties on this scope. These are union with any contract specific recital requirements
*
*
* repeated .contract.Recital parties = 2;
*/
public java.util.List
getPartiesBuilderList() {
return getPartiesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.provenance.metadata.v0.Recital, io.provenance.metadata.v0.Recital.Builder, io.provenance.metadata.v0.RecitalOrBuilder>
getPartiesFieldBuilder() {
if (partiesBuilder_ == null) {
partiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.provenance.metadata.v0.Recital, io.provenance.metadata.v0.Recital.Builder, io.provenance.metadata.v0.RecitalOrBuilder>(
parties_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
parties_ = null;
}
return partiesBuilder_;
}
private java.util.List recordGroup_ =
java.util.Collections.emptyList();
private void ensureRecordGroupIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
recordGroup_ = new java.util.ArrayList(recordGroup_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.provenance.metadata.v0.RecordGroup, io.provenance.metadata.v0.RecordGroup.Builder, io.provenance.metadata.v0.RecordGroupOrBuilder> recordGroupBuilder_;
/**
*
* Each contract memorialized in this scope is stored in this list of contract_group. The list of groups is keyed
* as a hashmap based on the contract_spec_ref as a unique key.
*
*
* repeated .scope.RecordGroup record_group = 3;
*/
public java.util.List getRecordGroupList() {
if (recordGroupBuilder_ == null) {
return java.util.Collections.unmodifiableList(recordGroup_);
} else {
return recordGroupBuilder_.getMessageList();
}
}
/**
*
* Each contract memorialized in this scope is stored in this list of contract_group. The list of groups is keyed
* as a hashmap based on the contract_spec_ref as a unique key.
*
*
* repeated .scope.RecordGroup record_group = 3;
*/
public int getRecordGroupCount() {
if (recordGroupBuilder_ == null) {
return recordGroup_.size();
} else {
return recordGroupBuilder_.getCount();
}
}
/**
*
* Each contract memorialized in this scope is stored in this list of contract_group. The list of groups is keyed
* as a hashmap based on the contract_spec_ref as a unique key.
*
*
* repeated .scope.RecordGroup record_group = 3;
*/
public io.provenance.metadata.v0.RecordGroup getRecordGroup(int index) {
if (recordGroupBuilder_ == null) {
return recordGroup_.get(index);
} else {
return recordGroupBuilder_.getMessage(index);
}
}
/**
*
* Each contract memorialized in this scope is stored in this list of contract_group. The list of groups is keyed
* as a hashmap based on the contract_spec_ref as a unique key.
*
*
* repeated .scope.RecordGroup record_group = 3;
*/
public Builder setRecordGroup(
int index, io.provenance.metadata.v0.RecordGroup value) {
if (recordGroupBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRecordGroupIsMutable();
recordGroup_.set(index, value);
onChanged();
} else {
recordGroupBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Each contract memorialized in this scope is stored in this list of contract_group. The list of groups is keyed
* as a hashmap based on the contract_spec_ref as a unique key.
*
*
* repeated .scope.RecordGroup record_group = 3;
*/
public Builder setRecordGroup(
int index, io.provenance.metadata.v0.RecordGroup.Builder builderForValue) {
if (recordGroupBuilder_ == null) {
ensureRecordGroupIsMutable();
recordGroup_.set(index, builderForValue.build());
onChanged();
} else {
recordGroupBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Each contract memorialized in this scope is stored in this list of contract_group. The list of groups is keyed
* as a hashmap based on the contract_spec_ref as a unique key.
*
*
* repeated .scope.RecordGroup record_group = 3;
*/
public Builder addRecordGroup(io.provenance.metadata.v0.RecordGroup value) {
if (recordGroupBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRecordGroupIsMutable();
recordGroup_.add(value);
onChanged();
} else {
recordGroupBuilder_.addMessage(value);
}
return this;
}
/**
*
* Each contract memorialized in this scope is stored in this list of contract_group. The list of groups is keyed
* as a hashmap based on the contract_spec_ref as a unique key.
*
*
* repeated .scope.RecordGroup record_group = 3;
*/
public Builder addRecordGroup(
int index, io.provenance.metadata.v0.RecordGroup value) {
if (recordGroupBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRecordGroupIsMutable();
recordGroup_.add(index, value);
onChanged();
} else {
recordGroupBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Each contract memorialized in this scope is stored in this list of contract_group. The list of groups is keyed
* as a hashmap based on the contract_spec_ref as a unique key.
*
*
* repeated .scope.RecordGroup record_group = 3;
*/
public Builder addRecordGroup(
io.provenance.metadata.v0.RecordGroup.Builder builderForValue) {
if (recordGroupBuilder_ == null) {
ensureRecordGroupIsMutable();
recordGroup_.add(builderForValue.build());
onChanged();
} else {
recordGroupBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Each contract memorialized in this scope is stored in this list of contract_group. The list of groups is keyed
* as a hashmap based on the contract_spec_ref as a unique key.
*
*
* repeated .scope.RecordGroup record_group = 3;
*/
public Builder addRecordGroup(
int index, io.provenance.metadata.v0.RecordGroup.Builder builderForValue) {
if (recordGroupBuilder_ == null) {
ensureRecordGroupIsMutable();
recordGroup_.add(index, builderForValue.build());
onChanged();
} else {
recordGroupBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Each contract memorialized in this scope is stored in this list of contract_group. The list of groups is keyed
* as a hashmap based on the contract_spec_ref as a unique key.
*
*
* repeated .scope.RecordGroup record_group = 3;
*/
public Builder addAllRecordGroup(
java.lang.Iterable extends io.provenance.metadata.v0.RecordGroup> values) {
if (recordGroupBuilder_ == null) {
ensureRecordGroupIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, recordGroup_);
onChanged();
} else {
recordGroupBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Each contract memorialized in this scope is stored in this list of contract_group. The list of groups is keyed
* as a hashmap based on the contract_spec_ref as a unique key.
*
*
* repeated .scope.RecordGroup record_group = 3;
*/
public Builder clearRecordGroup() {
if (recordGroupBuilder_ == null) {
recordGroup_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
recordGroupBuilder_.clear();
}
return this;
}
/**
*
* Each contract memorialized in this scope is stored in this list of contract_group. The list of groups is keyed
* as a hashmap based on the contract_spec_ref as a unique key.
*
*
* repeated .scope.RecordGroup record_group = 3;
*/
public Builder removeRecordGroup(int index) {
if (recordGroupBuilder_ == null) {
ensureRecordGroupIsMutable();
recordGroup_.remove(index);
onChanged();
} else {
recordGroupBuilder_.remove(index);
}
return this;
}
/**
*
* Each contract memorialized in this scope is stored in this list of contract_group. The list of groups is keyed
* as a hashmap based on the contract_spec_ref as a unique key.
*
*
* repeated .scope.RecordGroup record_group = 3;
*/
public io.provenance.metadata.v0.RecordGroup.Builder getRecordGroupBuilder(
int index) {
return getRecordGroupFieldBuilder().getBuilder(index);
}
/**
*
* Each contract memorialized in this scope is stored in this list of contract_group. The list of groups is keyed
* as a hashmap based on the contract_spec_ref as a unique key.
*
*
* repeated .scope.RecordGroup record_group = 3;
*/
public io.provenance.metadata.v0.RecordGroupOrBuilder getRecordGroupOrBuilder(
int index) {
if (recordGroupBuilder_ == null) {
return recordGroup_.get(index); } else {
return recordGroupBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Each contract memorialized in this scope is stored in this list of contract_group. The list of groups is keyed
* as a hashmap based on the contract_spec_ref as a unique key.
*
*
* repeated .scope.RecordGroup record_group = 3;
*/
public java.util.List extends io.provenance.metadata.v0.RecordGroupOrBuilder>
getRecordGroupOrBuilderList() {
if (recordGroupBuilder_ != null) {
return recordGroupBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(recordGroup_);
}
}
/**
*
* Each contract memorialized in this scope is stored in this list of contract_group. The list of groups is keyed
* as a hashmap based on the contract_spec_ref as a unique key.
*
*
* repeated .scope.RecordGroup record_group = 3;
*/
public io.provenance.metadata.v0.RecordGroup.Builder addRecordGroupBuilder() {
return getRecordGroupFieldBuilder().addBuilder(
io.provenance.metadata.v0.RecordGroup.getDefaultInstance());
}
/**
*
* Each contract memorialized in this scope is stored in this list of contract_group. The list of groups is keyed
* as a hashmap based on the contract_spec_ref as a unique key.
*
*
* repeated .scope.RecordGroup record_group = 3;
*/
public io.provenance.metadata.v0.RecordGroup.Builder addRecordGroupBuilder(
int index) {
return getRecordGroupFieldBuilder().addBuilder(
index, io.provenance.metadata.v0.RecordGroup.getDefaultInstance());
}
/**
*
* Each contract memorialized in this scope is stored in this list of contract_group. The list of groups is keyed
* as a hashmap based on the contract_spec_ref as a unique key.
*
*
* repeated .scope.RecordGroup record_group = 3;
*/
public java.util.List
getRecordGroupBuilderList() {
return getRecordGroupFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.provenance.metadata.v0.RecordGroup, io.provenance.metadata.v0.RecordGroup.Builder, io.provenance.metadata.v0.RecordGroupOrBuilder>
getRecordGroupFieldBuilder() {
if (recordGroupBuilder_ == null) {
recordGroupBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.provenance.metadata.v0.RecordGroup, io.provenance.metadata.v0.RecordGroup.Builder, io.provenance.metadata.v0.RecordGroupOrBuilder>(
recordGroup_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
recordGroup_ = null;
}
return recordGroupBuilder_;
}
private io.provenance.metadata.v0.Event lastEvent_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.provenance.metadata.v0.Event, io.provenance.metadata.v0.Event.Builder, io.provenance.metadata.v0.EventOrBuilder> lastEventBuilder_;
/**
*
* Last event that resulted in scope changes.
*
*
* .scope.Event last_event = 4;
*/
public boolean hasLastEvent() {
return lastEventBuilder_ != null || lastEvent_ != null;
}
/**
*
* Last event that resulted in scope changes.
*
*
* .scope.Event last_event = 4;
*/
public io.provenance.metadata.v0.Event getLastEvent() {
if (lastEventBuilder_ == null) {
return lastEvent_ == null ? io.provenance.metadata.v0.Event.getDefaultInstance() : lastEvent_;
} else {
return lastEventBuilder_.getMessage();
}
}
/**
*
* Last event that resulted in scope changes.
*
*
* .scope.Event last_event = 4;
*/
public Builder setLastEvent(io.provenance.metadata.v0.Event value) {
if (lastEventBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
lastEvent_ = value;
onChanged();
} else {
lastEventBuilder_.setMessage(value);
}
return this;
}
/**
*
* Last event that resulted in scope changes.
*
*
* .scope.Event last_event = 4;
*/
public Builder setLastEvent(
io.provenance.metadata.v0.Event.Builder builderForValue) {
if (lastEventBuilder_ == null) {
lastEvent_ = builderForValue.build();
onChanged();
} else {
lastEventBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Last event that resulted in scope changes.
*
*
* .scope.Event last_event = 4;
*/
public Builder mergeLastEvent(io.provenance.metadata.v0.Event value) {
if (lastEventBuilder_ == null) {
if (lastEvent_ != null) {
lastEvent_ =
io.provenance.metadata.v0.Event.newBuilder(lastEvent_).mergeFrom(value).buildPartial();
} else {
lastEvent_ = value;
}
onChanged();
} else {
lastEventBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Last event that resulted in scope changes.
*
*
* .scope.Event last_event = 4;
*/
public Builder clearLastEvent() {
if (lastEventBuilder_ == null) {
lastEvent_ = null;
onChanged();
} else {
lastEvent_ = null;
lastEventBuilder_ = null;
}
return this;
}
/**
*
* Last event that resulted in scope changes.
*
*
* .scope.Event last_event = 4;
*/
public io.provenance.metadata.v0.Event.Builder getLastEventBuilder() {
onChanged();
return getLastEventFieldBuilder().getBuilder();
}
/**
*
* Last event that resulted in scope changes.
*
*
* .scope.Event last_event = 4;
*/
public io.provenance.metadata.v0.EventOrBuilder getLastEventOrBuilder() {
if (lastEventBuilder_ != null) {
return lastEventBuilder_.getMessageOrBuilder();
} else {
return lastEvent_ == null ?
io.provenance.metadata.v0.Event.getDefaultInstance() : lastEvent_;
}
}
/**
*
* Last event that resulted in scope changes.
*
*
* .scope.Event last_event = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.provenance.metadata.v0.Event, io.provenance.metadata.v0.Event.Builder, io.provenance.metadata.v0.EventOrBuilder>
getLastEventFieldBuilder() {
if (lastEventBuilder_ == null) {
lastEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.provenance.metadata.v0.Event, io.provenance.metadata.v0.Event.Builder, io.provenance.metadata.v0.EventOrBuilder>(
getLastEvent(),
getParentForChildren(),
isClean());
lastEvent_ = null;
}
return lastEventBuilder_;
}
@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:scope.Scope)
}
// @@protoc_insertion_point(class_scope:scope.Scope)
private static final io.provenance.metadata.v0.Scope DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.provenance.metadata.v0.Scope();
}
public static io.provenance.metadata.v0.Scope getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Scope parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Scope(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.v0.Scope getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}