Package com.google.cloud.gkehub.v1beta1
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.v1beta1.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.v1beta1.Authority
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Authority.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Authoritybuild()AuthoritybuildPartial()Authority.Builderclear()Authority.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Authority.BuilderclearIdentityProvider()Output only.Authority.BuilderclearIssuer()Optional.Authority.BuilderclearOidcJwks()Optional.Authority.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Authority.BuilderclearWorkloadIdentityPool()Output only.Authority.Builderclone()AuthoritygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetIdentityProvider()Output only.com.google.protobuf.ByteStringgetIdentityProviderBytes()Output only.StringgetIssuer()Optional.com.google.protobuf.ByteStringgetIssuerBytes()Optional.com.google.protobuf.ByteStringgetOidcJwks()Optional.StringgetWorkloadIdentityPool()Output only.com.google.protobuf.ByteStringgetWorkloadIdentityPoolBytes()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Authority.BuildermergeFrom(Authority other)Authority.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Authority.BuildermergeFrom(com.google.protobuf.Message other)Authority.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Authority.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Authority.BuildersetIdentityProvider(String value)Output only.Authority.BuildersetIdentityProviderBytes(com.google.protobuf.ByteString value)Output only.Authority.BuildersetIssuer(String value)Optional.Authority.BuildersetIssuerBytes(com.google.protobuf.ByteString value)Optional.Authority.BuildersetOidcJwks(com.google.protobuf.ByteString value)Optional.Authority.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Authority.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Authority.BuildersetWorkloadIdentityPool(String value)Output only.Authority.BuildersetWorkloadIdentityPoolBytes(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Authority.Builder>
-
clear
public Authority.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Authority.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Authority.Builder>
-
getDefaultInstanceForType
public Authority getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Authority build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Authority buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Authority.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Authority.Builder>
-
setField
public Authority.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Authority.Builder>
-
clearField
public Authority.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Authority.Builder>
-
clearOneof
public Authority.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Authority.Builder>
-
setRepeatedField
public Authority.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Authority.Builder>
-
addRepeatedField
public Authority.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Authority.Builder>
-
mergeFrom
public Authority.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Authority.Builder>
-
mergeFrom
public Authority.Builder mergeFrom(Authority other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
getIssuerin 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:
getIssuerBytesin 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:
getWorkloadIdentityPoolin 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:
getWorkloadIdentityPoolBytesin 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:
getIdentityProviderin 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:
getIdentityProviderBytesin 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:
getOidcJwksin 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Authority.Builder>
-
mergeUnknownFields
public final Authority.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Authority.Builder>
-
-