Class CreateServiceTokenRequest

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

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

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • PERMISSIONS_FIELD_NUMBER

      public static final int PERMISSIONS_FIELD_NUMBER
      See Also:
    • CUSTOM_CLAIMS_FIELD_NUMBER

      public static final int CUSTOM_CLAIMS_FIELD_NUMBER
      See Also:
    • CUSTOMER_CLAIMS_FIELD_NUMBER

      public static final int CUSTOMER_CLAIMS_FIELD_NUMBER
      See Also:
    • FEATURE_TAG_TO_PERMISSION_FIELD_NUMBER

      public static final int FEATURE_TAG_TO_PERMISSION_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
    • getName

      public String getName()
      string name = 1 [json_name = "name"];
      Specified by:
      getName in interface CreateServiceTokenRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
      string name = 1 [json_name = "name"];
      Specified by:
      getNameBytes in interface CreateServiceTokenRequestOrBuilder
      Returns:
      The bytes for name.
    • getPermissionsList

      public List<Permission> getPermissionsList()
      repeated .chalk.auth.v1.Permission permissions = 2 [json_name = "permissions"];
      Specified by:
      getPermissionsList in interface CreateServiceTokenRequestOrBuilder
      Returns:
      A list containing the permissions.
    • getPermissionsCount

      public int getPermissionsCount()
      repeated .chalk.auth.v1.Permission permissions = 2 [json_name = "permissions"];
      Specified by:
      getPermissionsCount in interface CreateServiceTokenRequestOrBuilder
      Returns:
      The count of permissions.
    • getPermissions

      public Permission getPermissions(int index)
      repeated .chalk.auth.v1.Permission permissions = 2 [json_name = "permissions"];
      Specified by:
      getPermissions in interface CreateServiceTokenRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The permissions at the given index.
    • getPermissionsValueList

      public List<Integer> getPermissionsValueList()
      repeated .chalk.auth.v1.Permission permissions = 2 [json_name = "permissions"];
      Specified by:
      getPermissionsValueList in interface CreateServiceTokenRequestOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for permissions.
    • getPermissionsValue

      public int getPermissionsValue(int index)
      repeated .chalk.auth.v1.Permission permissions = 2 [json_name = "permissions"];
      Specified by:
      getPermissionsValue in interface CreateServiceTokenRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of permissions at the given index.
    • getCustomClaimsList

      @Deprecated public com.google.protobuf.ProtocolStringList getCustomClaimsList()
      Deprecated.
      chalk.server.v1.CreateServiceTokenRequest.custom_claims is deprecated. See chalk/server/v1/team.proto;l=104
      repeated string custom_claims = 3 [json_name = "customClaims", deprecated = true];
      Specified by:
      getCustomClaimsList in interface CreateServiceTokenRequestOrBuilder
      Returns:
      A list containing the customClaims.
    • getCustomClaimsCount

      @Deprecated public int getCustomClaimsCount()
      Deprecated.
      chalk.server.v1.CreateServiceTokenRequest.custom_claims is deprecated. See chalk/server/v1/team.proto;l=104
      repeated string custom_claims = 3 [json_name = "customClaims", deprecated = true];
      Specified by:
      getCustomClaimsCount in interface CreateServiceTokenRequestOrBuilder
      Returns:
      The count of customClaims.
    • getCustomClaims

      @Deprecated public String getCustomClaims(int index)
      Deprecated.
      chalk.server.v1.CreateServiceTokenRequest.custom_claims is deprecated. See chalk/server/v1/team.proto;l=104
      repeated string custom_claims = 3 [json_name = "customClaims", deprecated = true];
      Specified by:
      getCustomClaims in interface CreateServiceTokenRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The customClaims at the given index.
    • getCustomClaimsBytes

      @Deprecated public com.google.protobuf.ByteString getCustomClaimsBytes(int index)
      Deprecated.
      chalk.server.v1.CreateServiceTokenRequest.custom_claims is deprecated. See chalk/server/v1/team.proto;l=104
      repeated string custom_claims = 3 [json_name = "customClaims", deprecated = true];
      Specified by:
      getCustomClaimsBytes in interface CreateServiceTokenRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the customClaims at the given index.
    • getCustomerClaimsList

      public List<CustomClaim> getCustomerClaimsList()
      repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];
      Specified by:
      getCustomerClaimsList in interface CreateServiceTokenRequestOrBuilder
    • getCustomerClaimsOrBuilderList

      public List<? extends CustomClaimOrBuilder> getCustomerClaimsOrBuilderList()
      repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];
      Specified by:
      getCustomerClaimsOrBuilderList in interface CreateServiceTokenRequestOrBuilder
    • getCustomerClaimsCount

      public int getCustomerClaimsCount()
      repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];
      Specified by:
      getCustomerClaimsCount in interface CreateServiceTokenRequestOrBuilder
    • getCustomerClaims

      public CustomClaim getCustomerClaims(int index)
      repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];
      Specified by:
      getCustomerClaims in interface CreateServiceTokenRequestOrBuilder
    • getCustomerClaimsOrBuilder

      public CustomClaimOrBuilder getCustomerClaimsOrBuilder(int index)
      repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];
      Specified by:
      getCustomerClaimsOrBuilder in interface CreateServiceTokenRequestOrBuilder
    • getFeatureTagToPermissionCount

      public int getFeatureTagToPermissionCount()
      Description copied from interface: CreateServiceTokenRequestOrBuilder
      map<string, .chalk.auth.v1.FeaturePermission> feature_tag_to_permission = 5 [json_name = "featureTagToPermission"];
      Specified by:
      getFeatureTagToPermissionCount in interface CreateServiceTokenRequestOrBuilder
    • containsFeatureTagToPermission

      public boolean containsFeatureTagToPermission(String key)
      map<string, .chalk.auth.v1.FeaturePermission> feature_tag_to_permission = 5 [json_name = "featureTagToPermission"];
      Specified by:
      containsFeatureTagToPermission in interface CreateServiceTokenRequestOrBuilder
    • getFeatureTagToPermission

      @Deprecated public Map<String,FeaturePermission> getFeatureTagToPermission()
      Deprecated.
      Specified by:
      getFeatureTagToPermission in interface CreateServiceTokenRequestOrBuilder
    • getFeatureTagToPermissionMap

      public Map<String,FeaturePermission> getFeatureTagToPermissionMap()
      map<string, .chalk.auth.v1.FeaturePermission> feature_tag_to_permission = 5 [json_name = "featureTagToPermission"];
      Specified by:
      getFeatureTagToPermissionMap in interface CreateServiceTokenRequestOrBuilder
    • getFeatureTagToPermissionOrDefault

      public FeaturePermission getFeatureTagToPermissionOrDefault(String key, FeaturePermission defaultValue)
      map<string, .chalk.auth.v1.FeaturePermission> feature_tag_to_permission = 5 [json_name = "featureTagToPermission"];
      Specified by:
      getFeatureTagToPermissionOrDefault in interface CreateServiceTokenRequestOrBuilder
    • getFeatureTagToPermissionOrThrow

      public FeaturePermission getFeatureTagToPermissionOrThrow(String key)
      map<string, .chalk.auth.v1.FeaturePermission> feature_tag_to_permission = 5 [json_name = "featureTagToPermission"];
      Specified by:
      getFeatureTagToPermissionOrThrow in interface CreateServiceTokenRequestOrBuilder
    • getFeatureTagToPermissionValue

      @Deprecated public Map<String,Integer> getFeatureTagToPermissionValue()
      Deprecated.
      Specified by:
      getFeatureTagToPermissionValue in interface CreateServiceTokenRequestOrBuilder
    • getFeatureTagToPermissionValueMap

      public Map<String,Integer> getFeatureTagToPermissionValueMap()
      map<string, .chalk.auth.v1.FeaturePermission> feature_tag_to_permission = 5 [json_name = "featureTagToPermission"];
      Specified by:
      getFeatureTagToPermissionValueMap in interface CreateServiceTokenRequestOrBuilder
    • getFeatureTagToPermissionValueOrDefault

      public int getFeatureTagToPermissionValueOrDefault(String key, int defaultValue)
      map<string, .chalk.auth.v1.FeaturePermission> feature_tag_to_permission = 5 [json_name = "featureTagToPermission"];
      Specified by:
      getFeatureTagToPermissionValueOrDefault in interface CreateServiceTokenRequestOrBuilder
    • getFeatureTagToPermissionValueOrThrow

      public int getFeatureTagToPermissionValueOrThrow(String key)
      map<string, .chalk.auth.v1.FeaturePermission> feature_tag_to_permission = 5 [json_name = "featureTagToPermission"];
      Specified by:
      getFeatureTagToPermissionValueOrThrow in interface CreateServiceTokenRequestOrBuilder
    • 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 CreateServiceTokenRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static CreateServiceTokenRequest.Builder newBuilder()
    • newBuilder

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

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

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

      public static CreateServiceTokenRequest getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<CreateServiceTokenRequest> 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 CreateServiceTokenRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder