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

io.opencannabis.schema.oauth.Consent Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2019, Momentum Ideas Co.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 * 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: oauth/Client.proto

package io.opencannabis.schema.oauth;

/**
 * 
 * Client/auth information regarding the consent application.
 * 
* * Protobuf type {@code opencannabis.oauth.Consent} */ public final class Consent extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:opencannabis.oauth.Consent) ConsentOrBuilder { private static final long serialVersionUID = 0L; // Use Consent.newBuilder() to construct. private Consent(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Consent() { id_ = ""; clientId_ = ""; redirectUri_ = ""; requestedScope_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Consent( 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(); id_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); clientId_ = s; break; } case 26: { io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder subBuilder = null; if (expiresAt_ != null) { subBuilder = expiresAt_.toBuilder(); } expiresAt_ = input.readMessage(io.opencannabis.schema.temporal.TemporalInstant.Instant.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(expiresAt_); expiresAt_ = subBuilder.buildPartial(); } break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); redirectUri_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000010) != 0)) { requestedScope_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000010; } requestedScope_.add(s); 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_ & 0x00000010) != 0)) { requestedScope_ = requestedScope_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.opencannabis.schema.oauth.OAuthClient.internal_static_opencannabis_oauth_Consent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.opencannabis.schema.oauth.OAuthClient.internal_static_opencannabis_oauth_Consent_fieldAccessorTable .ensureFieldAccessorsInitialized( io.opencannabis.schema.oauth.Consent.class, io.opencannabis.schema.oauth.Consent.Builder.class); } private int bitField0_; public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
   * ID value of THIS indvidual request.
   * 
* * string id = 1; */ public java.lang.String getId() { java.lang.Object ref = id_; 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(); id_ = s; return s; } } /** *
   * ID value of THIS indvidual request.
   * 
* * string id = 1; */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CLIENT_ID_FIELD_NUMBER = 2; private volatile java.lang.Object clientId_; /** *
   * Client ID value.
   * 
* * string client_id = 2; */ public java.lang.String getClientId() { java.lang.Object ref = clientId_; 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(); clientId_ = s; return s; } } /** *
   * Client ID value.
   * 
* * string client_id = 2; */ public com.google.protobuf.ByteString getClientIdBytes() { java.lang.Object ref = clientId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clientId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int EXPIRES_AT_FIELD_NUMBER = 3; private io.opencannabis.schema.temporal.TemporalInstant.Instant expiresAt_; /** *
   * Expires-at value.
   * 
* * .opencannabis.temporal.Instant expires_at = 3; */ public boolean hasExpiresAt() { return expiresAt_ != null; } /** *
   * Expires-at value.
   * 
* * .opencannabis.temporal.Instant expires_at = 3; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant getExpiresAt() { return expiresAt_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : expiresAt_; } /** *
   * Expires-at value.
   * 
* * .opencannabis.temporal.Instant expires_at = 3; */ public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getExpiresAtOrBuilder() { return getExpiresAt(); } public static final int REDIRECT_URI_FIELD_NUMBER = 4; private volatile java.lang.Object redirectUri_; /** *
   * Redirect URI.
   * 
* * string redirect_uri = 4; */ public java.lang.String getRedirectUri() { java.lang.Object ref = redirectUri_; 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(); redirectUri_ = s; return s; } } /** *
   * Redirect URI.
   * 
* * string redirect_uri = 4; */ public com.google.protobuf.ByteString getRedirectUriBytes() { java.lang.Object ref = redirectUri_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); redirectUri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REQUESTED_SCOPE_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList requestedScope_; /** *
   * Requested scopes.
   * 
* * repeated string requested_scope = 5; */ public com.google.protobuf.ProtocolStringList getRequestedScopeList() { return requestedScope_; } /** *
   * Requested scopes.
   * 
* * repeated string requested_scope = 5; */ public int getRequestedScopeCount() { return requestedScope_.size(); } /** *
   * Requested scopes.
   * 
* * repeated string requested_scope = 5; */ public java.lang.String getRequestedScope(int index) { return requestedScope_.get(index); } /** *
   * Requested scopes.
   * 
* * repeated string requested_scope = 5; */ public com.google.protobuf.ByteString getRequestedScopeBytes(int index) { return requestedScope_.getByteString(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 (!getIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (!getClientIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clientId_); } if (expiresAt_ != null) { output.writeMessage(3, getExpiresAt()); } if (!getRedirectUriBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, redirectUri_); } for (int i = 0; i < requestedScope_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, requestedScope_.getRaw(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (!getClientIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clientId_); } if (expiresAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getExpiresAt()); } if (!getRedirectUriBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, redirectUri_); } { int dataSize = 0; for (int i = 0; i < requestedScope_.size(); i++) { dataSize += computeStringSizeNoTag(requestedScope_.getRaw(i)); } size += dataSize; size += 1 * getRequestedScopeList().size(); } 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.opencannabis.schema.oauth.Consent)) { return super.equals(obj); } io.opencannabis.schema.oauth.Consent other = (io.opencannabis.schema.oauth.Consent) obj; if (!getId() .equals(other.getId())) return false; if (!getClientId() .equals(other.getClientId())) return false; if (hasExpiresAt() != other.hasExpiresAt()) return false; if (hasExpiresAt()) { if (!getExpiresAt() .equals(other.getExpiresAt())) return false; } if (!getRedirectUri() .equals(other.getRedirectUri())) return false; if (!getRequestedScopeList() .equals(other.getRequestedScopeList())) 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) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; hash = (53 * hash) + getClientId().hashCode(); if (hasExpiresAt()) { hash = (37 * hash) + EXPIRES_AT_FIELD_NUMBER; hash = (53 * hash) + getExpiresAt().hashCode(); } hash = (37 * hash) + REDIRECT_URI_FIELD_NUMBER; hash = (53 * hash) + getRedirectUri().hashCode(); if (getRequestedScopeCount() > 0) { hash = (37 * hash) + REQUESTED_SCOPE_FIELD_NUMBER; hash = (53 * hash) + getRequestedScopeList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.opencannabis.schema.oauth.Consent parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opencannabis.schema.oauth.Consent parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.opencannabis.schema.oauth.Consent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opencannabis.schema.oauth.Consent parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.opencannabis.schema.oauth.Consent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opencannabis.schema.oauth.Consent parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.opencannabis.schema.oauth.Consent parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.opencannabis.schema.oauth.Consent 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.opencannabis.schema.oauth.Consent parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.opencannabis.schema.oauth.Consent 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.opencannabis.schema.oauth.Consent parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.opencannabis.schema.oauth.Consent 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.opencannabis.schema.oauth.Consent 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; } /** *
   * Client/auth information regarding the consent application.
   * 
* * Protobuf type {@code opencannabis.oauth.Consent} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:opencannabis.oauth.Consent) io.opencannabis.schema.oauth.ConsentOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.opencannabis.schema.oauth.OAuthClient.internal_static_opencannabis_oauth_Consent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.opencannabis.schema.oauth.OAuthClient.internal_static_opencannabis_oauth_Consent_fieldAccessorTable .ensureFieldAccessorsInitialized( io.opencannabis.schema.oauth.Consent.class, io.opencannabis.schema.oauth.Consent.Builder.class); } // Construct using io.opencannabis.schema.oauth.Consent.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(); id_ = ""; clientId_ = ""; if (expiresAtBuilder_ == null) { expiresAt_ = null; } else { expiresAt_ = null; expiresAtBuilder_ = null; } redirectUri_ = ""; requestedScope_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.opencannabis.schema.oauth.OAuthClient.internal_static_opencannabis_oauth_Consent_descriptor; } @java.lang.Override public io.opencannabis.schema.oauth.Consent getDefaultInstanceForType() { return io.opencannabis.schema.oauth.Consent.getDefaultInstance(); } @java.lang.Override public io.opencannabis.schema.oauth.Consent build() { io.opencannabis.schema.oauth.Consent result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.opencannabis.schema.oauth.Consent buildPartial() { io.opencannabis.schema.oauth.Consent result = new io.opencannabis.schema.oauth.Consent(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.id_ = id_; result.clientId_ = clientId_; if (expiresAtBuilder_ == null) { result.expiresAt_ = expiresAt_; } else { result.expiresAt_ = expiresAtBuilder_.build(); } result.redirectUri_ = redirectUri_; if (((bitField0_ & 0x00000010) != 0)) { requestedScope_ = requestedScope_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000010); } result.requestedScope_ = requestedScope_; 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.opencannabis.schema.oauth.Consent) { return mergeFrom((io.opencannabis.schema.oauth.Consent)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.opencannabis.schema.oauth.Consent other) { if (other == io.opencannabis.schema.oauth.Consent.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getClientId().isEmpty()) { clientId_ = other.clientId_; onChanged(); } if (other.hasExpiresAt()) { mergeExpiresAt(other.getExpiresAt()); } if (!other.getRedirectUri().isEmpty()) { redirectUri_ = other.redirectUri_; onChanged(); } if (!other.requestedScope_.isEmpty()) { if (requestedScope_.isEmpty()) { requestedScope_ = other.requestedScope_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureRequestedScopeIsMutable(); requestedScope_.addAll(other.requestedScope_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.opencannabis.schema.oauth.Consent parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.opencannabis.schema.oauth.Consent) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object id_ = ""; /** *
     * ID value of THIS indvidual request.
     * 
* * string id = 1; */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * ID value of THIS indvidual request.
     * 
