Class ProviderOAuthConfig (0.24.0)

public final class ProviderOAuthConfig extends GeneratedMessageV3 implements ProviderOAuthConfigOrBuilder

ProviderOAuthConfig is the OAuth config for a provider.

Protobuf type google.cloud.developerconnect.v1.ProviderOAuthConfig

Static Fields

SCOPES_FIELD_NUMBER

public static final int SCOPES_FIELD_NUMBER
Field Value
Type Description
int

SYSTEM_PROVIDER_ID_FIELD_NUMBER

public static final int SYSTEM_PROVIDER_ID_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ProviderOAuthConfig getDefaultInstance()
Returns
Type Description
ProviderOAuthConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static ProviderOAuthConfig.Builder newBuilder()
Returns
Type Description
ProviderOAuthConfig.Builder

newBuilder(ProviderOAuthConfig prototype)

public static ProviderOAuthConfig.Builder newBuilder(ProviderOAuthConfig prototype)
Parameter
Name Description
prototype ProviderOAuthConfig
Returns
Type Description
ProviderOAuthConfig.Builder

parseDelimitedFrom(InputStream input)

public static ProviderOAuthConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ProviderOAuthConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ProviderOAuthConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProviderOAuthConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ProviderOAuthConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ProviderOAuthConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ProviderOAuthConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProviderOAuthConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ProviderOAuthConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ProviderOAuthConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ProviderOAuthConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProviderOAuthConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ProviderOAuthConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ProviderOAuthConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ProviderOAuthConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProviderOAuthConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ProviderOAuthConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ProviderOAuthConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ProviderOAuthConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProviderOAuthConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ProviderOAuthConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ProviderOAuthConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ProviderOAuthConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProviderOAuthConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ProviderOAuthConfig> parser()
Returns
Type Description
Parser<ProviderOAuthConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public ProviderOAuthConfig getDefaultInstanceForType()
Returns
Type Description
ProviderOAuthConfig

getOauthProviderIdCase()

public ProviderOAuthConfig.OauthProviderIdCase getOauthProviderIdCase()
Returns
Type Description
ProviderOAuthConfig.OauthProviderIdCase

getParserForType()

public Parser<ProviderOAuthConfig> getParserForType()
Returns
Type Description
Parser<ProviderOAuthConfig>
Overrides

getScopes(int index)

public String getScopes(int index)

Required. User selected scopes to apply to the Oauth config In the event of changing scopes, user records under AccountConnector will be deleted and users will re-auth again.

repeated string scopes = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The scopes at the given index.

getScopesBytes(int index)

public ByteString getScopesBytes(int index)

Required. User selected scopes to apply to the Oauth config In the event of changing scopes, user records under AccountConnector will be deleted and users will re-auth again.

repeated string scopes = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the scopes at the given index.

getScopesCount()

public int getScopesCount()

Required. User selected scopes to apply to the Oauth config In the event of changing scopes, user records under AccountConnector will be deleted and users will re-auth again.

repeated string scopes = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The count of scopes.

getScopesList()

public ProtocolStringList getScopesList()

Required. User selected scopes to apply to the Oauth config In the event of changing scopes, user records under AccountConnector will be deleted and users will re-auth again.

repeated string scopes = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProtocolStringList

A list containing the scopes.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSystemProviderId()

public SystemProvider getSystemProviderId()

Immutable. Developer Connect provided OAuth.

.google.cloud.developerconnect.v1.SystemProvider system_provider_id = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
SystemProvider

The systemProviderId.

getSystemProviderIdValue()

public int getSystemProviderIdValue()

Immutable. Developer Connect provided OAuth.

.google.cloud.developerconnect.v1.SystemProvider system_provider_id = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
int

The enum numeric value on the wire for systemProviderId.

hasSystemProviderId()

public boolean hasSystemProviderId()

Immutable. Developer Connect provided OAuth.

.google.cloud.developerconnect.v1.SystemProvider system_provider_id = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
boolean

Whether the systemProviderId field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ProviderOAuthConfig.Builder newBuilderForType()
Returns
Type Description
ProviderOAuthConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ProviderOAuthConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ProviderOAuthConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ProviderOAuthConfig.Builder toBuilder()
Returns
Type Description
ProviderOAuthConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException