Class PolicyOuterClass.Policy.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<PolicyOuterClass.Policy.Builder>
com.google.protobuf.GeneratedMessage.Builder<PolicyOuterClass.Policy.Builder>
moby.buildkit.v1.sourcepolicy.PolicyOuterClass.Policy.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,PolicyOuterClass.PolicyOrBuilder
- Enclosing class:
PolicyOuterClass.Policy
public static final class PolicyOuterClass.Policy.Builder
extends com.google.protobuf.GeneratedMessage.Builder<PolicyOuterClass.Policy.Builder>
implements PolicyOuterClass.PolicyOrBuilder
Policy is the list of rules the policy engine will performProtobuf type
moby.buildkit.v1.sourcepolicy.Policy
-
Method Summary
Modifier and TypeMethodDescriptionaddAllRules
(Iterable<? extends PolicyOuterClass.Rule> values) repeated .moby.buildkit.v1.sourcepolicy.Rule rules = 2;
addRules
(int index, PolicyOuterClass.Rule value) repeated .moby.buildkit.v1.sourcepolicy.Rule rules = 2;
addRules
(int index, PolicyOuterClass.Rule.Builder builderForValue) repeated .moby.buildkit.v1.sourcepolicy.Rule rules = 2;
addRules
(PolicyOuterClass.Rule value) repeated .moby.buildkit.v1.sourcepolicy.Rule rules = 2;
addRules
(PolicyOuterClass.Rule.Builder builderForValue) repeated .moby.buildkit.v1.sourcepolicy.Rule rules = 2;
repeated .moby.buildkit.v1.sourcepolicy.Rule rules = 2;
addRulesBuilder
(int index) repeated .moby.buildkit.v1.sourcepolicy.Rule rules = 2;
build()
clear()
repeated .moby.buildkit.v1.sourcepolicy.Rule rules = 2;
Currently 1static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getRules
(int index) repeated .moby.buildkit.v1.sourcepolicy.Rule rules = 2;
getRulesBuilder
(int index) repeated .moby.buildkit.v1.sourcepolicy.Rule rules = 2;
repeated .moby.buildkit.v1.sourcepolicy.Rule rules = 2;
int
repeated .moby.buildkit.v1.sourcepolicy.Rule rules = 2;
repeated .moby.buildkit.v1.sourcepolicy.Rule rules = 2;
getRulesOrBuilder
(int index) repeated .moby.buildkit.v1.sourcepolicy.Rule rules = 2;
List
<? extends PolicyOuterClass.RuleOrBuilder> repeated .moby.buildkit.v1.sourcepolicy.Rule rules = 2;
long
Currently 1protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(PolicyOuterClass.Policy other) removeRules
(int index) repeated .moby.buildkit.v1.sourcepolicy.Rule rules = 2;
setRules
(int index, PolicyOuterClass.Rule value) repeated .moby.buildkit.v1.sourcepolicy.Rule rules = 2;
setRules
(int index, PolicyOuterClass.Rule.Builder builderForValue) repeated .moby.buildkit.v1.sourcepolicy.Rule rules = 2;
setVersion
(long value) Currently 1Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<PolicyOuterClass.Policy.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.GeneratedMessage.Builder<PolicyOuterClass.Policy.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.GeneratedMessage.Builder<PolicyOuterClass.Policy.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
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<PolicyOuterClass.Policy.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<PolicyOuterClass.Policy.Builder>
-
mergeFrom
public PolicyOuterClass.Policy.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<PolicyOuterClass.Policy.Builder>
- Throws:
IOException
-
getVersion
public long getVersion()Currently 1
int64 version = 1;
- Specified by:
getVersion
in interfacePolicyOuterClass.PolicyOrBuilder
- Returns:
- The version.
-
setVersion
Currently 1
int64 version = 1;
- Parameters:
value
- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
Currently 1
int64 version = 1;
- Returns:
- This builder for chaining.
-
getRulesList
repeated .moby.buildkit.v1.sourcepolicy.Rule rules = 2;
- Specified by:
getRulesList
in interfacePolicyOuterClass.PolicyOrBuilder
-
getRulesCount
public int getRulesCount()repeated .moby.buildkit.v1.sourcepolicy.Rule rules = 2;
- Specified by:
getRulesCount
in interfacePolicyOuterClass.PolicyOrBuilder
-
getRules
repeated .moby.buildkit.v1.sourcepolicy.Rule rules = 2;
- Specified by:
getRules
in interfacePolicyOuterClass.PolicyOrBuilder
-
setRules
repeated .moby.buildkit.v1.sourcepolicy.Rule rules = 2;
-
setRules
public PolicyOuterClass.Policy.Builder setRules(int index, PolicyOuterClass.Rule.Builder builderForValue) repeated .moby.buildkit.v1.sourcepolicy.Rule rules = 2;
-
addRules
repeated .moby.buildkit.v1.sourcepolicy.Rule rules = 2;
-
addRules
repeated .moby.buildkit.v1.sourcepolicy.Rule rules = 2;
-
addRules
repeated .moby.buildkit.v1.sourcepolicy.Rule rules = 2;
-
addRules
public PolicyOuterClass.Policy.Builder addRules(int index, PolicyOuterClass.Rule.Builder builderForValue) repeated .moby.buildkit.v1.sourcepolicy.Rule rules = 2;
-
addAllRules
public PolicyOuterClass.Policy.Builder addAllRules(Iterable<? extends PolicyOuterClass.Rule> values) repeated .moby.buildkit.v1.sourcepolicy.Rule rules = 2;
-
clearRules
repeated .moby.buildkit.v1.sourcepolicy.Rule rules = 2;
-
removeRules
repeated .moby.buildkit.v1.sourcepolicy.Rule rules = 2;
-
getRulesBuilder
repeated .moby.buildkit.v1.sourcepolicy.Rule rules = 2;
-
getRulesOrBuilder
repeated .moby.buildkit.v1.sourcepolicy.Rule rules = 2;
- Specified by:
getRulesOrBuilder
in interfacePolicyOuterClass.PolicyOrBuilder
-
getRulesOrBuilderList
repeated .moby.buildkit.v1.sourcepolicy.Rule rules = 2;
- Specified by:
getRulesOrBuilderList
in interfacePolicyOuterClass.PolicyOrBuilder
-
addRulesBuilder
repeated .moby.buildkit.v1.sourcepolicy.Rule rules = 2;
-
addRulesBuilder
repeated .moby.buildkit.v1.sourcepolicy.Rule rules = 2;
-
getRulesBuilderList
repeated .moby.buildkit.v1.sourcepolicy.Rule rules = 2;
-