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

io.bloombox.schema.security.TokenPayload Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2019, Momentum Ideas, Co. All rights reserved.
 *
 * Source and object computer code contained herein is the private intellectual
 * property of Momentum Ideas Co., a Delaware Corporation. Use of this
 * code in source form requires permission in writing before use or the
 * assembly, distribution, or publishing of derivative works, for commercial
 * purposes or any other purpose, from a duly authorized officer of Momentum
 * Ideas Co.
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: security/Token.proto

package io.bloombox.schema.security;

/**
 * 
 * Specifies a parsed access token structure.
 * 
* * Protobuf type {@code bloombox.security.TokenPayload} */ public final class TokenPayload extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:bloombox.security.TokenPayload) TokenPayloadOrBuilder { private static final long serialVersionUID = 0L; // Use TokenPayload.newBuilder() to construct. private TokenPayload(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TokenPayload() { token_ = ""; scope_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TokenPayload( 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(); token_ = s; break; } case 16: { expiration_ = input.readUInt64(); break; } case 24: { issuance_ = input.readUInt64(); break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) != 0)) { scope_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } scope_.add( input.readMessage(io.opencannabis.schema.oauth.AuthorizationScope.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( 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_ & 0x00000008) != 0)) { scope_ = java.util.Collections.unmodifiableList(scope_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.schema.security.Token.internal_static_bloombox_security_TokenPayload_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.security.Token.internal_static_bloombox_security_TokenPayload_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.security.TokenPayload.class, io.bloombox.schema.security.TokenPayload.Builder.class); } private int bitField0_; public static final int TOKEN_FIELD_NUMBER = 1; private volatile java.lang.Object token_; /** *
   * Access token.
   * 
* * string token = 1; */ public java.lang.String getToken() { java.lang.Object ref = token_; 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(); token_ = s; return s; } } /** *
   * Access token.
   * 
* * string token = 1; */ public com.google.protobuf.ByteString getTokenBytes() { java.lang.Object ref = token_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); token_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int EXPIRATION_FIELD_NUMBER = 2; private long expiration_; /** *
   * Expiration timestamp for the token.
   * 
* * uint64 expiration = 2; */ public long getExpiration() { return expiration_; } public static final int ISSUANCE_FIELD_NUMBER = 3; private long issuance_; /** *
   * Issuance timestamp for the token.
   * 
* * uint64 issuance = 3; */ public long getIssuance() { return issuance_; } public static final int SCOPE_FIELD_NUMBER = 4; private java.util.List scope_; /** *
   * Scopes being requested, or included in this token.
   * 
* * repeated .opencannabis.oauth.AuthorizationScope scope = 4; */ public java.util.List getScopeList() { return scope_; } /** *
   * Scopes being requested, or included in this token.
   * 
* * repeated .opencannabis.oauth.AuthorizationScope scope = 4; */ public java.util.List getScopeOrBuilderList() { return scope_; } /** *
   * Scopes being requested, or included in this token.
   * 
* * repeated .opencannabis.oauth.AuthorizationScope scope = 4; */ public int getScopeCount() { return scope_.size(); } /** *
   * Scopes being requested, or included in this token.
   * 
* * repeated .opencannabis.oauth.AuthorizationScope scope = 4; */ public io.opencannabis.schema.oauth.AuthorizationScope getScope(int index) { return scope_.get(index); } /** *
   * Scopes being requested, or included in this token.
   * 
* * repeated .opencannabis.oauth.AuthorizationScope scope = 4; */ public io.opencannabis.schema.oauth.AuthorizationScopeOrBuilder getScopeOrBuilder( int index) { return scope_.get(index); } 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 (!getTokenBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, token_); } if (expiration_ != 0L) { output.writeUInt64(2, expiration_); } if (issuance_ != 0L) { output.writeUInt64(3, issuance_); } for (int i = 0; i < scope_.size(); i++) { output.writeMessage(4, scope_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, token_); } if (expiration_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, expiration_); } if (issuance_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, issuance_); } for (int i = 0; i < scope_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, scope_.get(i)); } 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.bloombox.schema.security.TokenPayload)) { return super.equals(obj); } io.bloombox.schema.security.TokenPayload other = (io.bloombox.schema.security.TokenPayload) obj; if (!getToken() .equals(other.getToken())) return false; if (getExpiration() != other.getExpiration()) return false; if (getIssuance() != other.getIssuance()) return false; if (!getScopeList() .equals(other.getScopeList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TOKEN_FIELD_NUMBER; hash = (53 * hash) + getToken().hashCode(); hash = (37 * hash) + EXPIRATION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getExpiration()); hash = (37 * hash) + ISSUANCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getIssuance()); if (getScopeCount() > 0) { hash = (37 * hash) + SCOPE_FIELD_NUMBER; hash = (53 * hash) + getScopeList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.bloombox.schema.security.TokenPayload parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.security.TokenPayload parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.security.TokenPayload parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.security.TokenPayload parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.security.TokenPayload parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.security.TokenPayload parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.security.TokenPayload parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.security.TokenPayload 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.bloombox.schema.security.TokenPayload parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.bloombox.schema.security.TokenPayload 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.bloombox.schema.security.TokenPayload parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.security.TokenPayload 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.bloombox.schema.security.TokenPayload 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; } /** *
   * Specifies a parsed access token structure.
   * 
* * Protobuf type {@code bloombox.security.TokenPayload} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:bloombox.security.TokenPayload) io.bloombox.schema.security.TokenPayloadOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.schema.security.Token.internal_static_bloombox_security_TokenPayload_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.security.Token.internal_static_bloombox_security_TokenPayload_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.security.TokenPayload.class, io.bloombox.schema.security.TokenPayload.Builder.class); } // Construct using io.bloombox.schema.security.TokenPayload.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getScopeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); token_ = ""; expiration_ = 0L; issuance_ = 0L; if (scopeBuilder_ == null) { scope_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { scopeBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.bloombox.schema.security.Token.internal_static_bloombox_security_TokenPayload_descriptor; } @java.lang.Override public io.bloombox.schema.security.TokenPayload getDefaultInstanceForType() { return io.bloombox.schema.security.TokenPayload.getDefaultInstance(); } @java.lang.Override public io.bloombox.schema.security.TokenPayload build() { io.bloombox.schema.security.TokenPayload result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.bloombox.schema.security.TokenPayload buildPartial() { io.bloombox.schema.security.TokenPayload result = new io.bloombox.schema.security.TokenPayload(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.token_ = token_; result.expiration_ = expiration_; result.issuance_ = issuance_; if (scopeBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { scope_ = java.util.Collections.unmodifiableList(scope_); bitField0_ = (bitField0_ & ~0x00000008); } result.scope_ = scope_; } else { result.scope_ = scopeBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.bloombox.schema.security.TokenPayload) { return mergeFrom((io.bloombox.schema.security.TokenPayload)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.bloombox.schema.security.TokenPayload other) { if (other == io.bloombox.schema.security.TokenPayload.getDefaultInstance()) return this; if (!other.getToken().isEmpty()) { token_ = other.token_; onChanged(); } if (other.getExpiration() != 0L) { setExpiration(other.getExpiration()); } if (other.getIssuance() != 0L) { setIssuance(other.getIssuance()); } if (scopeBuilder_ == null) { if (!other.scope_.isEmpty()) { if (scope_.isEmpty()) { scope_ = other.scope_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureScopeIsMutable(); scope_.addAll(other.scope_); } onChanged(); } } else { if (!other.scope_.isEmpty()) { if (scopeBuilder_.isEmpty()) { scopeBuilder_.dispose(); scopeBuilder_ = null; scope_ = other.scope_; bitField0_ = (bitField0_ & ~0x00000008); scopeBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getScopeFieldBuilder() : null; } else { scopeBuilder_.addAllMessages(other.scope_); } } } 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.bloombox.schema.security.TokenPayload parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.bloombox.schema.security.TokenPayload) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object token_ = ""; /** *
     * Access token.
     * 
* * string token = 1; */ public java.lang.String getToken() { java.lang.Object ref = token_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); token_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Access token.
     * 
