Package io.littlehorse.common.proto
Class ServerACL.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ServerACL.Builder>
-
- io.littlehorse.common.proto.ServerACL.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ServerACLOrBuilder,java.lang.Cloneable
- Enclosing class:
- ServerACL
public static final class ServerACL.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ServerACL.Builder> implements ServerACLOrBuilder
Protobuf typelittlehorse.ServerACL
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerACL.BuilderaddAllAllowedActions(java.lang.Iterable<? extends ACLAction> values)repeated .littlehorse.ACLAction allowed_actions = 2;ServerACL.BuilderaddAllAllowedActionsValue(java.lang.Iterable<java.lang.Integer> values)repeated .littlehorse.ACLAction allowed_actions = 2;ServerACL.BuilderaddAllowedActions(ACLAction value)repeated .littlehorse.ACLAction allowed_actions = 2;ServerACL.BuilderaddAllowedActionsValue(int value)repeated .littlehorse.ACLAction allowed_actions = 2;ServerACL.BuilderaddAllResources(java.lang.Iterable<? extends ACLResource> values)repeated .littlehorse.ACLResource resources = 1;ServerACL.BuilderaddAllResourcesValue(java.lang.Iterable<java.lang.Integer> values)repeated .littlehorse.ACLResource resources = 1;ServerACL.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)ServerACL.BuilderaddResources(ACLResource value)repeated .littlehorse.ACLResource resources = 1;ServerACL.BuilderaddResourcesValue(int value)repeated .littlehorse.ACLResource resources = 1;ServerACLbuild()ServerACLbuildPartial()ServerACL.Builderclear()ServerACL.BuilderclearAllowedActions()repeated .littlehorse.ACLAction allowed_actions = 2;ServerACL.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ServerACL.BuilderclearName()string name = 3;ServerACL.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ServerACL.BuilderclearPrefix()string prefix = 4;ServerACL.BuilderclearResourceFilter()ServerACL.BuilderclearResources()repeated .littlehorse.ACLResource resources = 1;ServerACL.Builderclone()ACLActiongetAllowedActions(int index)repeated .littlehorse.ACLAction allowed_actions = 2;intgetAllowedActionsCount()repeated .littlehorse.ACLAction allowed_actions = 2;java.util.List<ACLAction>getAllowedActionsList()repeated .littlehorse.ACLAction allowed_actions = 2;intgetAllowedActionsValue(int index)repeated .littlehorse.ACLAction allowed_actions = 2;java.util.List<java.lang.Integer>getAllowedActionsValueList()repeated .littlehorse.ACLAction allowed_actions = 2;ServerACLgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.lang.StringgetName()string name = 3;com.google.protobuf.ByteStringgetNameBytes()string name = 3;java.lang.StringgetPrefix()string prefix = 4;com.google.protobuf.ByteStringgetPrefixBytes()string prefix = 4;ServerACL.ResourceFilterCasegetResourceFilterCase()ACLResourcegetResources(int index)repeated .littlehorse.ACLResource resources = 1;intgetResourcesCount()repeated .littlehorse.ACLResource resources = 1;java.util.List<ACLResource>getResourcesList()repeated .littlehorse.ACLResource resources = 1;intgetResourcesValue(int index)repeated .littlehorse.ACLResource resources = 1;java.util.List<java.lang.Integer>getResourcesValueList()repeated .littlehorse.ACLResource resources = 1;booleanhasName()string name = 3;booleanhasPrefix()string prefix = 4;booleanisInitialized()ServerACL.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ServerACL.BuildermergeFrom(com.google.protobuf.Message other)ServerACL.BuildermergeFrom(ServerACL other)ServerACL.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ServerACL.BuildersetAllowedActions(int index, ACLAction value)repeated .littlehorse.ACLAction allowed_actions = 2;ServerACL.BuildersetAllowedActionsValue(int index, int value)repeated .littlehorse.ACLAction allowed_actions = 2;ServerACL.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)ServerACL.BuildersetName(java.lang.String value)string name = 3;ServerACL.BuildersetNameBytes(com.google.protobuf.ByteString value)string name = 3;ServerACL.BuildersetPrefix(java.lang.String value)string prefix = 4;ServerACL.BuildersetPrefixBytes(com.google.protobuf.ByteString value)string prefix = 4;ServerACL.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)ServerACL.BuildersetResources(int index, ACLResource value)repeated .littlehorse.ACLResource resources = 1;ServerACL.BuildersetResourcesValue(int index, int value)repeated .littlehorse.ACLResource resources = 1;ServerACL.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, newBuilderForField
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
clear
public ServerACL.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ServerACL.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ServerACL.Builder>
-
getDefaultInstanceForType
public ServerACL getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ServerACL build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ServerACL buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ServerACL.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ServerACL.Builder>
-
setField
public ServerACL.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ServerACL.Builder>
-
clearField
public ServerACL.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ServerACL.Builder>
-
clearOneof
public ServerACL.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ServerACL.Builder>
-
setRepeatedField
public ServerACL.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ServerACL.Builder>
-
addRepeatedField
public ServerACL.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ServerACL.Builder>
-
mergeFrom
public ServerACL.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ServerACL.Builder>
-
mergeFrom
public ServerACL.Builder mergeFrom(ServerACL other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ServerACL.Builder>
-
mergeFrom
public ServerACL.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ServerACL.Builder>- Throws:
java.io.IOException
-
getResourceFilterCase
public ServerACL.ResourceFilterCase getResourceFilterCase()
- Specified by:
getResourceFilterCasein interfaceServerACLOrBuilder
-
clearResourceFilter
public ServerACL.Builder clearResourceFilter()
-
getResourcesList
public java.util.List<ACLResource> getResourcesList()
repeated .littlehorse.ACLResource resources = 1;- Specified by:
getResourcesListin interfaceServerACLOrBuilder- Returns:
- A list containing the resources.
-
getResourcesCount
public int getResourcesCount()
repeated .littlehorse.ACLResource resources = 1;- Specified by:
getResourcesCountin interfaceServerACLOrBuilder- Returns:
- The count of resources.
-
getResources
public ACLResource getResources(int index)
repeated .littlehorse.ACLResource resources = 1;- Specified by:
getResourcesin interfaceServerACLOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The resources at the given index.
-
setResources
public ServerACL.Builder setResources(int index, ACLResource value)
repeated .littlehorse.ACLResource resources = 1;- Parameters:
index- The index to set the value at.value- The resources to set.- Returns:
- This builder for chaining.
-
addResources
public ServerACL.Builder addResources(ACLResource value)
repeated .littlehorse.ACLResource resources = 1;- Parameters:
value- The resources to add.- Returns:
- This builder for chaining.
-
addAllResources
public ServerACL.Builder addAllResources(java.lang.Iterable<? extends ACLResource> values)
repeated .littlehorse.ACLResource resources = 1;- Parameters:
values- The resources to add.- Returns:
- This builder for chaining.
-
clearResources
public ServerACL.Builder clearResources()
repeated .littlehorse.ACLResource resources = 1;- Returns:
- This builder for chaining.
-
getResourcesValueList
public java.util.List<java.lang.Integer> getResourcesValueList()
repeated .littlehorse.ACLResource resources = 1;- Specified by:
getResourcesValueListin interfaceServerACLOrBuilder- Returns:
- A list containing the enum numeric values on the wire for resources.
-
getResourcesValue
public int getResourcesValue(int index)
repeated .littlehorse.ACLResource resources = 1;- Specified by:
getResourcesValuein interfaceServerACLOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of resources at the given index.
-
setResourcesValue
public ServerACL.Builder setResourcesValue(int index, int value)
repeated .littlehorse.ACLResource resources = 1;- Parameters:
index- The index to set the value at.value- The enum numeric value on the wire for resources to set.- Returns:
- This builder for chaining.
-
addResourcesValue
public ServerACL.Builder addResourcesValue(int value)
repeated .littlehorse.ACLResource resources = 1;- Parameters:
value- The enum numeric value on the wire for resources to add.- Returns:
- This builder for chaining.
-
addAllResourcesValue
public ServerACL.Builder addAllResourcesValue(java.lang.Iterable<java.lang.Integer> values)
repeated .littlehorse.ACLResource resources = 1;- Parameters:
values- The enum numeric values on the wire for resources to add.- Returns:
- This builder for chaining.
-
getAllowedActionsList
public java.util.List<ACLAction> getAllowedActionsList()
repeated .littlehorse.ACLAction allowed_actions = 2;- Specified by:
getAllowedActionsListin interfaceServerACLOrBuilder- Returns:
- A list containing the allowedActions.
-
getAllowedActionsCount
public int getAllowedActionsCount()
repeated .littlehorse.ACLAction allowed_actions = 2;- Specified by:
getAllowedActionsCountin interfaceServerACLOrBuilder- Returns:
- The count of allowedActions.
-
getAllowedActions
public ACLAction getAllowedActions(int index)
repeated .littlehorse.ACLAction allowed_actions = 2;- Specified by:
getAllowedActionsin interfaceServerACLOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The allowedActions at the given index.
-
setAllowedActions
public ServerACL.Builder setAllowedActions(int index, ACLAction value)
repeated .littlehorse.ACLAction allowed_actions = 2;- Parameters:
index- The index to set the value at.value- The allowedActions to set.- Returns:
- This builder for chaining.
-
addAllowedActions
public ServerACL.Builder addAllowedActions(ACLAction value)
repeated .littlehorse.ACLAction allowed_actions = 2;- Parameters:
value- The allowedActions to add.- Returns:
- This builder for chaining.
-
addAllAllowedActions
public ServerACL.Builder addAllAllowedActions(java.lang.Iterable<? extends ACLAction> values)
repeated .littlehorse.ACLAction allowed_actions = 2;- Parameters:
values- The allowedActions to add.- Returns:
- This builder for chaining.
-
clearAllowedActions
public ServerACL.Builder clearAllowedActions()
repeated .littlehorse.ACLAction allowed_actions = 2;- Returns:
- This builder for chaining.
-
getAllowedActionsValueList
public java.util.List<java.lang.Integer> getAllowedActionsValueList()
repeated .littlehorse.ACLAction allowed_actions = 2;- Specified by:
getAllowedActionsValueListin interfaceServerACLOrBuilder- Returns:
- A list containing the enum numeric values on the wire for allowedActions.
-
getAllowedActionsValue
public int getAllowedActionsValue(int index)
repeated .littlehorse.ACLAction allowed_actions = 2;- Specified by:
getAllowedActionsValuein interfaceServerACLOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of allowedActions at the given index.
-
setAllowedActionsValue
public ServerACL.Builder setAllowedActionsValue(int index, int value)
repeated .littlehorse.ACLAction allowed_actions = 2;- Parameters:
index- The index to set the value at.value- The enum numeric value on the wire for allowedActions to set.- Returns:
- This builder for chaining.
-
addAllowedActionsValue
public ServerACL.Builder addAllowedActionsValue(int value)
repeated .littlehorse.ACLAction allowed_actions = 2;- Parameters:
value- The enum numeric value on the wire for allowedActions to add.- Returns:
- This builder for chaining.
-
addAllAllowedActionsValue
public ServerACL.Builder addAllAllowedActionsValue(java.lang.Iterable<java.lang.Integer> values)
repeated .littlehorse.ACLAction allowed_actions = 2;- Parameters:
values- The enum numeric values on the wire for allowedActions to add.- Returns:
- This builder for chaining.
-
hasName
public boolean hasName()
string name = 3;- Specified by:
hasNamein interfaceServerACLOrBuilder- Returns:
- Whether the name field is set.
-
getName
public java.lang.String getName()
string name = 3;- Specified by:
getNamein interfaceServerACLOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
string name = 3;- Specified by:
getNameBytesin interfaceServerACLOrBuilder- Returns:
- The bytes for name.
-
setName
public ServerACL.Builder setName(java.lang.String value)
string name = 3;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public ServerACL.Builder clearName()
string name = 3;- Returns:
- This builder for chaining.
-
setNameBytes
public ServerACL.Builder setNameBytes(com.google.protobuf.ByteString value)
string name = 3;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasPrefix
public boolean hasPrefix()
string prefix = 4;- Specified by:
hasPrefixin interfaceServerACLOrBuilder- Returns:
- Whether the prefix field is set.
-
getPrefix
public java.lang.String getPrefix()
string prefix = 4;- Specified by:
getPrefixin interfaceServerACLOrBuilder- Returns:
- The prefix.
-
getPrefixBytes
public com.google.protobuf.ByteString getPrefixBytes()
string prefix = 4;- Specified by:
getPrefixBytesin interfaceServerACLOrBuilder- Returns:
- The bytes for prefix.
-
setPrefix
public ServerACL.Builder setPrefix(java.lang.String value)
string prefix = 4;- Parameters:
value- The prefix to set.- Returns:
- This builder for chaining.
-
clearPrefix
public ServerACL.Builder clearPrefix()
string prefix = 4;- Returns:
- This builder for chaining.
-
setPrefixBytes
public ServerACL.Builder setPrefixBytes(com.google.protobuf.ByteString value)
string prefix = 4;- Parameters:
value- The bytes for prefix to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ServerACL.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ServerACL.Builder>
-
mergeUnknownFields
public final ServerACL.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ServerACL.Builder>
-
-