Class OAuth2.Builder

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

public static final class OAuth2.Builder extends com.google.protobuf.GeneratedMessage.Builder<OAuth2.Builder> implements OAuth2OrBuilder
 The OAuth 2.0 Settings
 
Protobuf type google.cloud.iap.v1.OAuth2
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    The OAuth 2.0 client ID registered in the workforce identity federation OAuth 2.0 Server.
    Input only.
    Output only.
    The OAuth 2.0 client ID registered in the workforce identity federation OAuth 2.0 Server.
    com.google.protobuf.ByteString
    The OAuth 2.0 client ID registered in the workforce identity federation OAuth 2.0 Server.
    Input only.
    com.google.protobuf.ByteString
    Input only.
    Output only.
    com.google.protobuf.ByteString
    Output only.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    The OAuth 2.0 client ID registered in the workforce identity federation OAuth 2.0 Server.
    setClientIdBytes(com.google.protobuf.ByteString value)
    The OAuth 2.0 client ID registered in the workforce identity federation OAuth 2.0 Server.
    Input only.
    setClientSecretBytes(com.google.protobuf.ByteString value)
    Input only.
    Output only.
    setClientSecretSha256Bytes(com.google.protobuf.ByteString value)
    Output only.

    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, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods 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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<OAuth2.Builder>
    • clear

      public OAuth2.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<OAuth2.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<OAuth2.Builder>
    • getDefaultInstanceForType

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

      public OAuth2 build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public OAuth2.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<OAuth2.Builder>
    • mergeFrom

      public OAuth2.Builder mergeFrom(OAuth2 other)
    • isInitialized

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

      public OAuth2.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<OAuth2.Builder>
      Throws:
      IOException
    • getClientId

      public String getClientId()
       The OAuth 2.0 client ID registered in the workforce identity federation
       OAuth 2.0 Server.
       
      string client_id = 1;
      Specified by:
      getClientId in interface OAuth2OrBuilder
      Returns:
      The clientId.
    • getClientIdBytes

      public com.google.protobuf.ByteString getClientIdBytes()
       The OAuth 2.0 client ID registered in the workforce identity federation
       OAuth 2.0 Server.
       
      string client_id = 1;
      Specified by:
      getClientIdBytes in interface OAuth2OrBuilder
      Returns:
      The bytes for clientId.
    • setClientId

      public OAuth2.Builder setClientId(String value)
       The OAuth 2.0 client ID registered in the workforce identity federation
       OAuth 2.0 Server.
       
      string client_id = 1;
      Parameters:
      value - The clientId to set.
      Returns:
      This builder for chaining.
    • clearClientId

      public OAuth2.Builder clearClientId()
       The OAuth 2.0 client ID registered in the workforce identity federation
       OAuth 2.0 Server.
       
      string client_id = 1;
      Returns:
      This builder for chaining.
    • setClientIdBytes

      public OAuth2.Builder setClientIdBytes(com.google.protobuf.ByteString value)
       The OAuth 2.0 client ID registered in the workforce identity federation
       OAuth 2.0 Server.
       
      string client_id = 1;
      Parameters:
      value - The bytes for clientId to set.
      Returns:
      This builder for chaining.
    • getClientSecret

      public String getClientSecret()
       Input only. The OAuth 2.0 client secret created while registering the
       client ID.
       
      string client_secret = 2 [(.google.api.field_behavior) = INPUT_ONLY];
      Specified by:
      getClientSecret in interface OAuth2OrBuilder
      Returns:
      The clientSecret.
    • getClientSecretBytes

      public com.google.protobuf.ByteString getClientSecretBytes()
       Input only. The OAuth 2.0 client secret created while registering the
       client ID.
       
      string client_secret = 2 [(.google.api.field_behavior) = INPUT_ONLY];
      Specified by:
      getClientSecretBytes in interface OAuth2OrBuilder
      Returns:
      The bytes for clientSecret.
    • setClientSecret

      public OAuth2.Builder setClientSecret(String value)
       Input only. The OAuth 2.0 client secret created while registering the
       client ID.
       
      string client_secret = 2 [(.google.api.field_behavior) = INPUT_ONLY];
      Parameters:
      value - The clientSecret to set.
      Returns:
      This builder for chaining.
    • clearClientSecret

      public OAuth2.Builder clearClientSecret()
       Input only. The OAuth 2.0 client secret created while registering the
       client ID.
       
      string client_secret = 2 [(.google.api.field_behavior) = INPUT_ONLY];
      Returns:
      This builder for chaining.
    • setClientSecretBytes

      public OAuth2.Builder setClientSecretBytes(com.google.protobuf.ByteString value)
       Input only. The OAuth 2.0 client secret created while registering the
       client ID.
       
      string client_secret = 2 [(.google.api.field_behavior) = INPUT_ONLY];
      Parameters:
      value - The bytes for clientSecret to set.
      Returns:
      This builder for chaining.
    • getClientSecretSha256

      public String getClientSecretSha256()
       Output only. SHA256 hash value for the client secret. This field is
       returned by IAP when the settings are retrieved.
       
      string client_secret_sha256 = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getClientSecretSha256 in interface OAuth2OrBuilder
      Returns:
      The clientSecretSha256.
    • getClientSecretSha256Bytes

      public com.google.protobuf.ByteString getClientSecretSha256Bytes()
       Output only. SHA256 hash value for the client secret. This field is
       returned by IAP when the settings are retrieved.
       
      string client_secret_sha256 = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getClientSecretSha256Bytes in interface OAuth2OrBuilder
      Returns:
      The bytes for clientSecretSha256.
    • setClientSecretSha256

      public OAuth2.Builder setClientSecretSha256(String value)
       Output only. SHA256 hash value for the client secret. This field is
       returned by IAP when the settings are retrieved.
       
      string client_secret_sha256 = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The clientSecretSha256 to set.
      Returns:
      This builder for chaining.
    • clearClientSecretSha256

      public OAuth2.Builder clearClientSecretSha256()
       Output only. SHA256 hash value for the client secret. This field is
       returned by IAP when the settings are retrieved.
       
      string client_secret_sha256 = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setClientSecretSha256Bytes

      public OAuth2.Builder setClientSecretSha256Bytes(com.google.protobuf.ByteString value)
       Output only. SHA256 hash value for the client secret. This field is
       returned by IAP when the settings are retrieved.
       
      string client_secret_sha256 = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for clientSecretSha256 to set.
      Returns:
      This builder for chaining.