Class GetTokenResponse

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
ai.chalk.protos.chalk.server.v1.GetTokenResponse
All Implemented Interfaces:
GetTokenResponseOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

public final class GetTokenResponse extends com.google.protobuf.GeneratedMessageV3 implements GetTokenResponseOrBuilder
Protobuf type chalk.server.v1.GetTokenResponse
See Also:
  • Field Details

    • ACCESS_TOKEN_FIELD_NUMBER

      public static final int ACCESS_TOKEN_FIELD_NUMBER
      See Also:
    • TOKEN_TYPE_FIELD_NUMBER

      public static final int TOKEN_TYPE_FIELD_NUMBER
      See Also:
    • EXPIRES_IN_FIELD_NUMBER

      public static final int EXPIRES_IN_FIELD_NUMBER
      See Also:
    • EXPIRES_AT_FIELD_NUMBER

      public static final int EXPIRES_AT_FIELD_NUMBER
      See Also:
    • API_SERVER_FIELD_NUMBER

      public static final int API_SERVER_FIELD_NUMBER
      See Also:
    • PRIMARY_ENVIRONMENT_FIELD_NUMBER

      public static final int PRIMARY_ENVIRONMENT_FIELD_NUMBER
      See Also:
    • ENGINES_FIELD_NUMBER

      public static final int ENGINES_FIELD_NUMBER
      See Also:
    • GRPC_ENGINES_FIELD_NUMBER

      public static final int GRPC_ENGINES_FIELD_NUMBER
      See Also:
    • ENVIRONMENT_ID_TO_NAME_FIELD_NUMBER

      public static final int ENVIRONMENT_ID_TO_NAME_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getAccessToken

      public String getAccessToken()
      string access_token = 1 [json_name = "accessToken", (.chalk.utils.v1.sensitive) = true];
      Specified by:
      getAccessToken in interface GetTokenResponseOrBuilder
      Returns:
      The accessToken.
    • getAccessTokenBytes

      public com.google.protobuf.ByteString getAccessTokenBytes()
      string access_token = 1 [json_name = "accessToken", (.chalk.utils.v1.sensitive) = true];
      Specified by:
      getAccessTokenBytes in interface GetTokenResponseOrBuilder
      Returns:
      The bytes for accessToken.
    • getTokenType

      public String getTokenType()
      string token_type = 2 [json_name = "tokenType"];
      Specified by:
      getTokenType in interface GetTokenResponseOrBuilder
      Returns:
      The tokenType.
    • getTokenTypeBytes

      public com.google.protobuf.ByteString getTokenTypeBytes()
      string token_type = 2 [json_name = "tokenType"];
      Specified by:
      getTokenTypeBytes in interface GetTokenResponseOrBuilder
      Returns:
      The bytes for tokenType.
    • getExpiresIn

      public int getExpiresIn()
      int32 expires_in = 3 [json_name = "expiresIn"];
      Specified by:
      getExpiresIn in interface GetTokenResponseOrBuilder
      Returns:
      The expiresIn.
    • hasExpiresAt

      public boolean hasExpiresAt()
      .google.protobuf.Timestamp expires_at = 4 [json_name = "expiresAt"];
      Specified by:
      hasExpiresAt in interface GetTokenResponseOrBuilder
      Returns:
      Whether the expiresAt field is set.
    • getExpiresAt

      public com.google.protobuf.Timestamp getExpiresAt()
      .google.protobuf.Timestamp expires_at = 4 [json_name = "expiresAt"];
      Specified by:
      getExpiresAt in interface GetTokenResponseOrBuilder
      Returns:
      The expiresAt.
    • getExpiresAtOrBuilder

      public com.google.protobuf.TimestampOrBuilder getExpiresAtOrBuilder()
      .google.protobuf.Timestamp expires_at = 4 [json_name = "expiresAt"];
      Specified by:
      getExpiresAtOrBuilder in interface GetTokenResponseOrBuilder
    • getApiServer

      public String getApiServer()
      string api_server = 5 [json_name = "apiServer"];
      Specified by:
      getApiServer in interface GetTokenResponseOrBuilder
      Returns:
      The apiServer.
    • getApiServerBytes

      public com.google.protobuf.ByteString getApiServerBytes()
      string api_server = 5 [json_name = "apiServer"];
      Specified by:
      getApiServerBytes in interface GetTokenResponseOrBuilder
      Returns:
      The bytes for apiServer.
    • hasPrimaryEnvironment

      public boolean hasPrimaryEnvironment()
      optional string primary_environment = 6 [json_name = "primaryEnvironment"];
      Specified by:
      hasPrimaryEnvironment in interface GetTokenResponseOrBuilder
      Returns:
      Whether the primaryEnvironment field is set.
    • getPrimaryEnvironment

      public String getPrimaryEnvironment()
      optional string primary_environment = 6 [json_name = "primaryEnvironment"];
      Specified by:
      getPrimaryEnvironment in interface GetTokenResponseOrBuilder
      Returns:
      The primaryEnvironment.
    • getPrimaryEnvironmentBytes

      public com.google.protobuf.ByteString getPrimaryEnvironmentBytes()
      optional string primary_environment = 6 [json_name = "primaryEnvironment"];
      Specified by:
      getPrimaryEnvironmentBytes in interface GetTokenResponseOrBuilder
      Returns:
      The bytes for primaryEnvironment.
    • getEnginesCount

      public int getEnginesCount()
      Description copied from interface: GetTokenResponseOrBuilder
       Maps of environment_id --> url
       
      map<string, string> engines = 7 [json_name = "engines"];
      Specified by:
      getEnginesCount in interface GetTokenResponseOrBuilder
    • containsEngines

      public boolean containsEngines(String key)
       Maps of environment_id --> url
       
      map<string, string> engines = 7 [json_name = "engines"];
      Specified by:
      containsEngines in interface GetTokenResponseOrBuilder
    • getEngines

      @Deprecated public Map<String,String> getEngines()
      Deprecated.
      Use getEnginesMap() instead.
      Specified by:
      getEngines in interface GetTokenResponseOrBuilder
    • getEnginesMap

      public Map<String,String> getEnginesMap()
       Maps of environment_id --> url
       
      map<string, string> engines = 7 [json_name = "engines"];
      Specified by:
      getEnginesMap in interface GetTokenResponseOrBuilder
    • getEnginesOrDefault

      public String getEnginesOrDefault(String key, String defaultValue)
       Maps of environment_id --> url
       
      map<string, string> engines = 7 [json_name = "engines"];
      Specified by:
      getEnginesOrDefault in interface GetTokenResponseOrBuilder
    • getEnginesOrThrow

      public String getEnginesOrThrow(String key)
       Maps of environment_id --> url
       
      map<string, string> engines = 7 [json_name = "engines"];
      Specified by:
      getEnginesOrThrow in interface GetTokenResponseOrBuilder
    • getGrpcEnginesCount

      public int getGrpcEnginesCount()
      Description copied from interface: GetTokenResponseOrBuilder
      map<string, string> grpc_engines = 8 [json_name = "grpcEngines"];
      Specified by:
      getGrpcEnginesCount in interface GetTokenResponseOrBuilder
    • containsGrpcEngines

      public boolean containsGrpcEngines(String key)
      map<string, string> grpc_engines = 8 [json_name = "grpcEngines"];
      Specified by:
      containsGrpcEngines in interface GetTokenResponseOrBuilder
    • getGrpcEngines

      @Deprecated public Map<String,String> getGrpcEngines()
      Deprecated.
      Use getGrpcEnginesMap() instead.
      Specified by:
      getGrpcEngines in interface GetTokenResponseOrBuilder
    • getGrpcEnginesMap

      public Map<String,String> getGrpcEnginesMap()
      map<string, string> grpc_engines = 8 [json_name = "grpcEngines"];
      Specified by:
      getGrpcEnginesMap in interface GetTokenResponseOrBuilder
    • getGrpcEnginesOrDefault

      public String getGrpcEnginesOrDefault(String key, String defaultValue)
      map<string, string> grpc_engines = 8 [json_name = "grpcEngines"];
      Specified by:
      getGrpcEnginesOrDefault in interface GetTokenResponseOrBuilder
    • getGrpcEnginesOrThrow

      public String getGrpcEnginesOrThrow(String key)
      map<string, string> grpc_engines = 8 [json_name = "grpcEngines"];
      Specified by:
      getGrpcEnginesOrThrow in interface GetTokenResponseOrBuilder
    • getEnvironmentIdToNameCount

      public int getEnvironmentIdToNameCount()
      Description copied from interface: GetTokenResponseOrBuilder
      map<string, string> environment_id_to_name = 9 [json_name = "environmentIdToName"];
      Specified by:
      getEnvironmentIdToNameCount in interface GetTokenResponseOrBuilder
    • containsEnvironmentIdToName

      public boolean containsEnvironmentIdToName(String key)
      map<string, string> environment_id_to_name = 9 [json_name = "environmentIdToName"];
      Specified by:
      containsEnvironmentIdToName in interface GetTokenResponseOrBuilder
    • getEnvironmentIdToName

      @Deprecated public Map<String,String> getEnvironmentIdToName()
      Deprecated.
      Specified by:
      getEnvironmentIdToName in interface GetTokenResponseOrBuilder
    • getEnvironmentIdToNameMap

      public Map<String,String> getEnvironmentIdToNameMap()
      map<string, string> environment_id_to_name = 9 [json_name = "environmentIdToName"];
      Specified by:
      getEnvironmentIdToNameMap in interface GetTokenResponseOrBuilder
    • getEnvironmentIdToNameOrDefault

      public String getEnvironmentIdToNameOrDefault(String key, String defaultValue)
      map<string, string> environment_id_to_name = 9 [json_name = "environmentIdToName"];
      Specified by:
      getEnvironmentIdToNameOrDefault in interface GetTokenResponseOrBuilder
    • getEnvironmentIdToNameOrThrow

      public String getEnvironmentIdToNameOrThrow(String key)
      map<string, string> environment_id_to_name = 9 [json_name = "environmentIdToName"];
      Specified by:
      getEnvironmentIdToNameOrThrow in interface GetTokenResponseOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static GetTokenResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GetTokenResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GetTokenResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GetTokenResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GetTokenResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GetTokenResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GetTokenResponse parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GetTokenResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static GetTokenResponse parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static GetTokenResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GetTokenResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GetTokenResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public GetTokenResponse.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static GetTokenResponse.Builder newBuilder()
    • newBuilder

      public static GetTokenResponse.Builder newBuilder(GetTokenResponse prototype)
    • toBuilder

      public GetTokenResponse.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected GetTokenResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static GetTokenResponse getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<GetTokenResponse> parser()
    • getParserForType

      public com.google.protobuf.Parser<GetTokenResponse> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public GetTokenResponse getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder