Package flyteidl.core
Class Security.OAuth2TokenRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Security.OAuth2TokenRequest.Builder>
-
- flyteidl.core.Security.OAuth2TokenRequest.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Security.OAuth2TokenRequestOrBuilder,Cloneable
- Enclosing class:
- Security.OAuth2TokenRequest
public static final class Security.OAuth2TokenRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Security.OAuth2TokenRequest.Builder> implements Security.OAuth2TokenRequestOrBuilder
OAuth2TokenRequest encapsulates information needed to request an OAuth2 token. FLYTE_TOKENS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if tokens are passed through environment variables. FLYTE_TOKENS_PATH_PREFIX will be passed to indicate the prefix of the path where secrets will be mounted if tokens are passed through file mounts.
Protobuf typeflyteidl.core.OAuth2TokenRequest
-
-
Field Summary
Fields Modifier and Type Field Description private intbitField0_private Security.OAuth2Clientclient_private com.google.protobuf.SingleFieldBuilderV3<Security.OAuth2Client,Security.OAuth2Client.Builder,Security.OAuth2ClientOrBuilder>clientBuilder_private ObjectidpDiscoveryEndpoint_private Objectname_private ObjecttokenEndpoint_private inttype_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Security.OAuth2TokenRequest.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Security.OAuth2TokenRequestbuild()Security.OAuth2TokenRequestbuildPartial()private voidbuildPartial0(Security.OAuth2TokenRequest result)Security.OAuth2TokenRequest.Builderclear()Security.OAuth2TokenRequest.BuilderclearClient()client references the client_id/secret to use to request the OAuth2 token.Security.OAuth2TokenRequest.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Security.OAuth2TokenRequest.BuilderclearIdpDiscoveryEndpoint()idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related information.Security.OAuth2TokenRequest.BuilderclearName()name indicates a unique id for the token request within this task token requests.Security.OAuth2TokenRequest.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Security.OAuth2TokenRequest.BuilderclearTokenEndpoint()token_endpoint references the token issuance endpoint.Security.OAuth2TokenRequest.BuilderclearType()type indicates the type of the request to make.Security.OAuth2TokenRequest.Builderclone()Security.OAuth2ClientgetClient()client references the client_id/secret to use to request the OAuth2 token.Security.OAuth2Client.BuildergetClientBuilder()client references the client_id/secret to use to request the OAuth2 token.private com.google.protobuf.SingleFieldBuilderV3<Security.OAuth2Client,Security.OAuth2Client.Builder,Security.OAuth2ClientOrBuilder>getClientFieldBuilder()client references the client_id/secret to use to request the OAuth2 token.Security.OAuth2ClientOrBuildergetClientOrBuilder()client references the client_id/secret to use to request the OAuth2 token.Security.OAuth2TokenRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetIdpDiscoveryEndpoint()idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related information.com.google.protobuf.ByteStringgetIdpDiscoveryEndpointBytes()idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related information.StringgetName()name indicates a unique id for the token request within this task token requests.com.google.protobuf.ByteStringgetNameBytes()name indicates a unique id for the token request within this task token requests.StringgetTokenEndpoint()token_endpoint references the token issuance endpoint.com.google.protobuf.ByteStringgetTokenEndpointBytes()token_endpoint references the token issuance endpoint.Security.OAuth2TokenRequest.TypegetType()type indicates the type of the request to make.intgetTypeValue()type indicates the type of the request to make.booleanhasClient()client references the client_id/secret to use to request the OAuth2 token.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Security.OAuth2TokenRequest.BuildermergeClient(Security.OAuth2Client value)client references the client_id/secret to use to request the OAuth2 token.Security.OAuth2TokenRequest.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Security.OAuth2TokenRequest.BuildermergeFrom(com.google.protobuf.Message other)Security.OAuth2TokenRequest.BuildermergeFrom(Security.OAuth2TokenRequest other)Security.OAuth2TokenRequest.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Security.OAuth2TokenRequest.BuildersetClient(Security.OAuth2Client value)client references the client_id/secret to use to request the OAuth2 token.Security.OAuth2TokenRequest.BuildersetClient(Security.OAuth2Client.Builder builderForValue)client references the client_id/secret to use to request the OAuth2 token.Security.OAuth2TokenRequest.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Security.OAuth2TokenRequest.BuildersetIdpDiscoveryEndpoint(String value)idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related information.Security.OAuth2TokenRequest.BuildersetIdpDiscoveryEndpointBytes(com.google.protobuf.ByteString value)idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related information.Security.OAuth2TokenRequest.BuildersetName(String value)name indicates a unique id for the token request within this task token requests.Security.OAuth2TokenRequest.BuildersetNameBytes(com.google.protobuf.ByteString value)name indicates a unique id for the token request within this task token requests.Security.OAuth2TokenRequest.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Security.OAuth2TokenRequest.BuildersetTokenEndpoint(String value)token_endpoint references the token issuance endpoint.Security.OAuth2TokenRequest.BuildersetTokenEndpointBytes(com.google.protobuf.ByteString value)token_endpoint references the token issuance endpoint.Security.OAuth2TokenRequest.BuildersetType(Security.OAuth2TokenRequest.Type value)type indicates the type of the request to make.Security.OAuth2TokenRequest.BuildersetTypeValue(int value)type indicates the type of the request to make.Security.OAuth2TokenRequest.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
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
-
-
-
-
Field Detail
-
bitField0_
private int bitField0_
-
name_
private Object name_
-
type_
private int type_
-
client_
private Security.OAuth2Client client_
-
clientBuilder_
private com.google.protobuf.SingleFieldBuilderV3<Security.OAuth2Client,Security.OAuth2Client.Builder,Security.OAuth2ClientOrBuilder> clientBuilder_
-
idpDiscoveryEndpoint_
private Object idpDiscoveryEndpoint_
-
tokenEndpoint_
private Object tokenEndpoint_
-
-
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<Security.OAuth2TokenRequest.Builder>
-
clear
public Security.OAuth2TokenRequest.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<Security.OAuth2TokenRequest.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<Security.OAuth2TokenRequest.Builder>
-
getDefaultInstanceForType
public Security.OAuth2TokenRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Security.OAuth2TokenRequest build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Security.OAuth2TokenRequest buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
private void buildPartial0(Security.OAuth2TokenRequest result)
-
clone
public Security.OAuth2TokenRequest.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<Security.OAuth2TokenRequest.Builder>
-
setField
public Security.OAuth2TokenRequest.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<Security.OAuth2TokenRequest.Builder>
-
clearField
public Security.OAuth2TokenRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Security.OAuth2TokenRequest.Builder>
-
clearOneof
public Security.OAuth2TokenRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Security.OAuth2TokenRequest.Builder>
-
setRepeatedField
public Security.OAuth2TokenRequest.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<Security.OAuth2TokenRequest.Builder>
-
addRepeatedField
public Security.OAuth2TokenRequest.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<Security.OAuth2TokenRequest.Builder>
-
mergeFrom
public Security.OAuth2TokenRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Security.OAuth2TokenRequest.Builder>
-
mergeFrom
public Security.OAuth2TokenRequest.Builder mergeFrom(Security.OAuth2TokenRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Security.OAuth2TokenRequest.Builder>
-
mergeFrom
public Security.OAuth2TokenRequest.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<Security.OAuth2TokenRequest.Builder>- Throws:
IOException
-
getName
public String getName()
name indicates a unique id for the token request within this task token requests. It'll be used as a suffix for environment variables and as a filename for mounting tokens as files. +required
string name = 1;- Specified by:
getNamein interfaceSecurity.OAuth2TokenRequestOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
name indicates a unique id for the token request within this task token requests. It'll be used as a suffix for environment variables and as a filename for mounting tokens as files. +required
string name = 1;- Specified by:
getNameBytesin interfaceSecurity.OAuth2TokenRequestOrBuilder- Returns:
- The bytes for name.
-
setName
public Security.OAuth2TokenRequest.Builder setName(String value)
name indicates a unique id for the token request within this task token requests. It'll be used as a suffix for environment variables and as a filename for mounting tokens as files. +required
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Security.OAuth2TokenRequest.Builder clearName()
name indicates a unique id for the token request within this task token requests. It'll be used as a suffix for environment variables and as a filename for mounting tokens as files. +required
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
public Security.OAuth2TokenRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
name indicates a unique id for the token request within this task token requests. It'll be used as a suffix for environment variables and as a filename for mounting tokens as files. +required
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getTypeValue
public int getTypeValue()
type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS. +required
.flyteidl.core.OAuth2TokenRequest.Type type = 2;- Specified by:
getTypeValuein interfaceSecurity.OAuth2TokenRequestOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
public Security.OAuth2TokenRequest.Builder setTypeValue(int value)
type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS. +required
.flyteidl.core.OAuth2TokenRequest.Type type = 2;- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
public Security.OAuth2TokenRequest.Type getType()
type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS. +required
.flyteidl.core.OAuth2TokenRequest.Type type = 2;- Specified by:
getTypein interfaceSecurity.OAuth2TokenRequestOrBuilder- Returns:
- The type.
-
setType
public Security.OAuth2TokenRequest.Builder setType(Security.OAuth2TokenRequest.Type value)
type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS. +required
.flyteidl.core.OAuth2TokenRequest.Type type = 2;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
public Security.OAuth2TokenRequest.Builder clearType()
type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS. +required
.flyteidl.core.OAuth2TokenRequest.Type type = 2;- Returns:
- This builder for chaining.
-
hasClient
public boolean hasClient()
client references the client_id/secret to use to request the OAuth2 token. +required
.flyteidl.core.OAuth2Client client = 3;- Specified by:
hasClientin interfaceSecurity.OAuth2TokenRequestOrBuilder- Returns:
- Whether the client field is set.
-
getClient
public Security.OAuth2Client getClient()
client references the client_id/secret to use to request the OAuth2 token. +required
.flyteidl.core.OAuth2Client client = 3;- Specified by:
getClientin interfaceSecurity.OAuth2TokenRequestOrBuilder- Returns:
- The client.
-
setClient
public Security.OAuth2TokenRequest.Builder setClient(Security.OAuth2Client value)
client references the client_id/secret to use to request the OAuth2 token. +required
.flyteidl.core.OAuth2Client client = 3;
-
setClient
public Security.OAuth2TokenRequest.Builder setClient(Security.OAuth2Client.Builder builderForValue)
client references the client_id/secret to use to request the OAuth2 token. +required
.flyteidl.core.OAuth2Client client = 3;
-
mergeClient
public Security.OAuth2TokenRequest.Builder mergeClient(Security.OAuth2Client value)
client references the client_id/secret to use to request the OAuth2 token. +required
.flyteidl.core.OAuth2Client client = 3;
-
clearClient
public Security.OAuth2TokenRequest.Builder clearClient()
client references the client_id/secret to use to request the OAuth2 token. +required
.flyteidl.core.OAuth2Client client = 3;
-
getClientBuilder
public Security.OAuth2Client.Builder getClientBuilder()
client references the client_id/secret to use to request the OAuth2 token. +required
.flyteidl.core.OAuth2Client client = 3;
-
getClientOrBuilder
public Security.OAuth2ClientOrBuilder getClientOrBuilder()
client references the client_id/secret to use to request the OAuth2 token. +required
.flyteidl.core.OAuth2Client client = 3;- Specified by:
getClientOrBuilderin interfaceSecurity.OAuth2TokenRequestOrBuilder
-
getClientFieldBuilder
private com.google.protobuf.SingleFieldBuilderV3<Security.OAuth2Client,Security.OAuth2Client.Builder,Security.OAuth2ClientOrBuilder> getClientFieldBuilder()
client references the client_id/secret to use to request the OAuth2 token. +required
.flyteidl.core.OAuth2Client client = 3;
-
getIdpDiscoveryEndpoint
public String getIdpDiscoveryEndpoint()
idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related information. +optional
string idp_discovery_endpoint = 4;- Specified by:
getIdpDiscoveryEndpointin interfaceSecurity.OAuth2TokenRequestOrBuilder- Returns:
- The idpDiscoveryEndpoint.
-
getIdpDiscoveryEndpointBytes
public com.google.protobuf.ByteString getIdpDiscoveryEndpointBytes()
idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related information. +optional
string idp_discovery_endpoint = 4;- Specified by:
getIdpDiscoveryEndpointBytesin interfaceSecurity.OAuth2TokenRequestOrBuilder- Returns:
- The bytes for idpDiscoveryEndpoint.
-
setIdpDiscoveryEndpoint
public Security.OAuth2TokenRequest.Builder setIdpDiscoveryEndpoint(String value)
idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related information. +optional
string idp_discovery_endpoint = 4;- Parameters:
value- The idpDiscoveryEndpoint to set.- Returns:
- This builder for chaining.
-
clearIdpDiscoveryEndpoint
public Security.OAuth2TokenRequest.Builder clearIdpDiscoveryEndpoint()
idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related information. +optional
string idp_discovery_endpoint = 4;- Returns:
- This builder for chaining.
-
setIdpDiscoveryEndpointBytes
public Security.OAuth2TokenRequest.Builder setIdpDiscoveryEndpointBytes(com.google.protobuf.ByteString value)
idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related information. +optional
string idp_discovery_endpoint = 4;- Parameters:
value- The bytes for idpDiscoveryEndpoint to set.- Returns:
- This builder for chaining.
-
getTokenEndpoint
public String getTokenEndpoint()
token_endpoint references the token issuance endpoint. If idp_discovery_endpoint is not provided, this parameter is mandatory. +optional
string token_endpoint = 5;- Specified by:
getTokenEndpointin interfaceSecurity.OAuth2TokenRequestOrBuilder- Returns:
- The tokenEndpoint.
-
getTokenEndpointBytes
public com.google.protobuf.ByteString getTokenEndpointBytes()
token_endpoint references the token issuance endpoint. If idp_discovery_endpoint is not provided, this parameter is mandatory. +optional
string token_endpoint = 5;- Specified by:
getTokenEndpointBytesin interfaceSecurity.OAuth2TokenRequestOrBuilder- Returns:
- The bytes for tokenEndpoint.
-
setTokenEndpoint
public Security.OAuth2TokenRequest.Builder setTokenEndpoint(String value)
token_endpoint references the token issuance endpoint. If idp_discovery_endpoint is not provided, this parameter is mandatory. +optional
string token_endpoint = 5;- Parameters:
value- The tokenEndpoint to set.- Returns:
- This builder for chaining.
-
clearTokenEndpoint
public Security.OAuth2TokenRequest.Builder clearTokenEndpoint()
token_endpoint references the token issuance endpoint. If idp_discovery_endpoint is not provided, this parameter is mandatory. +optional
string token_endpoint = 5;- Returns:
- This builder for chaining.
-
setTokenEndpointBytes
public Security.OAuth2TokenRequest.Builder setTokenEndpointBytes(com.google.protobuf.ByteString value)
token_endpoint references the token issuance endpoint. If idp_discovery_endpoint is not provided, this parameter is mandatory. +optional
string token_endpoint = 5;- Parameters:
value- The bytes for tokenEndpoint to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Security.OAuth2TokenRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Security.OAuth2TokenRequest.Builder>
-
mergeUnknownFields
public final Security.OAuth2TokenRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Security.OAuth2TokenRequest.Builder>
-
-