Class User.Builder

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

public static final class User.Builder extends com.google.protobuf.GeneratedMessage.Builder<User.Builder> implements UserOrBuilder
 User represents a user connected to the service providers through
 a AccountConnector.
 
Protobuf type google.cloud.developerconnect.v1.User
  • 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<User.Builder>
    • clear

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

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

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

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

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

      public User.Builder mergeFrom(User other)
    • isInitialized

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

      public User.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<User.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Identifier. Resource name of the user, in the format
       `projects/*/locations/*/accountConnectors/*/users/*`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface UserOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. Resource name of the user, in the format
       `projects/*/locations/*/accountConnectors/*/users/*`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface UserOrBuilder
      Returns:
      The bytes for name.
    • setName

      public User.Builder setName(String value)
       Identifier. Resource name of the user, in the format
       `projects/*/locations/*/accountConnectors/*/users/*`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public User.Builder clearName()
       Identifier. Resource name of the user, in the format
       `projects/*/locations/*/accountConnectors/*/users/*`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public User.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. Resource name of the user, in the format
       `projects/*/locations/*/accountConnectors/*/users/*`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDisplayName

      public String getDisplayName()
       Output only. Developer Connect automatically converts user identity
       to some human readable description, e.g., email address.
       
      string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDisplayName in interface UserOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Output only. Developer Connect automatically converts user identity
       to some human readable description, e.g., email address.
       
      string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDisplayNameBytes in interface UserOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public User.Builder setDisplayName(String value)
       Output only. Developer Connect automatically converts user identity
       to some human readable description, e.g., email address.
       
      string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public User.Builder clearDisplayName()
       Output only. Developer Connect automatically converts user identity
       to some human readable description, e.g., email address.
       
      string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public User.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Output only. Developer Connect automatically converts user identity
       to some human readable description, e.g., email address.
       
      string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The timestamp when the user was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface UserOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The timestamp when the user was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface UserOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public User.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the user was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public User.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The timestamp when the user was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public User.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the user was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public User.Builder clearCreateTime()
       Output only. The timestamp when the user was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The timestamp when the user was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The timestamp when the user was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface UserOrBuilder
    • hasLastTokenRequestTime

      public boolean hasLastTokenRequestTime()
       Output only. The timestamp when the token was last requested.
       
      .google.protobuf.Timestamp last_token_request_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasLastTokenRequestTime in interface UserOrBuilder
      Returns:
      Whether the lastTokenRequestTime field is set.
    • getLastTokenRequestTime

      public com.google.protobuf.Timestamp getLastTokenRequestTime()
       Output only. The timestamp when the token was last requested.
       
      .google.protobuf.Timestamp last_token_request_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLastTokenRequestTime in interface UserOrBuilder
      Returns:
      The lastTokenRequestTime.
    • setLastTokenRequestTime

      public User.Builder setLastTokenRequestTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the token was last requested.
       
      .google.protobuf.Timestamp last_token_request_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setLastTokenRequestTime

      public User.Builder setLastTokenRequestTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The timestamp when the token was last requested.
       
      .google.protobuf.Timestamp last_token_request_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeLastTokenRequestTime

      public User.Builder mergeLastTokenRequestTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the token was last requested.
       
      .google.protobuf.Timestamp last_token_request_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearLastTokenRequestTime

      public User.Builder clearLastTokenRequestTime()
       Output only. The timestamp when the token was last requested.
       
      .google.protobuf.Timestamp last_token_request_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getLastTokenRequestTimeBuilder

      public com.google.protobuf.Timestamp.Builder getLastTokenRequestTimeBuilder()
       Output only. The timestamp when the token was last requested.
       
      .google.protobuf.Timestamp last_token_request_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getLastTokenRequestTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getLastTokenRequestTimeOrBuilder()
       Output only. The timestamp when the token was last requested.
       
      .google.protobuf.Timestamp last_token_request_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLastTokenRequestTimeOrBuilder in interface UserOrBuilder