Package com.daml.ledger.api.v1.admin
Class UserManagementServiceOuterClass.GrantUserRightsRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<UserManagementServiceOuterClass.GrantUserRightsRequest.Builder>
-
- com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.GrantUserRightsRequest.Builder
-
- All Implemented Interfaces:
UserManagementServiceOuterClass.GrantUserRightsRequestOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
- Enclosing class:
- UserManagementServiceOuterClass.GrantUserRightsRequest
public static final class UserManagementServiceOuterClass.GrantUserRightsRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<UserManagementServiceOuterClass.GrantUserRightsRequest.Builder> implements UserManagementServiceOuterClass.GrantUserRightsRequestOrBuilder
Add the rights to the set of rights granted to the user. Required authorization: ``HasRight(ParticipantAdmin)``
Protobuf typecom.daml.ledger.api.v1.admin.GrantUserRightsRequest
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
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.GrantUserRightsRequest.Builder>
-
clear
public UserManagementServiceOuterClass.GrantUserRightsRequest.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.GrantUserRightsRequest.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.GrantUserRightsRequest.Builder>
-
getDefaultInstanceForType
public UserManagementServiceOuterClass.GrantUserRightsRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public UserManagementServiceOuterClass.GrantUserRightsRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public UserManagementServiceOuterClass.GrantUserRightsRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public UserManagementServiceOuterClass.GrantUserRightsRequest.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.GrantUserRightsRequest.Builder>
-
setField
public UserManagementServiceOuterClass.GrantUserRightsRequest.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.GrantUserRightsRequest.Builder>
-
clearField
public UserManagementServiceOuterClass.GrantUserRightsRequest.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.GrantUserRightsRequest.Builder>
-
clearOneof
public UserManagementServiceOuterClass.GrantUserRightsRequest.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.GrantUserRightsRequest.Builder>
-
setRepeatedField
public UserManagementServiceOuterClass.GrantUserRightsRequest.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.GrantUserRightsRequest.Builder>
-
addRepeatedField
public UserManagementServiceOuterClass.GrantUserRightsRequest.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.GrantUserRightsRequest.Builder>
-
mergeFrom
public UserManagementServiceOuterClass.GrantUserRightsRequest.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.GrantUserRightsRequest.Builder>
-
mergeFrom
public UserManagementServiceOuterClass.GrantUserRightsRequest.Builder mergeFrom(UserManagementServiceOuterClass.GrantUserRightsRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserManagementServiceOuterClass.GrantUserRightsRequest.Builder>
-
mergeFrom
public UserManagementServiceOuterClass.GrantUserRightsRequest.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.GrantUserRightsRequest.Builder>
- Throws:
java.io.IOException
-
getUserId
public java.lang.String getUserId()
The user to whom to grant rights. Required
string user_id = 1 [json_name = "userId"];
- Specified by:
getUserId
in interfaceUserManagementServiceOuterClass.GrantUserRightsRequestOrBuilder
- Returns:
- The userId.
-
getUserIdBytes
public com.google.protobuf.ByteString getUserIdBytes()
The user to whom to grant rights. Required
string user_id = 1 [json_name = "userId"];
- Specified by:
getUserIdBytes
in interfaceUserManagementServiceOuterClass.GrantUserRightsRequestOrBuilder
- Returns:
- The bytes for userId.
-
setUserId
public UserManagementServiceOuterClass.GrantUserRightsRequest.Builder setUserId(java.lang.String value)
The user to whom to grant rights. Required
string user_id = 1 [json_name = "userId"];
- Parameters:
value
- The userId to set.- Returns:
- This builder for chaining.
-
clearUserId
public UserManagementServiceOuterClass.GrantUserRightsRequest.Builder clearUserId()
The user to whom to grant rights. Required
string user_id = 1 [json_name = "userId"];
- Returns:
- This builder for chaining.
-
setUserIdBytes
public UserManagementServiceOuterClass.GrantUserRightsRequest.Builder setUserIdBytes(com.google.protobuf.ByteString value)
The user to whom to grant 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 grant. Required
repeated .com.daml.ledger.api.v1.admin.Right rights = 2 [json_name = "rights"];
- Specified by:
getRightsList
in interfaceUserManagementServiceOuterClass.GrantUserRightsRequestOrBuilder
-
getRightsCount
public int getRightsCount()
The rights to grant. Required
repeated .com.daml.ledger.api.v1.admin.Right rights = 2 [json_name = "rights"];
- Specified by:
getRightsCount
in interfaceUserManagementServiceOuterClass.GrantUserRightsRequestOrBuilder
-
getRights
public UserManagementServiceOuterClass.Right getRights(int index)
The rights to grant. Required
repeated .com.daml.ledger.api.v1.admin.Right rights = 2 [json_name = "rights"];
- Specified by:
getRights
in interfaceUserManagementServiceOuterClass.GrantUserRightsRequestOrBuilder
-
setRights
public UserManagementServiceOuterClass.GrantUserRightsRequest.Builder setRights(int index, UserManagementServiceOuterClass.Right value)
The rights to grant. Required
repeated .com.daml.ledger.api.v1.admin.Right rights = 2 [json_name = "rights"];
-
setRights
public UserManagementServiceOuterClass.GrantUserRightsRequest.Builder setRights(int index, UserManagementServiceOuterClass.Right.Builder builderForValue)
The rights to grant. Required
repeated .com.daml.ledger.api.v1.admin.Right rights = 2 [json_name = "rights"];
-
addRights
public UserManagementServiceOuterClass.GrantUserRightsRequest.Builder addRights(UserManagementServiceOuterClass.Right value)
The rights to grant. Required
repeated .com.daml.ledger.api.v1.admin.Right rights = 2 [json_name = "rights"];
-
addRights
public UserManagementServiceOuterClass.GrantUserRightsRequest.Builder addRights(int index, UserManagementServiceOuterClass.Right value)
The rights to grant. Required
repeated .com.daml.ledger.api.v1.admin.Right rights = 2 [json_name = "rights"];
-
addRights
public UserManagementServiceOuterClass.GrantUserRightsRequest.Builder addRights(UserManagementServiceOuterClass.Right.Builder builderForValue)
The rights to grant. Required
repeated .com.daml.ledger.api.v1.admin.Right rights = 2 [json_name = "rights"];
-
addRights
public UserManagementServiceOuterClass.GrantUserRightsRequest.Builder addRights(int index, UserManagementServiceOuterClass.Right.Builder builderForValue)
The rights to grant. Required
repeated .com.daml.ledger.api.v1.admin.Right rights = 2 [json_name = "rights"];
-
addAllRights
public UserManagementServiceOuterClass.GrantUserRightsRequest.Builder addAllRights(java.lang.Iterable<? extends UserManagementServiceOuterClass.Right> values)
The rights to grant. Required
repeated .com.daml.ledger.api.v1.admin.Right rights = 2 [json_name = "rights"];
-
clearRights
public UserManagementServiceOuterClass.GrantUserRightsRequest.Builder clearRights()
The rights to grant. Required
repeated .com.daml.ledger.api.v1.admin.Right rights = 2 [json_name = "rights"];
-
removeRights
public UserManagementServiceOuterClass.GrantUserRightsRequest.Builder removeRights(int index)
The rights to grant. Required
repeated .com.daml.ledger.api.v1.admin.Right rights = 2 [json_name = "rights"];
-
getRightsBuilder
public UserManagementServiceOuterClass.Right.Builder getRightsBuilder(int index)
The rights to grant. Required
repeated .com.daml.ledger.api.v1.admin.Right rights = 2 [json_name = "rights"];
-
getRightsOrBuilder
public UserManagementServiceOuterClass.RightOrBuilder getRightsOrBuilder(int index)
The rights to grant. Required
repeated .com.daml.ledger.api.v1.admin.Right rights = 2 [json_name = "rights"];
- Specified by:
getRightsOrBuilder
in interfaceUserManagementServiceOuterClass.GrantUserRightsRequestOrBuilder
-
getRightsOrBuilderList
public java.util.List<? extends UserManagementServiceOuterClass.RightOrBuilder> getRightsOrBuilderList()
The rights to grant. Required
repeated .com.daml.ledger.api.v1.admin.Right rights = 2 [json_name = "rights"];
- Specified by:
getRightsOrBuilderList
in interfaceUserManagementServiceOuterClass.GrantUserRightsRequestOrBuilder
-
addRightsBuilder
public UserManagementServiceOuterClass.Right.Builder addRightsBuilder()
The rights to grant. Required
repeated .com.daml.ledger.api.v1.admin.Right rights = 2 [json_name = "rights"];
-
addRightsBuilder
public UserManagementServiceOuterClass.Right.Builder addRightsBuilder(int index)
The rights to grant. Required
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 grant. Required
repeated .com.daml.ledger.api.v1.admin.Right rights = 2 [json_name = "rights"];
-
setUnknownFields
public final UserManagementServiceOuterClass.GrantUserRightsRequest.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.GrantUserRightsRequest.Builder>
-
mergeUnknownFields
public final UserManagementServiceOuterClass.GrantUserRightsRequest.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.GrantUserRightsRequest.Builder>
-
-