public static final class SignJwtRequest.Builder extends GeneratedMessageV3.Builder<SignJwtRequest.Builder> implements SignJwtRequestOrBuilder
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SignJwtRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public SignJwtRequest build()
Returns
buildPartial()
public SignJwtRequest buildPartial()
Returns
clear()
public SignJwtRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public SignJwtRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearName()
public SignJwtRequest.Builder clearName()
Required. Deprecated. Migrate to Service Account Credentials
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
clearOneof(Descriptors.OneofDescriptor oneof)
public SignJwtRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearPayload()
public SignJwtRequest.Builder clearPayload()
Required. Deprecated. Migrate to Service Account Credentials
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 1 hour 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
clone()
public SignJwtRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public SignJwtRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getName()
Required. Deprecated. Migrate to Service Account Credentials
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
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
Required. Deprecated. Migrate to Service Account Credentials
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
getPayload()
public String getPayload()
Required. Deprecated. Migrate to Service Account Credentials
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 1 hour 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
Type | Description |
String | The payload.
|
getPayloadBytes()
public ByteString getPayloadBytes()
Required. Deprecated. Migrate to Service Account Credentials
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 1 hour 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
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(SignJwtRequest other)
public SignJwtRequest.Builder mergeFrom(SignJwtRequest other)
Parameter
Returns
public SignJwtRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public SignJwtRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SignJwtRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public SignJwtRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setName(String value)
public SignJwtRequest.Builder setName(String value)
Required. Deprecated. Migrate to Service Account Credentials
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) = { ... }
Parameter
Name | Description |
value | String
The name to set.
|
Returns
setNameBytes(ByteString value)
public SignJwtRequest.Builder setNameBytes(ByteString value)
Required. Deprecated. Migrate to Service Account Credentials
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) = { ... }
Parameter
Name | Description |
value | ByteString
The bytes for name to set.
|
Returns
setPayload(String value)
public SignJwtRequest.Builder setPayload(String value)
Required. Deprecated. Migrate to Service Account Credentials
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 1 hour 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];
Parameter
Name | Description |
value | String
The payload to set.
|
Returns
setPayloadBytes(ByteString value)
public SignJwtRequest.Builder setPayloadBytes(ByteString value)
Required. Deprecated. Migrate to Service Account Credentials
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 1 hour 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];
Parameter
Name | Description |
value | ByteString
The bytes for payload to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SignJwtRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SignJwtRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides