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

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

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

package io.provenance.metadata.v1;

/**
 * 
 * SessionIDComponents contains fields for the components that make up a session id.
 * 
* * Protobuf type {@code provenance.metadata.v1.SessionIdComponents} */ public final class SessionIdComponents extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:provenance.metadata.v1.SessionIdComponents) SessionIdComponentsOrBuilder { private static final long serialVersionUID = 0L; // Use SessionIdComponents.newBuilder() to construct. private SessionIdComponents(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SessionIdComponents() { sessionUuid_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SessionIdComponents( 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: { java.lang.String s = input.readStringRequireUtf8(); scopeIdentifierCase_ = 1; scopeIdentifier_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); scopeIdentifierCase_ = 2; scopeIdentifier_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); sessionUuid_ = s; break; } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.provenance.metadata.v1.Tx.internal_static_provenance_metadata_v1_SessionIdComponents_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.provenance.metadata.v1.Tx.internal_static_provenance_metadata_v1_SessionIdComponents_fieldAccessorTable .ensureFieldAccessorsInitialized( io.provenance.metadata.v1.SessionIdComponents.class, io.provenance.metadata.v1.SessionIdComponents.Builder.class); } private int scopeIdentifierCase_ = 0; private java.lang.Object scopeIdentifier_; public enum ScopeIdentifierCase implements com.google.protobuf.Internal.EnumLite { SCOPE_UUID(1), SCOPE_ADDR(2), SCOPEIDENTIFIER_NOT_SET(0); private final int value; private ScopeIdentifierCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ScopeIdentifierCase valueOf(int value) { return forNumber(value); } public static ScopeIdentifierCase forNumber(int value) { switch (value) { case 1: return SCOPE_UUID; case 2: return SCOPE_ADDR; case 0: return SCOPEIDENTIFIER_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ScopeIdentifierCase getScopeIdentifierCase() { return ScopeIdentifierCase.forNumber( scopeIdentifierCase_); } public static final int SCOPE_UUID_FIELD_NUMBER = 1; /** *
   * scope_uuid is the uuid string for the scope, e.g. "91978ba2-5f35-459a-86a7-feca1b0512e0"
   * 
* * string scope_uuid = 1 [(.gogoproto.moretags) = "yaml:\"scope_uuid\""]; */ public java.lang.String getScopeUuid() { java.lang.Object ref = ""; if (scopeIdentifierCase_ == 1) { ref = scopeIdentifier_; } 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(); if (scopeIdentifierCase_ == 1) { scopeIdentifier_ = s; } return s; } } /** *
   * scope_uuid is the uuid string for the scope, e.g. "91978ba2-5f35-459a-86a7-feca1b0512e0"
   * 
* * string scope_uuid = 1 [(.gogoproto.moretags) = "yaml:\"scope_uuid\""]; */ public com.google.protobuf.ByteString getScopeUuidBytes() { java.lang.Object ref = ""; if (scopeIdentifierCase_ == 1) { ref = scopeIdentifier_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (scopeIdentifierCase_ == 1) { scopeIdentifier_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SCOPE_ADDR_FIELD_NUMBER = 2; /** *
   * scope_addr is the bech32 address string for the scope, g.g. "scope1qzge0zaztu65tx5x5llv5xc9ztsqxlkwel"
   * 
* * string scope_addr = 2 [(.gogoproto.moretags) = "yaml:\"scope_addr\""]; */ public java.lang.String getScopeAddr() { java.lang.Object ref = ""; if (scopeIdentifierCase_ == 2) { ref = scopeIdentifier_; } 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(); if (scopeIdentifierCase_ == 2) { scopeIdentifier_ = s; } return s; } } /** *
   * scope_addr is the bech32 address string for the scope, g.g. "scope1qzge0zaztu65tx5x5llv5xc9ztsqxlkwel"
   * 
* * string scope_addr = 2 [(.gogoproto.moretags) = "yaml:\"scope_addr\""]; */ public com.google.protobuf.ByteString getScopeAddrBytes() { java.lang.Object ref = ""; if (scopeIdentifierCase_ == 2) { ref = scopeIdentifier_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (scopeIdentifierCase_ == 2) { scopeIdentifier_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SESSION_UUID_FIELD_NUMBER = 3; private volatile java.lang.Object sessionUuid_; /** *
   * session_uuid is a uuid string for identifying this session, e.g. "5803f8bc-6067-4eb5-951f-2121671c2ec0"
   * 
* * string session_uuid = 3 [(.gogoproto.moretags) = "yaml:\"session_uuid\""]; */ public java.lang.String getSessionUuid() { java.lang.Object ref = sessionUuid_; 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(); sessionUuid_ = s; return s; } } /** *
   * session_uuid is a uuid string for identifying this session, e.g. "5803f8bc-6067-4eb5-951f-2121671c2ec0"
   * 
* * string session_uuid = 3 [(.gogoproto.moretags) = "yaml:\"session_uuid\""]; */ public com.google.protobuf.ByteString getSessionUuidBytes() { java.lang.Object ref = sessionUuid_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sessionUuid_ = 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 (scopeIdentifierCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, scopeIdentifier_); } if (scopeIdentifierCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, scopeIdentifier_); } if (!getSessionUuidBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sessionUuid_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (scopeIdentifierCase_ == 1) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, scopeIdentifier_); } if (scopeIdentifierCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, scopeIdentifier_); } if (!getSessionUuidBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sessionUuid_); } 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.SessionIdComponents)) { return super.equals(obj); } io.provenance.metadata.v1.SessionIdComponents other = (io.provenance.metadata.v1.SessionIdComponents) obj; boolean result = true; result = result && getSessionUuid() .equals(other.getSessionUuid()); result = result && getScopeIdentifierCase().equals( other.getScopeIdentifierCase()); if (!result) return false; switch (scopeIdentifierCase_) { case 1: result = result && getScopeUuid() .equals(other.getScopeUuid()); break; case 2: result = result && getScopeAddr() .equals(other.getScopeAddr()); break; case 0: default: } 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_UUID_FIELD_NUMBER; hash = (53 * hash) + getSessionUuid().hashCode(); switch (scopeIdentifierCase_) { case 1: hash = (37 * hash) + SCOPE_UUID_FIELD_NUMBER; hash = (53 * hash) + getScopeUuid().hashCode(); break; case 2: hash = (37 * hash) + SCOPE_ADDR_FIELD_NUMBER; hash = (53 * hash) + getScopeAddr().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.provenance.metadata.v1.SessionIdComponents parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.provenance.metadata.v1.SessionIdComponents 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.SessionIdComponents parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.provenance.metadata.v1.SessionIdComponents 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.SessionIdComponents parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.provenance.metadata.v1.SessionIdComponents parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.provenance.metadata.v1.SessionIdComponents parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.provenance.metadata.v1.SessionIdComponents 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.SessionIdComponents parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.provenance.metadata.v1.SessionIdComponents 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.SessionIdComponents parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.provenance.metadata.v1.SessionIdComponents 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.SessionIdComponents 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; } /** *
   * SessionIDComponents contains fields for the components that make up a session id.
   * 
* * Protobuf type {@code provenance.metadata.v1.SessionIdComponents} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:provenance.metadata.v1.SessionIdComponents) io.provenance.metadata.v1.SessionIdComponentsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.provenance.metadata.v1.Tx.internal_static_provenance_metadata_v1_SessionIdComponents_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.provenance.metadata.v1.Tx.internal_static_provenance_metadata_v1_SessionIdComponents_fieldAccessorTable .ensureFieldAccessorsInitialized( io.provenance.metadata.v1.SessionIdComponents.class, io.provenance.metadata.v1.SessionIdComponents.Builder.class); } // Construct using io.provenance.metadata.v1.SessionIdComponents.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); sessionUuid_ = ""; scopeIdentifierCase_ = 0; scopeIdentifier_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.provenance.metadata.v1.Tx.internal_static_provenance_metadata_v1_SessionIdComponents_descriptor; } @java.lang.Override public io.provenance.metadata.v1.SessionIdComponents getDefaultInstanceForType() { return io.provenance.metadata.v1.SessionIdComponents.getDefaultInstance(); } @java.lang.Override public io.provenance.metadata.v1.SessionIdComponents build() { io.provenance.metadata.v1.SessionIdComponents result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.provenance.metadata.v1.SessionIdComponents buildPartial() { io.provenance.metadata.v1.SessionIdComponents result = new io.provenance.metadata.v1.SessionIdComponents(this); if (scopeIdentifierCase_ == 1) { result.scopeIdentifier_ = scopeIdentifier_; } if (scopeIdentifierCase_ == 2) { result.scopeIdentifier_ = scopeIdentifier_; } result.sessionUuid_ = sessionUuid_; result.scopeIdentifierCase_ = scopeIdentifierCase_; 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.SessionIdComponents) { return mergeFrom((io.provenance.metadata.v1.SessionIdComponents)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.provenance.metadata.v1.SessionIdComponents other) { if (other == io.provenance.metadata.v1.SessionIdComponents.getDefaultInstance()) return this; if (!other.getSessionUuid().isEmpty()) { sessionUuid_ = other.sessionUuid_; onChanged(); } switch (other.getScopeIdentifierCase()) { case SCOPE_UUID: { scopeIdentifierCase_ = 1; scopeIdentifier_ = other.scopeIdentifier_; onChanged(); break; } case SCOPE_ADDR: { scopeIdentifierCase_ = 2; scopeIdentifier_ = other.scopeIdentifier_; onChanged(); break; } case SCOPEIDENTIFIER_NOT_SET: { break; } } 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.SessionIdComponents parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.provenance.metadata.v1.SessionIdComponents) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int scopeIdentifierCase_ = 0; private java.lang.Object scopeIdentifier_; public ScopeIdentifierCase getScopeIdentifierCase() { return ScopeIdentifierCase.forNumber( scopeIdentifierCase_); } public Builder clearScopeIdentifier() { scopeIdentifierCase_ = 0; scopeIdentifier_ = null; onChanged(); return this; } /** *
     * scope_uuid is the uuid string for the scope, e.g. "91978ba2-5f35-459a-86a7-feca1b0512e0"
     * 
* * string scope_uuid = 1 [(.gogoproto.moretags) = "yaml:\"scope_uuid\""]; */ public java.lang.String getScopeUuid() { java.lang.Object ref = ""; if (scopeIdentifierCase_ == 1) { ref = scopeIdentifier_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (scopeIdentifierCase_ == 1) { scopeIdentifier_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * scope_uuid is the uuid string for the scope, e.g. "91978ba2-5f35-459a-86a7-feca1b0512e0"
     * 
* * string scope_uuid = 1 [(.gogoproto.moretags) = "yaml:\"scope_uuid\""]; */ public com.google.protobuf.ByteString getScopeUuidBytes() { java.lang.Object ref = ""; if (scopeIdentifierCase_ == 1) { ref = scopeIdentifier_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (scopeIdentifierCase_ == 1) { scopeIdentifier_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * scope_uuid is the uuid string for the scope, e.g. "91978ba2-5f35-459a-86a7-feca1b0512e0"
     * 
* * string scope_uuid = 1 [(.gogoproto.moretags) = "yaml:\"scope_uuid\""]; */ public Builder setScopeUuid( java.lang.String value) { if (value == null) { throw new NullPointerException(); } scopeIdentifierCase_ = 1; scopeIdentifier_ = value; onChanged(); return this; } /** *
     * scope_uuid is the uuid string for the scope, e.g. "91978ba2-5f35-459a-86a7-feca1b0512e0"
     * 
* * string scope_uuid = 1 [(.gogoproto.moretags) = "yaml:\"scope_uuid\""]; */ public Builder clearScopeUuid() { if (scopeIdentifierCase_ == 1) { scopeIdentifierCase_ = 0; scopeIdentifier_ = null; onChanged(); } return this; } /** *
     * scope_uuid is the uuid string for the scope, e.g. "91978ba2-5f35-459a-86a7-feca1b0512e0"
     * 
* * string scope_uuid = 1 [(.gogoproto.moretags) = "yaml:\"scope_uuid\""]; */ public Builder setScopeUuidBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); scopeIdentifierCase_ = 1; scopeIdentifier_ = value; onChanged(); return this; } /** *
     * scope_addr is the bech32 address string for the scope, g.g. "scope1qzge0zaztu65tx5x5llv5xc9ztsqxlkwel"
     * 
* * string scope_addr = 2 [(.gogoproto.moretags) = "yaml:\"scope_addr\""]; */ public java.lang.String getScopeAddr() { java.lang.Object ref = ""; if (scopeIdentifierCase_ == 2) { ref = scopeIdentifier_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (scopeIdentifierCase_ == 2) { scopeIdentifier_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * scope_addr is the bech32 address string for the scope, g.g. "scope1qzge0zaztu65tx5x5llv5xc9ztsqxlkwel"
     * 
* * string scope_addr = 2 [(.gogoproto.moretags) = "yaml:\"scope_addr\""]; */ public com.google.protobuf.ByteString getScopeAddrBytes() { java.lang.Object ref = ""; if (scopeIdentifierCase_ == 2) { ref = scopeIdentifier_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (scopeIdentifierCase_ == 2) { scopeIdentifier_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * scope_addr is the bech32 address string for the scope, g.g. "scope1qzge0zaztu65tx5x5llv5xc9ztsqxlkwel"
     * 
* * string scope_addr = 2 [(.gogoproto.moretags) = "yaml:\"scope_addr\""]; */ public Builder setScopeAddr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } scopeIdentifierCase_ = 2; scopeIdentifier_ = value; onChanged(); return this; } /** *
     * scope_addr is the bech32 address string for the scope, g.g. "scope1qzge0zaztu65tx5x5llv5xc9ztsqxlkwel"
     * 
* * string scope_addr = 2 [(.gogoproto.moretags) = "yaml:\"scope_addr\""]; */ public Builder clearScopeAddr() { if (scopeIdentifierCase_ == 2) { scopeIdentifierCase_ = 0; scopeIdentifier_ = null; onChanged(); } return this; } /** *
     * scope_addr is the bech32 address string for the scope, g.g. "scope1qzge0zaztu65tx5x5llv5xc9ztsqxlkwel"
     * 
* * string scope_addr = 2 [(.gogoproto.moretags) = "yaml:\"scope_addr\""]; */ public Builder setScopeAddrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); scopeIdentifierCase_ = 2; scopeIdentifier_ = value; onChanged(); return this; } private java.lang.Object sessionUuid_ = ""; /** *
     * session_uuid is a uuid string for identifying this session, e.g. "5803f8bc-6067-4eb5-951f-2121671c2ec0"
     * 
* * string session_uuid = 3 [(.gogoproto.moretags) = "yaml:\"session_uuid\""]; */ public java.lang.String getSessionUuid() { java.lang.Object ref = sessionUuid_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sessionUuid_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * session_uuid is a uuid string for identifying this session, e.g. "5803f8bc-6067-4eb5-951f-2121671c2ec0"
     * 
* * string session_uuid = 3 [(.gogoproto.moretags) = "yaml:\"session_uuid\""]; */ public com.google.protobuf.ByteString getSessionUuidBytes() { java.lang.Object ref = sessionUuid_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sessionUuid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * session_uuid is a uuid string for identifying this session, e.g. "5803f8bc-6067-4eb5-951f-2121671c2ec0"
     * 
* * string session_uuid = 3 [(.gogoproto.moretags) = "yaml:\"session_uuid\""]; */ public Builder setSessionUuid( java.lang.String value) { if (value == null) { throw new NullPointerException(); } sessionUuid_ = value; onChanged(); return this; } /** *
     * session_uuid is a uuid string for identifying this session, e.g. "5803f8bc-6067-4eb5-951f-2121671c2ec0"
     * 
* * string session_uuid = 3 [(.gogoproto.moretags) = "yaml:\"session_uuid\""]; */ public Builder clearSessionUuid() { sessionUuid_ = getDefaultInstance().getSessionUuid(); onChanged(); return this; } /** *
     * session_uuid is a uuid string for identifying this session, e.g. "5803f8bc-6067-4eb5-951f-2121671c2ec0"
     * 
* * string session_uuid = 3 [(.gogoproto.moretags) = "yaml:\"session_uuid\""]; */ public Builder setSessionUuidBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sessionUuid_ = 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.SessionIdComponents) } // @@protoc_insertion_point(class_scope:provenance.metadata.v1.SessionIdComponents) private static final io.provenance.metadata.v1.SessionIdComponents DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.provenance.metadata.v1.SessionIdComponents(); } public static io.provenance.metadata.v1.SessionIdComponents getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SessionIdComponents parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SessionIdComponents(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.SessionIdComponents getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy