![JAR search and dependency download from the Maven repository](/logo.png)
io.provenance.metadata.v1.Scope Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: provenance/metadata/v1/scope.proto
package io.provenance.metadata.v1;
/**
*
* Scope defines a root reference for a collection of records owned by one or more parties.
*
*
* Protobuf type {@code provenance.metadata.v1.Scope}
*/
public final class Scope extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:provenance.metadata.v1.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() {
scopeId_ = com.google.protobuf.ByteString.EMPTY;
specificationId_ = com.google.protobuf.ByteString.EMPTY;
owners_ = java.util.Collections.emptyList();
dataAccess_ = com.google.protobuf.LazyStringArrayList.EMPTY;
valueOwnerAddress_ = "";
}
@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: {
scopeId_ = input.readBytes();
break;
}
case 18: {
specificationId_ = input.readBytes();
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
owners_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
owners_.add(
input.readMessage(io.provenance.metadata.v1.Party.parser(), extensionRegistry));
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
dataAccess_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000008;
}
dataAccess_.add(s);
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
valueOwnerAddress_ = 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 {
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
owners_ = java.util.Collections.unmodifiableList(owners_);
}
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
dataAccess_ = dataAccess_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.provenance.metadata.v1.ScopeOuterClass.internal_static_provenance_metadata_v1_Scope_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.provenance.metadata.v1.ScopeOuterClass.internal_static_provenance_metadata_v1_Scope_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.provenance.metadata.v1.Scope.class, io.provenance.metadata.v1.Scope.Builder.class);
}
private int bitField0_;
public static final int SCOPE_ID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString scopeId_;
/**
*
* Unique ID for this scope. Implements sdk.Address interface for use where addresses are required in Cosmos
*
*
* bytes scope_id = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "MetadataAddress", (.gogoproto.moretags) = "yaml:\"scope_id\""];
*/
public com.google.protobuf.ByteString getScopeId() {
return scopeId_;
}
public static final int SPECIFICATION_ID_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString specificationId_;
/**
*
* the scope specification that contains the specifications for data elements allowed within this scope
*
*
* bytes specification_id = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "MetadataAddress", (.gogoproto.moretags) = "yaml:\"specification_id\""];
*/
public com.google.protobuf.ByteString getSpecificationId() {
return specificationId_;
}
public static final int OWNERS_FIELD_NUMBER = 3;
private java.util.List owners_;
/**
*
* These parties represent top level owners of the records within. These parties must sign any requests that modify
* the data within the scope. These addresses are in union with parties listed on the sessions.
*
*
* repeated .provenance.metadata.v1.Party owners = 3 [(.gogoproto.nullable) = false];
*/
public java.util.List getOwnersList() {
return owners_;
}
/**
*
* These parties represent top level owners of the records within. These parties must sign any requests that modify
* the data within the scope. These addresses are in union with parties listed on the sessions.
*
*
* repeated .provenance.metadata.v1.Party owners = 3 [(.gogoproto.nullable) = false];
*/
public java.util.List extends io.provenance.metadata.v1.PartyOrBuilder>
getOwnersOrBuilderList() {
return owners_;
}
/**
*
* These parties represent top level owners of the records within. These parties must sign any requests that modify
* the data within the scope. These addresses are in union with parties listed on the sessions.
*
*
* repeated .provenance.metadata.v1.Party owners = 3 [(.gogoproto.nullable) = false];
*/
public int getOwnersCount() {
return owners_.size();
}
/**
*
* These parties represent top level owners of the records within. These parties must sign any requests that modify
* the data within the scope. These addresses are in union with parties listed on the sessions.
*
*
* repeated .provenance.metadata.v1.Party owners = 3 [(.gogoproto.nullable) = false];
*/
public io.provenance.metadata.v1.Party getOwners(int index) {
return owners_.get(index);
}
/**
*
* These parties represent top level owners of the records within. These parties must sign any requests that modify
* the data within the scope. These addresses are in union with parties listed on the sessions.
*
*
* repeated .provenance.metadata.v1.Party owners = 3 [(.gogoproto.nullable) = false];
*/
public io.provenance.metadata.v1.PartyOrBuilder getOwnersOrBuilder(
int index) {
return owners_.get(index);
}
public static final int DATA_ACCESS_FIELD_NUMBER = 4;
private com.google.protobuf.LazyStringList dataAccess_;
/**
*
* Addessses in this list are authorized to recieve off-chain data associated with this scope.
*
*
* repeated string data_access = 4 [(.gogoproto.moretags) = "yaml:\"data_access\""];
*/
public com.google.protobuf.ProtocolStringList
getDataAccessList() {
return dataAccess_;
}
/**
*
* Addessses in this list are authorized to recieve off-chain data associated with this scope.
*
*
* repeated string data_access = 4 [(.gogoproto.moretags) = "yaml:\"data_access\""];
*/
public int getDataAccessCount() {
return dataAccess_.size();
}
/**
*
* Addessses in this list are authorized to recieve off-chain data associated with this scope.
*
*
* repeated string data_access = 4 [(.gogoproto.moretags) = "yaml:\"data_access\""];
*/
public java.lang.String getDataAccess(int index) {
return dataAccess_.get(index);
}
/**
*
* Addessses in this list are authorized to recieve off-chain data associated with this scope.
*
*
* repeated string data_access = 4 [(.gogoproto.moretags) = "yaml:\"data_access\""];
*/
public com.google.protobuf.ByteString
getDataAccessBytes(int index) {
return dataAccess_.getByteString(index);
}
public static final int VALUE_OWNER_ADDRESS_FIELD_NUMBER = 5;
private volatile java.lang.Object valueOwnerAddress_;
/**
*
* An address that controls the value associated with this scope. Standard blockchain accounts and marker accounts
* are supported for this value. This attribute may only be changed by the entity indicated once it is set.
*
*
* string value_owner_address = 5 [(.gogoproto.moretags) = "yaml:\"value_owner_address\""];
*/
public java.lang.String getValueOwnerAddress() {
java.lang.Object ref = valueOwnerAddress_;
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();
valueOwnerAddress_ = s;
return s;
}
}
/**
*
* An address that controls the value associated with this scope. Standard blockchain accounts and marker accounts
* are supported for this value. This attribute may only be changed by the entity indicated once it is set.
*
*
* string value_owner_address = 5 [(.gogoproto.moretags) = "yaml:\"value_owner_address\""];
*/
public com.google.protobuf.ByteString
getValueOwnerAddressBytes() {
java.lang.Object ref = valueOwnerAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
valueOwnerAddress_ = 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 (!scopeId_.isEmpty()) {
output.writeBytes(1, scopeId_);
}
if (!specificationId_.isEmpty()) {
output.writeBytes(2, specificationId_);
}
for (int i = 0; i < owners_.size(); i++) {
output.writeMessage(3, owners_.get(i));
}
for (int i = 0; i < dataAccess_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, dataAccess_.getRaw(i));
}
if (!getValueOwnerAddressBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, valueOwnerAddress_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!scopeId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, scopeId_);
}
if (!specificationId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, specificationId_);
}
for (int i = 0; i < owners_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, owners_.get(i));
}
{
int dataSize = 0;
for (int i = 0; i < dataAccess_.size(); i++) {
dataSize += computeStringSizeNoTag(dataAccess_.getRaw(i));
}
size += dataSize;
size += 1 * getDataAccessList().size();
}
if (!getValueOwnerAddressBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, valueOwnerAddress_);
}
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.Scope)) {
return super.equals(obj);
}
io.provenance.metadata.v1.Scope other = (io.provenance.metadata.v1.Scope) obj;
boolean result = true;
result = result && getScopeId()
.equals(other.getScopeId());
result = result && getSpecificationId()
.equals(other.getSpecificationId());
result = result && getOwnersList()
.equals(other.getOwnersList());
result = result && getDataAccessList()
.equals(other.getDataAccessList());
result = result && getValueOwnerAddress()
.equals(other.getValueOwnerAddress());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SCOPE_ID_FIELD_NUMBER;
hash = (53 * hash) + getScopeId().hashCode();
hash = (37 * hash) + SPECIFICATION_ID_FIELD_NUMBER;
hash = (53 * hash) + getSpecificationId().hashCode();
if (getOwnersCount() > 0) {
hash = (37 * hash) + OWNERS_FIELD_NUMBER;
hash = (53 * hash) + getOwnersList().hashCode();
}
if (getDataAccessCount() > 0) {
hash = (37 * hash) + DATA_ACCESS_FIELD_NUMBER;
hash = (53 * hash) + getDataAccessList().hashCode();
}
hash = (37 * hash) + VALUE_OWNER_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getValueOwnerAddress().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.provenance.metadata.v1.Scope parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.metadata.v1.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.v1.Scope parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.metadata.v1.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.v1.Scope parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.metadata.v1.Scope parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.provenance.metadata.v1.Scope parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.provenance.metadata.v1.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.v1.Scope parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.provenance.metadata.v1.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.v1.Scope parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.provenance.metadata.v1.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.v1.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;
}
/**
*
* Scope defines a root reference for a collection of records owned by one or more parties.
*
*
* Protobuf type {@code provenance.metadata.v1.Scope}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:provenance.metadata.v1.Scope)
io.provenance.metadata.v1.ScopeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.provenance.metadata.v1.ScopeOuterClass.internal_static_provenance_metadata_v1_Scope_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.provenance.metadata.v1.ScopeOuterClass.internal_static_provenance_metadata_v1_Scope_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.provenance.metadata.v1.Scope.class, io.provenance.metadata.v1.Scope.Builder.class);
}
// Construct using io.provenance.metadata.v1.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) {
getOwnersFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
scopeId_ = com.google.protobuf.ByteString.EMPTY;
specificationId_ = com.google.protobuf.ByteString.EMPTY;
if (ownersBuilder_ == null) {
owners_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ownersBuilder_.clear();
}
dataAccess_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
valueOwnerAddress_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.provenance.metadata.v1.ScopeOuterClass.internal_static_provenance_metadata_v1_Scope_descriptor;
}
@java.lang.Override
public io.provenance.metadata.v1.Scope getDefaultInstanceForType() {
return io.provenance.metadata.v1.Scope.getDefaultInstance();
}
@java.lang.Override
public io.provenance.metadata.v1.Scope build() {
io.provenance.metadata.v1.Scope result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.provenance.metadata.v1.Scope buildPartial() {
io.provenance.metadata.v1.Scope result = new io.provenance.metadata.v1.Scope(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.scopeId_ = scopeId_;
result.specificationId_ = specificationId_;
if (ownersBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
owners_ = java.util.Collections.unmodifiableList(owners_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.owners_ = owners_;
} else {
result.owners_ = ownersBuilder_.build();
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
dataAccess_ = dataAccess_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000008);
}
result.dataAccess_ = dataAccess_;
result.valueOwnerAddress_ = valueOwnerAddress_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.provenance.metadata.v1.Scope) {
return mergeFrom((io.provenance.metadata.v1.Scope)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.provenance.metadata.v1.Scope other) {
if (other == io.provenance.metadata.v1.Scope.getDefaultInstance()) return this;
if (other.getScopeId() != com.google.protobuf.ByteString.EMPTY) {
setScopeId(other.getScopeId());
}
if (other.getSpecificationId() != com.google.protobuf.ByteString.EMPTY) {
setSpecificationId(other.getSpecificationId());
}
if (ownersBuilder_ == null) {
if (!other.owners_.isEmpty()) {
if (owners_.isEmpty()) {
owners_ = other.owners_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureOwnersIsMutable();
owners_.addAll(other.owners_);
}
onChanged();
}
} else {
if (!other.owners_.isEmpty()) {
if (ownersBuilder_.isEmpty()) {
ownersBuilder_.dispose();
ownersBuilder_ = null;
owners_ = other.owners_;
bitField0_ = (bitField0_ & ~0x00000004);
ownersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getOwnersFieldBuilder() : null;
} else {
ownersBuilder_.addAllMessages(other.owners_);
}
}
}
if (!other.dataAccess_.isEmpty()) {
if (dataAccess_.isEmpty()) {
dataAccess_ = other.dataAccess_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureDataAccessIsMutable();
dataAccess_.addAll(other.dataAccess_);
}
onChanged();
}
if (!other.getValueOwnerAddress().isEmpty()) {
valueOwnerAddress_ = other.valueOwnerAddress_;
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.Scope parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.provenance.metadata.v1.Scope) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString scopeId_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Unique ID for this scope. Implements sdk.Address interface for use where addresses are required in Cosmos
*
*
* bytes scope_id = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "MetadataAddress", (.gogoproto.moretags) = "yaml:\"scope_id\""];
*/
public com.google.protobuf.ByteString getScopeId() {
return scopeId_;
}
/**
*
* Unique ID for this scope. Implements sdk.Address interface for use where addresses are required in Cosmos
*
*
* bytes scope_id = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "MetadataAddress", (.gogoproto.moretags) = "yaml:\"scope_id\""];
*/
public Builder setScopeId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
scopeId_ = value;
onChanged();
return this;
}
/**
*
* Unique ID for this scope. Implements sdk.Address interface for use where addresses are required in Cosmos
*
*
* bytes scope_id = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "MetadataAddress", (.gogoproto.moretags) = "yaml:\"scope_id\""];
*/
public Builder clearScopeId() {
scopeId_ = getDefaultInstance().getScopeId();
onChanged();
return this;
}
private com.google.protobuf.ByteString specificationId_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* the scope specification that contains the specifications for data elements allowed within this scope
*
*
* bytes specification_id = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "MetadataAddress", (.gogoproto.moretags) = "yaml:\"specification_id\""];
*/
public com.google.protobuf.ByteString getSpecificationId() {
return specificationId_;
}
/**
*
* the scope specification that contains the specifications for data elements allowed within this scope
*
*
* bytes specification_id = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "MetadataAddress", (.gogoproto.moretags) = "yaml:\"specification_id\""];
*/
public Builder setSpecificationId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
specificationId_ = value;
onChanged();
return this;
}
/**
*
* the scope specification that contains the specifications for data elements allowed within this scope
*
*
* bytes specification_id = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "MetadataAddress", (.gogoproto.moretags) = "yaml:\"specification_id\""];
*/
public Builder clearSpecificationId() {
specificationId_ = getDefaultInstance().getSpecificationId();
onChanged();
return this;
}
private java.util.List owners_ =
java.util.Collections.emptyList();
private void ensureOwnersIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
owners_ = new java.util.ArrayList(owners_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.provenance.metadata.v1.Party, io.provenance.metadata.v1.Party.Builder, io.provenance.metadata.v1.PartyOrBuilder> ownersBuilder_;
/**
*
* These parties represent top level owners of the records within. These parties must sign any requests that modify
* the data within the scope. These addresses are in union with parties listed on the sessions.
*
*
* repeated .provenance.metadata.v1.Party owners = 3 [(.gogoproto.nullable) = false];
*/
public java.util.List getOwnersList() {
if (ownersBuilder_ == null) {
return java.util.Collections.unmodifiableList(owners_);
} else {
return ownersBuilder_.getMessageList();
}
}
/**
*
* These parties represent top level owners of the records within. These parties must sign any requests that modify
* the data within the scope. These addresses are in union with parties listed on the sessions.
*
*
* repeated .provenance.metadata.v1.Party owners = 3 [(.gogoproto.nullable) = false];
*/
public int getOwnersCount() {
if (ownersBuilder_ == null) {
return owners_.size();
} else {
return ownersBuilder_.getCount();
}
}
/**
*
* These parties represent top level owners of the records within. These parties must sign any requests that modify
* the data within the scope. These addresses are in union with parties listed on the sessions.
*
*
* repeated .provenance.metadata.v1.Party owners = 3 [(.gogoproto.nullable) = false];
*/
public io.provenance.metadata.v1.Party getOwners(int index) {
if (ownersBuilder_ == null) {
return owners_.get(index);
} else {
return ownersBuilder_.getMessage(index);
}
}
/**
*
* These parties represent top level owners of the records within. These parties must sign any requests that modify
* the data within the scope. These addresses are in union with parties listed on the sessions.
*
*
* repeated .provenance.metadata.v1.Party owners = 3 [(.gogoproto.nullable) = false];
*/
public Builder setOwners(
int index, io.provenance.metadata.v1.Party value) {
if (ownersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOwnersIsMutable();
owners_.set(index, value);
onChanged();
} else {
ownersBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* These parties represent top level owners of the records within. These parties must sign any requests that modify
* the data within the scope. These addresses are in union with parties listed on the sessions.
*
*
* repeated .provenance.metadata.v1.Party owners = 3 [(.gogoproto.nullable) = false];
*/
public Builder setOwners(
int index, io.provenance.metadata.v1.Party.Builder builderForValue) {
if (ownersBuilder_ == null) {
ensureOwnersIsMutable();
owners_.set(index, builderForValue.build());
onChanged();
} else {
ownersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* These parties represent top level owners of the records within. These parties must sign any requests that modify
* the data within the scope. These addresses are in union with parties listed on the sessions.
*
*
* repeated .provenance.metadata.v1.Party owners = 3 [(.gogoproto.nullable) = false];
*/
public Builder addOwners(io.provenance.metadata.v1.Party value) {
if (ownersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOwnersIsMutable();
owners_.add(value);
onChanged();
} else {
ownersBuilder_.addMessage(value);
}
return this;
}
/**
*
* These parties represent top level owners of the records within. These parties must sign any requests that modify
* the data within the scope. These addresses are in union with parties listed on the sessions.
*
*
* repeated .provenance.metadata.v1.Party owners = 3 [(.gogoproto.nullable) = false];
*/
public Builder addOwners(
int index, io.provenance.metadata.v1.Party value) {
if (ownersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOwnersIsMutable();
owners_.add(index, value);
onChanged();
} else {
ownersBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* These parties represent top level owners of the records within. These parties must sign any requests that modify
* the data within the scope. These addresses are in union with parties listed on the sessions.
*
*
* repeated .provenance.metadata.v1.Party owners = 3 [(.gogoproto.nullable) = false];
*/
public Builder addOwners(
io.provenance.metadata.v1.Party.Builder builderForValue) {
if (ownersBuilder_ == null) {
ensureOwnersIsMutable();
owners_.add(builderForValue.build());
onChanged();
} else {
ownersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* These parties represent top level owners of the records within. These parties must sign any requests that modify
* the data within the scope. These addresses are in union with parties listed on the sessions.
*
*
* repeated .provenance.metadata.v1.Party owners = 3 [(.gogoproto.nullable) = false];
*/
public Builder addOwners(
int index, io.provenance.metadata.v1.Party.Builder builderForValue) {
if (ownersBuilder_ == null) {
ensureOwnersIsMutable();
owners_.add(index, builderForValue.build());
onChanged();
} else {
ownersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* These parties represent top level owners of the records within. These parties must sign any requests that modify
* the data within the scope. These addresses are in union with parties listed on the sessions.
*
*
* repeated .provenance.metadata.v1.Party owners = 3 [(.gogoproto.nullable) = false];
*/
public Builder addAllOwners(
java.lang.Iterable extends io.provenance.metadata.v1.Party> values) {
if (ownersBuilder_ == null) {
ensureOwnersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, owners_);
onChanged();
} else {
ownersBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* These parties represent top level owners of the records within. These parties must sign any requests that modify
* the data within the scope. These addresses are in union with parties listed on the sessions.
*
*
* repeated .provenance.metadata.v1.Party owners = 3 [(.gogoproto.nullable) = false];
*/
public Builder clearOwners() {
if (ownersBuilder_ == null) {
owners_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
ownersBuilder_.clear();
}
return this;
}
/**
*
* These parties represent top level owners of the records within. These parties must sign any requests that modify
* the data within the scope. These addresses are in union with parties listed on the sessions.
*
*
* repeated .provenance.metadata.v1.Party owners = 3 [(.gogoproto.nullable) = false];
*/
public Builder removeOwners(int index) {
if (ownersBuilder_ == null) {
ensureOwnersIsMutable();
owners_.remove(index);
onChanged();
} else {
ownersBuilder_.remove(index);
}
return this;
}
/**
*
* These parties represent top level owners of the records within. These parties must sign any requests that modify
* the data within the scope. These addresses are in union with parties listed on the sessions.
*
*
* repeated .provenance.metadata.v1.Party owners = 3 [(.gogoproto.nullable) = false];
*/
public io.provenance.metadata.v1.Party.Builder getOwnersBuilder(
int index) {
return getOwnersFieldBuilder().getBuilder(index);
}
/**
*
* These parties represent top level owners of the records within. These parties must sign any requests that modify
* the data within the scope. These addresses are in union with parties listed on the sessions.
*
*
* repeated .provenance.metadata.v1.Party owners = 3 [(.gogoproto.nullable) = false];
*/
public io.provenance.metadata.v1.PartyOrBuilder getOwnersOrBuilder(
int index) {
if (ownersBuilder_ == null) {
return owners_.get(index); } else {
return ownersBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* These parties represent top level owners of the records within. These parties must sign any requests that modify
* the data within the scope. These addresses are in union with parties listed on the sessions.
*
*
* repeated .provenance.metadata.v1.Party owners = 3 [(.gogoproto.nullable) = false];
*/
public java.util.List extends io.provenance.metadata.v1.PartyOrBuilder>
getOwnersOrBuilderList() {
if (ownersBuilder_ != null) {
return ownersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(owners_);
}
}
/**
*
* These parties represent top level owners of the records within. These parties must sign any requests that modify
* the data within the scope. These addresses are in union with parties listed on the sessions.
*
*
* repeated .provenance.metadata.v1.Party owners = 3 [(.gogoproto.nullable) = false];
*/
public io.provenance.metadata.v1.Party.Builder addOwnersBuilder() {
return getOwnersFieldBuilder().addBuilder(
io.provenance.metadata.v1.Party.getDefaultInstance());
}
/**
*
* These parties represent top level owners of the records within. These parties must sign any requests that modify
* the data within the scope. These addresses are in union with parties listed on the sessions.
*
*
* repeated .provenance.metadata.v1.Party owners = 3 [(.gogoproto.nullable) = false];
*/
public io.provenance.metadata.v1.Party.Builder addOwnersBuilder(
int index) {
return getOwnersFieldBuilder().addBuilder(
index, io.provenance.metadata.v1.Party.getDefaultInstance());
}
/**
*
* These parties represent top level owners of the records within. These parties must sign any requests that modify
* the data within the scope. These addresses are in union with parties listed on the sessions.
*
*
* repeated .provenance.metadata.v1.Party owners = 3 [(.gogoproto.nullable) = false];
*/
public java.util.List
getOwnersBuilderList() {
return getOwnersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.provenance.metadata.v1.Party, io.provenance.metadata.v1.Party.Builder, io.provenance.metadata.v1.PartyOrBuilder>
getOwnersFieldBuilder() {
if (ownersBuilder_ == null) {
ownersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.provenance.metadata.v1.Party, io.provenance.metadata.v1.Party.Builder, io.provenance.metadata.v1.PartyOrBuilder>(
owners_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
owners_ = null;
}
return ownersBuilder_;
}
private com.google.protobuf.LazyStringList dataAccess_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureDataAccessIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
dataAccess_ = new com.google.protobuf.LazyStringArrayList(dataAccess_);
bitField0_ |= 0x00000008;
}
}
/**
*
* Addessses in this list are authorized to recieve off-chain data associated with this scope.
*
*
* repeated string data_access = 4 [(.gogoproto.moretags) = "yaml:\"data_access\""];
*/
public com.google.protobuf.ProtocolStringList
getDataAccessList() {
return dataAccess_.getUnmodifiableView();
}
/**
*
* Addessses in this list are authorized to recieve off-chain data associated with this scope.
*
*
* repeated string data_access = 4 [(.gogoproto.moretags) = "yaml:\"data_access\""];
*/
public int getDataAccessCount() {
return dataAccess_.size();
}
/**
*
* Addessses in this list are authorized to recieve off-chain data associated with this scope.
*
*
* repeated string data_access = 4 [(.gogoproto.moretags) = "yaml:\"data_access\""];
*/
public java.lang.String getDataAccess(int index) {
return dataAccess_.get(index);
}
/**
*
* Addessses in this list are authorized to recieve off-chain data associated with this scope.
*
*
* repeated string data_access = 4 [(.gogoproto.moretags) = "yaml:\"data_access\""];
*/
public com.google.protobuf.ByteString
getDataAccessBytes(int index) {
return dataAccess_.getByteString(index);
}
/**
*
* Addessses in this list are authorized to recieve off-chain data associated with this scope.
*
*
* repeated string data_access = 4 [(.gogoproto.moretags) = "yaml:\"data_access\""];
*/
public Builder setDataAccess(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureDataAccessIsMutable();
dataAccess_.set(index, value);
onChanged();
return this;
}
/**
*
* Addessses in this list are authorized to recieve off-chain data associated with this scope.
*
*
* repeated string data_access = 4 [(.gogoproto.moretags) = "yaml:\"data_access\""];
*/
public Builder addDataAccess(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureDataAccessIsMutable();
dataAccess_.add(value);
onChanged();
return this;
}
/**
*
* Addessses in this list are authorized to recieve off-chain data associated with this scope.
*
*
* repeated string data_access = 4 [(.gogoproto.moretags) = "yaml:\"data_access\""];
*/
public Builder addAllDataAccess(
java.lang.Iterable values) {
ensureDataAccessIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, dataAccess_);
onChanged();
return this;
}
/**
*
* Addessses in this list are authorized to recieve off-chain data associated with this scope.
*
*
* repeated string data_access = 4 [(.gogoproto.moretags) = "yaml:\"data_access\""];
*/
public Builder clearDataAccess() {
dataAccess_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
* Addessses in this list are authorized to recieve off-chain data associated with this scope.
*
*
* repeated string data_access = 4 [(.gogoproto.moretags) = "yaml:\"data_access\""];
*/
public Builder addDataAccessBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureDataAccessIsMutable();
dataAccess_.add(value);
onChanged();
return this;
}
private java.lang.Object valueOwnerAddress_ = "";
/**
*
* An address that controls the value associated with this scope. Standard blockchain accounts and marker accounts
* are supported for this value. This attribute may only be changed by the entity indicated once it is set.
*
*
* string value_owner_address = 5 [(.gogoproto.moretags) = "yaml:\"value_owner_address\""];
*/
public java.lang.String getValueOwnerAddress() {
java.lang.Object ref = valueOwnerAddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
valueOwnerAddress_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* An address that controls the value associated with this scope. Standard blockchain accounts and marker accounts
* are supported for this value. This attribute may only be changed by the entity indicated once it is set.
*
*
* string value_owner_address = 5 [(.gogoproto.moretags) = "yaml:\"value_owner_address\""];
*/
public com.google.protobuf.ByteString
getValueOwnerAddressBytes() {
java.lang.Object ref = valueOwnerAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
valueOwnerAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* An address that controls the value associated with this scope. Standard blockchain accounts and marker accounts
* are supported for this value. This attribute may only be changed by the entity indicated once it is set.
*
*
* string value_owner_address = 5 [(.gogoproto.moretags) = "yaml:\"value_owner_address\""];
*/
public Builder setValueOwnerAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
valueOwnerAddress_ = value;
onChanged();
return this;
}
/**
*
* An address that controls the value associated with this scope. Standard blockchain accounts and marker accounts
* are supported for this value. This attribute may only be changed by the entity indicated once it is set.
*
*
* string value_owner_address = 5 [(.gogoproto.moretags) = "yaml:\"value_owner_address\""];
*/
public Builder clearValueOwnerAddress() {
valueOwnerAddress_ = getDefaultInstance().getValueOwnerAddress();
onChanged();
return this;
}
/**
*
* An address that controls the value associated with this scope. Standard blockchain accounts and marker accounts
* are supported for this value. This attribute may only be changed by the entity indicated once it is set.
*
*
* string value_owner_address = 5 [(.gogoproto.moretags) = "yaml:\"value_owner_address\""];
*/
public Builder setValueOwnerAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
valueOwnerAddress_ = 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.Scope)
}
// @@protoc_insertion_point(class_scope:provenance.metadata.v1.Scope)
private static final io.provenance.metadata.v1.Scope DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.provenance.metadata.v1.Scope();
}
public static io.provenance.metadata.v1.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.v1.Scope getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy