Class StartOAuthResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<StartOAuthResponse.Builder>
com.google.cloud.developerconnect.v1.StartOAuthResponse.Builder
- All Implemented Interfaces:
StartOAuthResponseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- StartOAuthResponse
public static final class StartOAuthResponse.Builder
extends com.google.protobuf.GeneratedMessage.Builder<StartOAuthResponse.Builder>
implements StartOAuthResponseOrBuilder
Message for responding to starting an OAuth flow.Protobuf type
google.cloud.developerconnect.v1.StartOAuthResponse-
Method Summary
Modifier and TypeMethodDescriptionaddAllScopes(Iterable<String> values) The list of scopes requested by the application.The list of scopes requested by the application.addScopesBytes(com.google.protobuf.ByteString value) The list of scopes requested by the application.build()clear()The authorization server URL to the OAuth flow of the service provider.The client ID to the OAuth App of the service provider.Please refer to https://datatracker.ietf.org/doc/html/rfc7636#section-4.1Please refer to https://datatracker.ietf.org/doc/html/rfc7636#section-4.2clearId()The list of scopes requested by the application.The ID of the system provider.The ticket to be used for post processing the callback from the service provider.The authorization server URL to the OAuth flow of the service provider.com.google.protobuf.ByteStringThe authorization server URL to the OAuth flow of the service provider.The client ID to the OAuth App of the service provider.com.google.protobuf.ByteStringThe client ID to the OAuth App of the service provider.Please refer to https://datatracker.ietf.org/doc/html/rfc7636#section-4.1com.google.protobuf.ByteStringPlease refer to https://datatracker.ietf.org/doc/html/rfc7636#section-4.1Please refer to https://datatracker.ietf.org/doc/html/rfc7636#section-4.2com.google.protobuf.ByteStringPlease refer to https://datatracker.ietf.org/doc/html/rfc7636#section-4.2static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetScopes(int index) The list of scopes requested by the application.com.google.protobuf.ByteStringgetScopesBytes(int index) The list of scopes requested by the application.intThe list of scopes requested by the application.com.google.protobuf.ProtocolStringListThe list of scopes requested by the application.The ID of the system provider.intThe ID of the system provider.The ticket to be used for post processing the callback from the service provider.com.google.protobuf.ByteStringThe ticket to be used for post processing the callback from the service provider.booleanThe ID of the system provider.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(StartOAuthResponse other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAuthUri(String value) The authorization server URL to the OAuth flow of the service provider.setAuthUriBytes(com.google.protobuf.ByteString value) The authorization server URL to the OAuth flow of the service provider.setClientId(String value) The client ID to the OAuth App of the service provider.setClientIdBytes(com.google.protobuf.ByteString value) The client ID to the OAuth App of the service provider.setCodeChallenge(String value) Please refer to https://datatracker.ietf.org/doc/html/rfc7636#section-4.1setCodeChallengeBytes(com.google.protobuf.ByteString value) Please refer to https://datatracker.ietf.org/doc/html/rfc7636#section-4.1setCodeChallengeMethod(String value) Please refer to https://datatracker.ietf.org/doc/html/rfc7636#section-4.2setCodeChallengeMethodBytes(com.google.protobuf.ByteString value) Please refer to https://datatracker.ietf.org/doc/html/rfc7636#section-4.2The list of scopes requested by the application.The ID of the system provider.setSystemProviderIdValue(int value) The ID of the system provider.The ticket to be used for post processing the callback from the service provider.setTicketBytes(com.google.protobuf.ByteString value) The ticket to be used for post processing the callback from the service provider.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<StartOAuthResponse.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<StartOAuthResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<StartOAuthResponse.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<StartOAuthResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<StartOAuthResponse.Builder>
-
mergeFrom
public StartOAuthResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<StartOAuthResponse.Builder>- Throws:
IOException
-
getIdCase
- Specified by:
getIdCasein interfaceStartOAuthResponseOrBuilder
-
clearId
-
hasSystemProviderId
public boolean hasSystemProviderId()The ID of the system provider.
.google.cloud.developerconnect.v1.SystemProvider system_provider_id = 7;- Specified by:
hasSystemProviderIdin interfaceStartOAuthResponseOrBuilder- Returns:
- Whether the systemProviderId field is set.
-
getSystemProviderIdValue
public int getSystemProviderIdValue()The ID of the system provider.
.google.cloud.developerconnect.v1.SystemProvider system_provider_id = 7;- Specified by:
getSystemProviderIdValuein interfaceStartOAuthResponseOrBuilder- Returns:
- The enum numeric value on the wire for systemProviderId.
-
setSystemProviderIdValue
The ID of the system provider.
.google.cloud.developerconnect.v1.SystemProvider system_provider_id = 7;- Parameters:
value- The enum numeric value on the wire for systemProviderId to set.- Returns:
- This builder for chaining.
-
getSystemProviderId
The ID of the system provider.
.google.cloud.developerconnect.v1.SystemProvider system_provider_id = 7;- Specified by:
getSystemProviderIdin interfaceStartOAuthResponseOrBuilder- Returns:
- The systemProviderId.
-
setSystemProviderId
The ID of the system provider.
.google.cloud.developerconnect.v1.SystemProvider system_provider_id = 7;- Parameters:
value- The systemProviderId to set.- Returns:
- This builder for chaining.
-
clearSystemProviderId
The ID of the system provider.
.google.cloud.developerconnect.v1.SystemProvider system_provider_id = 7;- Returns:
- This builder for chaining.
-
getTicket
The ticket to be used for post processing the callback from the service provider.
string ticket = 1;- Specified by:
getTicketin interfaceStartOAuthResponseOrBuilder- Returns:
- The ticket.
-
getTicketBytes
public com.google.protobuf.ByteString getTicketBytes()The ticket to be used for post processing the callback from the service provider.
string ticket = 1;- Specified by:
getTicketBytesin interfaceStartOAuthResponseOrBuilder- Returns:
- The bytes for ticket.
-
setTicket
The ticket to be used for post processing the callback from the service provider.
string ticket = 1;- Parameters:
value- The ticket to set.- Returns:
- This builder for chaining.
-
clearTicket
The ticket to be used for post processing the callback from the service provider.
string ticket = 1;- Returns:
- This builder for chaining.
-
setTicketBytes
The ticket to be used for post processing the callback from the service provider.
string ticket = 1;- Parameters:
value- The bytes for ticket to set.- Returns:
- This builder for chaining.
-
getCodeChallenge
Please refer to https://datatracker.ietf.org/doc/html/rfc7636#section-4.1
string code_challenge = 2;- Specified by:
getCodeChallengein interfaceStartOAuthResponseOrBuilder- Returns:
- The codeChallenge.
-
getCodeChallengeBytes
public com.google.protobuf.ByteString getCodeChallengeBytes()Please refer to https://datatracker.ietf.org/doc/html/rfc7636#section-4.1
string code_challenge = 2;- Specified by:
getCodeChallengeBytesin interfaceStartOAuthResponseOrBuilder- Returns:
- The bytes for codeChallenge.
-
setCodeChallenge
Please refer to https://datatracker.ietf.org/doc/html/rfc7636#section-4.1
string code_challenge = 2;- Parameters:
value- The codeChallenge to set.- Returns:
- This builder for chaining.
-
clearCodeChallenge
Please refer to https://datatracker.ietf.org/doc/html/rfc7636#section-4.1
string code_challenge = 2;- Returns:
- This builder for chaining.
-
setCodeChallengeBytes
Please refer to https://datatracker.ietf.org/doc/html/rfc7636#section-4.1
string code_challenge = 2;- Parameters:
value- The bytes for codeChallenge to set.- Returns:
- This builder for chaining.
-
getCodeChallengeMethod
Please refer to https://datatracker.ietf.org/doc/html/rfc7636#section-4.2
string code_challenge_method = 3;- Specified by:
getCodeChallengeMethodin interfaceStartOAuthResponseOrBuilder- Returns:
- The codeChallengeMethod.
-
getCodeChallengeMethodBytes
public com.google.protobuf.ByteString getCodeChallengeMethodBytes()Please refer to https://datatracker.ietf.org/doc/html/rfc7636#section-4.2
string code_challenge_method = 3;- Specified by:
getCodeChallengeMethodBytesin interfaceStartOAuthResponseOrBuilder- Returns:
- The bytes for codeChallengeMethod.
-
setCodeChallengeMethod
Please refer to https://datatracker.ietf.org/doc/html/rfc7636#section-4.2
string code_challenge_method = 3;- Parameters:
value- The codeChallengeMethod to set.- Returns:
- This builder for chaining.
-
clearCodeChallengeMethod
Please refer to https://datatracker.ietf.org/doc/html/rfc7636#section-4.2
string code_challenge_method = 3;- Returns:
- This builder for chaining.
-
setCodeChallengeMethodBytes
Please refer to https://datatracker.ietf.org/doc/html/rfc7636#section-4.2
string code_challenge_method = 3;- Parameters:
value- The bytes for codeChallengeMethod to set.- Returns:
- This builder for chaining.
-
getClientId
The client ID to the OAuth App of the service provider.
string client_id = 4;- Specified by:
getClientIdin interfaceStartOAuthResponseOrBuilder- Returns:
- The clientId.
-
getClientIdBytes
public com.google.protobuf.ByteString getClientIdBytes()The client ID to the OAuth App of the service provider.
string client_id = 4;- Specified by:
getClientIdBytesin interfaceStartOAuthResponseOrBuilder- Returns:
- The bytes for clientId.
-
setClientId
The client ID to the OAuth App of the service provider.
string client_id = 4;- Parameters:
value- The clientId to set.- Returns:
- This builder for chaining.
-
clearClientId
The client ID to the OAuth App of the service provider.
string client_id = 4;- Returns:
- This builder for chaining.
-
setClientIdBytes
The client ID to the OAuth App of the service provider.
string client_id = 4;- Parameters:
value- The bytes for clientId to set.- Returns:
- This builder for chaining.
-
getScopesList
public com.google.protobuf.ProtocolStringList getScopesList()The list of scopes requested by the application.
repeated string scopes = 5;- Specified by:
getScopesListin interfaceStartOAuthResponseOrBuilder- Returns:
- A list containing the scopes.
-
getScopesCount
public int getScopesCount()The list of scopes requested by the application.
repeated string scopes = 5;- Specified by:
getScopesCountin interfaceStartOAuthResponseOrBuilder- Returns:
- The count of scopes.
-
getScopes
The list of scopes requested by the application.
repeated string scopes = 5;- Specified by:
getScopesin interfaceStartOAuthResponseOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The scopes at the given index.
-
getScopesBytes
public com.google.protobuf.ByteString getScopesBytes(int index) The list of scopes requested by the application.
repeated string scopes = 5;- Specified by:
getScopesBytesin interfaceStartOAuthResponseOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the scopes at the given index.
-
setScopes
The list of scopes requested by the application.
repeated string scopes = 5;- Parameters:
index- The index to set the value at.value- The scopes to set.- Returns:
- This builder for chaining.
-
addScopes
The list of scopes requested by the application.
repeated string scopes = 5;- Parameters:
value- The scopes to add.- Returns:
- This builder for chaining.
-
addAllScopes
The list of scopes requested by the application.
repeated string scopes = 5;- Parameters:
values- The scopes to add.- Returns:
- This builder for chaining.
-
clearScopes
The list of scopes requested by the application.
repeated string scopes = 5;- Returns:
- This builder for chaining.
-
addScopesBytes
The list of scopes requested by the application.
repeated string scopes = 5;- Parameters:
value- The bytes of the scopes to add.- Returns:
- This builder for chaining.
-
getAuthUri
The authorization server URL to the OAuth flow of the service provider.
string auth_uri = 6;- Specified by:
getAuthUriin interfaceStartOAuthResponseOrBuilder- Returns:
- The authUri.
-
getAuthUriBytes
public com.google.protobuf.ByteString getAuthUriBytes()The authorization server URL to the OAuth flow of the service provider.
string auth_uri = 6;- Specified by:
getAuthUriBytesin interfaceStartOAuthResponseOrBuilder- Returns:
- The bytes for authUri.
-
setAuthUri
The authorization server URL to the OAuth flow of the service provider.
string auth_uri = 6;- Parameters:
value- The authUri to set.- Returns:
- This builder for chaining.
-
clearAuthUri
The authorization server URL to the OAuth flow of the service provider.
string auth_uri = 6;- Returns:
- This builder for chaining.
-
setAuthUriBytes
The authorization server URL to the OAuth flow of the service provider.
string auth_uri = 6;- Parameters:
value- The bytes for authUri to set.- Returns:
- This builder for chaining.
-