Class FinishOAuthRequest.GoogleOAuthParams.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<FinishOAuthRequest.GoogleOAuthParams.Builder>
com.google.cloud.developerconnect.v1.FinishOAuthRequest.GoogleOAuthParams.Builder
All Implemented Interfaces:
FinishOAuthRequest.GoogleOAuthParamsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
FinishOAuthRequest.GoogleOAuthParams

public static final class FinishOAuthRequest.GoogleOAuthParams.Builder extends com.google.protobuf.GeneratedMessage.Builder<FinishOAuthRequest.GoogleOAuthParams.Builder> implements FinishOAuthRequest.GoogleOAuthParamsOrBuilder
 The params returned by Google OAuth flow redirects.
 
Protobuf type google.cloud.developerconnect.v1.FinishOAuthRequest.GoogleOAuthParams
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<FinishOAuthRequest.GoogleOAuthParams.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<FinishOAuthRequest.GoogleOAuthParams.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<FinishOAuthRequest.GoogleOAuthParams.Builder>
    • getDefaultInstanceForType

      public FinishOAuthRequest.GoogleOAuthParams getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public FinishOAuthRequest.GoogleOAuthParams buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public FinishOAuthRequest.GoogleOAuthParams.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<FinishOAuthRequest.GoogleOAuthParams.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<FinishOAuthRequest.GoogleOAuthParams.Builder>
    • mergeFrom

      public FinishOAuthRequest.GoogleOAuthParams.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<FinishOAuthRequest.GoogleOAuthParams.Builder>
      Throws:
      IOException
    • getScopesList

      public com.google.protobuf.ProtocolStringList getScopesList()
       Required. The scopes returned by Google OAuth flow.
       
      repeated string scopes = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getScopesList in interface FinishOAuthRequest.GoogleOAuthParamsOrBuilder
      Returns:
      A list containing the scopes.
    • getScopesCount

      public int getScopesCount()
       Required. The scopes returned by Google OAuth flow.
       
      repeated string scopes = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getScopesCount in interface FinishOAuthRequest.GoogleOAuthParamsOrBuilder
      Returns:
      The count of scopes.
    • getScopes

      public String getScopes(int index)
       Required. The scopes returned by Google OAuth flow.
       
      repeated string scopes = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getScopes in interface FinishOAuthRequest.GoogleOAuthParamsOrBuilder
      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)
       Required. The scopes returned by Google OAuth flow.
       
      repeated string scopes = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getScopesBytes in interface FinishOAuthRequest.GoogleOAuthParamsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the scopes at the given index.
    • setScopes

      public FinishOAuthRequest.GoogleOAuthParams.Builder setScopes(int index, String value)
       Required. The scopes returned by Google OAuth flow.
       
      repeated string scopes = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      index - The index to set the value at.
      value - The scopes to set.
      Returns:
      This builder for chaining.
    • addScopes

       Required. The scopes returned by Google OAuth flow.
       
      repeated string scopes = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The scopes to add.
      Returns:
      This builder for chaining.
    • addAllScopes

       Required. The scopes returned by Google OAuth flow.
       
      repeated string scopes = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      values - The scopes to add.
      Returns:
      This builder for chaining.
    • clearScopes

       Required. The scopes returned by Google OAuth flow.
       
      repeated string scopes = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • addScopesBytes

      public FinishOAuthRequest.GoogleOAuthParams.Builder addScopesBytes(com.google.protobuf.ByteString value)
       Required. The scopes returned by Google OAuth flow.
       
      repeated string scopes = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes of the scopes to add.
      Returns:
      This builder for chaining.
    • getVersionInfo

      public String getVersionInfo()
       Optional. The version info returned by Google OAuth flow.
       
      string version_info = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getVersionInfo in interface FinishOAuthRequest.GoogleOAuthParamsOrBuilder
      Returns:
      The versionInfo.
    • getVersionInfoBytes

      public com.google.protobuf.ByteString getVersionInfoBytes()
       Optional. The version info returned by Google OAuth flow.
       
      string version_info = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getVersionInfoBytes in interface FinishOAuthRequest.GoogleOAuthParamsOrBuilder
      Returns:
      The bytes for versionInfo.
    • setVersionInfo

       Optional. The version info returned by Google OAuth flow.
       
      string version_info = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The versionInfo to set.
      Returns:
      This builder for chaining.
    • clearVersionInfo

       Optional. The version info returned by Google OAuth flow.
       
      string version_info = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setVersionInfoBytes

      public FinishOAuthRequest.GoogleOAuthParams.Builder setVersionInfoBytes(com.google.protobuf.ByteString value)
       Optional. The version info returned by Google OAuth flow.
       
      string version_info = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for versionInfo to set.
      Returns:
      This builder for chaining.
    • getTicket

      public String getTicket()
       Required. The ticket to be used for post processing the callback from
       Google OAuth flow.
       
      string ticket = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTicket in interface FinishOAuthRequest.GoogleOAuthParamsOrBuilder
      Returns:
      The ticket.
    • getTicketBytes

      public com.google.protobuf.ByteString getTicketBytes()
       Required. The ticket to be used for post processing the callback from
       Google OAuth flow.
       
      string ticket = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTicketBytes in interface FinishOAuthRequest.GoogleOAuthParamsOrBuilder
      Returns:
      The bytes for ticket.
    • setTicket

       Required. The ticket to be used for post processing the callback from
       Google OAuth flow.
       
      string ticket = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The ticket to set.
      Returns:
      This builder for chaining.
    • clearTicket

       Required. The ticket to be used for post processing the callback from
       Google OAuth flow.
       
      string ticket = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setTicketBytes

      public FinishOAuthRequest.GoogleOAuthParams.Builder setTicketBytes(com.google.protobuf.ByteString value)
       Required. The ticket to be used for post processing the callback from
       Google OAuth flow.
       
      string ticket = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for ticket to set.
      Returns:
      This builder for chaining.