All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.provenance.metadata.v1.Session Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: provenance/metadata/v1/scope.proto

package io.provenance.metadata.v1;

/**
 * 
 *A Session is created for an execution context against a specific specification instance
 *The context will have a specification and set of parties involved.  The Session may be updated several
 *times so long as the parties listed are signers on the transaction.  NOTE: When there are no Records within a Scope
 *that reference a Session it is removed.
 * 
* * Protobuf type {@code provenance.metadata.v1.Session} */ public final class Session extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:provenance.metadata.v1.Session) SessionOrBuilder { private static final long serialVersionUID = 0L; // Use Session.newBuilder() to construct. private Session(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Session() { sessionId_ = com.google.protobuf.ByteString.EMPTY; specificationId_ = com.google.protobuf.ByteString.EMPTY; parties_ = java.util.Collections.emptyList(); name_ = ""; context_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Session( 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: { sessionId_ = input.readBytes(); break; } case 18: { specificationId_ = input.readBytes(); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { parties_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } parties_.add( input.readMessage(io.provenance.metadata.v1.Party.parser(), extensionRegistry)); break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 42: { context_ = input.readBytes(); break; } case 794: { io.provenance.metadata.v1.AuditFields.Builder subBuilder = null; if (audit_ != null) { subBuilder = audit_.toBuilder(); } audit_ = input.readMessage(io.provenance.metadata.v1.AuditFields.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(audit_); audit_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { parties_ = java.util.Collections.unmodifiableList(parties_); } 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_Session_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.provenance.metadata.v1.ScopeOuterClass.internal_static_provenance_metadata_v1_Session_fieldAccessorTable .ensureFieldAccessorsInitialized( io.provenance.metadata.v1.Session.class, io.provenance.metadata.v1.Session.Builder.class); } private int bitField0_; public static final int SESSION_ID_FIELD_NUMBER = 1; private com.google.protobuf.ByteString sessionId_; /** * bytes session_id = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "MetadataAddress", (.gogoproto.moretags) = "yaml:\"session_id\""]; */ public com.google.protobuf.ByteString getSessionId() { return sessionId_; } public static final int SPECIFICATION_ID_FIELD_NUMBER = 2; private com.google.protobuf.ByteString specificationId_; /** *
   * unique id of the contract specification that was used to create this session.
   * 
* * 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 PARTIES_FIELD_NUMBER = 3; private java.util.List parties_; /** *
   * parties is the set of identities that signed this contract
   * 
* * repeated .provenance.metadata.v1.Party parties = 3 [(.gogoproto.nullable) = false]; */ public java.util.List getPartiesList() { return parties_; } /** *
   * parties is the set of identities that signed this contract
   * 
* * repeated .provenance.metadata.v1.Party parties = 3 [(.gogoproto.nullable) = false]; */ public java.util.List getPartiesOrBuilderList() { return parties_; } /** *
   * parties is the set of identities that signed this contract
   * 
* * repeated .provenance.metadata.v1.Party parties = 3 [(.gogoproto.nullable) = false]; */ public int getPartiesCount() { return parties_.size(); } /** *
   * parties is the set of identities that signed this contract
   * 
* * repeated .provenance.metadata.v1.Party parties = 3 [(.gogoproto.nullable) = false]; */ public io.provenance.metadata.v1.Party getParties(int index) { return parties_.get(index); } /** *
   * parties is the set of identities that signed this contract
   * 
* * repeated .provenance.metadata.v1.Party parties = 3 [(.gogoproto.nullable) = false]; */ public io.provenance.metadata.v1.PartyOrBuilder getPartiesOrBuilder( int index) { return parties_.get(index); } public static final int NAME_FIELD_NUMBER = 4; private volatile java.lang.Object name_; /** *
   * name to associate with this session execution context, typically classname
   * 
* * string name = 4 [(.gogoproto.jsontag) = "type", (.gogoproto.moretags) = "yaml:\"type\""]; */ 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; } } /** *
   * name to associate with this session execution context, typically classname
   * 
* * string name = 4 [(.gogoproto.jsontag) = "type", (.gogoproto.moretags) = "yaml:\"type\""]; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONTEXT_FIELD_NUMBER = 5; private com.google.protobuf.ByteString context_; /** *
   * context is a field for storing client specific data associated with a session.
   * 
* * bytes context = 5; */ public com.google.protobuf.ByteString getContext() { return context_; } public static final int AUDIT_FIELD_NUMBER = 99; private io.provenance.metadata.v1.AuditFields audit_; /** *
   * Created by, updated by, timestamps, version number, and related info.
   * 
* * .provenance.metadata.v1.AuditFields audit = 99 [(.gogoproto.moretags) = "yaml:\"audit,omitempty\""]; */ public boolean hasAudit() { return audit_ != null; } /** *
   * Created by, updated by, timestamps, version number, and related info.
   * 
* * .provenance.metadata.v1.AuditFields audit = 99 [(.gogoproto.moretags) = "yaml:\"audit,omitempty\""]; */ public io.provenance.metadata.v1.AuditFields getAudit() { return audit_ == null ? io.provenance.metadata.v1.AuditFields.getDefaultInstance() : audit_; } /** *
   * Created by, updated by, timestamps, version number, and related info.
   * 
* * .provenance.metadata.v1.AuditFields audit = 99 [(.gogoproto.moretags) = "yaml:\"audit,omitempty\""]; */ public io.provenance.metadata.v1.AuditFieldsOrBuilder getAuditOrBuilder() { return getAudit(); } 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 (!sessionId_.isEmpty()) { output.writeBytes(1, sessionId_); } if (!specificationId_.isEmpty()) { output.writeBytes(2, specificationId_); } for (int i = 0; i < parties_.size(); i++) { output.writeMessage(3, parties_.get(i)); } if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); } if (!context_.isEmpty()) { output.writeBytes(5, context_); } if (audit_ != null) { output.writeMessage(99, getAudit()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!sessionId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, sessionId_); } if (!specificationId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, specificationId_); } for (int i = 0; i < parties_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, parties_.get(i)); } if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); } if (!context_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, context_); } if (audit_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(99, getAudit()); } 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.Session)) { return super.equals(obj); } io.provenance.metadata.v1.Session other = (io.provenance.metadata.v1.Session) obj; boolean result = true; result = result && getSessionId() .equals(other.getSessionId()); result = result && getSpecificationId() .equals(other.getSpecificationId()); result = result && getPartiesList() .equals(other.getPartiesList()); result = result && getName() .equals(other.getName()); result = result && getContext() .equals(other.getContext()); result = result && (hasAudit() == other.hasAudit()); if (hasAudit()) { result = result && getAudit() .equals(other.getAudit()); } 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) + SESSION_ID_FIELD_NUMBER; hash = (53 * hash) + getSessionId().hashCode(); hash = (37 * hash) + SPECIFICATION_ID_FIELD_NUMBER; hash = (53 * hash) + getSpecificationId().hashCode(); if (getPartiesCount() > 0) { hash = (37 * hash) + PARTIES_FIELD_NUMBER; hash = (53 * hash) + getPartiesList().hashCode(); } hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); if (hasAudit()) { hash = (37 * hash) + AUDIT_FIELD_NUMBER; hash = (53 * hash) + getAudit().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.provenance.metadata.v1.Session parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.provenance.metadata.v1.Session 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.Session parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.provenance.metadata.v1.Session 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.Session parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.provenance.metadata.v1.Session parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.provenance.metadata.v1.Session parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.provenance.metadata.v1.Session 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.Session parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.provenance.metadata.v1.Session 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.Session parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.provenance.metadata.v1.Session 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.Session 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 Session is created for an execution context against a specific specification instance
   *The context will have a specification and set of parties involved.  The Session may be updated several
   *times so long as the parties listed are signers on the transaction.  NOTE: When there are no Records within a Scope
   *that reference a Session it is removed.
   * 
* * Protobuf type {@code provenance.metadata.v1.Session} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:provenance.metadata.v1.Session) io.provenance.metadata.v1.SessionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.provenance.metadata.v1.ScopeOuterClass.internal_static_provenance_metadata_v1_Session_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.provenance.metadata.v1.ScopeOuterClass.internal_static_provenance_metadata_v1_Session_fieldAccessorTable .ensureFieldAccessorsInitialized( io.provenance.metadata.v1.Session.class, io.provenance.metadata.v1.Session.Builder.class); } // Construct using io.provenance.metadata.v1.Session.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(); } } @java.lang.Override public Builder clear() { super.clear(); sessionId_ = com.google.protobuf.ByteString.EMPTY; specificationId_ = com.google.protobuf.ByteString.EMPTY; if (partiesBuilder_ == null) { parties_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { partiesBuilder_.clear(); } name_ = ""; context_ = com.google.protobuf.ByteString.EMPTY; if (auditBuilder_ == null) { audit_ = null; } else { audit_ = null; auditBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.provenance.metadata.v1.ScopeOuterClass.internal_static_provenance_metadata_v1_Session_descriptor; } @java.lang.Override public io.provenance.metadata.v1.Session getDefaultInstanceForType() { return io.provenance.metadata.v1.Session.getDefaultInstance(); } @java.lang.Override public io.provenance.metadata.v1.Session build() { io.provenance.metadata.v1.Session result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.provenance.metadata.v1.Session buildPartial() { io.provenance.metadata.v1.Session result = new io.provenance.metadata.v1.Session(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.sessionId_ = sessionId_; result.specificationId_ = specificationId_; if (partiesBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { parties_ = java.util.Collections.unmodifiableList(parties_); bitField0_ = (bitField0_ & ~0x00000004); } result.parties_ = parties_; } else { result.parties_ = partiesBuilder_.build(); } result.name_ = name_; result.context_ = context_; if (auditBuilder_ == null) { result.audit_ = audit_; } else { result.audit_ = auditBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.provenance.metadata.v1.Session) { return mergeFrom((io.provenance.metadata.v1.Session)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.provenance.metadata.v1.Session other) { if (other == io.provenance.metadata.v1.Session.getDefaultInstance()) return this; if (other.getSessionId() != com.google.protobuf.ByteString.EMPTY) { setSessionId(other.getSessionId()); } if (other.getSpecificationId() != com.google.protobuf.ByteString.EMPTY) { setSpecificationId(other.getSpecificationId()); } if (partiesBuilder_ == null) { if (!other.parties_.isEmpty()) { if (parties_.isEmpty()) { parties_ = other.parties_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensurePartiesIsMutable(); parties_.addAll(other.parties_); } onChanged(); } } else { if (!other.parties_.isEmpty()) { if (partiesBuilder_.isEmpty()) { partiesBuilder_.dispose(); partiesBuilder_ = null; parties_ = other.parties_; bitField0_ = (bitField0_ & ~0x00000004); partiesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPartiesFieldBuilder() : null; } else { partiesBuilder_.addAllMessages(other.parties_); } } } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.getContext() != com.google.protobuf.ByteString.EMPTY) { setContext(other.getContext()); } if (other.hasAudit()) { mergeAudit(other.getAudit()); } 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.Session parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.provenance.metadata.v1.Session) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString sessionId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes session_id = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "MetadataAddress", (.gogoproto.moretags) = "yaml:\"session_id\""]; */ public com.google.protobuf.ByteString getSessionId() { return sessionId_; } /** * bytes session_id = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "MetadataAddress", (.gogoproto.moretags) = "yaml:\"session_id\""]; */ public Builder setSessionId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } sessionId_ = value; onChanged(); return this; } /** * bytes session_id = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "MetadataAddress", (.gogoproto.moretags) = "yaml:\"session_id\""]; */ public Builder clearSessionId() { sessionId_ = getDefaultInstance().getSessionId(); onChanged(); return this; } private com.google.protobuf.ByteString specificationId_ = com.google.protobuf.ByteString.EMPTY; /** *
     * unique id of the contract specification that was used to create this session.
     * 
