Package com.daml.ledger.api.v1.admin
Class UserManagementServiceOuterClass.RevokeUserRightsRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<UserManagementServiceOuterClass.RevokeUserRightsRequest.Builder>
-
- com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.RevokeUserRightsRequest.Builder
-
- All Implemented Interfaces:
UserManagementServiceOuterClass.RevokeUserRightsRequestOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
- Enclosing class:
- UserManagementServiceOuterClass.RevokeUserRightsRequest
public static final class UserManagementServiceOuterClass.RevokeUserRightsRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<UserManagementServiceOuterClass.RevokeUserRightsRequest.Builder> implements UserManagementServiceOuterClass.RevokeUserRightsRequestOrBuilder
Remove the rights from the set of rights granted to the user. Required authorization: ``HasRight(ParticipantAdmin) OR IsAuthenticatedIdentityProviderAdmin(identity_provider_id)``
Protobuf typecom.daml.ledger.api.v1.admin.RevokeUserRightsRequest
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserManagementServiceOuterClass.RevokeUserRightsRequest.Builder>
-
clear
public UserManagementServiceOuterClass.RevokeUserRightsRequest.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserManagementServiceOuterClass.RevokeUserRightsRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserManagementServiceOuterClass.RevokeUserRightsRequest.Builder>
-
getDefaultInstanceForType
public UserManagementServiceOuterClass.RevokeUserRightsRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public UserManagementServiceOuterClass.RevokeUserRightsRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public UserManagementServiceOuterClass.RevokeUserRightsRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public UserManagementServiceOuterClass.RevokeUserRightsRequest.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserManagementServiceOuterClass.RevokeUserRightsRequest.Builder>
-
setField
public UserManagementServiceOuterClass.RevokeUserRightsRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserManagementServiceOuterClass.RevokeUserRightsRequest.Builder>
-
clearField
public UserManagementServiceOuterClass.RevokeUserRightsRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserManagementServiceOuterClass.RevokeUserRightsRequest.Builder>
-
clearOneof
public UserManagementServiceOuterClass.RevokeUserRightsRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserManagementServiceOuterClass.RevokeUserRightsRequest.Builder>
-
setRepeatedField
public UserManagementServiceOuterClass.RevokeUserRightsRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserManagementServiceOuterClass.RevokeUserRightsRequest.Builder>
-
addRepeatedField
public UserManagementServiceOuterClass.RevokeUserRightsRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserManagementServiceOuterClass.RevokeUserRightsRequest.Builder>
-
mergeFrom
public UserManagementServiceOuterClass.RevokeUserRightsRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<UserManagementServiceOuterClass.RevokeUserRightsRequest.Builder>
-
mergeFrom
public UserManagementServiceOuterClass.RevokeUserRightsRequest.Builder mergeFrom(UserManagementServiceOuterClass.RevokeUserRightsRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserManagementServiceOuterClass.RevokeUserRightsRequest.Builder>
-
mergeFrom
public UserManagementServiceOuterClass.RevokeUserRightsRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<UserManagementServiceOuterClass.RevokeUserRightsRequest.Builder>
- Throws:
java.io.IOException
-
getUserId
public java.lang.String getUserId()
The user from whom to revoke rights. Required
string user_id = 1 [json_name = "userId"];
- Specified by:
getUserId
in interfaceUserManagementServiceOuterClass.RevokeUserRightsRequestOrBuilder
- Returns:
- The userId.
-
getUserIdBytes
public com.google.protobuf.ByteString getUserIdBytes()
The user from whom to revoke rights. Required
string user_id = 1 [json_name = "userId"];
- Specified by:
getUserIdBytes
in interfaceUserManagementServiceOuterClass.RevokeUserRightsRequestOrBuilder
- Returns:
- The bytes for userId.
-
setUserId
public UserManagementServiceOuterClass.RevokeUserRightsRequest.Builder setUserId(java.lang.String value)
The user from whom to revoke rights. Required
string user_id = 1 [json_name = "userId"];
- Parameters:
value
- The userId to set.- Returns:
- This builder for chaining.
-
clearUserId
public UserManagementServiceOuterClass.RevokeUserRightsRequest.Builder clearUserId()
The user from whom to revoke rights. Required
string user_id = 1 [json_name = "userId"];
- Returns:
- This builder for chaining.
-
setUserIdBytes
public UserManagementServiceOuterClass.RevokeUserRightsRequest.Builder setUserIdBytes(com.google.protobuf.ByteString value)
The user from whom to revoke rights. Required
string user_id = 1 [json_name = "userId"];
- Parameters:
value
- The bytes for userId to set.- Returns:
- This builder for chaining.
-
getRightsList
public java.util.List<UserManagementServiceOuterClass.Right> getRightsList()
The rights to revoke. Optional
repeated .com.daml.ledger.api.v1.admin.Right rights = 2 [json_name = "rights"];
- Specified by:
getRightsList
in interfaceUserManagementServiceOuterClass.RevokeUserRightsRequestOrBuilder
-
getRightsCount
public int getRightsCount()
The rights to revoke. Optional
repeated .com.daml.ledger.api.v1.admin.Right rights = 2 [json_name = "rights"];
- Specified by:
getRightsCount
in interfaceUserManagementServiceOuterClass.RevokeUserRightsRequestOrBuilder
-
getRights
public UserManagementServiceOuterClass.Right getRights(int index)
The rights to revoke. Optional
repeated .com.daml.ledger.api.v1.admin.Right rights = 2 [json_name = "rights"];
- Specified by:
getRights
in interfaceUserManagementServiceOuterClass.RevokeUserRightsRequestOrBuilder
-
setRights
public UserManagementServiceOuterClass.RevokeUserRightsRequest.Builder setRights(int index, UserManagementServiceOuterClass.Right value)
The rights to revoke. Optional
repeated .com.daml.ledger.api.v1.admin.Right rights = 2 [json_name = "rights"];
-
setRights
public UserManagementServiceOuterClass.RevokeUserRightsRequest.Builder setRights(int index, UserManagementServiceOuterClass.Right.Builder builderForValue)
The rights to revoke. Optional
repeated .com.daml.ledger.api.v1.admin.Right rights = 2 [json_name = "rights"];
-
addRights
public UserManagementServiceOuterClass.RevokeUserRightsRequest.Builder addRights(UserManagementServiceOuterClass.Right value)
The rights to revoke. Optional
repeated .com.daml.ledger.api.v1.admin.Right rights = 2 [json_name = "rights"];
-
addRights
public UserManagementServiceOuterClass.RevokeUserRightsRequest.Builder addRights(int index, UserManagementServiceOuterClass.Right value)
The rights to revoke. Optional
repeated .com.daml.ledger.api.v1.admin.Right rights = 2 [json_name = "rights"];
-
addRights
public UserManagementServiceOuterClass.RevokeUserRightsRequest.Builder addRights(UserManagementServiceOuterClass.Right.Builder builderForValue)
The rights to revoke. Optional
repeated .com.daml.ledger.api.v1.admin.Right rights = 2 [json_name = "rights"];
-
addRights
public UserManagementServiceOuterClass.RevokeUserRightsRequest.Builder addRights(int index, UserManagementServiceOuterClass.Right.Builder builderForValue)
The rights to revoke. Optional
repeated .com.daml.ledger.api.v1.admin.Right rights = 2 [json_name = "rights"];
-
addAllRights
public UserManagementServiceOuterClass.RevokeUserRightsRequest.Builder addAllRights(java.lang.Iterable<? extends UserManagementServiceOuterClass.Right> values)
The rights to revoke. Optional
repeated .com.daml.ledger.api.v1.admin.Right rights = 2 [json_name = "rights"];
-
clearRights
public UserManagementServiceOuterClass.RevokeUserRightsRequest.Builder clearRights()
The rights to revoke. Optional
repeated .com.daml.ledger.api.v1.admin.Right rights = 2 [json_name = "rights"];
-
removeRights
public UserManagementServiceOuterClass.RevokeUserRightsRequest.Builder removeRights(int index)
The rights to revoke. Optional
repeated .com.daml.ledger.api.v1.admin.Right rights = 2 [json_name = "rights"];
-
getRightsBuilder
public UserManagementServiceOuterClass.Right.Builder getRightsBuilder(int index)
The rights to revoke. Optional
repeated .com.daml.ledger.api.v1.admin.Right rights = 2 [json_name = "rights"];
-
getRightsOrBuilder
public UserManagementServiceOuterClass.RightOrBuilder getRightsOrBuilder(int index)
The rights to revoke. Optional
repeated .com.daml.ledger.api.v1.admin.Right rights = 2 [json_name = "rights"];
- Specified by:
getRightsOrBuilder
in interfaceUserManagementServiceOuterClass.RevokeUserRightsRequestOrBuilder
-
getRightsOrBuilderList
public java.util.List<? extends UserManagementServiceOuterClass.RightOrBuilder> getRightsOrBuilderList()
The rights to revoke. Optional
repeated .com.daml.ledger.api.v1.admin.Right rights = 2 [json_name = "rights"];
- Specified by:
getRightsOrBuilderList
in interfaceUserManagementServiceOuterClass.RevokeUserRightsRequestOrBuilder
-
addRightsBuilder
public UserManagementServiceOuterClass.Right.Builder addRightsBuilder()
The rights to revoke. Optional
repeated .com.daml.ledger.api.v1.admin.Right rights = 2 [json_name = "rights"];
-
addRightsBuilder
public UserManagementServiceOuterClass.Right.Builder addRightsBuilder(int index)
The rights to revoke. Optional
repeated .com.daml.ledger.api.v1.admin.Right rights = 2 [json_name = "rights"];
-
getRightsBuilderList
public java.util.List<UserManagementServiceOuterClass.Right.Builder> getRightsBuilderList()
The rights to revoke. Optional
repeated .com.daml.ledger.api.v1.admin.Right rights = 2 [json_name = "rights"];
-
getIdentityProviderId
public java.lang.String getIdentityProviderId()
The id of the ``Identity Provider`` Optional, if not set, assume the user is managed by the default identity provider.
string identity_provider_id = 3 [json_name = "identityProviderId"];
- Specified by:
getIdentityProviderId
in interfaceUserManagementServiceOuterClass.RevokeUserRightsRequestOrBuilder
- Returns:
- The identityProviderId.
-
getIdentityProviderIdBytes
public com.google.protobuf.ByteString getIdentityProviderIdBytes()
The id of the ``Identity Provider`` Optional, if not set, assume the user is managed by the default identity provider.
string identity_provider_id = 3 [json_name = "identityProviderId"];
- Specified by:
getIdentityProviderIdBytes
in interfaceUserManagementServiceOuterClass.RevokeUserRightsRequestOrBuilder
- Returns:
- The bytes for identityProviderId.
-
setIdentityProviderId
public UserManagementServiceOuterClass.RevokeUserRightsRequest.Builder setIdentityProviderId(java.lang.String value)
The id of the ``Identity Provider`` Optional, if not set, assume the user is managed by the default identity provider.
string identity_provider_id = 3 [json_name = "identityProviderId"];
- Parameters:
value
- The identityProviderId to set.- Returns:
- This builder for chaining.
-
clearIdentityProviderId
public UserManagementServiceOuterClass.RevokeUserRightsRequest.Builder clearIdentityProviderId()
The id of the ``Identity Provider`` Optional, if not set, assume the user is managed by the default identity provider.
string identity_provider_id = 3 [json_name = "identityProviderId"];
- Returns:
- This builder for chaining.
-
setIdentityProviderIdBytes
public UserManagementServiceOuterClass.RevokeUserRightsRequest.Builder setIdentityProviderIdBytes(com.google.protobuf.ByteString value)
The id of the ``Identity Provider`` Optional, if not set, assume the user is managed by the default identity provider.
string identity_provider_id = 3 [json_name = "identityProviderId"];
- Parameters:
value
- The bytes for identityProviderId to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final UserManagementServiceOuterClass.RevokeUserRightsRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserManagementServiceOuterClass.RevokeUserRightsRequest.Builder>
-
mergeUnknownFields
public final UserManagementServiceOuterClass.RevokeUserRightsRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserManagementServiceOuterClass.RevokeUserRightsRequest.Builder>
-
-