Class UserCreds.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<UserCreds.Builder>
com.google.firestore.admin.v1.UserCreds.Builder
All Implemented Interfaces:
UserCredsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
UserCreds

public static final class UserCreds.Builder extends com.google.protobuf.GeneratedMessage.Builder<UserCreds.Builder> implements UserCredsOrBuilder
 A Cloud Firestore User Creds.
 
Protobuf type google.firestore.admin.v1.UserCreds
  • 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<UserCreds.Builder>
    • clear

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

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

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

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

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

      public UserCreds.Builder mergeFrom(UserCreds other)
    • isInitialized

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

      public UserCreds.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<UserCreds.Builder>
      Throws:
      IOException
    • getUserCredsIdentityCase

      public UserCreds.UserCredsIdentityCase getUserCredsIdentityCase()
      Specified by:
      getUserCredsIdentityCase in interface UserCredsOrBuilder
    • clearUserCredsIdentity

      public UserCreds.Builder clearUserCredsIdentity()
    • getName

      public String getName()
       Identifier. The resource name of the UserCreds.
       Format:
       `projects/{project}/databases/{database}/userCreds/{user_creds}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface UserCredsOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. The resource name of the UserCreds.
       Format:
       `projects/{project}/databases/{database}/userCreds/{user_creds}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface UserCredsOrBuilder
      Returns:
      The bytes for name.
    • setName

      public UserCreds.Builder setName(String value)
       Identifier. The resource name of the UserCreds.
       Format:
       `projects/{project}/databases/{database}/userCreds/{user_creds}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public UserCreds.Builder clearName()
       Identifier. The resource name of the UserCreds.
       Format:
       `projects/{project}/databases/{database}/userCreds/{user_creds}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public UserCreds.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. The resource name of the UserCreds.
       Format:
       `projects/{project}/databases/{database}/userCreds/{user_creds}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The time the user creds were created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface UserCredsOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The time the user creds were created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface UserCredsOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public UserCreds.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time the user creds were created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public UserCreds.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time the user creds were created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public UserCreds.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time the user creds were created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public UserCreds.Builder clearCreateTime()
       Output only. The time the user creds were created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The time the user creds were created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The time the user creds were created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface UserCredsOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. The time the user creds were last updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface UserCredsOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. The time the user creds were last updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface UserCredsOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public UserCreds.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The time the user creds were last updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public UserCreds.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time the user creds were last updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public UserCreds.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The time the user creds were last updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public UserCreds.Builder clearUpdateTime()
       Output only. The time the user creds were last updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. The time the user creds were last updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The time the user creds were last updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface UserCredsOrBuilder
    • getStateValue

      public int getStateValue()
       Output only. Whether the user creds are enabled or disabled. Defaults to
       ENABLED on creation.
       
      .google.firestore.admin.v1.UserCreds.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface UserCredsOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public UserCreds.Builder setStateValue(int value)
       Output only. Whether the user creds are enabled or disabled. Defaults to
       ENABLED on creation.
       
      .google.firestore.admin.v1.UserCreds.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public UserCreds.State getState()
       Output only. Whether the user creds are enabled or disabled. Defaults to
       ENABLED on creation.
       
      .google.firestore.admin.v1.UserCreds.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface UserCredsOrBuilder
      Returns:
      The state.
    • setState

      public UserCreds.Builder setState(UserCreds.State value)
       Output only. Whether the user creds are enabled or disabled. Defaults to
       ENABLED on creation.
       
      .google.firestore.admin.v1.UserCreds.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public UserCreds.Builder clearState()
       Output only. Whether the user creds are enabled or disabled. Defaults to
       ENABLED on creation.
       
      .google.firestore.admin.v1.UserCreds.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getSecurePassword

      public String getSecurePassword()
       Output only. The plaintext server-generated password for the user creds.
       Only populated in responses for CreateUserCreds and ResetUserPassword.
       
      string secure_password = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSecurePassword in interface UserCredsOrBuilder
      Returns:
      The securePassword.
    • getSecurePasswordBytes

      public com.google.protobuf.ByteString getSecurePasswordBytes()
       Output only. The plaintext server-generated password for the user creds.
       Only populated in responses for CreateUserCreds and ResetUserPassword.
       
      string secure_password = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSecurePasswordBytes in interface UserCredsOrBuilder
      Returns:
      The bytes for securePassword.
    • setSecurePassword

      public UserCreds.Builder setSecurePassword(String value)
       Output only. The plaintext server-generated password for the user creds.
       Only populated in responses for CreateUserCreds and ResetUserPassword.
       
      string secure_password = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The securePassword to set.
      Returns:
      This builder for chaining.
    • clearSecurePassword

      public UserCreds.Builder clearSecurePassword()
       Output only. The plaintext server-generated password for the user creds.
       Only populated in responses for CreateUserCreds and ResetUserPassword.
       
      string secure_password = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setSecurePasswordBytes

      public UserCreds.Builder setSecurePasswordBytes(com.google.protobuf.ByteString value)
       Output only. The plaintext server-generated password for the user creds.
       Only populated in responses for CreateUserCreds and ResetUserPassword.
       
      string secure_password = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for securePassword to set.
      Returns:
      This builder for chaining.
    • hasResourceIdentity

      public boolean hasResourceIdentity()
       Resource Identity descriptor.
       
      .google.firestore.admin.v1.UserCreds.ResourceIdentity resource_identity = 6;
      Specified by:
      hasResourceIdentity in interface UserCredsOrBuilder
      Returns:
      Whether the resourceIdentity field is set.
    • getResourceIdentity

      public UserCreds.ResourceIdentity getResourceIdentity()
       Resource Identity descriptor.
       
      .google.firestore.admin.v1.UserCreds.ResourceIdentity resource_identity = 6;
      Specified by:
      getResourceIdentity in interface UserCredsOrBuilder
      Returns:
      The resourceIdentity.
    • setResourceIdentity

      public UserCreds.Builder setResourceIdentity(UserCreds.ResourceIdentity value)
       Resource Identity descriptor.
       
      .google.firestore.admin.v1.UserCreds.ResourceIdentity resource_identity = 6;
    • setResourceIdentity

      public UserCreds.Builder setResourceIdentity(UserCreds.ResourceIdentity.Builder builderForValue)
       Resource Identity descriptor.
       
      .google.firestore.admin.v1.UserCreds.ResourceIdentity resource_identity = 6;
    • mergeResourceIdentity

      public UserCreds.Builder mergeResourceIdentity(UserCreds.ResourceIdentity value)
       Resource Identity descriptor.
       
      .google.firestore.admin.v1.UserCreds.ResourceIdentity resource_identity = 6;
    • clearResourceIdentity

      public UserCreds.Builder clearResourceIdentity()
       Resource Identity descriptor.
       
      .google.firestore.admin.v1.UserCreds.ResourceIdentity resource_identity = 6;
    • getResourceIdentityBuilder

      public UserCreds.ResourceIdentity.Builder getResourceIdentityBuilder()
       Resource Identity descriptor.
       
      .google.firestore.admin.v1.UserCreds.ResourceIdentity resource_identity = 6;
    • getResourceIdentityOrBuilder

      public UserCreds.ResourceIdentityOrBuilder getResourceIdentityOrBuilder()
       Resource Identity descriptor.
       
      .google.firestore.admin.v1.UserCreds.ResourceIdentity resource_identity = 6;
      Specified by:
      getResourceIdentityOrBuilder in interface UserCredsOrBuilder