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
    Protobuf type google.iam.credentials.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

        public String getName()
         Required. The resource name of the service account for which the credentials
         are requested, in the following format:
         `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard
         character is required; replacing it with a project ID is invalid.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getName in interface SignJwtRequestOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Required. The resource name of the service account for which the credentials
         are requested, in the following format:
         `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard
         character is required; replacing it with a project ID is invalid.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getNameBytes in interface SignJwtRequestOrBuilder
        Returns:
        The bytes for name.
      • setName

        public SignJwtRequest.Builder setName​(String value)
         Required. The resource name of the service account for which the credentials
         are requested, in the following format:
         `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard
         character is required; replacing it with a project ID is invalid.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public SignJwtRequest.Builder clearName()
         Required. The resource name of the service account for which the credentials
         are requested, in the following format:
         `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard
         character is required; replacing it with a project ID is invalid.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setNameBytes

        public SignJwtRequest.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Required. The resource name of the service account for which the credentials
         are requested, in the following format:
         `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard
         character is required; replacing it with a project ID is invalid.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getDelegatesList

        public com.google.protobuf.ProtocolStringList getDelegatesList()
         The sequence of service accounts in a delegation chain. Each service
         account must be granted the `roles/iam.serviceAccountTokenCreator` role
         on its next service account in the chain. The last service account in the
         chain must be granted the `roles/iam.serviceAccountTokenCreator` role
         on the service account that is specified in the `name` field of the
         request.
        
         The delegates must have the following format:
         `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard
         character is required; replacing it with a project ID is invalid.
         
        repeated string delegates = 3;
        Specified by:
        getDelegatesList in interface SignJwtRequestOrBuilder
        Returns:
        A list containing the delegates.
      • getDelegatesCount

        public int getDelegatesCount()
         The sequence of service accounts in a delegation chain. Each service
         account must be granted the `roles/iam.serviceAccountTokenCreator` role
         on its next service account in the chain. The last service account in the
         chain must be granted the `roles/iam.serviceAccountTokenCreator` role
         on the service account that is specified in the `name` field of the
         request.
        
         The delegates must have the following format:
         `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard
         character is required; replacing it with a project ID is invalid.
         
        repeated string delegates = 3;
        Specified by:
        getDelegatesCount in interface SignJwtRequestOrBuilder
        Returns:
        The count of delegates.
      • getDelegates

        public String getDelegates​(int index)
         The sequence of service accounts in a delegation chain. Each service
         account must be granted the `roles/iam.serviceAccountTokenCreator` role
         on its next service account in the chain. The last service account in the
         chain must be granted the `roles/iam.serviceAccountTokenCreator` role
         on the service account that is specified in the `name` field of the
         request.
        
         The delegates must have the following format:
         `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard
         character is required; replacing it with a project ID is invalid.
         
        repeated string delegates = 3;
        Specified by:
        getDelegates in interface SignJwtRequestOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The delegates at the given index.
      • getDelegatesBytes

        public com.google.protobuf.ByteString getDelegatesBytes​(int index)
         The sequence of service accounts in a delegation chain. Each service
         account must be granted the `roles/iam.serviceAccountTokenCreator` role
         on its next service account in the chain. The last service account in the
         chain must be granted the `roles/iam.serviceAccountTokenCreator` role
         on the service account that is specified in the `name` field of the
         request.
        
         The delegates must have the following format:
         `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard
         character is required; replacing it with a project ID is invalid.
         
        repeated string delegates = 3;
        Specified by:
        getDelegatesBytes in interface SignJwtRequestOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the delegates at the given index.
      • setDelegates

        public SignJwtRequest.Builder setDelegates​(int index,
                                                   String value)
         The sequence of service accounts in a delegation chain. Each service
         account must be granted the `roles/iam.serviceAccountTokenCreator` role
         on its next service account in the chain. The last service account in the
         chain must be granted the `roles/iam.serviceAccountTokenCreator` role
         on the service account that is specified in the `name` field of the
         request.
        
         The delegates must have the following format:
         `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard
         character is required; replacing it with a project ID is invalid.
         
        repeated string delegates = 3;
        Parameters:
        index - The index to set the value at.
        value - The delegates to set.
        Returns:
        This builder for chaining.
      • addDelegates

        public SignJwtRequest.Builder addDelegates​(String value)
         The sequence of service accounts in a delegation chain. Each service
         account must be granted the `roles/iam.serviceAccountTokenCreator` role
         on its next service account in the chain. The last service account in the
         chain must be granted the `roles/iam.serviceAccountTokenCreator` role
         on the service account that is specified in the `name` field of the
         request.
        
         The delegates must have the following format:
         `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard
         character is required; replacing it with a project ID is invalid.
         
        repeated string delegates = 3;
        Parameters:
        value - The delegates to add.
        Returns:
        This builder for chaining.
      • addAllDelegates

        public SignJwtRequest.Builder addAllDelegates​(Iterable<String> values)
         The sequence of service accounts in a delegation chain. Each service
         account must be granted the `roles/iam.serviceAccountTokenCreator` role
         on its next service account in the chain. The last service account in the
         chain must be granted the `roles/iam.serviceAccountTokenCreator` role
         on the service account that is specified in the `name` field of the
         request.
        
         The delegates must have the following format:
         `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard
         character is required; replacing it with a project ID is invalid.
         
        repeated string delegates = 3;
        Parameters:
        values - The delegates to add.
        Returns:
        This builder for chaining.
      • clearDelegates

        public SignJwtRequest.Builder clearDelegates()
         The sequence of service accounts in a delegation chain. Each service
         account must be granted the `roles/iam.serviceAccountTokenCreator` role
         on its next service account in the chain. The last service account in the
         chain must be granted the `roles/iam.serviceAccountTokenCreator` role
         on the service account that is specified in the `name` field of the
         request.
        
         The delegates must have the following format:
         `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard
         character is required; replacing it with a project ID is invalid.
         
        repeated string delegates = 3;
        Returns:
        This builder for chaining.
      • addDelegatesBytes

        public SignJwtRequest.Builder addDelegatesBytes​(com.google.protobuf.ByteString value)
         The sequence of service accounts in a delegation chain. Each service
         account must be granted the `roles/iam.serviceAccountTokenCreator` role
         on its next service account in the chain. The last service account in the
         chain must be granted the `roles/iam.serviceAccountTokenCreator` role
         on the service account that is specified in the `name` field of the
         request.
        
         The delegates must have the following format:
         `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard
         character is required; replacing it with a project ID is invalid.
         
        repeated string delegates = 3;
        Parameters:
        value - The bytes of the delegates to add.
        Returns:
        This builder for chaining.
      • getPayload

        public String getPayload()
         Required. The JWT payload to sign: a JSON object that contains a JWT Claims Set.
         
        string payload = 5 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getPayload in interface SignJwtRequestOrBuilder
        Returns:
        The payload.
      • getPayloadBytes

        public com.google.protobuf.ByteString getPayloadBytes()
         Required. The JWT payload to sign: a JSON object that contains a JWT Claims Set.
         
        string payload = 5 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getPayloadBytes in interface SignJwtRequestOrBuilder
        Returns:
        The bytes for payload.
      • setPayload

        public SignJwtRequest.Builder setPayload​(String value)
         Required. The JWT payload to sign: a JSON object that contains a JWT Claims Set.
         
        string payload = 5 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The payload to set.
        Returns:
        This builder for chaining.
      • clearPayload

        public SignJwtRequest.Builder clearPayload()
         Required. The JWT payload to sign: a JSON object that contains a JWT Claims Set.
         
        string payload = 5 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setPayloadBytes

        public SignJwtRequest.Builder setPayloadBytes​(com.google.protobuf.ByteString value)
         Required. The JWT payload to sign: a JSON object that contains a JWT Claims Set.
         
        string payload = 5 [(.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>