Package viam.app.datasync.v1
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
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionaddAllTags
(Iterable<String> values) repeated string tags = 10 [json_name = "tags"];
repeated string tags = 10 [json_name = "tags"];
addTagsBytes
(com.google.protobuf.ByteString value) repeated string tags = 10 [json_name = "tags"];
string component_name = 3 [json_name = "componentName"];
string component_type = 2 [json_name = "componentType"];
string file_extension = 9 [json_name = "fileExtension"];
string file_name = 7 [json_name = "fileName"];
string method_name = 5 [json_name = "methodName"];
string part_id = 1 [json_name = "partId"];
repeated string tags = 10 [json_name = "tags"];
.viam.app.datasync.v1.DataType type = 6 [json_name = "type"];
boolean
map<string, .google.protobuf.Any> method_parameters = 8 [json_name = "methodParameters"];
string component_name = 3 [json_name = "componentName"];
com.google.protobuf.ByteString
string component_name = 3 [json_name = "componentName"];
string component_type = 2 [json_name = "componentType"];
com.google.protobuf.ByteString
string component_type = 2 [json_name = "componentType"];
string file_extension = 9 [json_name = "fileExtension"];
com.google.protobuf.ByteString
string file_extension = 9 [json_name = "fileExtension"];
string file_name = 7 [json_name = "fileName"];
com.google.protobuf.ByteString
string file_name = 7 [json_name = "fileName"];
string method_name = 5 [json_name = "methodName"];
com.google.protobuf.ByteString
string method_name = 5 [json_name = "methodName"];
Deprecated.int
map<string, .google.protobuf.Any> method_parameters = 8 [json_name = "methodParameters"];
map<string, .google.protobuf.Any> method_parameters = 8 [json_name = "methodParameters"];
com.google.protobuf.Any
getMethodParametersOrDefault
(String key, com.google.protobuf.Any defaultValue) map<string, .google.protobuf.Any> method_parameters = 8 [json_name = "methodParameters"];
com.google.protobuf.Any
map<string, .google.protobuf.Any> method_parameters = 8 [json_name = "methodParameters"];
string part_id = 1 [json_name = "partId"];
com.google.protobuf.ByteString
string part_id = 1 [json_name = "partId"];
getTags
(int index) repeated string tags = 10 [json_name = "tags"];
com.google.protobuf.ByteString
getTagsBytes
(int index) repeated string tags = 10 [json_name = "tags"];
int
repeated string tags = 10 [json_name = "tags"];
repeated string tags = 10 [json_name = "tags"];
getType()
.viam.app.datasync.v1.DataType type = 6 [json_name = "type"];
int
.viam.app.datasync.v1.DataType type = 6 [json_name = "type"];
putAllMethodParameters
(Map<String, com.google.protobuf.Any> values) map<string, .google.protobuf.Any> method_parameters = 8 [json_name = "methodParameters"];
putMethodParameters
(String key, com.google.protobuf.Any value) map<string, .google.protobuf.Any> method_parameters = 8 [json_name = "methodParameters"];
map<string, .google.protobuf.Any> method_parameters = 8 [json_name = "methodParameters"];
setComponentName
(String value) string component_name = 3 [json_name = "componentName"];
setComponentNameBytes
(com.google.protobuf.ByteString value) string component_name = 3 [json_name = "componentName"];
setComponentType
(String value) string component_type = 2 [json_name = "componentType"];
setComponentTypeBytes
(com.google.protobuf.ByteString value) string component_type = 2 [json_name = "componentType"];
setFileExtension
(String value) string file_extension = 9 [json_name = "fileExtension"];
setFileExtensionBytes
(com.google.protobuf.ByteString value) string file_extension = 9 [json_name = "fileExtension"];
setFileName
(String value) string file_name = 7 [json_name = "fileName"];
setFileNameBytes
(com.google.protobuf.ByteString value) string file_name = 7 [json_name = "fileName"];
setMethodName
(String value) string method_name = 5 [json_name = "methodName"];
setMethodNameBytes
(com.google.protobuf.ByteString value) string method_name = 5 [json_name = "methodName"];
string part_id = 1 [json_name = "partId"];
setPartIdBytes
(com.google.protobuf.ByteString value) string part_id = 1 [json_name = "partId"];
repeated string tags = 10 [json_name = "tags"];
setType
(DataSync.DataType value) .viam.app.datasync.v1.DataType type = 6 [json_name = "type"];
setTypeValue
(int value) .viam.app.datasync.v1.DataType type = 6 [json_name = "type"];
Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getPartId
string part_id = 1 [json_name = "partId"];
- Specified by:
getPartId
in interfaceDataSync.UploadMetadataOrBuilder
- Returns:
- The partId.
-
getPartIdBytes
public com.google.protobuf.ByteString getPartIdBytes()string part_id = 1 [json_name = "partId"];
- Specified by:
getPartIdBytes
in interfaceDataSync.UploadMetadataOrBuilder
- Returns:
- The bytes for partId.
-
setPartId
string part_id = 1 [json_name = "partId"];
- Parameters:
value
- The partId to set.- Returns:
- This builder for chaining.
-
clearPartId
string part_id = 1 [json_name = "partId"];
- Returns:
- This builder for chaining.
-
setPartIdBytes
string part_id = 1 [json_name = "partId"];
- Parameters:
value
- The bytes for partId to set.- Returns:
- This builder for chaining.
-
getComponentType
string component_type = 2 [json_name = "componentType"];
- Specified by:
getComponentType
in interfaceDataSync.UploadMetadataOrBuilder
- Returns:
- The componentType.
-
getComponentTypeBytes
public com.google.protobuf.ByteString getComponentTypeBytes()string component_type = 2 [json_name = "componentType"];
- Specified by:
getComponentTypeBytes
in interfaceDataSync.UploadMetadataOrBuilder
- Returns:
- The bytes for componentType.
-
setComponentType
string component_type = 2 [json_name = "componentType"];
- Parameters:
value
- The componentType to set.- Returns:
- This builder for chaining.
-
clearComponentType
string component_type = 2 [json_name = "componentType"];
- Returns:
- This builder for chaining.
-
setComponentTypeBytes
string component_type = 2 [json_name = "componentType"];
- Parameters:
value
- The bytes for componentType to set.- Returns:
- This builder for chaining.
-
getComponentName
string component_name = 3 [json_name = "componentName"];
- Specified by:
getComponentName
in interfaceDataSync.UploadMetadataOrBuilder
- Returns:
- The componentName.
-
getComponentNameBytes
public com.google.protobuf.ByteString getComponentNameBytes()string component_name = 3 [json_name = "componentName"];
- Specified by:
getComponentNameBytes
in interfaceDataSync.UploadMetadataOrBuilder
- Returns:
- The bytes for componentName.
-
setComponentName
string component_name = 3 [json_name = "componentName"];
- Parameters:
value
- The componentName to set.- Returns:
- This builder for chaining.
-
clearComponentName
string component_name = 3 [json_name = "componentName"];
- Returns:
- This builder for chaining.
-
setComponentNameBytes
string component_name = 3 [json_name = "componentName"];
- Parameters:
value
- The bytes for componentName to set.- Returns:
- This builder for chaining.
-
getMethodName
string method_name = 5 [json_name = "methodName"];
- Specified by:
getMethodName
in interfaceDataSync.UploadMetadataOrBuilder
- Returns:
- The methodName.
-
getMethodNameBytes
public com.google.protobuf.ByteString getMethodNameBytes()string method_name = 5 [json_name = "methodName"];
- Specified by:
getMethodNameBytes
in interfaceDataSync.UploadMetadataOrBuilder
- Returns:
- The bytes for methodName.
-
setMethodName
string method_name = 5 [json_name = "methodName"];
- Parameters:
value
- The methodName to set.- Returns:
- This builder for chaining.
-
clearMethodName
string method_name = 5 [json_name = "methodName"];
- Returns:
- This builder for chaining.
-
setMethodNameBytes
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 interfaceDataSync.UploadMetadataOrBuilder
- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
.viam.app.datasync.v1.DataType type = 6 [json_name = "type"];
- Parameters:
value
- The type to set.- Returns:
- This builder for chaining.
-
getType
.viam.app.datasync.v1.DataType type = 6 [json_name = "type"];
- Specified by:
getType
in interfaceDataSync.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
.viam.app.datasync.v1.DataType type = 6 [json_name = "type"];
- Returns:
- This builder for chaining.
-
getFileName
string file_name = 7 [json_name = "fileName"];
- Specified by:
getFileName
in interfaceDataSync.UploadMetadataOrBuilder
- Returns:
- The fileName.
-
getFileNameBytes
public com.google.protobuf.ByteString getFileNameBytes()string file_name = 7 [json_name = "fileName"];
- Specified by:
getFileNameBytes
in interfaceDataSync.UploadMetadataOrBuilder
- Returns:
- The bytes for fileName.
-
setFileName
string file_name = 7 [json_name = "fileName"];
- Parameters:
value
- The fileName to set.- Returns:
- This builder for chaining.
-
clearFileName
string file_name = 7 [json_name = "fileName"];
- Returns:
- This builder for chaining.
-
setFileNameBytes
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 interfaceDataSync.UploadMetadataOrBuilder
-
containsMethodParameters
map<string, .google.protobuf.Any> method_parameters = 8 [json_name = "methodParameters"];
- Specified by:
containsMethodParameters
in interfaceDataSync.UploadMetadataOrBuilder
-
clearMethodParameters
-
removeMethodParameters
map<string, .google.protobuf.Any> method_parameters = 8 [json_name = "methodParameters"];
-
getMethodParameters
Deprecated.UsegetMethodParametersMap()
instead.- Specified by:
getMethodParameters
in interfaceDataSync.UploadMetadataOrBuilder
-
getMethodParametersMap
map<string, .google.protobuf.Any> method_parameters = 8 [json_name = "methodParameters"];
- Specified by:
getMethodParametersMap
in interfaceDataSync.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 interfaceDataSync.UploadMetadataOrBuilder
-
getMethodParametersOrThrow
map<string, .google.protobuf.Any> method_parameters = 8 [json_name = "methodParameters"];
- Specified by:
getMethodParametersOrThrow
in interfaceDataSync.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
string file_extension = 9 [json_name = "fileExtension"];
- Specified by:
getFileExtension
in interfaceDataSync.UploadMetadataOrBuilder
- Returns:
- The fileExtension.
-
getFileExtensionBytes
public com.google.protobuf.ByteString getFileExtensionBytes()string file_extension = 9 [json_name = "fileExtension"];
- Specified by:
getFileExtensionBytes
in interfaceDataSync.UploadMetadataOrBuilder
- Returns:
- The bytes for fileExtension.
-
setFileExtension
string file_extension = 9 [json_name = "fileExtension"];
- Parameters:
value
- The fileExtension to set.- Returns:
- This builder for chaining.
-
clearFileExtension
string file_extension = 9 [json_name = "fileExtension"];
- Returns:
- This builder for chaining.
-
setFileExtensionBytes
string file_extension = 9 [json_name = "fileExtension"];
- Parameters:
value
- The bytes for fileExtension to set.- Returns:
- This builder for chaining.
-
getTagsList
repeated string tags = 10 [json_name = "tags"];
- Specified by:
getTagsList
in interfaceDataSync.UploadMetadataOrBuilder
- Returns:
- A list containing the tags.
-
getTagsCount
public int getTagsCount()repeated string tags = 10 [json_name = "tags"];
- Specified by:
getTagsCount
in interfaceDataSync.UploadMetadataOrBuilder
- Returns:
- The count of tags.
-
getTags
repeated string tags = 10 [json_name = "tags"];
- Specified by:
getTags
in interfaceDataSync.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 interfaceDataSync.UploadMetadataOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the tags at the given index.
-
setTags
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
repeated string tags = 10 [json_name = "tags"];
- Parameters:
value
- The tags to add.- Returns:
- This builder for chaining.
-
addAllTags
repeated string tags = 10 [json_name = "tags"];
- Parameters:
values
- The tags to add.- Returns:
- This builder for chaining.
-
clearTags
repeated string tags = 10 [json_name = "tags"];
- Returns:
- This builder for chaining.
-
addTagsBytes
repeated string tags = 10 [json_name = "tags"];
- Parameters:
value
- The bytes of the tags to add.- Returns:
- This builder for chaining.
-