Class Ops.WorkerConstraints.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Ops.WorkerConstraints.Builder>
com.google.protobuf.GeneratedMessage.Builder<Ops.WorkerConstraints.Builder>
pb.Ops.WorkerConstraints.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,Ops.WorkerConstraintsOrBuilder
- Enclosing class:
Ops.WorkerConstraints
public static final class Ops.WorkerConstraints.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Ops.WorkerConstraints.Builder>
implements Ops.WorkerConstraintsOrBuilder
WorkerConstraints defines conditions for the workerProtobuf type
pb.WorkerConstraints
-
Method Summary
Modifier and TypeMethodDescriptionaddAllFilter
(Iterable<String> values) containerd-style filtercontainerd-style filteraddFilterBytes
(com.google.protobuf.ByteString value) containerd-style filterbuild()
clear()
containerd-style filterstatic final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getFilter
(int index) containerd-style filtercom.google.protobuf.ByteString
getFilterBytes
(int index) containerd-style filterint
containerd-style filtercom.google.protobuf.ProtocolStringList
containerd-style filterprotected 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
(Ops.WorkerConstraints other) containerd-style filterMethods 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<Ops.WorkerConstraints.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<Ops.WorkerConstraints.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<Ops.WorkerConstraints.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<Ops.WorkerConstraints.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<Ops.WorkerConstraints.Builder>
-
mergeFrom
public Ops.WorkerConstraints.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<Ops.WorkerConstraints.Builder>
- Throws:
IOException
-
getFilterList
public com.google.protobuf.ProtocolStringList getFilterList()containerd-style filter
repeated string filter = 1;
- Specified by:
getFilterList
in interfaceOps.WorkerConstraintsOrBuilder
- Returns:
- A list containing the filter.
-
getFilterCount
public int getFilterCount()containerd-style filter
repeated string filter = 1;
- Specified by:
getFilterCount
in interfaceOps.WorkerConstraintsOrBuilder
- Returns:
- The count of filter.
-
getFilter
containerd-style filter
repeated string filter = 1;
- Specified by:
getFilter
in interfaceOps.WorkerConstraintsOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The filter at the given index.
-
getFilterBytes
public com.google.protobuf.ByteString getFilterBytes(int index) containerd-style filter
repeated string filter = 1;
- Specified by:
getFilterBytes
in interfaceOps.WorkerConstraintsOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the filter at the given index.
-
setFilter
containerd-style filter
repeated string filter = 1;
- Parameters:
index
- The index to set the value at.value
- The filter to set.- Returns:
- This builder for chaining.
-
addFilter
containerd-style filter
repeated string filter = 1;
- Parameters:
value
- The filter to add.- Returns:
- This builder for chaining.
-
addAllFilter
containerd-style filter
repeated string filter = 1;
- Parameters:
values
- The filter to add.- Returns:
- This builder for chaining.
-
clearFilter
containerd-style filter
repeated string filter = 1;
- Returns:
- This builder for chaining.
-
addFilterBytes
containerd-style filter
repeated string filter = 1;
- Parameters:
value
- The bytes of the filter to add.- Returns:
- This builder for chaining.
-