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 Framework
 
Protobuf type yamcs.protobuf.auth.TokenResponse
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TokenResponse.Builder>
    • clear

      public TokenResponse.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<TokenResponse.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<TokenResponse.Builder>
    • getDefaultInstanceForType

      public TokenResponse getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public TokenResponse build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public TokenResponse buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public TokenResponse.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<TokenResponse.Builder>
    • setField

      public TokenResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<TokenResponse.Builder>
    • clearField

      public TokenResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<TokenResponse.Builder>
    • clearOneof

      public TokenResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.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 interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TokenResponse.Builder>
    • addRepeatedField

      public TokenResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TokenResponse.Builder>
    • mergeFrom

      public TokenResponse.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TokenResponse.Builder>
    • mergeFrom

      public TokenResponse.Builder mergeFrom(TokenResponse other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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 interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TokenResponse.Builder>
      Throws:
      IOException
    • hasAccessToken

      public boolean hasAccessToken()
      optional string access_token = 1;
      Specified by:
      hasAccessToken in interface TokenResponseOrBuilder
      Returns:
      Whether the accessToken field is set.
    • getAccessToken

      public String getAccessToken()
      optional string access_token = 1;
      Specified by:
      getAccessToken in interface TokenResponseOrBuilder
      Returns:
      The accessToken.
    • getAccessTokenBytes

      public com.google.protobuf.ByteString getAccessTokenBytes()
      optional string access_token = 1;
      Specified by:
      getAccessTokenBytes in interface TokenResponseOrBuilder
      Returns:
      The bytes for accessToken.
    • setAccessToken

      public TokenResponse.Builder setAccessToken(String value)
      optional string access_token = 1;
      Parameters:
      value - The accessToken to set.
      Returns:
      This builder for chaining.
    • clearAccessToken

      public TokenResponse.Builder clearAccessToken()
      optional string access_token = 1;
      Returns:
      This builder for chaining.
    • setAccessTokenBytes

      public TokenResponse.Builder setAccessTokenBytes(com.google.protobuf.ByteString value)
      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 interface TokenResponseOrBuilder
      Returns:
      Whether the tokenType field is set.
    • getTokenType

      public String getTokenType()
      optional string token_type = 2;
      Specified by:
      getTokenType in interface TokenResponseOrBuilder
      Returns:
      The tokenType.
    • getTokenTypeBytes

      public com.google.protobuf.ByteString getTokenTypeBytes()
      optional string token_type = 2;
      Specified by:
      getTokenTypeBytes in interface TokenResponseOrBuilder
      Returns:
      The bytes for tokenType.
    • setTokenType

      public TokenResponse.Builder setTokenType(String value)
      optional string token_type = 2;
      Parameters:
      value - The tokenType to set.
      Returns:
      This builder for chaining.
    • clearTokenType

      public TokenResponse.Builder clearTokenType()
      optional string token_type = 2;
      Returns:
      This builder for chaining.
    • setTokenTypeBytes

      public TokenResponse.Builder setTokenTypeBytes(com.google.protobuf.ByteString value)
      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 interface TokenResponseOrBuilder
      Returns:
      Whether the expiresIn field is set.
    • getExpiresIn

      public int getExpiresIn()
       In seconds
       
      optional int32 expires_in = 3;
      Specified by:
      getExpiresIn in interface TokenResponseOrBuilder
      Returns:
      The expiresIn.
    • setExpiresIn

      public TokenResponse.Builder setExpiresIn(int value)
       In seconds
       
      optional int32 expires_in = 3;
      Parameters:
      value - The expiresIn to set.
      Returns:
      This builder for chaining.
    • clearExpiresIn

      public TokenResponse.Builder 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 interface TokenResponseOrBuilder
      Returns:
      Whether the refreshToken field is set.
    • getRefreshToken

      public String getRefreshToken()
      optional string refresh_token = 4;
      Specified by:
      getRefreshToken in interface TokenResponseOrBuilder
      Returns:
      The refreshToken.
    • getRefreshTokenBytes

      public com.google.protobuf.ByteString getRefreshTokenBytes()
      optional string refresh_token = 4;
      Specified by:
      getRefreshTokenBytes in interface TokenResponseOrBuilder
      Returns:
      The bytes for refreshToken.
    • setRefreshToken

      public TokenResponse.Builder setRefreshToken(String value)
      optional string refresh_token = 4;
      Parameters:
      value - The refreshToken to set.
      Returns:
      This builder for chaining.
    • clearRefreshToken

      public TokenResponse.Builder clearRefreshToken()
      optional string refresh_token = 4;
      Returns:
      This builder for chaining.
    • setRefreshTokenBytes

      public TokenResponse.Builder setRefreshTokenBytes(com.google.protobuf.ByteString value)
      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 interface TokenResponseOrBuilder
      Returns:
      Whether the user field is set.
    • getUser

      public UserInfo getUser()
      optional .yamcs.protobuf.iam.UserInfo user = 5;
      Specified by:
      getUser in interface TokenResponseOrBuilder
      Returns:
      The user.
    • setUser

      public TokenResponse.Builder setUser(UserInfo value)
      optional .yamcs.protobuf.iam.UserInfo user = 5;
    • setUser

      public TokenResponse.Builder setUser(UserInfo.Builder builderForValue)
      optional .yamcs.protobuf.iam.UserInfo user = 5;
    • mergeUser

      public TokenResponse.Builder mergeUser(UserInfo value)
      optional .yamcs.protobuf.iam.UserInfo user = 5;
    • clearUser

      public TokenResponse.Builder clearUser()
      optional .yamcs.protobuf.iam.UserInfo user = 5;
    • getUserBuilder

      public UserInfo.Builder getUserBuilder()
      optional .yamcs.protobuf.iam.UserInfo user = 5;
    • getUserOrBuilder

      public UserInfoOrBuilder getUserOrBuilder()
      optional .yamcs.protobuf.iam.UserInfo user = 5;
      Specified by:
      getUserOrBuilder in interface TokenResponseOrBuilder
    • setUnknownFields

      public final TokenResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TokenResponse.Builder>
    • mergeUnknownFields

      public final TokenResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TokenResponse.Builder>