Package com.google.cloud.gkehub.v1
Class Authority.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Authority.Builder>
-
- com.google.cloud.gkehub.v1.Authority.Builder
-
- All Implemented Interfaces:
AuthorityOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- Authority
public static final class Authority.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Authority.Builder> implements AuthorityOrBuilder
Authority encodes how Google will recognize identities from this Membership. See the workload identity documentation for more details: https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
Protobuf typegoogle.cloud.gkehub.v1.Authority
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Authority.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Authority
build()
Authority
buildPartial()
Authority.Builder
clear()
Authority.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Authority.Builder
clearIdentityProvider()
Output only.Authority.Builder
clearIssuer()
Optional.Authority.Builder
clearOidcJwks()
Optional.Authority.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Authority.Builder
clearWorkloadIdentityPool()
Output only.Authority.Builder
clone()
Authority
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getIdentityProvider()
Output only.com.google.protobuf.ByteString
getIdentityProviderBytes()
Output only.String
getIssuer()
Optional.com.google.protobuf.ByteString
getIssuerBytes()
Optional.com.google.protobuf.ByteString
getOidcJwks()
Optional.String
getWorkloadIdentityPool()
Output only.com.google.protobuf.ByteString
getWorkloadIdentityPoolBytes()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Authority.Builder
mergeFrom(Authority other)
Authority.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Authority.Builder
mergeFrom(com.google.protobuf.Message other)
Authority.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Authority.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Authority.Builder
setIdentityProvider(String value)
Output only.Authority.Builder
setIdentityProviderBytes(com.google.protobuf.ByteString value)
Output only.Authority.Builder
setIssuer(String value)
Optional.Authority.Builder
setIssuerBytes(com.google.protobuf.ByteString value)
Optional.Authority.Builder
setOidcJwks(com.google.protobuf.ByteString value)
Optional.Authority.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Authority.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Authority.Builder
setWorkloadIdentityPool(String value)
Output only.Authority.Builder
setWorkloadIdentityPoolBytes(com.google.protobuf.ByteString value)
Output only.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Authority.Builder>
-
clear
public Authority.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Authority.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Authority.Builder>
-
getDefaultInstanceForType
public Authority getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Authority build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Authority buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Authority.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Authority.Builder>
-
setField
public Authority.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Authority.Builder>
-
clearField
public Authority.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Authority.Builder>
-
clearOneof
public Authority.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Authority.Builder>
-
setRepeatedField
public Authority.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Authority.Builder>
-
addRepeatedField
public Authority.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Authority.Builder>
-
mergeFrom
public Authority.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Authority.Builder>
-
mergeFrom
public Authority.Builder mergeFrom(Authority other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Authority.Builder>
-
mergeFrom
public Authority.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Authority.Builder>
- Throws:
IOException
-
getIssuer
public String getIssuer()
Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and be a valid URL with length <2000 characters. If set, then Google will allow valid OIDC tokens from this issuer to authenticate within the workload_identity_pool. OIDC discovery will be performed on this URI to validate tokens from the issuer. Clearing `issuer` disables Workload Identity. `issuer` cannot be directly modified; it must be cleared (and Workload Identity disabled) before using a new issuer (and re-enabling Workload Identity).
string issuer = 1 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getIssuer
in interfaceAuthorityOrBuilder
- Returns:
- The issuer.
-
getIssuerBytes
public com.google.protobuf.ByteString getIssuerBytes()
Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and be a valid URL with length <2000 characters. If set, then Google will allow valid OIDC tokens from this issuer to authenticate within the workload_identity_pool. OIDC discovery will be performed on this URI to validate tokens from the issuer. Clearing `issuer` disables Workload Identity. `issuer` cannot be directly modified; it must be cleared (and Workload Identity disabled) before using a new issuer (and re-enabling Workload Identity).
string issuer = 1 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getIssuerBytes
in interfaceAuthorityOrBuilder
- Returns:
- The bytes for issuer.
-
setIssuer
public Authority.Builder setIssuer(String value)
Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and be a valid URL with length <2000 characters. If set, then Google will allow valid OIDC tokens from this issuer to authenticate within the workload_identity_pool. OIDC discovery will be performed on this URI to validate tokens from the issuer. Clearing `issuer` disables Workload Identity. `issuer` cannot be directly modified; it must be cleared (and Workload Identity disabled) before using a new issuer (and re-enabling Workload Identity).
string issuer = 1 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The issuer to set.- Returns:
- This builder for chaining.
-
clearIssuer
public Authority.Builder clearIssuer()
Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and be a valid URL with length <2000 characters. If set, then Google will allow valid OIDC tokens from this issuer to authenticate within the workload_identity_pool. OIDC discovery will be performed on this URI to validate tokens from the issuer. Clearing `issuer` disables Workload Identity. `issuer` cannot be directly modified; it must be cleared (and Workload Identity disabled) before using a new issuer (and re-enabling Workload Identity).
string issuer = 1 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- This builder for chaining.
-
setIssuerBytes
public Authority.Builder setIssuerBytes(com.google.protobuf.ByteString value)
Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and be a valid URL with length <2000 characters. If set, then Google will allow valid OIDC tokens from this issuer to authenticate within the workload_identity_pool. OIDC discovery will be performed on this URI to validate tokens from the issuer. Clearing `issuer` disables Workload Identity. `issuer` cannot be directly modified; it must be cleared (and Workload Identity disabled) before using a new issuer (and re-enabling Workload Identity).
string issuer = 1 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The bytes for issuer to set.- Returns:
- This builder for chaining.
-
getWorkloadIdentityPool
public String getWorkloadIdentityPool()
Output only. The name of the workload identity pool in which `issuer` will be recognized. There is a single Workload Identity Pool per Hub that is shared between all Memberships that belong to that Hub. For a Hub hosted in {PROJECT_ID}, the workload pool format is `{PROJECT_ID}.hub.id.goog`, although this is subject to change in newer versions of this API.
string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getWorkloadIdentityPool
in interfaceAuthorityOrBuilder
- Returns:
- The workloadIdentityPool.
-
getWorkloadIdentityPoolBytes
public com.google.protobuf.ByteString getWorkloadIdentityPoolBytes()
Output only. The name of the workload identity pool in which `issuer` will be recognized. There is a single Workload Identity Pool per Hub that is shared between all Memberships that belong to that Hub. For a Hub hosted in {PROJECT_ID}, the workload pool format is `{PROJECT_ID}.hub.id.goog`, although this is subject to change in newer versions of this API.
string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getWorkloadIdentityPoolBytes
in interfaceAuthorityOrBuilder
- Returns:
- The bytes for workloadIdentityPool.
-
setWorkloadIdentityPool
public Authority.Builder setWorkloadIdentityPool(String value)
Output only. The name of the workload identity pool in which `issuer` will be recognized. There is a single Workload Identity Pool per Hub that is shared between all Memberships that belong to that Hub. For a Hub hosted in {PROJECT_ID}, the workload pool format is `{PROJECT_ID}.hub.id.goog`, although this is subject to change in newer versions of this API.
string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The workloadIdentityPool to set.- Returns:
- This builder for chaining.
-
clearWorkloadIdentityPool
public Authority.Builder clearWorkloadIdentityPool()
Output only. The name of the workload identity pool in which `issuer` will be recognized. There is a single Workload Identity Pool per Hub that is shared between all Memberships that belong to that Hub. For a Hub hosted in {PROJECT_ID}, the workload pool format is `{PROJECT_ID}.hub.id.goog`, although this is subject to change in newer versions of this API.
string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
setWorkloadIdentityPoolBytes
public Authority.Builder setWorkloadIdentityPoolBytes(com.google.protobuf.ByteString value)
Output only. The name of the workload identity pool in which `issuer` will be recognized. There is a single Workload Identity Pool per Hub that is shared between all Memberships that belong to that Hub. For a Hub hosted in {PROJECT_ID}, the workload pool format is `{PROJECT_ID}.hub.id.goog`, although this is subject to change in newer versions of this API.
string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The bytes for workloadIdentityPool to set.- Returns:
- This builder for chaining.
-
getIdentityProvider
public String getIdentityProvider()
Output only. An identity provider that reflects the `issuer` in the workload identity pool.
string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getIdentityProvider
in interfaceAuthorityOrBuilder
- Returns:
- The identityProvider.
-
getIdentityProviderBytes
public com.google.protobuf.ByteString getIdentityProviderBytes()
Output only. An identity provider that reflects the `issuer` in the workload identity pool.
string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getIdentityProviderBytes
in interfaceAuthorityOrBuilder
- Returns:
- The bytes for identityProvider.
-
setIdentityProvider
public Authority.Builder setIdentityProvider(String value)
Output only. An identity provider that reflects the `issuer` in the workload identity pool.
string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The identityProvider to set.- Returns:
- This builder for chaining.
-
clearIdentityProvider
public Authority.Builder clearIdentityProvider()
Output only. An identity provider that reflects the `issuer` in the workload identity pool.
string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
setIdentityProviderBytes
public Authority.Builder setIdentityProviderBytes(com.google.protobuf.ByteString value)
Output only. An identity provider that reflects the `issuer` in the workload identity pool.
string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The bytes for identityProvider to set.- Returns:
- This builder for chaining.
-
getOidcJwks
public com.google.protobuf.ByteString getOidcJwks()
Optional. OIDC verification keys for this Membership in JWKS format (RFC 7517). When this field is set, OIDC discovery will NOT be performed on `issuer`, and instead OIDC tokens will be validated using this field.
bytes oidc_jwks = 4 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getOidcJwks
in interfaceAuthorityOrBuilder
- Returns:
- The oidcJwks.
-
setOidcJwks
public Authority.Builder setOidcJwks(com.google.protobuf.ByteString value)
Optional. OIDC verification keys for this Membership in JWKS format (RFC 7517). When this field is set, OIDC discovery will NOT be performed on `issuer`, and instead OIDC tokens will be validated using this field.
bytes oidc_jwks = 4 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The oidcJwks to set.- Returns:
- This builder for chaining.
-
clearOidcJwks
public Authority.Builder clearOidcJwks()
Optional. OIDC verification keys for this Membership in JWKS format (RFC 7517). When this field is set, OIDC discovery will NOT be performed on `issuer`, and instead OIDC tokens will be validated using this field.
bytes oidc_jwks = 4 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- This builder for chaining.
-
setUnknownFields
public final Authority.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Authority.Builder>
-
mergeUnknownFields
public final Authority.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Authority.Builder>
-
-