Package viam.app.v1

Class App.Fragment.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<App.Fragment,App.Fragment.Builder>
viam.app.v1.App.Fragment.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable, App.FragmentOrBuilder
Enclosing class:
App.Fragment

public static final class App.Fragment.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<App.Fragment,App.Fragment.Builder> implements App.FragmentOrBuilder
Protobuf type viam.app.v1.Fragment
  • Method Details

    • getId

      public String getId()
      string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""];
      Specified by:
      getId in interface App.FragmentOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
      string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""];
      Specified by:
      getIdBytes in interface App.FragmentOrBuilder
      Returns:
      The bytes for id.
    • setId

      public App.Fragment.Builder setId(String value)
      string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""];
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public App.Fragment.Builder clearId()
      string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""];
      Returns:
      This builder for chaining.
    • setIdBytes

      public App.Fragment.Builder setIdBytes(com.google.protobuf.ByteString value)
      string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""];
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • getName

      public String getName()
      string name = 2 [json_name = "name", (.tagger.v1.tags) = "bson:\"name\" json:\"name\""];
      Specified by:
      getName in interface App.FragmentOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
      string name = 2 [json_name = "name", (.tagger.v1.tags) = "bson:\"name\" json:\"name\""];
      Specified by:
      getNameBytes in interface App.FragmentOrBuilder
      Returns:
      The bytes for name.
    • setName

      public App.Fragment.Builder setName(String value)
      string name = 2 [json_name = "name", (.tagger.v1.tags) = "bson:\"name\" json:\"name\""];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public App.Fragment.Builder clearName()
      string name = 2 [json_name = "name", (.tagger.v1.tags) = "bson:\"name\" json:\"name\""];
      Returns:
      This builder for chaining.
    • setNameBytes

      public App.Fragment.Builder setNameBytes(com.google.protobuf.ByteString value)
      string name = 2 [json_name = "name", (.tagger.v1.tags) = "bson:\"name\" json:\"name\""];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasFragment

      public boolean hasFragment()
      .google.protobuf.Struct fragment = 3 [json_name = "fragment", (.tagger.v1.tags) = "bson:\"fragment\" json:\"fragment\""];
      Specified by:
      hasFragment in interface App.FragmentOrBuilder
      Returns:
      Whether the fragment field is set.
    • getFragment

      public com.google.protobuf.Struct getFragment()
      .google.protobuf.Struct fragment = 3 [json_name = "fragment", (.tagger.v1.tags) = "bson:\"fragment\" json:\"fragment\""];
      Specified by:
      getFragment in interface App.FragmentOrBuilder
      Returns:
      The fragment.
    • setFragment

      public App.Fragment.Builder setFragment(com.google.protobuf.Struct value)
      .google.protobuf.Struct fragment = 3 [json_name = "fragment", (.tagger.v1.tags) = "bson:\"fragment\" json:\"fragment\""];
    • setFragment

      public App.Fragment.Builder setFragment(com.google.protobuf.Struct.Builder builderForValue)
      .google.protobuf.Struct fragment = 3 [json_name = "fragment", (.tagger.v1.tags) = "bson:\"fragment\" json:\"fragment\""];
    • mergeFragment

      public App.Fragment.Builder mergeFragment(com.google.protobuf.Struct value)
      .google.protobuf.Struct fragment = 3 [json_name = "fragment", (.tagger.v1.tags) = "bson:\"fragment\" json:\"fragment\""];
    • clearFragment

      public App.Fragment.Builder clearFragment()
      .google.protobuf.Struct fragment = 3 [json_name = "fragment", (.tagger.v1.tags) = "bson:\"fragment\" json:\"fragment\""];
    • getOrganizationOwner

      public String getOrganizationOwner()
      string organization_owner = 4 [json_name = "organizationOwner", (.tagger.v1.tags) = "bson:\"organization_owner\" json:\"owner\""];
      Specified by:
      getOrganizationOwner in interface App.FragmentOrBuilder
      Returns:
      The organizationOwner.
    • getOrganizationOwnerBytes

      public com.google.protobuf.ByteString getOrganizationOwnerBytes()
      string organization_owner = 4 [json_name = "organizationOwner", (.tagger.v1.tags) = "bson:\"organization_owner\" json:\"owner\""];
      Specified by:
      getOrganizationOwnerBytes in interface App.FragmentOrBuilder
      Returns:
      The bytes for organizationOwner.
    • setOrganizationOwner

      public App.Fragment.Builder setOrganizationOwner(String value)
      string organization_owner = 4 [json_name = "organizationOwner", (.tagger.v1.tags) = "bson:\"organization_owner\" json:\"owner\""];
      Parameters:
      value - The organizationOwner to set.
      Returns:
      This builder for chaining.
    • clearOrganizationOwner

      public App.Fragment.Builder clearOrganizationOwner()
      string organization_owner = 4 [json_name = "organizationOwner", (.tagger.v1.tags) = "bson:\"organization_owner\" json:\"owner\""];
      Returns:
      This builder for chaining.
    • setOrganizationOwnerBytes

      public App.Fragment.Builder setOrganizationOwnerBytes(com.google.protobuf.ByteString value)
      string organization_owner = 4 [json_name = "organizationOwner", (.tagger.v1.tags) = "bson:\"organization_owner\" json:\"owner\""];
      Parameters:
      value - The bytes for organizationOwner to set.
      Returns:
      This builder for chaining.
    • getPublic

      public boolean getPublic()
      bool public = 5 [json_name = "public", (.tagger.v1.tags) = "bson:\"public\" json:\"public\""];
      Specified by:
      getPublic in interface App.FragmentOrBuilder
      Returns:
      The public.
    • setPublic

      public App.Fragment.Builder setPublic(boolean value)
      bool public = 5 [json_name = "public", (.tagger.v1.tags) = "bson:\"public\" json:\"public\""];
      Parameters:
      value - The public to set.
      Returns:
      This builder for chaining.
    • clearPublic

      public App.Fragment.Builder clearPublic()
      bool public = 5 [json_name = "public", (.tagger.v1.tags) = "bson:\"public\" json:\"public\""];
      Returns:
      This builder for chaining.
    • hasCreatedOn

      public boolean hasCreatedOn()
      .google.protobuf.Timestamp created_on = 6 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""];
      Specified by:
      hasCreatedOn in interface App.FragmentOrBuilder
      Returns:
      Whether the createdOn field is set.
    • getCreatedOn

      public com.google.protobuf.Timestamp getCreatedOn()
      .google.protobuf.Timestamp created_on = 6 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""];
      Specified by:
      getCreatedOn in interface App.FragmentOrBuilder
      Returns:
      The createdOn.
    • setCreatedOn

      public App.Fragment.Builder setCreatedOn(com.google.protobuf.Timestamp value)
      .google.protobuf.Timestamp created_on = 6 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""];
    • setCreatedOn

      public App.Fragment.Builder setCreatedOn(com.google.protobuf.Timestamp.Builder builderForValue)
      .google.protobuf.Timestamp created_on = 6 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""];
    • mergeCreatedOn

      public App.Fragment.Builder mergeCreatedOn(com.google.protobuf.Timestamp value)
      .google.protobuf.Timestamp created_on = 6 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""];
    • clearCreatedOn

      public App.Fragment.Builder clearCreatedOn()
      .google.protobuf.Timestamp created_on = 6 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\""];
    • getOrganizationName

      public String getOrganizationName()
      string organization_name = 7 [json_name = "organizationName"];
      Specified by:
      getOrganizationName in interface App.FragmentOrBuilder
      Returns:
      The organizationName.
    • getOrganizationNameBytes

      public com.google.protobuf.ByteString getOrganizationNameBytes()
      string organization_name = 7 [json_name = "organizationName"];
      Specified by:
      getOrganizationNameBytes in interface App.FragmentOrBuilder
      Returns:
      The bytes for organizationName.
    • setOrganizationName

      public App.Fragment.Builder setOrganizationName(String value)
      string organization_name = 7 [json_name = "organizationName"];
      Parameters:
      value - The organizationName to set.
      Returns:
      This builder for chaining.
    • clearOrganizationName

      public App.Fragment.Builder clearOrganizationName()
      string organization_name = 7 [json_name = "organizationName"];
      Returns:
      This builder for chaining.
    • setOrganizationNameBytes

      public App.Fragment.Builder setOrganizationNameBytes(com.google.protobuf.ByteString value)
      string organization_name = 7 [json_name = "organizationName"];
      Parameters:
      value - The bytes for organizationName to set.
      Returns:
      This builder for chaining.
    • getRobotPartCount

      public int getRobotPartCount()
       number of robot parts using this fragment
       
      int32 robot_part_count = 9 [json_name = "robotPartCount"];
      Specified by:
      getRobotPartCount in interface App.FragmentOrBuilder
      Returns:
      The robotPartCount.
    • setRobotPartCount

      public App.Fragment.Builder setRobotPartCount(int value)
       number of robot parts using this fragment
       
      int32 robot_part_count = 9 [json_name = "robotPartCount"];
      Parameters:
      value - The robotPartCount to set.
      Returns:
      This builder for chaining.
    • clearRobotPartCount

      public App.Fragment.Builder clearRobotPartCount()
       number of robot parts using this fragment
       
      int32 robot_part_count = 9 [json_name = "robotPartCount"];
      Returns:
      This builder for chaining.
    • getOrganizationCount

      public int getOrganizationCount()
       number of organizations using this fragment
       
      int32 organization_count = 10 [json_name = "organizationCount"];
      Specified by:
      getOrganizationCount in interface App.FragmentOrBuilder
      Returns:
      The organizationCount.
    • setOrganizationCount

      public App.Fragment.Builder setOrganizationCount(int value)
       number of organizations using this fragment
       
      int32 organization_count = 10 [json_name = "organizationCount"];
      Parameters:
      value - The organizationCount to set.
      Returns:
      This builder for chaining.
    • clearOrganizationCount

      public App.Fragment.Builder clearOrganizationCount()
       number of organizations using this fragment
       
      int32 organization_count = 10 [json_name = "organizationCount"];
      Returns:
      This builder for chaining.
    • getOnlyUsedByOwner

      public boolean getOnlyUsedByOwner()
       whether the organization(s) using this fragment is the same as the fragment org
       
      bool only_used_by_owner = 11 [json_name = "onlyUsedByOwner"];
      Specified by:
      getOnlyUsedByOwner in interface App.FragmentOrBuilder
      Returns:
      The onlyUsedByOwner.
    • setOnlyUsedByOwner

      public App.Fragment.Builder setOnlyUsedByOwner(boolean value)
       whether the organization(s) using this fragment is the same as the fragment org
       
      bool only_used_by_owner = 11 [json_name = "onlyUsedByOwner"];
      Parameters:
      value - The onlyUsedByOwner to set.
      Returns:
      This builder for chaining.
    • clearOnlyUsedByOwner

      public App.Fragment.Builder clearOnlyUsedByOwner()
       whether the organization(s) using this fragment is the same as the fragment org
       
      bool only_used_by_owner = 11 [json_name = "onlyUsedByOwner"];
      Returns:
      This builder for chaining.
    • getVisibilityValue

      public int getVisibilityValue()
       the visibility of a fragment; public, private or unlisted
       
      .viam.app.v1.FragmentVisibility visibility = 12 [json_name = "visibility"];
      Specified by:
      getVisibilityValue in interface App.FragmentOrBuilder
      Returns:
      The enum numeric value on the wire for visibility.
    • setVisibilityValue

      public App.Fragment.Builder setVisibilityValue(int value)
       the visibility of a fragment; public, private or unlisted
       
      .viam.app.v1.FragmentVisibility visibility = 12 [json_name = "visibility"];
      Parameters:
      value - The visibility to set.
      Returns:
      This builder for chaining.
    • getVisibility

      public App.FragmentVisibility getVisibility()
       the visibility of a fragment; public, private or unlisted
       
      .viam.app.v1.FragmentVisibility visibility = 12 [json_name = "visibility"];
      Specified by:
      getVisibility in interface App.FragmentOrBuilder
      Returns:
      The visibility.
    • setVisibility

      public App.Fragment.Builder setVisibility(App.FragmentVisibility value)
       the visibility of a fragment; public, private or unlisted
       
      .viam.app.v1.FragmentVisibility visibility = 12 [json_name = "visibility"];
      Parameters:
      value - The enum numeric value on the wire for visibility to set.
      Returns:
      This builder for chaining.
    • clearVisibility

      public App.Fragment.Builder clearVisibility()
       the visibility of a fragment; public, private or unlisted
       
      .viam.app.v1.FragmentVisibility visibility = 12 [json_name = "visibility"];
      Returns:
      This builder for chaining.
    • hasLastUpdated

      public boolean hasLastUpdated()
       latest timestamp when fragment was updated
       
      .google.protobuf.Timestamp last_updated = 13 [json_name = "lastUpdated", (.tagger.v1.tags) = "bson:\"last_updated_at\""];
      Specified by:
      hasLastUpdated in interface App.FragmentOrBuilder
      Returns:
      Whether the lastUpdated field is set.
    • getLastUpdated

      public com.google.protobuf.Timestamp getLastUpdated()
       latest timestamp when fragment was updated
       
      .google.protobuf.Timestamp last_updated = 13 [json_name = "lastUpdated", (.tagger.v1.tags) = "bson:\"last_updated_at\""];
      Specified by:
      getLastUpdated in interface App.FragmentOrBuilder
      Returns:
      The lastUpdated.
    • setLastUpdated

      public App.Fragment.Builder setLastUpdated(com.google.protobuf.Timestamp value)
       latest timestamp when fragment was updated
       
      .google.protobuf.Timestamp last_updated = 13 [json_name = "lastUpdated", (.tagger.v1.tags) = "bson:\"last_updated_at\""];
    • setLastUpdated

      public App.Fragment.Builder setLastUpdated(com.google.protobuf.Timestamp.Builder builderForValue)
       latest timestamp when fragment was updated
       
      .google.protobuf.Timestamp last_updated = 13 [json_name = "lastUpdated", (.tagger.v1.tags) = "bson:\"last_updated_at\""];
    • mergeLastUpdated

      public App.Fragment.Builder mergeLastUpdated(com.google.protobuf.Timestamp value)
       latest timestamp when fragment was updated
       
      .google.protobuf.Timestamp last_updated = 13 [json_name = "lastUpdated", (.tagger.v1.tags) = "bson:\"last_updated_at\""];
    • clearLastUpdated

      public App.Fragment.Builder clearLastUpdated()
       latest timestamp when fragment was updated
       
      .google.protobuf.Timestamp last_updated = 13 [json_name = "lastUpdated", (.tagger.v1.tags) = "bson:\"last_updated_at\""];