* * string id = 1; */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * ID value of THIS indvidual request.
     * 
* * string id = 1; */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** *
     * ID value of THIS indvidual request.
     * 
* * string id = 1; */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
     * ID value of THIS indvidual request.
     * 
* * string id = 1; */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; onChanged(); return this; } private java.lang.Object clientId_ = ""; /** *
     * Client ID value.
     * 
* * string client_id = 2; */ public java.lang.String getClientId() { java.lang.Object ref = clientId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Client ID value.
     * 
* * string client_id = 2; */ public com.google.protobuf.ByteString getClientIdBytes() { java.lang.Object ref = clientId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clientId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Client ID value.
     * 
* * string client_id = 2; */ public Builder setClientId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } clientId_ = value; onChanged(); return this; } /** *
     * Client ID value.
     * 
* * string client_id = 2; */ public Builder clearClientId() { clientId_ = getDefaultInstance().getClientId(); onChanged(); return this; } /** *
     * Client ID value.
     * 
* * string client_id = 2; */ public Builder setClientIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); clientId_ = value; onChanged(); return this; } private io.opencannabis.schema.temporal.TemporalInstant.Instant expiresAt_; private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder> expiresAtBuilder_; /** *
     * Expires-at value.
     * 
* * .opencannabis.temporal.Instant expires_at = 3; */ public boolean hasExpiresAt() { return expiresAtBuilder_ != null || expiresAt_ != null; } /** *
     * Expires-at value.
     * 
* * .opencannabis.temporal.Instant expires_at = 3; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant getExpiresAt() { if (expiresAtBuilder_ == null) { return expiresAt_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : expiresAt_; } else { return expiresAtBuilder_.getMessage(); } } /** *
     * Expires-at value.
     * 
* * .opencannabis.temporal.Instant expires_at = 3; */ public Builder setExpiresAt(io.opencannabis.schema.temporal.TemporalInstant.Instant value) { if (expiresAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expiresAt_ = value; onChanged(); } else { expiresAtBuilder_.setMessage(value); } return this; } /** *
     * Expires-at value.
     * 
* * .opencannabis.temporal.Instant expires_at = 3; */ public Builder setExpiresAt( io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder builderForValue) { if (expiresAtBuilder_ == null) { expiresAt_ = builderForValue.build(); onChanged(); } else { expiresAtBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Expires-at value.
     * 
* * .opencannabis.temporal.Instant expires_at = 3; */ public Builder mergeExpiresAt(io.opencannabis.schema.temporal.TemporalInstant.Instant value) { if (expiresAtBuilder_ == null) { if (expiresAt_ != null) { expiresAt_ = io.opencannabis.schema.temporal.TemporalInstant.Instant.newBuilder(expiresAt_).mergeFrom(value).buildPartial(); } else { expiresAt_ = value; } onChanged(); } else { expiresAtBuilder_.mergeFrom(value); } return this; } /** *
     * Expires-at value.
     * 
* * .opencannabis.temporal.Instant expires_at = 3; */ public Builder clearExpiresAt() { if (expiresAtBuilder_ == null) { expiresAt_ = null; onChanged(); } else { expiresAt_ = null; expiresAtBuilder_ = null; } return this; } /** *
     * Expires-at value.
     * 
* * .opencannabis.temporal.Instant expires_at = 3; */ public io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder getExpiresAtBuilder() { onChanged(); return getExpiresAtFieldBuilder().getBuilder(); } /** *
     * Expires-at value.
     * 
* * .opencannabis.temporal.Instant expires_at = 3; */ public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getExpiresAtOrBuilder() { if (expiresAtBuilder_ != null) { return expiresAtBuilder_.getMessageOrBuilder(); } else { return expiresAt_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : expiresAt_; } } /** *
     * Expires-at value.
     * 
* * .opencannabis.temporal.Instant expires_at = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder> getExpiresAtFieldBuilder() { if (expiresAtBuilder_ == null) { expiresAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder>( getExpiresAt(), getParentForChildren(), isClean()); expiresAt_ = null; } return expiresAtBuilder_; } private java.lang.Object redirectUri_ = ""; /** *
     * Redirect URI.
     * 
* * string redirect_uri = 4; */ public java.lang.String getRedirectUri() { java.lang.Object ref = redirectUri_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); redirectUri_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Redirect URI.
     * 
* * string redirect_uri = 4; */ public com.google.protobuf.ByteString getRedirectUriBytes() { java.lang.Object ref = redirectUri_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); redirectUri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Redirect URI.
     * 
* * string redirect_uri = 4; */ public Builder setRedirectUri( java.lang.String value) { if (value == null) { throw new NullPointerException(); } redirectUri_ = value; onChanged(); return this; } /** *
     * Redirect URI.
     * 
* * string redirect_uri = 4; */ public Builder clearRedirectUri() { redirectUri_ = getDefaultInstance().getRedirectUri(); onChanged(); return this; } /** *
     * Redirect URI.
     * 
* * string redirect_uri = 4; */ public Builder setRedirectUriBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); redirectUri_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList requestedScope_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureRequestedScopeIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { requestedScope_ = new com.google.protobuf.LazyStringArrayList(requestedScope_); bitField0_ |= 0x00000010; } } /** *
     * Requested scopes.
     * 
* * repeated string requested_scope = 5; */ public com.google.protobuf.ProtocolStringList getRequestedScopeList() { return requestedScope_.getUnmodifiableView(); } /** *
     * Requested scopes.
     * 
* * repeated string requested_scope = 5; */ public int getRequestedScopeCount() { return requestedScope_.size(); } /** *
     * Requested scopes.
     * 
* * repeated string requested_scope = 5; */ public java.lang.String getRequestedScope(int index) { return requestedScope_.get(index); } /** *
     * Requested scopes.
     * 
* * repeated string requested_scope = 5; */ public com.google.protobuf.ByteString getRequestedScopeBytes(int index) { return requestedScope_.getByteString(index); } /** *
     * Requested scopes.
     * 
* * repeated string requested_scope = 5; */ public Builder setRequestedScope( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRequestedScopeIsMutable(); requestedScope_.set(index, value); onChanged(); return this; } /** *
     * Requested scopes.
     * 
* * repeated string requested_scope = 5; */ public Builder addRequestedScope( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRequestedScopeIsMutable(); requestedScope_.add(value); onChanged(); return this; } /** *
     * Requested scopes.
     * 
* * repeated string requested_scope = 5; */ public Builder addAllRequestedScope( java.lang.Iterable values) { ensureRequestedScopeIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, requestedScope_); onChanged(); return this; } /** *
     * Requested scopes.
     * 
* * repeated string requested_scope = 5; */ public Builder clearRequestedScope() { requestedScope_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** *
     * Requested scopes.
     * 
* * repeated string requested_scope = 5; */ public Builder addRequestedScopeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureRequestedScopeIsMutable(); requestedScope_.add(value); onChanged(); return this; } @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:opencannabis.oauth.Consent) } // @@protoc_insertion_point(class_scope:opencannabis.oauth.Consent) private static final io.opencannabis.schema.oauth.Consent DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.opencannabis.schema.oauth.Consent(); } public static io.opencannabis.schema.oauth.Consent getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Consent parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Consent(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.opencannabis.schema.oauth.Consent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy