Package viam.app.packages.v1
Class Packages.GetPackageRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Packages.GetPackageRequest,Packages.GetPackageRequest.Builder>
viam.app.packages.v1.Packages.GetPackageRequest.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,Cloneable
,Packages.GetPackageRequestOrBuilder
- Enclosing class:
- Packages.GetPackageRequest
public static final class Packages.GetPackageRequest.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Packages.GetPackageRequest,Packages.GetPackageRequest.Builder>
implements Packages.GetPackageRequestOrBuilder
Protobuf type
viam.app.packages.v1.GetPackageRequest
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionclearId()
string id = 1 [json_name = "id"];
optional bool include_url = 3 [json_name = "includeUrl"];
optional string platform = 5 [json_name = "platform"];
optional .viam.app.packages.v1.PackageType type = 4 [json_name = "type"];
string version = 2 [json_name = "version"];
getId()
string id = 1 [json_name = "id"];
com.google.protobuf.ByteString
string id = 1 [json_name = "id"];
boolean
optional bool include_url = 3 [json_name = "includeUrl"];
optional string platform = 5 [json_name = "platform"];
com.google.protobuf.ByteString
optional string platform = 5 [json_name = "platform"];
getType()
optional .viam.app.packages.v1.PackageType type = 4 [json_name = "type"];
int
optional .viam.app.packages.v1.PackageType type = 4 [json_name = "type"];
string version = 2 [json_name = "version"];
com.google.protobuf.ByteString
string version = 2 [json_name = "version"];
boolean
optional bool include_url = 3 [json_name = "includeUrl"];
boolean
optional string platform = 5 [json_name = "platform"];
boolean
hasType()
optional .viam.app.packages.v1.PackageType type = 4 [json_name = "type"];
string id = 1 [json_name = "id"];
setIdBytes
(com.google.protobuf.ByteString value) string id = 1 [json_name = "id"];
setIncludeUrl
(boolean value) optional bool include_url = 3 [json_name = "includeUrl"];
setPlatform
(String value) optional string platform = 5 [json_name = "platform"];
setPlatformBytes
(com.google.protobuf.ByteString value) optional string platform = 5 [json_name = "platform"];
setType
(Packages.PackageType value) optional .viam.app.packages.v1.PackageType type = 4 [json_name = "type"];
setTypeValue
(int value) optional .viam.app.packages.v1.PackageType type = 4 [json_name = "type"];
setVersion
(String value) string version = 2 [json_name = "version"];
setVersionBytes
(com.google.protobuf.ByteString value) string version = 2 [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
-
getId
string id = 1 [json_name = "id"];
- Specified by:
getId
in interfacePackages.GetPackageRequestOrBuilder
- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()string id = 1 [json_name = "id"];
- Specified by:
getIdBytes
in interfacePackages.GetPackageRequestOrBuilder
- Returns:
- The bytes for id.
-
setId
string id = 1 [json_name = "id"];
- Parameters:
value
- The id to set.- Returns:
- This builder for chaining.
-
clearId
string id = 1 [json_name = "id"];
- Returns:
- This builder for chaining.
-
setIdBytes
string id = 1 [json_name = "id"];
- Parameters:
value
- The bytes for id to set.- Returns:
- This builder for chaining.
-
getVersion
string version = 2 [json_name = "version"];
- Specified by:
getVersion
in interfacePackages.GetPackageRequestOrBuilder
- Returns:
- The version.
-
getVersionBytes
public com.google.protobuf.ByteString getVersionBytes()string version = 2 [json_name = "version"];
- Specified by:
getVersionBytes
in interfacePackages.GetPackageRequestOrBuilder
- Returns:
- The bytes for version.
-
setVersion
string version = 2 [json_name = "version"];
- Parameters:
value
- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
string version = 2 [json_name = "version"];
- Returns:
- This builder for chaining.
-
setVersionBytes
string version = 2 [json_name = "version"];
- Parameters:
value
- The bytes for version to set.- Returns:
- This builder for chaining.
-
hasIncludeUrl
public boolean hasIncludeUrl()optional bool include_url = 3 [json_name = "includeUrl"];
- Specified by:
hasIncludeUrl
in interfacePackages.GetPackageRequestOrBuilder
- Returns:
- Whether the includeUrl field is set.
-
getIncludeUrl
public boolean getIncludeUrl()optional bool include_url = 3 [json_name = "includeUrl"];
- Specified by:
getIncludeUrl
in interfacePackages.GetPackageRequestOrBuilder
- Returns:
- The includeUrl.
-
setIncludeUrl
optional bool include_url = 3 [json_name = "includeUrl"];
- Parameters:
value
- The includeUrl to set.- Returns:
- This builder for chaining.
-
clearIncludeUrl
optional bool include_url = 3 [json_name = "includeUrl"];
- Returns:
- This builder for chaining.
-
hasType
public boolean hasType()optional .viam.app.packages.v1.PackageType type = 4 [json_name = "type"];
- Specified by:
hasType
in interfacePackages.GetPackageRequestOrBuilder
- Returns:
- Whether the type field is set.
-
getTypeValue
public int getTypeValue()optional .viam.app.packages.v1.PackageType type = 4 [json_name = "type"];
- Specified by:
getTypeValue
in interfacePackages.GetPackageRequestOrBuilder
- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
optional .viam.app.packages.v1.PackageType type = 4 [json_name = "type"];
- Parameters:
value
- The type to set.- Returns:
- This builder for chaining.
-
getType
optional .viam.app.packages.v1.PackageType type = 4 [json_name = "type"];
- Specified by:
getType
in interfacePackages.GetPackageRequestOrBuilder
- Returns:
- The type.
-
setType
optional .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
optional .viam.app.packages.v1.PackageType type = 4 [json_name = "type"];
- Returns:
- This builder for chaining.
-
hasPlatform
public boolean hasPlatform()optional string platform = 5 [json_name = "platform"];
- Specified by:
hasPlatform
in interfacePackages.GetPackageRequestOrBuilder
- Returns:
- Whether the platform field is set.
-
getPlatform
optional string platform = 5 [json_name = "platform"];
- Specified by:
getPlatform
in interfacePackages.GetPackageRequestOrBuilder
- Returns:
- The platform.
-
getPlatformBytes
public com.google.protobuf.ByteString getPlatformBytes()optional string platform = 5 [json_name = "platform"];
- Specified by:
getPlatformBytes
in interfacePackages.GetPackageRequestOrBuilder
- Returns:
- The bytes for platform.
-
setPlatform
optional string platform = 5 [json_name = "platform"];
- Parameters:
value
- The platform to set.- Returns:
- This builder for chaining.
-
clearPlatform
optional string platform = 5 [json_name = "platform"];
- Returns:
- This builder for chaining.
-
setPlatformBytes
optional string platform = 5 [json_name = "platform"];
- Parameters:
value
- The bytes for platform to set.- Returns:
- This builder for chaining.
-