Class UserManagementServiceOuterClass.User.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<UserManagementServiceOuterClass.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.GeneratedMessageV3.Builder<UserManagementServiceOuterClass.User.Builder>
      • getDefaultInstanceForType

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

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

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

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

        public UserManagementServiceOuterClass.User.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                               throws java.io.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<UserManagementServiceOuterClass.User.Builder>
        Throws:
        java.io.IOException
      • getId

        public java.lang.String getId()
         The user identifier, which must be a non-empty string of at most 128
         characters that are either alphanumeric ASCII characters or one of the symbols "@^$.!`-#+'~_|:".
         Required
         
        string id = 1 [json_name = "id"];
        Specified by:
        getId in interface UserManagementServiceOuterClass.UserOrBuilder
        Returns:
        The id.
      • getIdBytes

        public com.google.protobuf.ByteString getIdBytes()
         The user identifier, which must be a non-empty string of at most 128
         characters that are either alphanumeric ASCII characters or one of the symbols "@^$.!`-#+'~_|:".
         Required
         
        string id = 1 [json_name = "id"];
        Specified by:
        getIdBytes in interface UserManagementServiceOuterClass.UserOrBuilder
        Returns:
        The bytes for id.
      • setId

        public UserManagementServiceOuterClass.User.Builder setId​(java.lang.String value)
         The user identifier, which must be a non-empty string of at most 128
         characters that are either alphanumeric ASCII characters or one of the symbols "@^$.!`-#+'~_|:".
         Required
         
        string id = 1 [json_name = "id"];
        Parameters:
        value - The id to set.
        Returns:
        This builder for chaining.
      • clearId

        public UserManagementServiceOuterClass.User.Builder clearId()
         The user identifier, which must be a non-empty string of at most 128
         characters that are either alphanumeric ASCII characters or one of the symbols "@^$.!`-#+'~_|:".
         Required
         
        string id = 1 [json_name = "id"];
        Returns:
        This builder for chaining.
      • setIdBytes

        public UserManagementServiceOuterClass.User.Builder setIdBytes​(com.google.protobuf.ByteString value)
         The user identifier, which must be a non-empty string of at most 128
         characters that are either alphanumeric ASCII characters or one of the symbols "@^$.!`-#+'~_|:".
         Required
         
        string id = 1 [json_name = "id"];
        Parameters:
        value - The bytes for id to set.
        Returns:
        This builder for chaining.
      • getPrimaryParty

        public java.lang.String getPrimaryParty()
         The primary party as which this user reads and acts by default on the ledger
         *provided* it has the corresponding ``CanReadAs(primary_party)`` or
         ``CanActAs(primary_party)`` rights.
         Ledger API clients SHOULD set this field to a non-empty value for all users to
         enable the users to act on the ledger using their own Daml party.
         Users for participant administrators MAY have an associated primary party.
         Optional,
         Modifiable
         
        string primary_party = 2 [json_name = "primaryParty"];
        Specified by:
        getPrimaryParty in interface UserManagementServiceOuterClass.UserOrBuilder
        Returns:
        The primaryParty.
      • getPrimaryPartyBytes

        public com.google.protobuf.ByteString getPrimaryPartyBytes()
         The primary party as which this user reads and acts by default on the ledger
         *provided* it has the corresponding ``CanReadAs(primary_party)`` or
         ``CanActAs(primary_party)`` rights.
         Ledger API clients SHOULD set this field to a non-empty value for all users to
         enable the users to act on the ledger using their own Daml party.
         Users for participant administrators MAY have an associated primary party.
         Optional,
         Modifiable
         
        string primary_party = 2 [json_name = "primaryParty"];
        Specified by:
        getPrimaryPartyBytes in interface UserManagementServiceOuterClass.UserOrBuilder
        Returns:
        The bytes for primaryParty.
      • setPrimaryParty

        public UserManagementServiceOuterClass.User.Builder setPrimaryParty​(java.lang.String value)
         The primary party as which this user reads and acts by default on the ledger
         *provided* it has the corresponding ``CanReadAs(primary_party)`` or
         ``CanActAs(primary_party)`` rights.
         Ledger API clients SHOULD set this field to a non-empty value for all users to
         enable the users to act on the ledger using their own Daml party.
         Users for participant administrators MAY have an associated primary party.
         Optional,
         Modifiable
         
        string primary_party = 2 [json_name = "primaryParty"];
        Parameters:
        value - The primaryParty to set.
        Returns:
        This builder for chaining.
      • clearPrimaryParty

        public UserManagementServiceOuterClass.User.Builder clearPrimaryParty()
         The primary party as which this user reads and acts by default on the ledger
         *provided* it has the corresponding ``CanReadAs(primary_party)`` or
         ``CanActAs(primary_party)`` rights.
         Ledger API clients SHOULD set this field to a non-empty value for all users to
         enable the users to act on the ledger using their own Daml party.
         Users for participant administrators MAY have an associated primary party.
         Optional,
         Modifiable
         
        string primary_party = 2 [json_name = "primaryParty"];
        Returns:
        This builder for chaining.
      • setPrimaryPartyBytes

        public UserManagementServiceOuterClass.User.Builder setPrimaryPartyBytes​(com.google.protobuf.ByteString value)
         The primary party as which this user reads and acts by default on the ledger
         *provided* it has the corresponding ``CanReadAs(primary_party)`` or
         ``CanActAs(primary_party)`` rights.
         Ledger API clients SHOULD set this field to a non-empty value for all users to
         enable the users to act on the ledger using their own Daml party.
         Users for participant administrators MAY have an associated primary party.
         Optional,
         Modifiable
         
        string primary_party = 2 [json_name = "primaryParty"];
        Parameters:
        value - The bytes for primaryParty to set.
        Returns:
        This builder for chaining.
      • getIsDeactivated

        public boolean getIsDeactivated()
         When set, then the user is denied all access to the Ledger API.
         Otherwise, the user has access to the Ledger API as per the user's rights.
         Optional,
         Modifiable
         
        bool is_deactivated = 3 [json_name = "isDeactivated"];
        Specified by:
        getIsDeactivated in interface UserManagementServiceOuterClass.UserOrBuilder
        Returns:
        The isDeactivated.
      • setIsDeactivated

        public UserManagementServiceOuterClass.User.Builder setIsDeactivated​(boolean value)
         When set, then the user is denied all access to the Ledger API.
         Otherwise, the user has access to the Ledger API as per the user's rights.
         Optional,
         Modifiable
         
        bool is_deactivated = 3 [json_name = "isDeactivated"];
        Parameters:
        value - The isDeactivated to set.
        Returns:
        This builder for chaining.
      • clearIsDeactivated

        public UserManagementServiceOuterClass.User.Builder clearIsDeactivated()
         When set, then the user is denied all access to the Ledger API.
         Otherwise, the user has access to the Ledger API as per the user's rights.
         Optional,
         Modifiable
         
        bool is_deactivated = 3 [json_name = "isDeactivated"];
        Returns:
        This builder for chaining.
      • hasMetadata

        public boolean hasMetadata()
         The metadata of this user.
         Note that the ``metadata.resource_version`` tracks changes to the properties described by the ``User`` message and not the user's rights.
         Optional,
         Modifiable
         
        .com.daml.ledger.api.v1.admin.ObjectMeta metadata = 4 [json_name = "metadata"];
        Specified by:
        hasMetadata in interface UserManagementServiceOuterClass.UserOrBuilder
        Returns:
        Whether the metadata field is set.
      • getMetadata

        public ObjectMetaOuterClass.ObjectMeta getMetadata()
         The metadata of this user.
         Note that the ``metadata.resource_version`` tracks changes to the properties described by the ``User`` message and not the user's rights.
         Optional,
         Modifiable
         
        .com.daml.ledger.api.v1.admin.ObjectMeta metadata = 4 [json_name = "metadata"];
        Specified by:
        getMetadata in interface UserManagementServiceOuterClass.UserOrBuilder
        Returns:
        The metadata.
      • setMetadata

        public UserManagementServiceOuterClass.User.Builder setMetadata​(ObjectMetaOuterClass.ObjectMeta value)
         The metadata of this user.
         Note that the ``metadata.resource_version`` tracks changes to the properties described by the ``User`` message and not the user's rights.
         Optional,
         Modifiable
         
        .com.daml.ledger.api.v1.admin.ObjectMeta metadata = 4 [json_name = "metadata"];
      • mergeMetadata

        public UserManagementServiceOuterClass.User.Builder mergeMetadata​(ObjectMetaOuterClass.ObjectMeta value)
         The metadata of this user.
         Note that the ``metadata.resource_version`` tracks changes to the properties described by the ``User`` message and not the user's rights.
         Optional,
         Modifiable
         
        .com.daml.ledger.api.v1.admin.ObjectMeta metadata = 4 [json_name = "metadata"];
      • clearMetadata

        public UserManagementServiceOuterClass.User.Builder clearMetadata()
         The metadata of this user.
         Note that the ``metadata.resource_version`` tracks changes to the properties described by the ``User`` message and not the user's rights.
         Optional,
         Modifiable
         
        .com.daml.ledger.api.v1.admin.ObjectMeta metadata = 4 [json_name = "metadata"];
      • getMetadataBuilder

        public ObjectMetaOuterClass.ObjectMeta.Builder getMetadataBuilder()
         The metadata of this user.
         Note that the ``metadata.resource_version`` tracks changes to the properties described by the ``User`` message and not the user's rights.
         Optional,
         Modifiable
         
        .com.daml.ledger.api.v1.admin.ObjectMeta metadata = 4 [json_name = "metadata"];
      • getIdentityProviderId

        public java.lang.String getIdentityProviderId()
         The id of the identity provider configured by ``Identity Provider Config``
         Optional, if not set, assume the user is managed by the default identity provider.
         
        string identity_provider_id = 5 [json_name = "identityProviderId"];
        Specified by:
        getIdentityProviderId in interface UserManagementServiceOuterClass.UserOrBuilder
        Returns:
        The identityProviderId.
      • getIdentityProviderIdBytes

        public com.google.protobuf.ByteString getIdentityProviderIdBytes()
         The id of the identity provider configured by ``Identity Provider Config``
         Optional, if not set, assume the user is managed by the default identity provider.
         
        string identity_provider_id = 5 [json_name = "identityProviderId"];
        Specified by:
        getIdentityProviderIdBytes in interface UserManagementServiceOuterClass.UserOrBuilder
        Returns:
        The bytes for identityProviderId.
      • setIdentityProviderId

        public UserManagementServiceOuterClass.User.Builder setIdentityProviderId​(java.lang.String value)
         The id of the identity provider configured by ``Identity Provider Config``
         Optional, if not set, assume the user is managed by the default identity provider.
         
        string identity_provider_id = 5 [json_name = "identityProviderId"];
        Parameters:
        value - The identityProviderId to set.
        Returns:
        This builder for chaining.
      • clearIdentityProviderId

        public UserManagementServiceOuterClass.User.Builder clearIdentityProviderId()
         The id of the identity provider configured by ``Identity Provider Config``
         Optional, if not set, assume the user is managed by the default identity provider.
         
        string identity_provider_id = 5 [json_name = "identityProviderId"];
        Returns:
        This builder for chaining.
      • setIdentityProviderIdBytes

        public UserManagementServiceOuterClass.User.Builder setIdentityProviderIdBytes​(com.google.protobuf.ByteString value)
         The id of the identity provider configured by ``Identity Provider Config``
         Optional, if not set, assume the user is managed by the default identity provider.
         
        string identity_provider_id = 5 [json_name = "identityProviderId"];
        Parameters:
        value - The bytes for identityProviderId to set.
        Returns:
        This builder for chaining.