Class Data.Filter.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Data.Filter,Data.Filter.Builder>
viam.app.data.v1.Data.Filter.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable, Data.FilterOrBuilder
Enclosing class:
Data.Filter

public static final class Data.Filter.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Data.Filter,Data.Filter.Builder> implements Data.FilterOrBuilder
 Filter defines the fields over which we can filter data using a logic AND.
 For example, if component_type and robot_id are specified, only data from that `robot_id` of
 type `component_type` is returned. However, we logical OR over the specified tags and bounding
 box labels, such that if component_type, robot_id, tagA, tagB are specified,
 we return data from that `robot_id` of type `component_type` with `tagA` or `tagB`.
 
Protobuf type viam.app.data.v1.Filter
  • Method Details

    • getComponentName

      public String getComponentName()
      string component_name = 1 [json_name = "componentName"];
      Specified by:
      getComponentName in interface Data.FilterOrBuilder
      Returns:
      The componentName.
    • getComponentNameBytes

      public com.google.protobuf.ByteString getComponentNameBytes()
      string component_name = 1 [json_name = "componentName"];
      Specified by:
      getComponentNameBytes in interface Data.FilterOrBuilder
      Returns:
      The bytes for componentName.
    • setComponentName

      public Data.Filter.Builder setComponentName(String value)
      string component_name = 1 [json_name = "componentName"];
      Parameters:
      value - The componentName to set.
      Returns:
      This builder for chaining.
    • clearComponentName

      public Data.Filter.Builder clearComponentName()
      string component_name = 1 [json_name = "componentName"];
      Returns:
      This builder for chaining.
    • setComponentNameBytes

      public Data.Filter.Builder setComponentNameBytes(com.google.protobuf.ByteString value)
      string component_name = 1 [json_name = "componentName"];
      Parameters:
      value - The bytes for componentName to set.
      Returns:
      This builder for chaining.
    • getComponentType

      public String getComponentType()
      string component_type = 2 [json_name = "componentType"];
      Specified by:
      getComponentType in interface Data.FilterOrBuilder
      Returns:
      The componentType.
    • getComponentTypeBytes

      public com.google.protobuf.ByteString getComponentTypeBytes()
      string component_type = 2 [json_name = "componentType"];
      Specified by:
      getComponentTypeBytes in interface Data.FilterOrBuilder
      Returns:
      The bytes for componentType.
    • setComponentType

      public Data.Filter.Builder setComponentType(String value)
      string component_type = 2 [json_name = "componentType"];
      Parameters:
      value - The componentType to set.
      Returns:
      This builder for chaining.
    • clearComponentType

      public Data.Filter.Builder clearComponentType()
      string component_type = 2 [json_name = "componentType"];
      Returns:
      This builder for chaining.
    • setComponentTypeBytes

      public Data.Filter.Builder setComponentTypeBytes(com.google.protobuf.ByteString value)
      string component_type = 2 [json_name = "componentType"];
      Parameters:
      value - The bytes for componentType to set.
      Returns:
      This builder for chaining.
    • getMethod

      public String getMethod()
      string method = 4 [json_name = "method"];
      Specified by:
      getMethod in interface Data.FilterOrBuilder
      Returns:
      The method.
    • getMethodBytes

      public com.google.protobuf.ByteString getMethodBytes()
      string method = 4 [json_name = "method"];
      Specified by:
      getMethodBytes in interface Data.FilterOrBuilder
      Returns:
      The bytes for method.
    • setMethod

      public Data.Filter.Builder setMethod(String value)
      string method = 4 [json_name = "method"];
      Parameters:
      value - The method to set.
      Returns:
      This builder for chaining.
    • clearMethod

      public Data.Filter.Builder clearMethod()
      string method = 4 [json_name = "method"];
      Returns:
      This builder for chaining.
    • setMethodBytes

      public Data.Filter.Builder setMethodBytes(com.google.protobuf.ByteString value)
      string method = 4 [json_name = "method"];
      Parameters:
      value - The bytes for method to set.
      Returns:
      This builder for chaining.
    • getRobotName

      public String getRobotName()
      string robot_name = 6 [json_name = "robotName"];
      Specified by:
      getRobotName in interface Data.FilterOrBuilder
      Returns:
      The robotName.
    • getRobotNameBytes

      public com.google.protobuf.ByteString getRobotNameBytes()
      string robot_name = 6 [json_name = "robotName"];
      Specified by:
      getRobotNameBytes in interface Data.FilterOrBuilder
      Returns:
      The bytes for robotName.
    • setRobotName

      public Data.Filter.Builder setRobotName(String value)
      string robot_name = 6 [json_name = "robotName"];
      Parameters:
      value - The robotName to set.
      Returns:
      This builder for chaining.
    • clearRobotName

      public Data.Filter.Builder clearRobotName()
      string robot_name = 6 [json_name = "robotName"];
      Returns:
      This builder for chaining.
    • setRobotNameBytes

      public Data.Filter.Builder setRobotNameBytes(com.google.protobuf.ByteString value)
      string robot_name = 6 [json_name = "robotName"];
      Parameters:
      value - The bytes for robotName to set.
      Returns:
      This builder for chaining.
    • getRobotId

      public String getRobotId()
      string robot_id = 7 [json_name = "robotId"];
      Specified by:
      getRobotId in interface Data.FilterOrBuilder
      Returns:
      The robotId.
    • getRobotIdBytes

      public com.google.protobuf.ByteString getRobotIdBytes()
      string robot_id = 7 [json_name = "robotId"];
      Specified by:
      getRobotIdBytes in interface Data.FilterOrBuilder
      Returns:
      The bytes for robotId.
    • setRobotId

      public Data.Filter.Builder setRobotId(String value)
      string robot_id = 7 [json_name = "robotId"];
      Parameters:
      value - The robotId to set.
      Returns:
      This builder for chaining.
    • clearRobotId

      public Data.Filter.Builder clearRobotId()
      string robot_id = 7 [json_name = "robotId"];
      Returns:
      This builder for chaining.
    • setRobotIdBytes

      public Data.Filter.Builder setRobotIdBytes(com.google.protobuf.ByteString value)
      string robot_id = 7 [json_name = "robotId"];
      Parameters:
      value - The bytes for robotId to set.
      Returns:
      This builder for chaining.
    • getPartName

      public String getPartName()
      string part_name = 8 [json_name = "partName"];
      Specified by:
      getPartName in interface Data.FilterOrBuilder
      Returns:
      The partName.
    • getPartNameBytes

      public com.google.protobuf.ByteString getPartNameBytes()
      string part_name = 8 [json_name = "partName"];
      Specified by:
      getPartNameBytes in interface Data.FilterOrBuilder
      Returns:
      The bytes for partName.
    • setPartName

      public Data.Filter.Builder setPartName(String value)
      string part_name = 8 [json_name = "partName"];
      Parameters:
      value - The partName to set.
      Returns:
      This builder for chaining.
    • clearPartName

      public Data.Filter.Builder clearPartName()
      string part_name = 8 [json_name = "partName"];
      Returns:
      This builder for chaining.
    • setPartNameBytes

      public Data.Filter.Builder setPartNameBytes(com.google.protobuf.ByteString value)
      string part_name = 8 [json_name = "partName"];
      Parameters:
      value - The bytes for partName to set.
      Returns:
      This builder for chaining.
    • getPartId

      public String getPartId()
      string part_id = 9 [json_name = "partId"];
      Specified by:
      getPartId in interface Data.FilterOrBuilder
      Returns:
      The partId.
    • getPartIdBytes

      public com.google.protobuf.ByteString getPartIdBytes()
      string part_id = 9 [json_name = "partId"];
      Specified by:
      getPartIdBytes in interface Data.FilterOrBuilder
      Returns:
      The bytes for partId.
    • setPartId

      public Data.Filter.Builder setPartId(String value)
      string part_id = 9 [json_name = "partId"];
      Parameters:
      value - The partId to set.
      Returns:
      This builder for chaining.
    • clearPartId

      public Data.Filter.Builder clearPartId()
      string part_id = 9 [json_name = "partId"];
      Returns:
      This builder for chaining.
    • setPartIdBytes

      public Data.Filter.Builder setPartIdBytes(com.google.protobuf.ByteString value)
      string part_id = 9 [json_name = "partId"];
      Parameters:
      value - The bytes for partId to set.
      Returns:
      This builder for chaining.
    • getLocationIdsList

      public List<String> getLocationIdsList()
      repeated string location_ids = 10 [json_name = "locationIds"];
      Specified by:
      getLocationIdsList in interface Data.FilterOrBuilder
      Returns:
      A list containing the locationIds.
    • getLocationIdsCount

      public int getLocationIdsCount()
      repeated string location_ids = 10 [json_name = "locationIds"];
      Specified by:
      getLocationIdsCount in interface Data.FilterOrBuilder
      Returns:
      The count of locationIds.
    • getLocationIds

      public String getLocationIds(int index)
      repeated string location_ids = 10 [json_name = "locationIds"];
      Specified by:
      getLocationIds in interface Data.FilterOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The locationIds at the given index.
    • getLocationIdsBytes

      public com.google.protobuf.ByteString getLocationIdsBytes(int index)
      repeated string location_ids = 10 [json_name = "locationIds"];
      Specified by:
      getLocationIdsBytes in interface Data.FilterOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the locationIds at the given index.
    • setLocationIds

      public Data.Filter.Builder setLocationIds(int index, String value)
      repeated string location_ids = 10 [json_name = "locationIds"];
      Parameters:
      index - The index to set the value at.
      value - The locationIds to set.
      Returns:
      This builder for chaining.
    • addLocationIds

      public Data.Filter.Builder addLocationIds(String value)
      repeated string location_ids = 10 [json_name = "locationIds"];
      Parameters:
      value - The locationIds to add.
      Returns:
      This builder for chaining.
    • addAllLocationIds

      public Data.Filter.Builder addAllLocationIds(Iterable<String> values)
      repeated string location_ids = 10 [json_name = "locationIds"];
      Parameters:
      values - The locationIds to add.
      Returns:
      This builder for chaining.
    • clearLocationIds

      public Data.Filter.Builder clearLocationIds()
      repeated string location_ids = 10 [json_name = "locationIds"];
      Returns:
      This builder for chaining.
    • addLocationIdsBytes

      public Data.Filter.Builder addLocationIdsBytes(com.google.protobuf.ByteString value)
      repeated string location_ids = 10 [json_name = "locationIds"];
      Parameters:
      value - The bytes of the locationIds to add.
      Returns:
      This builder for chaining.
    • getOrganizationIdsList

      public List<String> getOrganizationIdsList()
      repeated string organization_ids = 11 [json_name = "organizationIds"];
      Specified by:
      getOrganizationIdsList in interface Data.FilterOrBuilder
      Returns:
      A list containing the organizationIds.
    • getOrganizationIdsCount

      public int getOrganizationIdsCount()
      repeated string organization_ids = 11 [json_name = "organizationIds"];
      Specified by:
      getOrganizationIdsCount in interface Data.FilterOrBuilder
      Returns:
      The count of organizationIds.
    • getOrganizationIds

      public String getOrganizationIds(int index)
      repeated string organization_ids = 11 [json_name = "organizationIds"];
      Specified by:
      getOrganizationIds in interface Data.FilterOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The organizationIds at the given index.
    • getOrganizationIdsBytes

      public com.google.protobuf.ByteString getOrganizationIdsBytes(int index)
      repeated string organization_ids = 11 [json_name = "organizationIds"];
      Specified by:
      getOrganizationIdsBytes in interface Data.FilterOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the organizationIds at the given index.
    • setOrganizationIds

      public Data.Filter.Builder setOrganizationIds(int index, String value)
      repeated string organization_ids = 11 [json_name = "organizationIds"];
      Parameters:
      index - The index to set the value at.
      value - The organizationIds to set.
      Returns:
      This builder for chaining.
    • addOrganizationIds

      public Data.Filter.Builder addOrganizationIds(String value)
      repeated string organization_ids = 11 [json_name = "organizationIds"];
      Parameters:
      value - The organizationIds to add.
      Returns:
      This builder for chaining.
    • addAllOrganizationIds

      public Data.Filter.Builder addAllOrganizationIds(Iterable<String> values)
      repeated string organization_ids = 11 [json_name = "organizationIds"];
      Parameters:
      values - The organizationIds to add.
      Returns:
      This builder for chaining.
    • clearOrganizationIds

      public Data.Filter.Builder clearOrganizationIds()
      repeated string organization_ids = 11 [json_name = "organizationIds"];
      Returns:
      This builder for chaining.
    • addOrganizationIdsBytes

      public Data.Filter.Builder addOrganizationIdsBytes(com.google.protobuf.ByteString value)
      repeated string organization_ids = 11 [json_name = "organizationIds"];
      Parameters:
      value - The bytes of the organizationIds to add.
      Returns:
      This builder for chaining.
    • getMimeTypeList

      public List<String> getMimeTypeList()
      repeated string mime_type = 12 [json_name = "mimeType"];
      Specified by:
      getMimeTypeList in interface Data.FilterOrBuilder
      Returns:
      A list containing the mimeType.
    • getMimeTypeCount

      public int getMimeTypeCount()
      repeated string mime_type = 12 [json_name = "mimeType"];
      Specified by:
      getMimeTypeCount in interface Data.FilterOrBuilder
      Returns:
      The count of mimeType.
    • getMimeType

      public String getMimeType(int index)
      repeated string mime_type = 12 [json_name = "mimeType"];
      Specified by:
      getMimeType in interface Data.FilterOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The mimeType at the given index.
    • getMimeTypeBytes

      public com.google.protobuf.ByteString getMimeTypeBytes(int index)
      repeated string mime_type = 12 [json_name = "mimeType"];
      Specified by:
      getMimeTypeBytes in interface Data.FilterOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the mimeType at the given index.
    • setMimeType

      public Data.Filter.Builder setMimeType(int index, String value)
      repeated string mime_type = 12 [json_name = "mimeType"];
      Parameters:
      index - The index to set the value at.
      value - The mimeType to set.
      Returns:
      This builder for chaining.
    • addMimeType

      public Data.Filter.Builder addMimeType(String value)
      repeated string mime_type = 12 [json_name = "mimeType"];
      Parameters:
      value - The mimeType to add.
      Returns:
      This builder for chaining.
    • addAllMimeType

      public Data.Filter.Builder addAllMimeType(Iterable<String> values)
      repeated string mime_type = 12 [json_name = "mimeType"];
      Parameters:
      values - The mimeType to add.
      Returns:
      This builder for chaining.
    • clearMimeType

      public Data.Filter.Builder clearMimeType()
      repeated string mime_type = 12 [json_name = "mimeType"];
      Returns:
      This builder for chaining.
    • addMimeTypeBytes

      public Data.Filter.Builder addMimeTypeBytes(com.google.protobuf.ByteString value)
      repeated string mime_type = 12 [json_name = "mimeType"];
      Parameters:
      value - The bytes of the mimeType to add.
      Returns:
      This builder for chaining.
    • hasInterval

      public boolean hasInterval()
      .viam.app.data.v1.CaptureInterval interval = 13 [json_name = "interval"];
      Specified by:
      hasInterval in interface Data.FilterOrBuilder
      Returns:
      Whether the interval field is set.
    • getInterval

      public Data.CaptureInterval getInterval()
      .viam.app.data.v1.CaptureInterval interval = 13 [json_name = "interval"];
      Specified by:
      getInterval in interface Data.FilterOrBuilder
      Returns:
      The interval.
    • setInterval

      public Data.Filter.Builder setInterval(Data.CaptureInterval value)
      .viam.app.data.v1.CaptureInterval interval = 13 [json_name = "interval"];
    • setInterval

      public Data.Filter.Builder setInterval(Data.CaptureInterval.Builder builderForValue)
      .viam.app.data.v1.CaptureInterval interval = 13 [json_name = "interval"];
    • mergeInterval

      public Data.Filter.Builder mergeInterval(Data.CaptureInterval value)
      .viam.app.data.v1.CaptureInterval interval = 13 [json_name = "interval"];
    • clearInterval

      public Data.Filter.Builder clearInterval()
      .viam.app.data.v1.CaptureInterval interval = 13 [json_name = "interval"];
    • hasTagsFilter

      public boolean hasTagsFilter()
      .viam.app.data.v1.TagsFilter tags_filter = 14 [json_name = "tagsFilter"];
      Specified by:
      hasTagsFilter in interface Data.FilterOrBuilder
      Returns:
      Whether the tagsFilter field is set.
    • getTagsFilter

      public Data.TagsFilter getTagsFilter()
      .viam.app.data.v1.TagsFilter tags_filter = 14 [json_name = "tagsFilter"];
      Specified by:
      getTagsFilter in interface Data.FilterOrBuilder
      Returns:
      The tagsFilter.
    • setTagsFilter

      public Data.Filter.Builder setTagsFilter(Data.TagsFilter value)
      .viam.app.data.v1.TagsFilter tags_filter = 14 [json_name = "tagsFilter"];
    • setTagsFilter

      public Data.Filter.Builder setTagsFilter(Data.TagsFilter.Builder builderForValue)
      .viam.app.data.v1.TagsFilter tags_filter = 14 [json_name = "tagsFilter"];
    • mergeTagsFilter

      public Data.Filter.Builder mergeTagsFilter(Data.TagsFilter value)
      .viam.app.data.v1.TagsFilter tags_filter = 14 [json_name = "tagsFilter"];
    • clearTagsFilter

      public Data.Filter.Builder clearTagsFilter()
      .viam.app.data.v1.TagsFilter tags_filter = 14 [json_name = "tagsFilter"];
    • getBboxLabelsList

      public List<String> getBboxLabelsList()
       bbox_labels are used to match documents with the specified bounding box labels (using logical OR).
       
      repeated string bbox_labels = 15 [json_name = "bboxLabels"];
      Specified by:
      getBboxLabelsList in interface Data.FilterOrBuilder
      Returns:
      A list containing the bboxLabels.
    • getBboxLabelsCount

      public int getBboxLabelsCount()
       bbox_labels are used to match documents with the specified bounding box labels (using logical OR).
       
      repeated string bbox_labels = 15 [json_name = "bboxLabels"];
      Specified by:
      getBboxLabelsCount in interface Data.FilterOrBuilder
      Returns:
      The count of bboxLabels.
    • getBboxLabels

      public String getBboxLabels(int index)
       bbox_labels are used to match documents with the specified bounding box labels (using logical OR).
       
      repeated string bbox_labels = 15 [json_name = "bboxLabels"];
      Specified by:
      getBboxLabels in interface Data.FilterOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The bboxLabels at the given index.
    • getBboxLabelsBytes

      public com.google.protobuf.ByteString getBboxLabelsBytes(int index)
       bbox_labels are used to match documents with the specified bounding box labels (using logical OR).
       
      repeated string bbox_labels = 15 [json_name = "bboxLabels"];
      Specified by:
      getBboxLabelsBytes in interface Data.FilterOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the bboxLabels at the given index.
    • setBboxLabels

      public Data.Filter.Builder setBboxLabels(int index, String value)
       bbox_labels are used to match documents with the specified bounding box labels (using logical OR).
       
      repeated string bbox_labels = 15 [json_name = "bboxLabels"];
      Parameters:
      index - The index to set the value at.
      value - The bboxLabels to set.
      Returns:
      This builder for chaining.
    • addBboxLabels

      public Data.Filter.Builder addBboxLabels(String value)
       bbox_labels are used to match documents with the specified bounding box labels (using logical OR).
       
      repeated string bbox_labels = 15 [json_name = "bboxLabels"];
      Parameters:
      value - The bboxLabels to add.
      Returns:
      This builder for chaining.
    • addAllBboxLabels

      public Data.Filter.Builder addAllBboxLabels(Iterable<String> values)
       bbox_labels are used to match documents with the specified bounding box labels (using logical OR).
       
      repeated string bbox_labels = 15 [json_name = "bboxLabels"];
      Parameters:
      values - The bboxLabels to add.
      Returns:
      This builder for chaining.
    • clearBboxLabels

      public Data.Filter.Builder clearBboxLabels()
       bbox_labels are used to match documents with the specified bounding box labels (using logical OR).
       
      repeated string bbox_labels = 15 [json_name = "bboxLabels"];
      Returns:
      This builder for chaining.
    • addBboxLabelsBytes

      public Data.Filter.Builder addBboxLabelsBytes(com.google.protobuf.ByteString value)
       bbox_labels are used to match documents with the specified bounding box labels (using logical OR).
       
      repeated string bbox_labels = 15 [json_name = "bboxLabels"];
      Parameters:
      value - The bytes of the bboxLabels to add.
      Returns:
      This builder for chaining.
    • getDatasetId

      public String getDatasetId()
      string dataset_id = 16 [json_name = "datasetId"];
      Specified by:
      getDatasetId in interface Data.FilterOrBuilder
      Returns:
      The datasetId.
    • getDatasetIdBytes

      public com.google.protobuf.ByteString getDatasetIdBytes()
      string dataset_id = 16 [json_name = "datasetId"];
      Specified by:
      getDatasetIdBytes in interface Data.FilterOrBuilder
      Returns:
      The bytes for datasetId.
    • setDatasetId

      public Data.Filter.Builder setDatasetId(String value)
      string dataset_id = 16 [json_name = "datasetId"];
      Parameters:
      value - The datasetId to set.
      Returns:
      This builder for chaining.
    • clearDatasetId

      public Data.Filter.Builder clearDatasetId()
      string dataset_id = 16 [json_name = "datasetId"];
      Returns:
      This builder for chaining.
    • setDatasetIdBytes

      public Data.Filter.Builder setDatasetIdBytes(com.google.protobuf.ByteString value)
      string dataset_id = 16 [json_name = "datasetId"];
      Parameters:
      value - The bytes for datasetId to set.
      Returns:
      This builder for chaining.