* * string token = 1; */ public com.google.protobuf.ByteString getTokenBytes() { java.lang.Object ref = token_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); token_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Access token.
     * 
* * string token = 1; */ public Builder setToken( java.lang.String value) { if (value == null) { throw new NullPointerException(); } token_ = value; onChanged(); return this; } /** *
     * Access token.
     * 
* * string token = 1; */ public Builder clearToken() { token_ = getDefaultInstance().getToken(); onChanged(); return this; } /** *
     * Access token.
     * 
* * string token = 1; */ public Builder setTokenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); token_ = value; onChanged(); return this; } private long expiration_ ; /** *
     * Expiration timestamp for the token.
     * 
* * uint64 expiration = 2; */ public long getExpiration() { return expiration_; } /** *
     * Expiration timestamp for the token.
     * 
* * uint64 expiration = 2; */ public Builder setExpiration(long value) { expiration_ = value; onChanged(); return this; } /** *
     * Expiration timestamp for the token.
     * 
* * uint64 expiration = 2; */ public Builder clearExpiration() { expiration_ = 0L; onChanged(); return this; } private long issuance_ ; /** *
     * Issuance timestamp for the token.
     * 
* * uint64 issuance = 3; */ public long getIssuance() { return issuance_; } /** *
     * Issuance timestamp for the token.
     * 
* * uint64 issuance = 3; */ public Builder setIssuance(long value) { issuance_ = value; onChanged(); return this; } /** *
     * Issuance timestamp for the token.
     * 
* * uint64 issuance = 3; */ public Builder clearIssuance() { issuance_ = 0L; onChanged(); return this; } private java.util.List scope_ = java.util.Collections.emptyList(); private void ensureScopeIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { scope_ = new java.util.ArrayList(scope_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.opencannabis.schema.oauth.AuthorizationScope, io.opencannabis.schema.oauth.AuthorizationScope.Builder, io.opencannabis.schema.oauth.AuthorizationScopeOrBuilder> scopeBuilder_; /** *
     * Scopes being requested, or included in this token.
     * 
* * repeated .opencannabis.oauth.AuthorizationScope scope = 4; */ public java.util.List getScopeList() { if (scopeBuilder_ == null) { return java.util.Collections.unmodifiableList(scope_); } else { return scopeBuilder_.getMessageList(); } } /** *
     * Scopes being requested, or included in this token.
     * 
* * repeated .opencannabis.oauth.AuthorizationScope scope = 4; */ public int getScopeCount() { if (scopeBuilder_ == null) { return scope_.size(); } else { return scopeBuilder_.getCount(); } } /** *
     * Scopes being requested, or included in this token.
     * 
* * repeated .opencannabis.oauth.AuthorizationScope scope = 4; */ public io.opencannabis.schema.oauth.AuthorizationScope getScope(int index) { if (scopeBuilder_ == null) { return scope_.get(index); } else { return scopeBuilder_.getMessage(index); } } /** *
     * Scopes being requested, or included in this token.
     * 
* * repeated .opencannabis.oauth.AuthorizationScope scope = 4; */ public Builder setScope( int index, io.opencannabis.schema.oauth.AuthorizationScope value) { if (scopeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureScopeIsMutable(); scope_.set(index, value); onChanged(); } else { scopeBuilder_.setMessage(index, value); } return this; } /** *
     * Scopes being requested, or included in this token.
     * 
* * repeated .opencannabis.oauth.AuthorizationScope scope = 4; */ public Builder setScope( int index, io.opencannabis.schema.oauth.AuthorizationScope.Builder builderForValue) { if (scopeBuilder_ == null) { ensureScopeIsMutable(); scope_.set(index, builderForValue.build()); onChanged(); } else { scopeBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Scopes being requested, or included in this token.
     * 
* * repeated .opencannabis.oauth.AuthorizationScope scope = 4; */ public Builder addScope(io.opencannabis.schema.oauth.AuthorizationScope value) { if (scopeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureScopeIsMutable(); scope_.add(value); onChanged(); } else { scopeBuilder_.addMessage(value); } return this; } /** *
     * Scopes being requested, or included in this token.
     * 
* * repeated .opencannabis.oauth.AuthorizationScope scope = 4; */ public Builder addScope( int index, io.opencannabis.schema.oauth.AuthorizationScope value) { if (scopeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureScopeIsMutable(); scope_.add(index, value); onChanged(); } else { scopeBuilder_.addMessage(index, value); } return this; } /** *
     * Scopes being requested, or included in this token.
     * 
* * repeated .opencannabis.oauth.AuthorizationScope scope = 4; */ public Builder addScope( io.opencannabis.schema.oauth.AuthorizationScope.Builder builderForValue) { if (scopeBuilder_ == null) { ensureScopeIsMutable(); scope_.add(builderForValue.build()); onChanged(); } else { scopeBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Scopes being requested, or included in this token.
     * 
* * repeated .opencannabis.oauth.AuthorizationScope scope = 4; */ public Builder addScope( int index, io.opencannabis.schema.oauth.AuthorizationScope.Builder builderForValue) { if (scopeBuilder_ == null) { ensureScopeIsMutable(); scope_.add(index, builderForValue.build()); onChanged(); } else { scopeBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Scopes being requested, or included in this token.
     * 
* * repeated .opencannabis.oauth.AuthorizationScope scope = 4; */ public Builder addAllScope( java.lang.Iterable values) { if (scopeBuilder_ == null) { ensureScopeIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, scope_); onChanged(); } else { scopeBuilder_.addAllMessages(values); } return this; } /** *
     * Scopes being requested, or included in this token.
     * 
* * repeated .opencannabis.oauth.AuthorizationScope scope = 4; */ public Builder clearScope() { if (scopeBuilder_ == null) { scope_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { scopeBuilder_.clear(); } return this; } /** *
     * Scopes being requested, or included in this token.
     * 
* * repeated .opencannabis.oauth.AuthorizationScope scope = 4; */ public Builder removeScope(int index) { if (scopeBuilder_ == null) { ensureScopeIsMutable(); scope_.remove(index); onChanged(); } else { scopeBuilder_.remove(index); } return this; } /** *
     * Scopes being requested, or included in this token.
     * 
* * repeated .opencannabis.oauth.AuthorizationScope scope = 4; */ public io.opencannabis.schema.oauth.AuthorizationScope.Builder getScopeBuilder( int index) { return getScopeFieldBuilder().getBuilder(index); } /** *
     * Scopes being requested, or included in this token.
     * 
* * repeated .opencannabis.oauth.AuthorizationScope scope = 4; */ public io.opencannabis.schema.oauth.AuthorizationScopeOrBuilder getScopeOrBuilder( int index) { if (scopeBuilder_ == null) { return scope_.get(index); } else { return scopeBuilder_.getMessageOrBuilder(index); } } /** *
     * Scopes being requested, or included in this token.
     * 
* * repeated .opencannabis.oauth.AuthorizationScope scope = 4; */ public java.util.List getScopeOrBuilderList() { if (scopeBuilder_ != null) { return scopeBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(scope_); } } /** *
     * Scopes being requested, or included in this token.
     * 
* * repeated .opencannabis.oauth.AuthorizationScope scope = 4; */ public io.opencannabis.schema.oauth.AuthorizationScope.Builder addScopeBuilder() { return getScopeFieldBuilder().addBuilder( io.opencannabis.schema.oauth.AuthorizationScope.getDefaultInstance()); } /** *
     * Scopes being requested, or included in this token.
     * 
* * repeated .opencannabis.oauth.AuthorizationScope scope = 4; */ public io.opencannabis.schema.oauth.AuthorizationScope.Builder addScopeBuilder( int index) { return getScopeFieldBuilder().addBuilder( index, io.opencannabis.schema.oauth.AuthorizationScope.getDefaultInstance()); } /** *
     * Scopes being requested, or included in this token.
     * 
* * repeated .opencannabis.oauth.AuthorizationScope scope = 4; */ public java.util.List getScopeBuilderList() { return getScopeFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.opencannabis.schema.oauth.AuthorizationScope, io.opencannabis.schema.oauth.AuthorizationScope.Builder, io.opencannabis.schema.oauth.AuthorizationScopeOrBuilder> getScopeFieldBuilder() { if (scopeBuilder_ == null) { scopeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.opencannabis.schema.oauth.AuthorizationScope, io.opencannabis.schema.oauth.AuthorizationScope.Builder, io.opencannabis.schema.oauth.AuthorizationScopeOrBuilder>( scope_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); scope_ = null; } return scopeBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:bloombox.security.TokenPayload) } // @@protoc_insertion_point(class_scope:bloombox.security.TokenPayload) private static final io.bloombox.schema.security.TokenPayload DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.bloombox.schema.security.TokenPayload(); } public static io.bloombox.schema.security.TokenPayload getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TokenPayload parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TokenPayload(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.bloombox.schema.security.TokenPayload getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy