Class DataSync.UploadMetadata.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<DataSync.UploadMetadata,DataSync.UploadMetadata.Builder>
viam.app.datasync.v1.DataSync.UploadMetadata.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable, DataSync.UploadMetadataOrBuilder
Enclosing class:
DataSync.UploadMetadata

public static final class DataSync.UploadMetadata.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<DataSync.UploadMetadata,DataSync.UploadMetadata.Builder> implements DataSync.UploadMetadataOrBuilder
 UploadMetadata contains the metadata for binary (image + file) data.
 
Protobuf type viam.app.datasync.v1.UploadMetadata
  • Method Details

    • getPartId

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

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

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

      public DataSync.UploadMetadata.Builder clearPartId()
      string part_id = 1 [json_name = "partId"];
      Returns:
      This builder for chaining.
    • setPartIdBytes

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

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

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

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

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

      public DataSync.UploadMetadata.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.
    • getComponentName

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

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

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

      public DataSync.UploadMetadata.Builder clearComponentName()
      string component_name = 3 [json_name = "componentName"];
      Returns:
      This builder for chaining.
    • setComponentNameBytes

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

      public String getMethodName()
      string method_name = 5 [json_name = "methodName"];
      Specified by:
      getMethodName in interface DataSync.UploadMetadataOrBuilder
      Returns:
      The methodName.
    • getMethodNameBytes

      public com.google.protobuf.ByteString getMethodNameBytes()
      string method_name = 5 [json_name = "methodName"];
      Specified by:
      getMethodNameBytes in interface DataSync.UploadMetadataOrBuilder
      Returns:
      The bytes for methodName.
    • setMethodName

      public DataSync.UploadMetadata.Builder setMethodName(String value)
      string method_name = 5 [json_name = "methodName"];
      Parameters:
      value - The methodName to set.
      Returns:
      This builder for chaining.
    • clearMethodName

      public DataSync.UploadMetadata.Builder clearMethodName()
      string method_name = 5 [json_name = "methodName"];
      Returns:
      This builder for chaining.
    • setMethodNameBytes

      public DataSync.UploadMetadata.Builder setMethodNameBytes(com.google.protobuf.ByteString value)
      string method_name = 5 [json_name = "methodName"];
      Parameters:
      value - The bytes for methodName to set.
      Returns:
      This builder for chaining.
    • getTypeValue

      public int getTypeValue()
      .viam.app.datasync.v1.DataType type = 6 [json_name = "type"];
      Specified by:
      getTypeValue in interface DataSync.UploadMetadataOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public DataSync.UploadMetadata.Builder setTypeValue(int value)
      .viam.app.datasync.v1.DataType type = 6 [json_name = "type"];
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • getType

      public DataSync.DataType getType()
      .viam.app.datasync.v1.DataType type = 6 [json_name = "type"];
      Specified by:
      getType in interface DataSync.UploadMetadataOrBuilder
      Returns:
      The type.
    • setType

      .viam.app.datasync.v1.DataType type = 6 [json_name = "type"];
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • clearType

      public DataSync.UploadMetadata.Builder clearType()
      .viam.app.datasync.v1.DataType type = 6 [json_name = "type"];
      Returns:
      This builder for chaining.
    • getFileName

      public String getFileName()
      string file_name = 7 [json_name = "fileName"];
      Specified by:
      getFileName in interface DataSync.UploadMetadataOrBuilder
      Returns:
      The fileName.
    • getFileNameBytes

      public com.google.protobuf.ByteString getFileNameBytes()
      string file_name = 7 [json_name = "fileName"];
      Specified by:
      getFileNameBytes in interface DataSync.UploadMetadataOrBuilder
      Returns:
      The bytes for fileName.
    • setFileName

      public DataSync.UploadMetadata.Builder setFileName(String value)
      string file_name = 7 [json_name = "fileName"];
      Parameters:
      value - The fileName to set.
      Returns:
      This builder for chaining.
    • clearFileName

      public DataSync.UploadMetadata.Builder clearFileName()
      string file_name = 7 [json_name = "fileName"];
      Returns:
      This builder for chaining.
    • setFileNameBytes

      public DataSync.UploadMetadata.Builder setFileNameBytes(com.google.protobuf.ByteString value)
      string file_name = 7 [json_name = "fileName"];
      Parameters:
      value - The bytes for fileName to set.
      Returns:
      This builder for chaining.
    • getMethodParametersCount

      public int getMethodParametersCount()
      Description copied from interface: DataSync.UploadMetadataOrBuilder
      map<string, .google.protobuf.Any> method_parameters = 8 [json_name = "methodParameters"];
      Specified by:
      getMethodParametersCount in interface DataSync.UploadMetadataOrBuilder
    • containsMethodParameters

      public boolean containsMethodParameters(String key)
      map<string, .google.protobuf.Any> method_parameters = 8 [json_name = "methodParameters"];
      Specified by:
      containsMethodParameters in interface DataSync.UploadMetadataOrBuilder
    • clearMethodParameters

      public DataSync.UploadMetadata.Builder clearMethodParameters()
    • removeMethodParameters

      public DataSync.UploadMetadata.Builder removeMethodParameters(String key)
      map<string, .google.protobuf.Any> method_parameters = 8 [json_name = "methodParameters"];
    • getMethodParameters

      @Deprecated public Map<String,com.google.protobuf.Any> getMethodParameters()
      Deprecated.
      Specified by:
      getMethodParameters in interface DataSync.UploadMetadataOrBuilder
    • getMethodParametersMap

      public Map<String,com.google.protobuf.Any> getMethodParametersMap()
      map<string, .google.protobuf.Any> method_parameters = 8 [json_name = "methodParameters"];
      Specified by:
      getMethodParametersMap in interface DataSync.UploadMetadataOrBuilder
    • getMethodParametersOrDefault

      public com.google.protobuf.Any getMethodParametersOrDefault(String key, com.google.protobuf.Any defaultValue)
      map<string, .google.protobuf.Any> method_parameters = 8 [json_name = "methodParameters"];
      Specified by:
      getMethodParametersOrDefault in interface DataSync.UploadMetadataOrBuilder
    • getMethodParametersOrThrow

      public com.google.protobuf.Any getMethodParametersOrThrow(String key)
      map<string, .google.protobuf.Any> method_parameters = 8 [json_name = "methodParameters"];
      Specified by:
      getMethodParametersOrThrow in interface DataSync.UploadMetadataOrBuilder
    • putMethodParameters

      public DataSync.UploadMetadata.Builder putMethodParameters(String key, com.google.protobuf.Any value)
      map<string, .google.protobuf.Any> method_parameters = 8 [json_name = "methodParameters"];
    • putAllMethodParameters

      public DataSync.UploadMetadata.Builder putAllMethodParameters(Map<String,com.google.protobuf.Any> values)
      map<string, .google.protobuf.Any> method_parameters = 8 [json_name = "methodParameters"];
    • getFileExtension

      public String getFileExtension()
      string file_extension = 9 [json_name = "fileExtension"];
      Specified by:
      getFileExtension in interface DataSync.UploadMetadataOrBuilder
      Returns:
      The fileExtension.
    • getFileExtensionBytes

      public com.google.protobuf.ByteString getFileExtensionBytes()
      string file_extension = 9 [json_name = "fileExtension"];
      Specified by:
      getFileExtensionBytes in interface DataSync.UploadMetadataOrBuilder
      Returns:
      The bytes for fileExtension.
    • setFileExtension

      public DataSync.UploadMetadata.Builder setFileExtension(String value)
      string file_extension = 9 [json_name = "fileExtension"];
      Parameters:
      value - The fileExtension to set.
      Returns:
      This builder for chaining.
    • clearFileExtension

      public DataSync.UploadMetadata.Builder clearFileExtension()
      string file_extension = 9 [json_name = "fileExtension"];
      Returns:
      This builder for chaining.
    • setFileExtensionBytes

      public DataSync.UploadMetadata.Builder setFileExtensionBytes(com.google.protobuf.ByteString value)
      string file_extension = 9 [json_name = "fileExtension"];
      Parameters:
      value - The bytes for fileExtension to set.
      Returns:
      This builder for chaining.
    • getTagsList

      public List<String> getTagsList()
      repeated string tags = 10 [json_name = "tags"];
      Specified by:
      getTagsList in interface DataSync.UploadMetadataOrBuilder
      Returns:
      A list containing the tags.
    • getTagsCount

      public int getTagsCount()
      repeated string tags = 10 [json_name = "tags"];
      Specified by:
      getTagsCount in interface DataSync.UploadMetadataOrBuilder
      Returns:
      The count of tags.
    • getTags

      public String getTags(int index)
      repeated string tags = 10 [json_name = "tags"];
      Specified by:
      getTags in interface DataSync.UploadMetadataOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The tags at the given index.
    • getTagsBytes

      public com.google.protobuf.ByteString getTagsBytes(int index)
      repeated string tags = 10 [json_name = "tags"];
      Specified by:
      getTagsBytes in interface DataSync.UploadMetadataOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the tags at the given index.
    • setTags

      public DataSync.UploadMetadata.Builder setTags(int index, String value)
      repeated string tags = 10 [json_name = "tags"];
      Parameters:
      index - The index to set the value at.
      value - The tags to set.
      Returns:
      This builder for chaining.
    • addTags

      public DataSync.UploadMetadata.Builder addTags(String value)
      repeated string tags = 10 [json_name = "tags"];
      Parameters:
      value - The tags to add.
      Returns:
      This builder for chaining.
    • addAllTags

      public DataSync.UploadMetadata.Builder addAllTags(Iterable<String> values)
      repeated string tags = 10 [json_name = "tags"];
      Parameters:
      values - The tags to add.
      Returns:
      This builder for chaining.
    • clearTags

      public DataSync.UploadMetadata.Builder clearTags()
      repeated string tags = 10 [json_name = "tags"];
      Returns:
      This builder for chaining.
    • addTagsBytes

      public DataSync.UploadMetadata.Builder addTagsBytes(com.google.protobuf.ByteString value)
      repeated string tags = 10 [json_name = "tags"];
      Parameters:
      value - The bytes of the tags to add.
      Returns:
      This builder for chaining.