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 worker
 
Protobuf type pb.WorkerConstraints
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Ops.WorkerConstraints.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Ops.WorkerConstraints.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Ops.WorkerConstraints.Builder>
    • getDefaultInstanceForType

      public Ops.WorkerConstraints getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Ops.WorkerConstraints build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Ops.WorkerConstraints buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Ops.WorkerConstraints.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Ops.WorkerConstraints.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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 interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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 interface Ops.WorkerConstraintsOrBuilder
      Returns:
      A list containing the filter.
    • getFilterCount

      public int getFilterCount()
       containerd-style filter
       
      repeated string filter = 1;
      Specified by:
      getFilterCount in interface Ops.WorkerConstraintsOrBuilder
      Returns:
      The count of filter.
    • getFilter

      public String getFilter(int index)
       containerd-style filter
       
      repeated string filter = 1;
      Specified by:
      getFilter in interface Ops.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 interface Ops.WorkerConstraintsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the filter at the given index.
    • setFilter

      public Ops.WorkerConstraints.Builder setFilter(int index, String value)
       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

      public Ops.WorkerConstraints.Builder addFilter(String value)
       containerd-style filter
       
      repeated string filter = 1;
      Parameters:
      value - The filter to add.
      Returns:
      This builder for chaining.
    • addAllFilter

      public Ops.WorkerConstraints.Builder addAllFilter(Iterable<String> values)
       containerd-style filter
       
      repeated string filter = 1;
      Parameters:
      values - The filter to add.
      Returns:
      This builder for chaining.
    • clearFilter

      public Ops.WorkerConstraints.Builder clearFilter()
       containerd-style filter
       
      repeated string filter = 1;
      Returns:
      This builder for chaining.
    • addFilterBytes

      public Ops.WorkerConstraints.Builder addFilterBytes(com.google.protobuf.ByteString value)
       containerd-style filter
       
      repeated string filter = 1;
      Parameters:
      value - The bytes of the filter to add.
      Returns:
      This builder for chaining.