public static final class ProviderOAuthConfig.Builder extends GeneratedMessageV3.Builder<ProviderOAuthConfig.Builder> implements ProviderOAuthConfigOrBuilder
ProviderOAuthConfig is the OAuth config for a provider.
Protobuf type google.cloud.developerconnect.v1.ProviderOAuthConfig
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.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. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ProviderOAuthConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
ProviderOAuthConfig.Builder |
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 |
String The 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 |
ByteString The 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 |
clearField(Descriptors.FieldDescriptor field)
public ProviderOAuthConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
ProviderOAuthConfig.Builder |
clearOauthProviderId()
public ProviderOAuthConfig.Builder clearOauthProviderId()
Returns | |
---|---|
Type | Description |
ProviderOAuthConfig.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public ProviderOAuthConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
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. |
clone()
public ProviderOAuthConfig.Builder clone()
Returns | |
---|---|
Type | Description |
ProviderOAuthConfig.Builder |
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 |
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. |
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 GeneratedMessageV3.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 |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ProviderOAuthConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ProviderOAuthConfig.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public ProviderOAuthConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
ProviderOAuthConfig.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ProviderOAuthConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
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 |
int The index to set the value at. |
value |
String The 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 |
SystemProvider The 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 |
int The enum numeric value on the wire for systemProviderId to set. |
Returns | |
---|---|
Type | Description |
ProviderOAuthConfig.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final ProviderOAuthConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ProviderOAuthConfig.Builder |