Package flyteidl.core
Class Security.OAuth2TokenRequest
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- flyteidl.core.Security.OAuth2TokenRequest
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Security.OAuth2TokenRequestOrBuilder,Serializable
- Enclosing class:
- Security
public static final class Security.OAuth2TokenRequest extends com.google.protobuf.GeneratedMessageV3 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- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSecurity.OAuth2TokenRequest.BuilderOAuth2TokenRequest encapsulates information needed to request an OAuth2 token.static classSecurity.OAuth2TokenRequest.TypeType of the token requested.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description private Security.OAuth2Clientclient_static intCLIENT_FIELD_NUMBERprivate static Security.OAuth2TokenRequestDEFAULT_INSTANCEstatic intIDP_DISCOVERY_ENDPOINT_FIELD_NUMBERprivate ObjectidpDiscoveryEndpoint_private bytememoizedIsInitializedprivate Objectname_static intNAME_FIELD_NUMBERprivate static com.google.protobuf.Parser<Security.OAuth2TokenRequest>PARSERprivate static longserialVersionUIDstatic intTOKEN_ENDPOINT_FIELD_NUMBERprivate ObjecttokenEndpoint_private inttype_static intTYPE_FIELD_NUMBER
-
Constructor Summary
Constructors Modifier Constructor Description privateOAuth2TokenRequest()privateOAuth2TokenRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Security.OAuth2ClientgetClient()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.static Security.OAuth2TokenRequestgetDefaultInstance()Security.OAuth2TokenRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()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.com.google.protobuf.Parser<Security.OAuth2TokenRequest>getParserForType()intgetSerializedSize()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.com.google.protobuf.UnknownFieldSetgetUnknownFields()booleanhasClient()client references the client_id/secret to use to request the OAuth2 token.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Security.OAuth2TokenRequest.BuildernewBuilder()static Security.OAuth2TokenRequest.BuildernewBuilder(Security.OAuth2TokenRequest prototype)Security.OAuth2TokenRequest.BuildernewBuilderForType()protected Security.OAuth2TokenRequest.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Security.OAuth2TokenRequestparseDelimitedFrom(InputStream input)static Security.OAuth2TokenRequestparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Security.OAuth2TokenRequestparseFrom(byte[] data)static Security.OAuth2TokenRequestparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Security.OAuth2TokenRequestparseFrom(com.google.protobuf.ByteString data)static Security.OAuth2TokenRequestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Security.OAuth2TokenRequestparseFrom(com.google.protobuf.CodedInputStream input)static Security.OAuth2TokenRequestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Security.OAuth2TokenRequestparseFrom(InputStream input)static Security.OAuth2TokenRequestparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Security.OAuth2TokenRequestparseFrom(ByteBuffer data)static Security.OAuth2TokenRequestparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Security.OAuth2TokenRequest>parser()Security.OAuth2TokenRequest.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
name_
private volatile Object name_
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
type_
private int type_
-
CLIENT_FIELD_NUMBER
public static final int CLIENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
client_
private Security.OAuth2Client client_
-
IDP_DISCOVERY_ENDPOINT_FIELD_NUMBER
public static final int IDP_DISCOVERY_ENDPOINT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
idpDiscoveryEndpoint_
private volatile Object idpDiscoveryEndpoint_
-
TOKEN_ENDPOINT_FIELD_NUMBER
public static final int TOKEN_ENDPOINT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
tokenEndpoint_
private volatile Object tokenEndpoint_
-
memoizedIsInitialized
private byte memoizedIsInitialized
-
DEFAULT_INSTANCE
private static final Security.OAuth2TokenRequest DEFAULT_INSTANCE
-
PARSER
private static final com.google.protobuf.Parser<Security.OAuth2TokenRequest> PARSER
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
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
-
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.
-
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.
-
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.
-
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.
-
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
-
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.
-
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.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Security.OAuth2TokenRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Security.OAuth2TokenRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Security.OAuth2TokenRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Security.OAuth2TokenRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Security.OAuth2TokenRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Security.OAuth2TokenRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Security.OAuth2TokenRequest parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Security.OAuth2TokenRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Security.OAuth2TokenRequest parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Security.OAuth2TokenRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Security.OAuth2TokenRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Security.OAuth2TokenRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Security.OAuth2TokenRequest.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Security.OAuth2TokenRequest.Builder newBuilder()
-
newBuilder
public static Security.OAuth2TokenRequest.Builder newBuilder(Security.OAuth2TokenRequest prototype)
-
toBuilder
public Security.OAuth2TokenRequest.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Security.OAuth2TokenRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Security.OAuth2TokenRequest getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Security.OAuth2TokenRequest> parser()
-
getParserForType
public com.google.protobuf.Parser<Security.OAuth2TokenRequest> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Security.OAuth2TokenRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-