Package org.yamcs.protobuf
Class RoleInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<RoleInfo.Builder>
org.yamcs.protobuf.RoleInfo.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,RoleInfoOrBuilder
- Enclosing class:
- RoleInfo
public static final class RoleInfo.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<RoleInfo.Builder>
implements RoleInfoOrBuilder
Protobuf type
yamcs.protobuf.iam.RoleInfo
-
Method Summary
Modifier and TypeMethodDescriptionaddAllObjectPrivileges
(Iterable<? extends ObjectPrivilegeInfo> values) Object privilegesaddAllSystemPrivileges
(Iterable<String> values) System privilegesaddObjectPrivileges
(int index, ObjectPrivilegeInfo value) Object privilegesaddObjectPrivileges
(int index, ObjectPrivilegeInfo.Builder builderForValue) Object privilegesObject privilegesaddObjectPrivileges
(ObjectPrivilegeInfo.Builder builderForValue) Object privilegesObject privilegesaddObjectPrivilegesBuilder
(int index) Object privilegesaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addSystemPrivileges
(String value) System privilegesaddSystemPrivilegesBytes
(com.google.protobuf.ByteString value) System privilegesbuild()
clear()
Whether this role is assigned by defaultRole descriptionclearField
(com.google.protobuf.Descriptors.FieldDescriptor field) Role nameObject privilegesclearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) System privilegesclone()
boolean
Whether this role is assigned by defaultRole descriptioncom.google.protobuf.ByteString
Role descriptionstatic final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getName()
Role namecom.google.protobuf.ByteString
Role namegetObjectPrivileges
(int index) Object privilegesgetObjectPrivilegesBuilder
(int index) Object privilegesObject privilegesint
Object privilegesObject privilegesgetObjectPrivilegesOrBuilder
(int index) Object privilegesList<? extends ObjectPrivilegeInfoOrBuilder>
Object privilegesgetSystemPrivileges
(int index) System privilegescom.google.protobuf.ByteString
getSystemPrivilegesBytes
(int index) System privilegesint
System privilegescom.google.protobuf.ProtocolStringList
System privilegesboolean
Whether this role is assigned by defaultboolean
Role descriptionboolean
hasName()
Role nameprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) final RoleInfo.Builder
mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) removeObjectPrivileges
(int index) Object privilegessetDefault
(boolean value) Whether this role is assigned by defaultsetDescription
(String value) Role descriptionsetDescriptionBytes
(com.google.protobuf.ByteString value) Role descriptionRole namesetNameBytes
(com.google.protobuf.ByteString value) Role namesetObjectPrivileges
(int index, ObjectPrivilegeInfo value) Object privilegessetObjectPrivileges
(int index, ObjectPrivilegeInfo.Builder builderForValue) Object privilegessetRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSystemPrivileges
(int index, String value) System privilegesfinal RoleInfo.Builder
setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) 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, 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
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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<RoleInfo.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<RoleInfo.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<RoleInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.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<RoleInfo.Builder>
-
setField
public RoleInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RoleInfo.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RoleInfo.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<RoleInfo.Builder>
-
setRepeatedField
public RoleInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RoleInfo.Builder>
-
addRepeatedField
public RoleInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RoleInfo.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RoleInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<RoleInfo.Builder>
-
mergeFrom
public RoleInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws 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<RoleInfo.Builder>
- Throws:
IOException
-
hasName
public boolean hasName()Role name
optional string name = 1;
- Specified by:
hasName
in interfaceRoleInfoOrBuilder
- Returns:
- Whether the name field is set.
-
getName
Role name
optional string name = 1;
- Specified by:
getName
in interfaceRoleInfoOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Role name
optional string name = 1;
- Specified by:
getNameBytes
in interfaceRoleInfoOrBuilder
- Returns:
- The bytes for name.
-
setName
Role name
optional string name = 1;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
Role name
optional string name = 1;
- Returns:
- This builder for chaining.
-
setNameBytes
Role name
optional string name = 1;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasDescription
public boolean hasDescription()Role description
optional string description = 2;
- Specified by:
hasDescription
in interfaceRoleInfoOrBuilder
- Returns:
- Whether the description field is set.
-
getDescription
Role description
optional string description = 2;
- Specified by:
getDescription
in interfaceRoleInfoOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()Role description
optional string description = 2;
- Specified by:
getDescriptionBytes
in interfaceRoleInfoOrBuilder
- Returns:
- The bytes for description.
-
setDescription
Role description
optional string description = 2;
- Parameters:
value
- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
Role description
optional string description = 2;
- Returns:
- This builder for chaining.
-
setDescriptionBytes
Role description
optional string description = 2;
- Parameters:
value
- The bytes for description to set.- Returns:
- This builder for chaining.
-
getSystemPrivilegesList
public com.google.protobuf.ProtocolStringList getSystemPrivilegesList()System privileges
repeated string systemPrivileges = 3;
- Specified by:
getSystemPrivilegesList
in interfaceRoleInfoOrBuilder
- Returns:
- A list containing the systemPrivileges.
-
getSystemPrivilegesCount
public int getSystemPrivilegesCount()System privileges
repeated string systemPrivileges = 3;
- Specified by:
getSystemPrivilegesCount
in interfaceRoleInfoOrBuilder
- Returns:
- The count of systemPrivileges.
-
getSystemPrivileges
System privileges
repeated string systemPrivileges = 3;
- Specified by:
getSystemPrivileges
in interfaceRoleInfoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The systemPrivileges at the given index.
-
getSystemPrivilegesBytes
public com.google.protobuf.ByteString getSystemPrivilegesBytes(int index) System privileges
repeated string systemPrivileges = 3;
- Specified by:
getSystemPrivilegesBytes
in interfaceRoleInfoOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the systemPrivileges at the given index.
-
setSystemPrivileges
System privileges
repeated string systemPrivileges = 3;
- Parameters:
index
- The index to set the value at.value
- The systemPrivileges to set.- Returns:
- This builder for chaining.
-
addSystemPrivileges
System privileges
repeated string systemPrivileges = 3;
- Parameters:
value
- The systemPrivileges to add.- Returns:
- This builder for chaining.
-
addAllSystemPrivileges
System privileges
repeated string systemPrivileges = 3;
- Parameters:
values
- The systemPrivileges to add.- Returns:
- This builder for chaining.
-
clearSystemPrivileges
System privileges
repeated string systemPrivileges = 3;
- Returns:
- This builder for chaining.
-
addSystemPrivilegesBytes
System privileges
repeated string systemPrivileges = 3;
- Parameters:
value
- The bytes of the systemPrivileges to add.- Returns:
- This builder for chaining.
-
getObjectPrivilegesList
Object privileges
repeated .yamcs.protobuf.iam.ObjectPrivilegeInfo objectPrivileges = 4;
- Specified by:
getObjectPrivilegesList
in interfaceRoleInfoOrBuilder
-
getObjectPrivilegesCount
public int getObjectPrivilegesCount()Object privileges
repeated .yamcs.protobuf.iam.ObjectPrivilegeInfo objectPrivileges = 4;
- Specified by:
getObjectPrivilegesCount
in interfaceRoleInfoOrBuilder
-
getObjectPrivileges
Object privileges
repeated .yamcs.protobuf.iam.ObjectPrivilegeInfo objectPrivileges = 4;
- Specified by:
getObjectPrivileges
in interfaceRoleInfoOrBuilder
-
setObjectPrivileges
Object privileges
repeated .yamcs.protobuf.iam.ObjectPrivilegeInfo objectPrivileges = 4;
-
setObjectPrivileges
Object privileges
repeated .yamcs.protobuf.iam.ObjectPrivilegeInfo objectPrivileges = 4;
-
addObjectPrivileges
Object privileges
repeated .yamcs.protobuf.iam.ObjectPrivilegeInfo objectPrivileges = 4;
-
addObjectPrivileges
Object privileges
repeated .yamcs.protobuf.iam.ObjectPrivilegeInfo objectPrivileges = 4;
-
addObjectPrivileges
Object privileges
repeated .yamcs.protobuf.iam.ObjectPrivilegeInfo objectPrivileges = 4;
-
addObjectPrivileges
Object privileges
repeated .yamcs.protobuf.iam.ObjectPrivilegeInfo objectPrivileges = 4;
-
addAllObjectPrivileges
Object privileges
repeated .yamcs.protobuf.iam.ObjectPrivilegeInfo objectPrivileges = 4;
-
clearObjectPrivileges
Object privileges
repeated .yamcs.protobuf.iam.ObjectPrivilegeInfo objectPrivileges = 4;
-
removeObjectPrivileges
Object privileges
repeated .yamcs.protobuf.iam.ObjectPrivilegeInfo objectPrivileges = 4;
-
getObjectPrivilegesBuilder
Object privileges
repeated .yamcs.protobuf.iam.ObjectPrivilegeInfo objectPrivileges = 4;
-
getObjectPrivilegesOrBuilder
Object privileges
repeated .yamcs.protobuf.iam.ObjectPrivilegeInfo objectPrivileges = 4;
- Specified by:
getObjectPrivilegesOrBuilder
in interfaceRoleInfoOrBuilder
-
getObjectPrivilegesOrBuilderList
Object privileges
repeated .yamcs.protobuf.iam.ObjectPrivilegeInfo objectPrivileges = 4;
- Specified by:
getObjectPrivilegesOrBuilderList
in interfaceRoleInfoOrBuilder
-
addObjectPrivilegesBuilder
Object privileges
repeated .yamcs.protobuf.iam.ObjectPrivilegeInfo objectPrivileges = 4;
-
addObjectPrivilegesBuilder
Object privileges
repeated .yamcs.protobuf.iam.ObjectPrivilegeInfo objectPrivileges = 4;
-
getObjectPrivilegesBuilderList
Object privileges
repeated .yamcs.protobuf.iam.ObjectPrivilegeInfo objectPrivileges = 4;
-
hasDefault
public boolean hasDefault()Whether this role is assigned by default
optional bool default = 5;
- Specified by:
hasDefault
in interfaceRoleInfoOrBuilder
- Returns:
- Whether the default field is set.
-
getDefault
public boolean getDefault()Whether this role is assigned by default
optional bool default = 5;
- Specified by:
getDefault
in interfaceRoleInfoOrBuilder
- Returns:
- The default.
-
setDefault
Whether this role is assigned by default
optional bool default = 5;
- Parameters:
value
- The default to set.- Returns:
- This builder for chaining.
-
clearDefault
Whether this role is assigned by default
optional bool default = 5;
- Returns:
- This builder for chaining.
-
setUnknownFields
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<RoleInfo.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<RoleInfo.Builder>
-