Package viam.app.packages.v1
Class Packages.PackageInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Packages.PackageInfo,Packages.PackageInfo.Builder>
viam.app.packages.v1.Packages.PackageInfo.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,Cloneable
,Packages.PackageInfoOrBuilder
- Enclosing class:
- Packages.PackageInfo
public static final class Packages.PackageInfo.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Packages.PackageInfo,Packages.PackageInfo.Builder>
implements Packages.PackageInfoOrBuilder
Protobuf type
viam.app.packages.v1.PackageInfo
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionaddAllFiles
(Iterable<? extends Packages.FileInfo> values) repeated .viam.app.packages.v1.FileInfo files = 5 [json_name = "files"];
addFiles
(int index, Packages.FileInfo value) repeated .viam.app.packages.v1.FileInfo files = 5 [json_name = "files"];
addFiles
(int index, Packages.FileInfo.Builder builderForValue) repeated .viam.app.packages.v1.FileInfo files = 5 [json_name = "files"];
addFiles
(Packages.FileInfo value) repeated .viam.app.packages.v1.FileInfo files = 5 [json_name = "files"];
addFiles
(Packages.FileInfo.Builder builderForValue) repeated .viam.app.packages.v1.FileInfo files = 5 [json_name = "files"];
repeated .viam.app.packages.v1.FileInfo files = 5 [json_name = "files"];
.google.protobuf.Struct metadata = 6 [json_name = "metadata"];
string name = 2 [json_name = "name"];
string organization_id = 1 [json_name = "organizationId"];
optional string platform = 7 [json_name = "platform"];
.viam.app.packages.v1.PackageType type = 4 [json_name = "type"];
string version = 3 [json_name = "version"];
getFiles
(int index) repeated .viam.app.packages.v1.FileInfo files = 5 [json_name = "files"];
int
repeated .viam.app.packages.v1.FileInfo files = 5 [json_name = "files"];
repeated .viam.app.packages.v1.FileInfo files = 5 [json_name = "files"];
com.google.protobuf.Struct
.google.protobuf.Struct metadata = 6 [json_name = "metadata"];
getName()
string name = 2 [json_name = "name"];
com.google.protobuf.ByteString
string name = 2 [json_name = "name"];
string organization_id = 1 [json_name = "organizationId"];
com.google.protobuf.ByteString
string organization_id = 1 [json_name = "organizationId"];
optional string platform = 7 [json_name = "platform"];
com.google.protobuf.ByteString
optional string platform = 7 [json_name = "platform"];
getType()
.viam.app.packages.v1.PackageType type = 4 [json_name = "type"];
int
.viam.app.packages.v1.PackageType type = 4 [json_name = "type"];
string version = 3 [json_name = "version"];
com.google.protobuf.ByteString
string version = 3 [json_name = "version"];
boolean
.google.protobuf.Struct metadata = 6 [json_name = "metadata"];
boolean
optional string platform = 7 [json_name = "platform"];
mergeMetadata
(com.google.protobuf.Struct value) .google.protobuf.Struct metadata = 6 [json_name = "metadata"];
removeFiles
(int index) repeated .viam.app.packages.v1.FileInfo files = 5 [json_name = "files"];
setFiles
(int index, Packages.FileInfo value) repeated .viam.app.packages.v1.FileInfo files = 5 [json_name = "files"];
setFiles
(int index, Packages.FileInfo.Builder builderForValue) repeated .viam.app.packages.v1.FileInfo files = 5 [json_name = "files"];
setMetadata
(com.google.protobuf.Struct value) .google.protobuf.Struct metadata = 6 [json_name = "metadata"];
setMetadata
(com.google.protobuf.Struct.Builder builderForValue) .google.protobuf.Struct metadata = 6 [json_name = "metadata"];
string name = 2 [json_name = "name"];
setNameBytes
(com.google.protobuf.ByteString value) string name = 2 [json_name = "name"];
setOrganizationId
(String value) string organization_id = 1 [json_name = "organizationId"];
setOrganizationIdBytes
(com.google.protobuf.ByteString value) string organization_id = 1 [json_name = "organizationId"];
setPlatform
(String value) optional string platform = 7 [json_name = "platform"];
setPlatformBytes
(com.google.protobuf.ByteString value) optional string platform = 7 [json_name = "platform"];
setType
(Packages.PackageType value) .viam.app.packages.v1.PackageType type = 4 [json_name = "type"];
setTypeValue
(int value) .viam.app.packages.v1.PackageType type = 4 [json_name = "type"];
setVersion
(String value) string version = 3 [json_name = "version"];
setVersionBytes
(com.google.protobuf.ByteString value) string version = 3 [json_name = "version"];
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
-
getOrganizationId
string organization_id = 1 [json_name = "organizationId"];
- Specified by:
getOrganizationId
in interfacePackages.PackageInfoOrBuilder
- Returns:
- The organizationId.
-
getOrganizationIdBytes
public com.google.protobuf.ByteString getOrganizationIdBytes()string organization_id = 1 [json_name = "organizationId"];
- Specified by:
getOrganizationIdBytes
in interfacePackages.PackageInfoOrBuilder
- Returns:
- The bytes for organizationId.
-
setOrganizationId
string organization_id = 1 [json_name = "organizationId"];
- Parameters:
value
- The organizationId to set.- Returns:
- This builder for chaining.
-
clearOrganizationId
string organization_id = 1 [json_name = "organizationId"];
- Returns:
- This builder for chaining.
-
setOrganizationIdBytes
string organization_id = 1 [json_name = "organizationId"];
- Parameters:
value
- The bytes for organizationId to set.- Returns:
- This builder for chaining.
-
getName
string name = 2 [json_name = "name"];
- Specified by:
getName
in interfacePackages.PackageInfoOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()string name = 2 [json_name = "name"];
- Specified by:
getNameBytes
in interfacePackages.PackageInfoOrBuilder
- Returns:
- The bytes for name.
-
setName
string name = 2 [json_name = "name"];
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
string name = 2 [json_name = "name"];
- Returns:
- This builder for chaining.
-
setNameBytes
string name = 2 [json_name = "name"];
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getVersion
string version = 3 [json_name = "version"];
- Specified by:
getVersion
in interfacePackages.PackageInfoOrBuilder
- Returns:
- The version.
-
getVersionBytes
public com.google.protobuf.ByteString getVersionBytes()string version = 3 [json_name = "version"];
- Specified by:
getVersionBytes
in interfacePackages.PackageInfoOrBuilder
- Returns:
- The bytes for version.
-
setVersion
string version = 3 [json_name = "version"];
- Parameters:
value
- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
string version = 3 [json_name = "version"];
- Returns:
- This builder for chaining.
-
setVersionBytes
string version = 3 [json_name = "version"];
- Parameters:
value
- The bytes for version to set.- Returns:
- This builder for chaining.
-
getTypeValue
public int getTypeValue().viam.app.packages.v1.PackageType type = 4 [json_name = "type"];
- Specified by:
getTypeValue
in interfacePackages.PackageInfoOrBuilder
- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
.viam.app.packages.v1.PackageType type = 4 [json_name = "type"];
- Parameters:
value
- The type to set.- Returns:
- This builder for chaining.
-
getType
.viam.app.packages.v1.PackageType type = 4 [json_name = "type"];
- Specified by:
getType
in interfacePackages.PackageInfoOrBuilder
- Returns:
- The type.
-
setType
.viam.app.packages.v1.PackageType type = 4 [json_name = "type"];
- Parameters:
value
- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
clearType
.viam.app.packages.v1.PackageType type = 4 [json_name = "type"];
- Returns:
- This builder for chaining.
-
hasPlatform
public boolean hasPlatform()optional string platform = 7 [json_name = "platform"];
- Specified by:
hasPlatform
in interfacePackages.PackageInfoOrBuilder
- Returns:
- Whether the platform field is set.
-
getPlatform
optional string platform = 7 [json_name = "platform"];
- Specified by:
getPlatform
in interfacePackages.PackageInfoOrBuilder
- Returns:
- The platform.
-
getPlatformBytes
public com.google.protobuf.ByteString getPlatformBytes()optional string platform = 7 [json_name = "platform"];
- Specified by:
getPlatformBytes
in interfacePackages.PackageInfoOrBuilder
- Returns:
- The bytes for platform.
-
setPlatform
optional string platform = 7 [json_name = "platform"];
- Parameters:
value
- The platform to set.- Returns:
- This builder for chaining.
-
clearPlatform
optional string platform = 7 [json_name = "platform"];
- Returns:
- This builder for chaining.
-
setPlatformBytes
optional string platform = 7 [json_name = "platform"];
- Parameters:
value
- The bytes for platform to set.- Returns:
- This builder for chaining.
-
getFilesList
repeated .viam.app.packages.v1.FileInfo files = 5 [json_name = "files"];
- Specified by:
getFilesList
in interfacePackages.PackageInfoOrBuilder
-
getFilesCount
public int getFilesCount()repeated .viam.app.packages.v1.FileInfo files = 5 [json_name = "files"];
- Specified by:
getFilesCount
in interfacePackages.PackageInfoOrBuilder
-
getFiles
repeated .viam.app.packages.v1.FileInfo files = 5 [json_name = "files"];
- Specified by:
getFiles
in interfacePackages.PackageInfoOrBuilder
-
setFiles
repeated .viam.app.packages.v1.FileInfo files = 5 [json_name = "files"];
-
setFiles
repeated .viam.app.packages.v1.FileInfo files = 5 [json_name = "files"];
-
addFiles
repeated .viam.app.packages.v1.FileInfo files = 5 [json_name = "files"];
-
addFiles
repeated .viam.app.packages.v1.FileInfo files = 5 [json_name = "files"];
-
addFiles
repeated .viam.app.packages.v1.FileInfo files = 5 [json_name = "files"];
-
addFiles
repeated .viam.app.packages.v1.FileInfo files = 5 [json_name = "files"];
-
addAllFiles
repeated .viam.app.packages.v1.FileInfo files = 5 [json_name = "files"];
-
clearFiles
repeated .viam.app.packages.v1.FileInfo files = 5 [json_name = "files"];
-
removeFiles
repeated .viam.app.packages.v1.FileInfo files = 5 [json_name = "files"];
-
hasMetadata
public boolean hasMetadata().google.protobuf.Struct metadata = 6 [json_name = "metadata"];
- Specified by:
hasMetadata
in interfacePackages.PackageInfoOrBuilder
- Returns:
- Whether the metadata field is set.
-
getMetadata
public com.google.protobuf.Struct getMetadata().google.protobuf.Struct metadata = 6 [json_name = "metadata"];
- Specified by:
getMetadata
in interfacePackages.PackageInfoOrBuilder
- Returns:
- The metadata.
-
setMetadata
.google.protobuf.Struct metadata = 6 [json_name = "metadata"];
-
setMetadata
.google.protobuf.Struct metadata = 6 [json_name = "metadata"];
-
mergeMetadata
.google.protobuf.Struct metadata = 6 [json_name = "metadata"];
-
clearMetadata
.google.protobuf.Struct metadata = 6 [json_name = "metadata"];
-