public final class OAuthCredentials extends GeneratedMessage implements OAuthCredentialsOrBuilderRepresents OAuth credentials.
Protobuf type google.cloud.geminidataanalytics.v1beta.OAuthCredentials
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > OAuthCredentialsImplements
OAuthCredentialsOrBuilderStatic Fields
SECRET_FIELD_NUMBER
public static final int SECRET_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
TOKEN_FIELD_NUMBER
public static final int TOKEN_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static OAuthCredentials getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
OAuthCredentials |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static OAuthCredentials.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
OAuthCredentials.Builder |
|
newBuilder(OAuthCredentials prototype)
public static OAuthCredentials.Builder newBuilder(OAuthCredentials prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
OAuthCredentials |
| Returns | |
|---|---|
| Type | Description |
OAuthCredentials.Builder |
|
parseDelimitedFrom(InputStream input)
public static OAuthCredentials parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
OAuthCredentials |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static OAuthCredentials parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
OAuthCredentials |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static OAuthCredentials parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
OAuthCredentials |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static OAuthCredentials parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
OAuthCredentials |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static OAuthCredentials parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
OAuthCredentials |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static OAuthCredentials parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
OAuthCredentials |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static OAuthCredentials parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
OAuthCredentials |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static OAuthCredentials parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
OAuthCredentials |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static OAuthCredentials parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
OAuthCredentials |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static OAuthCredentials parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
OAuthCredentials |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static OAuthCredentials parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
OAuthCredentials |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static OAuthCredentials parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
OAuthCredentials |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<OAuthCredentials> parser()| Returns | |
|---|---|
| Type | Description |
Parser<OAuthCredentials> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getDefaultInstanceForType()
public OAuthCredentials getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
OAuthCredentials |
|
getKindCase()
public OAuthCredentials.KindCase getKindCase()| Returns | |
|---|---|
| Type | Description |
OAuthCredentials.KindCase |
|
getParserForType()
public Parser<OAuthCredentials> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<OAuthCredentials> |
|
getSecret()
public OAuthCredentials.SecretBased getSecret()Secret-based OAuth credentials.
.google.cloud.geminidataanalytics.v1beta.OAuthCredentials.SecretBased secret = 2;
| Returns | |
|---|---|
| Type | Description |
OAuthCredentials.SecretBased |
The secret. |
getSecretOrBuilder()
public OAuthCredentials.SecretBasedOrBuilder getSecretOrBuilder()Secret-based OAuth credentials.
.google.cloud.geminidataanalytics.v1beta.OAuthCredentials.SecretBased secret = 2;
| Returns | |
|---|---|
| Type | Description |
OAuthCredentials.SecretBasedOrBuilder |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
getToken()
public OAuthCredentials.TokenBased getToken()Token-based OAuth credentials.
.google.cloud.geminidataanalytics.v1beta.OAuthCredentials.TokenBased token = 3;
| Returns | |
|---|---|
| Type | Description |
OAuthCredentials.TokenBased |
The token. |
getTokenOrBuilder()
public OAuthCredentials.TokenBasedOrBuilder getTokenOrBuilder()Token-based OAuth credentials.
.google.cloud.geminidataanalytics.v1beta.OAuthCredentials.TokenBased token = 3;
| Returns | |
|---|---|
| Type | Description |
OAuthCredentials.TokenBasedOrBuilder |
|
hasSecret()
public boolean hasSecret()Secret-based OAuth credentials.
.google.cloud.geminidataanalytics.v1beta.OAuthCredentials.SecretBased secret = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the secret field is set. |
hasToken()
public boolean hasToken()Token-based OAuth credentials.
.google.cloud.geminidataanalytics.v1beta.OAuthCredentials.TokenBased token = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the token field is set. |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public OAuthCredentials.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
OAuthCredentials.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected OAuthCredentials.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
OAuthCredentials.Builder |
|
toBuilder()
public OAuthCredentials.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
OAuthCredentials.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|