Package org.yamcs.protobuf
Class TokenResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<TokenResponse.Builder>
org.yamcs.protobuf.TokenResponse.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,TokenResponseOrBuilder
- Enclosing class:
- TokenResponse
public static final class TokenResponse.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<TokenResponse.Builder>
implements TokenResponseOrBuilder
Naming conventions for this message follow RFC6749 - OAuth 2.0 Authorization FrameworkProtobuf type
yamcs.protobuf.auth.TokenResponse
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
optional string access_token = 1;
In secondsclearField
(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) optional string refresh_token = 4;
optional string token_type = 2;
optional .yamcs.protobuf.iam.UserInfo user = 5;
clone()
optional string access_token = 1;
com.google.protobuf.ByteString
optional string access_token = 1;
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
int
In secondsoptional string refresh_token = 4;
com.google.protobuf.ByteString
optional string refresh_token = 4;
optional string token_type = 2;
com.google.protobuf.ByteString
optional string token_type = 2;
getUser()
optional .yamcs.protobuf.iam.UserInfo user = 5;
optional .yamcs.protobuf.iam.UserInfo user = 5;
optional .yamcs.protobuf.iam.UserInfo user = 5;
boolean
optional string access_token = 1;
boolean
In secondsboolean
optional string refresh_token = 4;
boolean
optional string token_type = 2;
boolean
hasUser()
optional .yamcs.protobuf.iam.UserInfo user = 5;
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(TokenResponse other) final TokenResponse.Builder
mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) optional .yamcs.protobuf.iam.UserInfo user = 5;
setAccessToken
(String value) optional string access_token = 1;
setAccessTokenBytes
(com.google.protobuf.ByteString value) optional string access_token = 1;
setExpiresIn
(int value) In secondssetRefreshToken
(String value) optional string refresh_token = 4;
setRefreshTokenBytes
(com.google.protobuf.ByteString value) optional string refresh_token = 4;
setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setTokenType
(String value) optional string token_type = 2;
setTokenTypeBytes
(com.google.protobuf.ByteString value) optional string token_type = 2;
final TokenResponse.Builder
setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) optional .yamcs.protobuf.iam.UserInfo user = 5;
setUser
(UserInfo.Builder builderForValue) optional .yamcs.protobuf.iam.UserInfo user = 5;
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<TokenResponse.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<TokenResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<TokenResponse.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<TokenResponse.Builder>
-
setField
public TokenResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TokenResponse.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TokenResponse.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<TokenResponse.Builder>
-
setRepeatedField
public TokenResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TokenResponse.Builder>
-
addRepeatedField
public TokenResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TokenResponse.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<TokenResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<TokenResponse.Builder>
-
mergeFrom
public TokenResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<TokenResponse.Builder>
- Throws:
IOException
-
hasAccessToken
public boolean hasAccessToken()optional string access_token = 1;
- Specified by:
hasAccessToken
in interfaceTokenResponseOrBuilder
- Returns:
- Whether the accessToken field is set.
-
getAccessToken
optional string access_token = 1;
- Specified by:
getAccessToken
in interfaceTokenResponseOrBuilder
- Returns:
- The accessToken.
-
getAccessTokenBytes
public com.google.protobuf.ByteString getAccessTokenBytes()optional string access_token = 1;
- Specified by:
getAccessTokenBytes
in interfaceTokenResponseOrBuilder
- Returns:
- The bytes for accessToken.
-
setAccessToken
optional string access_token = 1;
- Parameters:
value
- The accessToken to set.- Returns:
- This builder for chaining.
-
clearAccessToken
optional string access_token = 1;
- Returns:
- This builder for chaining.
-
setAccessTokenBytes
optional string access_token = 1;
- Parameters:
value
- The bytes for accessToken to set.- Returns:
- This builder for chaining.
-
hasTokenType
public boolean hasTokenType()optional string token_type = 2;
- Specified by:
hasTokenType
in interfaceTokenResponseOrBuilder
- Returns:
- Whether the tokenType field is set.
-
getTokenType
optional string token_type = 2;
- Specified by:
getTokenType
in interfaceTokenResponseOrBuilder
- Returns:
- The tokenType.
-
getTokenTypeBytes
public com.google.protobuf.ByteString getTokenTypeBytes()optional string token_type = 2;
- Specified by:
getTokenTypeBytes
in interfaceTokenResponseOrBuilder
- Returns:
- The bytes for tokenType.
-
setTokenType
optional string token_type = 2;
- Parameters:
value
- The tokenType to set.- Returns:
- This builder for chaining.
-
clearTokenType
optional string token_type = 2;
- Returns:
- This builder for chaining.
-
setTokenTypeBytes
optional string token_type = 2;
- Parameters:
value
- The bytes for tokenType to set.- Returns:
- This builder for chaining.
-
hasExpiresIn
public boolean hasExpiresIn()In seconds
optional int32 expires_in = 3;
- Specified by:
hasExpiresIn
in interfaceTokenResponseOrBuilder
- Returns:
- Whether the expiresIn field is set.
-
getExpiresIn
public int getExpiresIn()In seconds
optional int32 expires_in = 3;
- Specified by:
getExpiresIn
in interfaceTokenResponseOrBuilder
- Returns:
- The expiresIn.
-
setExpiresIn
In seconds
optional int32 expires_in = 3;
- Parameters:
value
- The expiresIn to set.- Returns:
- This builder for chaining.
-
clearExpiresIn
In seconds
optional int32 expires_in = 3;
- Returns:
- This builder for chaining.
-
hasRefreshToken
public boolean hasRefreshToken()optional string refresh_token = 4;
- Specified by:
hasRefreshToken
in interfaceTokenResponseOrBuilder
- Returns:
- Whether the refreshToken field is set.
-
getRefreshToken
optional string refresh_token = 4;
- Specified by:
getRefreshToken
in interfaceTokenResponseOrBuilder
- Returns:
- The refreshToken.
-
getRefreshTokenBytes
public com.google.protobuf.ByteString getRefreshTokenBytes()optional string refresh_token = 4;
- Specified by:
getRefreshTokenBytes
in interfaceTokenResponseOrBuilder
- Returns:
- The bytes for refreshToken.
-
setRefreshToken
optional string refresh_token = 4;
- Parameters:
value
- The refreshToken to set.- Returns:
- This builder for chaining.
-
clearRefreshToken
optional string refresh_token = 4;
- Returns:
- This builder for chaining.
-
setRefreshTokenBytes
optional string refresh_token = 4;
- Parameters:
value
- The bytes for refreshToken to set.- Returns:
- This builder for chaining.
-
hasUser
public boolean hasUser()optional .yamcs.protobuf.iam.UserInfo user = 5;
- Specified by:
hasUser
in interfaceTokenResponseOrBuilder
- Returns:
- Whether the user field is set.
-
getUser
optional .yamcs.protobuf.iam.UserInfo user = 5;
- Specified by:
getUser
in interfaceTokenResponseOrBuilder
- Returns:
- The user.
-
setUser
optional .yamcs.protobuf.iam.UserInfo user = 5;
-
setUser
optional .yamcs.protobuf.iam.UserInfo user = 5;
-
mergeUser
optional .yamcs.protobuf.iam.UserInfo user = 5;
-
clearUser
optional .yamcs.protobuf.iam.UserInfo user = 5;
-
getUserBuilder
optional .yamcs.protobuf.iam.UserInfo user = 5;
-
getUserOrBuilder
optional .yamcs.protobuf.iam.UserInfo user = 5;
- Specified by:
getUserOrBuilder
in interfaceTokenResponseOrBuilder
-
setUnknownFields
public final TokenResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<TokenResponse.Builder>
-
mergeUnknownFields
public final TokenResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<TokenResponse.Builder>
-