* * bytes specification_id = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "MetadataAddress", (.gogoproto.moretags) = "yaml:\"specification_id\""]; */ public com.google.protobuf.ByteString getSpecificationId() { return specificationId_; } /** *
     * unique id of the contract specification that was used to create this session.
     * 
* * 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; } /** *
     * unique id of the contract specification that was used to create this session.
     * 
* * 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 parties_ = java.util.Collections.emptyList(); private void ensurePartiesIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { parties_ = new java.util.ArrayList(parties_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.provenance.metadata.v1.Party, io.provenance.metadata.v1.Party.Builder, io.provenance.metadata.v1.PartyOrBuilder> partiesBuilder_; /** *
     * parties is the set of identities that signed this contract
     * 
* * repeated .provenance.metadata.v1.Party parties = 3 [(.gogoproto.nullable) = false]; */ public java.util.List getPartiesList() { if (partiesBuilder_ == null) { return java.util.Collections.unmodifiableList(parties_); } else { return partiesBuilder_.getMessageList(); } } /** *
     * parties is the set of identities that signed this contract
     * 
* * repeated .provenance.metadata.v1.Party parties = 3 [(.gogoproto.nullable) = false]; */ public int getPartiesCount() { if (partiesBuilder_ == null) { return parties_.size(); } else { return partiesBuilder_.getCount(); } } /** *
     * parties is the set of identities that signed this contract
     * 
* * repeated .provenance.metadata.v1.Party parties = 3 [(.gogoproto.nullable) = false]; */ public io.provenance.metadata.v1.Party getParties(int index) { if (partiesBuilder_ == null) { return parties_.get(index); } else { return partiesBuilder_.getMessage(index); } } /** *
     * parties is the set of identities that signed this contract
     * 
* * repeated .provenance.metadata.v1.Party parties = 3 [(.gogoproto.nullable) = false]; */ public Builder setParties( int index, io.provenance.metadata.v1.Party value) { if (partiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePartiesIsMutable(); parties_.set(index, value); onChanged(); } else { partiesBuilder_.setMessage(index, value); } return this; } /** *
     * parties is the set of identities that signed this contract
     * 
* * repeated .provenance.metadata.v1.Party parties = 3 [(.gogoproto.nullable) = false]; */ public Builder setParties( int index, io.provenance.metadata.v1.Party.Builder builderForValue) { if (partiesBuilder_ == null) { ensurePartiesIsMutable(); parties_.set(index, builderForValue.build()); onChanged(); } else { partiesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * parties is the set of identities that signed this contract
     * 
* * repeated .provenance.metadata.v1.Party parties = 3 [(.gogoproto.nullable) = false]; */ public Builder addParties(io.provenance.metadata.v1.Party value) { if (partiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePartiesIsMutable(); parties_.add(value); onChanged(); } else { partiesBuilder_.addMessage(value); } return this; } /** *
     * parties is the set of identities that signed this contract
     * 
* * repeated .provenance.metadata.v1.Party parties = 3 [(.gogoproto.nullable) = false]; */ public Builder addParties( int index, io.provenance.metadata.v1.Party value) { if (partiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePartiesIsMutable(); parties_.add(index, value); onChanged(); } else { partiesBuilder_.addMessage(index, value); } return this; } /** *
     * parties is the set of identities that signed this contract
     * 
* * repeated .provenance.metadata.v1.Party parties = 3 [(.gogoproto.nullable) = false]; */ public Builder addParties( io.provenance.metadata.v1.Party.Builder builderForValue) { if (partiesBuilder_ == null) { ensurePartiesIsMutable(); parties_.add(builderForValue.build()); onChanged(); } else { partiesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * parties is the set of identities that signed this contract
     * 
* * repeated .provenance.metadata.v1.Party parties = 3 [(.gogoproto.nullable) = false]; */ public Builder addParties( int index, io.provenance.metadata.v1.Party.Builder builderForValue) { if (partiesBuilder_ == null) { ensurePartiesIsMutable(); parties_.add(index, builderForValue.build()); onChanged(); } else { partiesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * parties is the set of identities that signed this contract
     * 
* * repeated .provenance.metadata.v1.Party parties = 3 [(.gogoproto.nullable) = false]; */ public Builder addAllParties( java.lang.Iterable values) { if (partiesBuilder_ == null) { ensurePartiesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, parties_); onChanged(); } else { partiesBuilder_.addAllMessages(values); } return this; } /** *
     * parties is the set of identities that signed this contract
     * 
* * repeated .provenance.metadata.v1.Party parties = 3 [(.gogoproto.nullable) = false]; */ public Builder clearParties() { if (partiesBuilder_ == null) { parties_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { partiesBuilder_.clear(); } return this; } /** *
     * parties is the set of identities that signed this contract
     * 
* * repeated .provenance.metadata.v1.Party parties = 3 [(.gogoproto.nullable) = false]; */ public Builder removeParties(int index) { if (partiesBuilder_ == null) { ensurePartiesIsMutable(); parties_.remove(index); onChanged(); } else { partiesBuilder_.remove(index); } return this; } /** *
     * parties is the set of identities that signed this contract
     * 
* * repeated .provenance.metadata.v1.Party parties = 3 [(.gogoproto.nullable) = false]; */ public io.provenance.metadata.v1.Party.Builder getPartiesBuilder( int index) { return getPartiesFieldBuilder().getBuilder(index); } /** *
     * parties is the set of identities that signed this contract
     * 
* * repeated .provenance.metadata.v1.Party parties = 3 [(.gogoproto.nullable) = false]; */ public io.provenance.metadata.v1.PartyOrBuilder getPartiesOrBuilder( int index) { if (partiesBuilder_ == null) { return parties_.get(index); } else { return partiesBuilder_.getMessageOrBuilder(index); } } /** *
     * parties is the set of identities that signed this contract
     * 
* * repeated .provenance.metadata.v1.Party parties = 3 [(.gogoproto.nullable) = false]; */ public java.util.List getPartiesOrBuilderList() { if (partiesBuilder_ != null) { return partiesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(parties_); } } /** *
     * parties is the set of identities that signed this contract
     * 
* * repeated .provenance.metadata.v1.Party parties = 3 [(.gogoproto.nullable) = false]; */ public io.provenance.metadata.v1.Party.Builder addPartiesBuilder() { return getPartiesFieldBuilder().addBuilder( io.provenance.metadata.v1.Party.getDefaultInstance()); } /** *
     * parties is the set of identities that signed this contract
     * 
* * repeated .provenance.metadata.v1.Party parties = 3 [(.gogoproto.nullable) = false]; */ public io.provenance.metadata.v1.Party.Builder addPartiesBuilder( int index) { return getPartiesFieldBuilder().addBuilder( index, io.provenance.metadata.v1.Party.getDefaultInstance()); } /** *
     * parties is the set of identities that signed this contract
     * 
* * repeated .provenance.metadata.v1.Party parties = 3 [(.gogoproto.nullable) = false]; */ public java.util.List getPartiesBuilderList() { return getPartiesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.provenance.metadata.v1.Party, io.provenance.metadata.v1.Party.Builder, io.provenance.metadata.v1.PartyOrBuilder> getPartiesFieldBuilder() { if (partiesBuilder_ == null) { partiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.provenance.metadata.v1.Party, io.provenance.metadata.v1.Party.Builder, io.provenance.metadata.v1.PartyOrBuilder>( parties_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); parties_ = null; } return partiesBuilder_; } private java.lang.Object name_ = ""; /** *
     * name to associate with this session execution context, typically classname
     * 
* * string name = 4 [(.gogoproto.jsontag) = "type", (.gogoproto.moretags) = "yaml:\"type\""]; */ 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; } } /** *
     * name to associate with this session execution context, typically classname
     * 
* * string name = 4 [(.gogoproto.jsontag) = "type", (.gogoproto.moretags) = "yaml:\"type\""]; */ 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; } } /** *
     * name to associate with this session execution context, typically classname
     * 
* * string name = 4 [(.gogoproto.jsontag) = "type", (.gogoproto.moretags) = "yaml:\"type\""]; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
     * name to associate with this session execution context, typically classname
     * 
* * string name = 4 [(.gogoproto.jsontag) = "type", (.gogoproto.moretags) = "yaml:\"type\""]; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
     * name to associate with this session execution context, typically classname
     * 
* * string name = 4 [(.gogoproto.jsontag) = "type", (.gogoproto.moretags) = "yaml:\"type\""]; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private com.google.protobuf.ByteString context_ = com.google.protobuf.ByteString.EMPTY; /** *
     * context is a field for storing client specific data associated with a session.
     * 
* * bytes context = 5; */ public com.google.protobuf.ByteString getContext() { return context_; } /** *
     * context is a field for storing client specific data associated with a session.
     * 
* * bytes context = 5; */ public Builder setContext(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); return this; } /** *
     * context is a field for storing client specific data associated with a session.
     * 
* * bytes context = 5; */ public Builder clearContext() { context_ = getDefaultInstance().getContext(); onChanged(); return this; } private io.provenance.metadata.v1.AuditFields audit_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.provenance.metadata.v1.AuditFields, io.provenance.metadata.v1.AuditFields.Builder, io.provenance.metadata.v1.AuditFieldsOrBuilder> auditBuilder_; /** *
     * Created by, updated by, timestamps, version number, and related info.
     * 
* * .provenance.metadata.v1.AuditFields audit = 99 [(.gogoproto.moretags) = "yaml:\"audit,omitempty\""]; */ public boolean hasAudit() { return auditBuilder_ != null || audit_ != null; } /** *
     * Created by, updated by, timestamps, version number, and related info.
     * 
* * .provenance.metadata.v1.AuditFields audit = 99 [(.gogoproto.moretags) = "yaml:\"audit,omitempty\""]; */ public io.provenance.metadata.v1.AuditFields getAudit() { if (auditBuilder_ == null) { return audit_ == null ? io.provenance.metadata.v1.AuditFields.getDefaultInstance() : audit_; } else { return auditBuilder_.getMessage(); } } /** *
     * Created by, updated by, timestamps, version number, and related info.
     * 
* * .provenance.metadata.v1.AuditFields audit = 99 [(.gogoproto.moretags) = "yaml:\"audit,omitempty\""]; */ public Builder setAudit(io.provenance.metadata.v1.AuditFields value) { if (auditBuilder_ == null) { if (value == null) { throw new NullPointerException(); } audit_ = value; onChanged(); } else { auditBuilder_.setMessage(value); } return this; } /** *
     * Created by, updated by, timestamps, version number, and related info.
     * 
* * .provenance.metadata.v1.AuditFields audit = 99 [(.gogoproto.moretags) = "yaml:\"audit,omitempty\""]; */ public Builder setAudit( io.provenance.metadata.v1.AuditFields.Builder builderForValue) { if (auditBuilder_ == null) { audit_ = builderForValue.build(); onChanged(); } else { auditBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Created by, updated by, timestamps, version number, and related info.
     * 
* * .provenance.metadata.v1.AuditFields audit = 99 [(.gogoproto.moretags) = "yaml:\"audit,omitempty\""]; */ public Builder mergeAudit(io.provenance.metadata.v1.AuditFields value) { if (auditBuilder_ == null) { if (audit_ != null) { audit_ = io.provenance.metadata.v1.AuditFields.newBuilder(audit_).mergeFrom(value).buildPartial(); } else { audit_ = value; } onChanged(); } else { auditBuilder_.mergeFrom(value); } return this; } /** *
     * Created by, updated by, timestamps, version number, and related info.
     * 
* * .provenance.metadata.v1.AuditFields audit = 99 [(.gogoproto.moretags) = "yaml:\"audit,omitempty\""]; */ public Builder clearAudit() { if (auditBuilder_ == null) { audit_ = null; onChanged(); } else { audit_ = null; auditBuilder_ = null; } return this; } /** *
     * Created by, updated by, timestamps, version number, and related info.
     * 
* * .provenance.metadata.v1.AuditFields audit = 99 [(.gogoproto.moretags) = "yaml:\"audit,omitempty\""]; */ public io.provenance.metadata.v1.AuditFields.Builder getAuditBuilder() { onChanged(); return getAuditFieldBuilder().getBuilder(); } /** *
     * Created by, updated by, timestamps, version number, and related info.
     * 
* * .provenance.metadata.v1.AuditFields audit = 99 [(.gogoproto.moretags) = "yaml:\"audit,omitempty\""]; */ public io.provenance.metadata.v1.AuditFieldsOrBuilder getAuditOrBuilder() { if (auditBuilder_ != null) { return auditBuilder_.getMessageOrBuilder(); } else { return audit_ == null ? io.provenance.metadata.v1.AuditFields.getDefaultInstance() : audit_; } } /** *
     * Created by, updated by, timestamps, version number, and related info.
     * 
* * .provenance.metadata.v1.AuditFields audit = 99 [(.gogoproto.moretags) = "yaml:\"audit,omitempty\""]; */ private com.google.protobuf.SingleFieldBuilderV3< io.provenance.metadata.v1.AuditFields, io.provenance.metadata.v1.AuditFields.Builder, io.provenance.metadata.v1.AuditFieldsOrBuilder> getAuditFieldBuilder() { if (auditBuilder_ == null) { auditBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.provenance.metadata.v1.AuditFields, io.provenance.metadata.v1.AuditFields.Builder, io.provenance.metadata.v1.AuditFieldsOrBuilder>( getAudit(), getParentForChildren(), isClean()); audit_ = null; } return auditBuilder_; } @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.Session) } // @@protoc_insertion_point(class_scope:provenance.metadata.v1.Session) private static final io.provenance.metadata.v1.Session DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.provenance.metadata.v1.Session(); } public static io.provenance.metadata.v1.Session getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Session parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Session(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.Session getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy