public static final class WorkloadIdentityConfig.Builder extends GeneratedMessage.Builder<WorkloadIdentityConfig.Builder> implements WorkloadIdentityConfigOrBuilderWorkload identity settings.
Protobuf type google.cloud.run.v2.WorkloadIdentityConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > WorkloadIdentityConfig.BuilderImplements
WorkloadIdentityConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public WorkloadIdentityConfig build()| Returns | |
|---|---|
| Type | Description |
WorkloadIdentityConfig |
|
buildPartial()
public WorkloadIdentityConfig buildPartial()| Returns | |
|---|---|
| Type | Description |
WorkloadIdentityConfig |
|
clear()
public WorkloadIdentityConfig.Builder clear()| Returns | |
|---|---|
| Type | Description |
WorkloadIdentityConfig.Builder |
|
clearIdentity()
public WorkloadIdentityConfig.Builder clearIdentity()Optional. The Revision's SPIFFE workload identity. Enables provisioning of SPIFFE workload certificates.
string identity = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
WorkloadIdentityConfig.Builder |
This builder for chaining. |
clearIdentityCertificateEnabled()
public WorkloadIdentityConfig.Builder clearIdentityCertificateEnabled()Optional. Controls whether an instance receives a MWLID certificate. Corresponds to the intention of the original --[no-]identity-certificate flag.
optional bool identity_certificate_enabled = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
WorkloadIdentityConfig.Builder |
This builder for chaining. |
clearIdentityType()
public WorkloadIdentityConfig.Builder clearIdentityType()Optional. The type of identity to use.
.google.cloud.run.v2.IdentityType identity_type = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
WorkloadIdentityConfig.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public WorkloadIdentityConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
WorkloadIdentityConfig |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getIdentity()
public String getIdentity()Optional. The Revision's SPIFFE workload identity. Enables provisioning of SPIFFE workload certificates.
string identity = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The identity. |
getIdentityBytes()
public ByteString getIdentityBytes()Optional. The Revision's SPIFFE workload identity. Enables provisioning of SPIFFE workload certificates.
string identity = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for identity. |
getIdentityCertificateEnabled()
public boolean getIdentityCertificateEnabled()Optional. Controls whether an instance receives a MWLID certificate. Corresponds to the intention of the original --[no-]identity-certificate flag.
optional bool identity_certificate_enabled = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The identityCertificateEnabled. |
getIdentityType()
public IdentityType getIdentityType()Optional. The type of identity to use.
.google.cloud.run.v2.IdentityType identity_type = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
IdentityType |
The identityType. |
getIdentityTypeValue()
public int getIdentityTypeValue()Optional. The type of identity to use.
.google.cloud.run.v2.IdentityType identity_type = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for identityType. |
hasIdentityCertificateEnabled()
public boolean hasIdentityCertificateEnabled()Optional. Controls whether an instance receives a MWLID certificate. Corresponds to the intention of the original --[no-]identity-certificate flag.
optional bool identity_certificate_enabled = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the identityCertificateEnabled field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(WorkloadIdentityConfig other)
public WorkloadIdentityConfig.Builder mergeFrom(WorkloadIdentityConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
WorkloadIdentityConfig |
| Returns | |
|---|---|
| Type | Description |
WorkloadIdentityConfig.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public WorkloadIdentityConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
WorkloadIdentityConfig.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public WorkloadIdentityConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
WorkloadIdentityConfig.Builder |
|
setIdentity(String value)
public WorkloadIdentityConfig.Builder setIdentity(String value)Optional. The Revision's SPIFFE workload identity. Enables provisioning of SPIFFE workload certificates.
string identity = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe identity to set. |
| Returns | |
|---|---|
| Type | Description |
WorkloadIdentityConfig.Builder |
This builder for chaining. |
setIdentityBytes(ByteString value)
public WorkloadIdentityConfig.Builder setIdentityBytes(ByteString value)Optional. The Revision's SPIFFE workload identity. Enables provisioning of SPIFFE workload certificates.
string identity = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for identity to set. |
| Returns | |
|---|---|
| Type | Description |
WorkloadIdentityConfig.Builder |
This builder for chaining. |
setIdentityCertificateEnabled(boolean value)
public WorkloadIdentityConfig.Builder setIdentityCertificateEnabled(boolean value)Optional. Controls whether an instance receives a MWLID certificate. Corresponds to the intention of the original --[no-]identity-certificate flag.
optional bool identity_certificate_enabled = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe identityCertificateEnabled to set. |
| Returns | |
|---|---|
| Type | Description |
WorkloadIdentityConfig.Builder |
This builder for chaining. |
setIdentityType(IdentityType value)
public WorkloadIdentityConfig.Builder setIdentityType(IdentityType value)Optional. The type of identity to use.
.google.cloud.run.v2.IdentityType identity_type = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
IdentityTypeThe identityType to set. |
| Returns | |
|---|---|
| Type | Description |
WorkloadIdentityConfig.Builder |
This builder for chaining. |
setIdentityTypeValue(int value)
public WorkloadIdentityConfig.Builder setIdentityTypeValue(int value)Optional. The type of identity to use.
.google.cloud.run.v2.IdentityType identity_type = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for identityType to set. |
| Returns | |
|---|---|
| Type | Description |
WorkloadIdentityConfig.Builder |
This builder for chaining. |