public static enum DataSource.AuthorizationType extends Enum<DataSource.AuthorizationType> implements com.google.protobuf.ProtocolMessageEnum
The type of authorization needed for this data source.Protobuf enum
google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType| Enum Constant and Description |
|---|
AUTHORIZATION_CODE
Use OAuth 2 authorization codes that can be exchanged
for a refresh token on the backend.
|
AUTHORIZATION_TYPE_UNSPECIFIED
Type unspecified.
|
FIRST_PARTY_OAUTH
Use First Party OAuth.
|
GOOGLE_PLUS_AUTHORIZATION_CODE
Return an authorization code for a given Google+ page that can then be
exchanged for a refresh token on the backend.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
AUTHORIZATION_CODE_VALUE
Use OAuth 2 authorization codes that can be exchanged
for a refresh token on the backend.
|
static int |
AUTHORIZATION_TYPE_UNSPECIFIED_VALUE
Type unspecified.
|
static int |
FIRST_PARTY_OAUTH_VALUE
Use First Party OAuth.
|
static int |
GOOGLE_PLUS_AUTHORIZATION_CODE_VALUE
Return an authorization code for a given Google+ page that can then be
exchanged for a refresh token on the backend.
|
| Modifier and Type | Method and Description |
|---|---|
static DataSource.AuthorizationType |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<DataSource.AuthorizationType> |
internalGetValueMap() |
static DataSource.AuthorizationType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static DataSource.AuthorizationType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static DataSource.AuthorizationType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DataSource.AuthorizationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DataSource.AuthorizationType AUTHORIZATION_TYPE_UNSPECIFIED
Type unspecified.
AUTHORIZATION_TYPE_UNSPECIFIED = 0;public static final DataSource.AuthorizationType AUTHORIZATION_CODE
Use OAuth 2 authorization codes that can be exchanged for a refresh token on the backend.
AUTHORIZATION_CODE = 1;public static final DataSource.AuthorizationType GOOGLE_PLUS_AUTHORIZATION_CODE
Return an authorization code for a given Google+ page that can then be exchanged for a refresh token on the backend.
GOOGLE_PLUS_AUTHORIZATION_CODE = 2;public static final DataSource.AuthorizationType FIRST_PARTY_OAUTH
Use First Party OAuth.
FIRST_PARTY_OAUTH = 3;public static final DataSource.AuthorizationType UNRECOGNIZED
public static final int AUTHORIZATION_TYPE_UNSPECIFIED_VALUE
Type unspecified.
AUTHORIZATION_TYPE_UNSPECIFIED = 0;public static final int AUTHORIZATION_CODE_VALUE
Use OAuth 2 authorization codes that can be exchanged for a refresh token on the backend.
AUTHORIZATION_CODE = 1;public static final int GOOGLE_PLUS_AUTHORIZATION_CODE_VALUE
Return an authorization code for a given Google+ page that can then be exchanged for a refresh token on the backend.
GOOGLE_PLUS_AUTHORIZATION_CODE = 2;public static final int FIRST_PARTY_OAUTH_VALUE
Use First Party OAuth.
FIRST_PARTY_OAUTH = 3;public static DataSource.AuthorizationType[] values()
for (DataSource.AuthorizationType c : DataSource.AuthorizationType.values()) System.out.println(c);
public static DataSource.AuthorizationType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static DataSource.AuthorizationType valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static DataSource.AuthorizationType forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<DataSource.AuthorizationType> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static DataSource.AuthorizationType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.