public static final class ProviderOAuthConfig.Builder extends GeneratedMessage.Builder<ProviderOAuthConfig.Builder> implements ProviderOAuthConfigOrBuilderProviderOAuthConfig is the OAuth config for a provider.
Protobuf type google.cloud.developerconnect.v1.ProviderOAuthConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ProviderOAuthConfig.BuilderImplements
ProviderOAuthConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllScopes(Iterable<String> values)
public ProviderOAuthConfig.Builder addAllScopes(Iterable<String> values)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 |
values |
Iterable<String>The scopes to add. |
| Returns | |
|---|---|
| Type | Description |
ProviderOAuthConfig.Builder |
This builder for chaining. |
addScopes(String value)
public ProviderOAuthConfig.Builder addScopes(String value)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 |
value |
StringThe scopes to add. |
| Returns | |
|---|---|
| Type | Description |
ProviderOAuthConfig.Builder |
This builder for chaining. |
addScopesBytes(ByteString value)
public ProviderOAuthConfig.Builder addScopesBytes(ByteString value)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 |
value |
ByteStringThe bytes of the scopes to add. |
| Returns | |
|---|---|
| Type | Description |
ProviderOAuthConfig.Builder |
This builder for chaining. |
build()
public ProviderOAuthConfig build()| Returns | |
|---|---|
| Type | Description |
ProviderOAuthConfig |
|
buildPartial()
public ProviderOAuthConfig buildPartial()| Returns | |
|---|---|
| Type | Description |
ProviderOAuthConfig |
|
clear()
public ProviderOAuthConfig.Builder clear()| Returns | |
|---|---|
| Type | Description |
ProviderOAuthConfig.Builder |
|
clearOauthProviderId()
public ProviderOAuthConfig.Builder clearOauthProviderId()| Returns | |
|---|---|
| Type | Description |
ProviderOAuthConfig.Builder |
|
clearScopes()
public ProviderOAuthConfig.Builder clearScopes()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 |
ProviderOAuthConfig.Builder |
This builder for chaining. |
clearSystemProviderId()
public ProviderOAuthConfig.Builder clearSystemProviderId()Immutable. Developer Connect provided OAuth.
.google.cloud.developerconnect.v1.SystemProvider system_provider_id = 1 [(.google.api.field_behavior) = IMMUTABLE];
| Returns | |
|---|---|
| Type | Description |
ProviderOAuthConfig.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public ProviderOAuthConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ProviderOAuthConfig |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getOauthProviderIdCase()
public ProviderOAuthConfig.OauthProviderIdCase getOauthProviderIdCase()| Returns | |
|---|---|
| Type | Description |
ProviderOAuthConfig.OauthProviderIdCase |
|
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 |
intThe 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 |
intThe 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. |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ProviderOAuthConfig other)
public ProviderOAuthConfig.Builder mergeFrom(ProviderOAuthConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
ProviderOAuthConfig |
| Returns | |
|---|---|
| Type | Description |
ProviderOAuthConfig.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ProviderOAuthConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ProviderOAuthConfig.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ProviderOAuthConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ProviderOAuthConfig.Builder |
|
setScopes(int index, String value)
public ProviderOAuthConfig.Builder setScopes(int index, String value)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];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe scopes to set. |
| Returns | |
|---|---|
| Type | Description |
ProviderOAuthConfig.Builder |
This builder for chaining. |
setSystemProviderId(SystemProvider value)
public ProviderOAuthConfig.Builder setSystemProviderId(SystemProvider value)Immutable. Developer Connect provided OAuth.
.google.cloud.developerconnect.v1.SystemProvider system_provider_id = 1 [(.google.api.field_behavior) = IMMUTABLE];
| Parameter | |
|---|---|
| Name | Description |
value |
SystemProviderThe systemProviderId to set. |
| Returns | |
|---|---|
| Type | Description |
ProviderOAuthConfig.Builder |
This builder for chaining. |
setSystemProviderIdValue(int value)
public ProviderOAuthConfig.Builder setSystemProviderIdValue(int value)Immutable. Developer Connect provided OAuth.
.google.cloud.developerconnect.v1.SystemProvider system_provider_id = 1 [(.google.api.field_behavior) = IMMUTABLE];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for systemProviderId to set. |
| Returns | |
|---|---|
| Type | Description |
ProviderOAuthConfig.Builder |
This builder for chaining. |