Class SignJwtRequest.Builder

  • All Implemented Interfaces:
    SignJwtRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    SignJwtRequest

    public static final class SignJwtRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<SignJwtRequest.Builder>
    implements SignJwtRequestOrBuilder
     Deprecated. [Migrate to Service Account Credentials
     API](https://cloud.google.com/iam/help/credentials/migrate-api).
    
     The service account sign JWT request.
     
    Protobuf type google.iam.admin.v1.SignJwtRequest
    • Method Detail

      • 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<SignJwtRequest.Builder>
      • clear

        public SignJwtRequest.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<SignJwtRequest.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<SignJwtRequest.Builder>
      • getDefaultInstanceForType

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

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

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

        public SignJwtRequest.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<SignJwtRequest.Builder>
      • setField

        public SignJwtRequest.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<SignJwtRequest.Builder>
      • clearField

        public SignJwtRequest.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<SignJwtRequest.Builder>
      • clearOneof

        public SignJwtRequest.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<SignJwtRequest.Builder>
      • setRepeatedField

        public SignJwtRequest.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<SignJwtRequest.Builder>
      • addRepeatedField

        public SignJwtRequest.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<SignJwtRequest.Builder>
      • mergeFrom

        public SignJwtRequest.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<SignJwtRequest.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SignJwtRequest.Builder>
      • mergeFrom

        public SignJwtRequest.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<SignJwtRequest.Builder>
        Throws:
        IOException
      • getName

        @Deprecated
        public String getName()
        Deprecated.
        google.iam.admin.v1.SignJwtRequest.name is deprecated. See google/iam/admin/v1/iam.proto;l=1023
         Required. Deprecated. [Migrate to Service Account Credentials
         API](https://cloud.google.com/iam/help/credentials/migrate-api).
        
         The resource name of the service account in the following format:
         `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
         Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
         the account. The `ACCOUNT` value can be the `email` address or the
         `unique_id` of the service account.
         
        string name = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getName in interface SignJwtRequestOrBuilder
        Returns:
        The name.
      • getNameBytes

        @Deprecated
        public com.google.protobuf.ByteString getNameBytes()
        Deprecated.
        google.iam.admin.v1.SignJwtRequest.name is deprecated. See google/iam/admin/v1/iam.proto;l=1023
         Required. Deprecated. [Migrate to Service Account Credentials
         API](https://cloud.google.com/iam/help/credentials/migrate-api).
        
         The resource name of the service account in the following format:
         `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
         Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
         the account. The `ACCOUNT` value can be the `email` address or the
         `unique_id` of the service account.
         
        string name = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getNameBytes in interface SignJwtRequestOrBuilder
        Returns:
        The bytes for name.
      • setName

        @Deprecated
        public SignJwtRequest.Builder setName​(String value)
        Deprecated.
        google.iam.admin.v1.SignJwtRequest.name is deprecated. See google/iam/admin/v1/iam.proto;l=1023
         Required. Deprecated. [Migrate to Service Account Credentials
         API](https://cloud.google.com/iam/help/credentials/migrate-api).
        
         The resource name of the service account in the following format:
         `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
         Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
         the account. The `ACCOUNT` value can be the `email` address or the
         `unique_id` of the service account.
         
        string name = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        @Deprecated
        public SignJwtRequest.Builder clearName()
        Deprecated.
        google.iam.admin.v1.SignJwtRequest.name is deprecated. See google/iam/admin/v1/iam.proto;l=1023
         Required. Deprecated. [Migrate to Service Account Credentials
         API](https://cloud.google.com/iam/help/credentials/migrate-api).
        
         The resource name of the service account in the following format:
         `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
         Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
         the account. The `ACCOUNT` value can be the `email` address or the
         `unique_id` of the service account.
         
        string name = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setNameBytes

        @Deprecated
        public SignJwtRequest.Builder setNameBytes​(com.google.protobuf.ByteString value)
        Deprecated.
        google.iam.admin.v1.SignJwtRequest.name is deprecated. See google/iam/admin/v1/iam.proto;l=1023
         Required. Deprecated. [Migrate to Service Account Credentials
         API](https://cloud.google.com/iam/help/credentials/migrate-api).
        
         The resource name of the service account in the following format:
         `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
         Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
         the account. The `ACCOUNT` value can be the `email` address or the
         `unique_id` of the service account.
         
        string name = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getPayload

        @Deprecated
        public String getPayload()
        Deprecated.
        google.iam.admin.v1.SignJwtRequest.payload is deprecated. See google/iam/admin/v1/iam.proto;l=1044
         Required. Deprecated. [Migrate to Service Account Credentials
         API](https://cloud.google.com/iam/help/credentials/migrate-api).
        
         The JWT payload to sign. Must be a serialized JSON object that contains a
         JWT Claims Set. For example: `{"sub": "user@example.com", "iat": 313435}`
        
         If the JWT Claims Set contains an expiration time (`exp`) claim, it must be
         an integer timestamp that is not in the past and no more than 12 hours in
         the future.
        
         If the JWT Claims Set does not contain an expiration time (`exp`) claim,
         this claim is added automatically, with a timestamp that is 1 hour in the
         future.
         
        string payload = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED];
        Specified by:
        getPayload in interface SignJwtRequestOrBuilder
        Returns:
        The payload.
      • getPayloadBytes

        @Deprecated
        public com.google.protobuf.ByteString getPayloadBytes()
        Deprecated.
        google.iam.admin.v1.SignJwtRequest.payload is deprecated. See google/iam/admin/v1/iam.proto;l=1044
         Required. Deprecated. [Migrate to Service Account Credentials
         API](https://cloud.google.com/iam/help/credentials/migrate-api).
        
         The JWT payload to sign. Must be a serialized JSON object that contains a
         JWT Claims Set. For example: `{"sub": "user@example.com", "iat": 313435}`
        
         If the JWT Claims Set contains an expiration time (`exp`) claim, it must be
         an integer timestamp that is not in the past and no more than 12 hours in
         the future.
        
         If the JWT Claims Set does not contain an expiration time (`exp`) claim,
         this claim is added automatically, with a timestamp that is 1 hour in the
         future.
         
        string payload = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED];
        Specified by:
        getPayloadBytes in interface SignJwtRequestOrBuilder
        Returns:
        The bytes for payload.
      • setPayload

        @Deprecated
        public SignJwtRequest.Builder setPayload​(String value)
        Deprecated.
        google.iam.admin.v1.SignJwtRequest.payload is deprecated. See google/iam/admin/v1/iam.proto;l=1044
         Required. Deprecated. [Migrate to Service Account Credentials
         API](https://cloud.google.com/iam/help/credentials/migrate-api).
        
         The JWT payload to sign. Must be a serialized JSON object that contains a
         JWT Claims Set. For example: `{"sub": "user@example.com", "iat": 313435}`
        
         If the JWT Claims Set contains an expiration time (`exp`) claim, it must be
         an integer timestamp that is not in the past and no more than 12 hours in
         the future.
        
         If the JWT Claims Set does not contain an expiration time (`exp`) claim,
         this claim is added automatically, with a timestamp that is 1 hour in the
         future.
         
        string payload = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The payload to set.
        Returns:
        This builder for chaining.
      • clearPayload

        @Deprecated
        public SignJwtRequest.Builder clearPayload()
        Deprecated.
        google.iam.admin.v1.SignJwtRequest.payload is deprecated. See google/iam/admin/v1/iam.proto;l=1044
         Required. Deprecated. [Migrate to Service Account Credentials
         API](https://cloud.google.com/iam/help/credentials/migrate-api).
        
         The JWT payload to sign. Must be a serialized JSON object that contains a
         JWT Claims Set. For example: `{"sub": "user@example.com", "iat": 313435}`
        
         If the JWT Claims Set contains an expiration time (`exp`) claim, it must be
         an integer timestamp that is not in the past and no more than 12 hours in
         the future.
        
         If the JWT Claims Set does not contain an expiration time (`exp`) claim,
         this claim is added automatically, with a timestamp that is 1 hour in the
         future.
         
        string payload = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setPayloadBytes

        @Deprecated
        public SignJwtRequest.Builder setPayloadBytes​(com.google.protobuf.ByteString value)
        Deprecated.
        google.iam.admin.v1.SignJwtRequest.payload is deprecated. See google/iam/admin/v1/iam.proto;l=1044
         Required. Deprecated. [Migrate to Service Account Credentials
         API](https://cloud.google.com/iam/help/credentials/migrate-api).
        
         The JWT payload to sign. Must be a serialized JSON object that contains a
         JWT Claims Set. For example: `{"sub": "user@example.com", "iat": 313435}`
        
         If the JWT Claims Set contains an expiration time (`exp`) claim, it must be
         an integer timestamp that is not in the past and no more than 12 hours in
         the future.
        
         If the JWT Claims Set does not contain an expiration time (`exp`) claim,
         this claim is added automatically, with a timestamp that is 1 hour in the
         future.
         
        string payload = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for payload to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final SignJwtRequest.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<SignJwtRequest.Builder>
      • mergeUnknownFields

        public final SignJwtRequest.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<SignJwtRequest.Builder>