Package com.daml.ledger.api.v1
Class PackageServiceOuterClass.GetPackageResponse.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<PackageServiceOuterClass.GetPackageResponse.Builder>
-
- com.daml.ledger.api.v1.PackageServiceOuterClass.GetPackageResponse.Builder
-
- All Implemented Interfaces:
PackageServiceOuterClass.GetPackageResponseOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
- Enclosing class:
- PackageServiceOuterClass.GetPackageResponse
public static final class PackageServiceOuterClass.GetPackageResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PackageServiceOuterClass.GetPackageResponse.Builder> implements PackageServiceOuterClass.GetPackageResponseOrBuilder
Protobuf typecom.daml.ledger.api.v1.GetPackageResponse
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PackageServiceOuterClass.GetPackageResponse.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
PackageServiceOuterClass.GetPackageResponse
build()
PackageServiceOuterClass.GetPackageResponse
buildPartial()
PackageServiceOuterClass.GetPackageResponse.Builder
clear()
PackageServiceOuterClass.GetPackageResponse.Builder
clearArchivePayload()
Contains a ``daml_lf`` ArchivePayload.PackageServiceOuterClass.GetPackageResponse.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
PackageServiceOuterClass.GetPackageResponse.Builder
clearHash()
The hash of the archive payload, can also used as a ``package_id``.PackageServiceOuterClass.GetPackageResponse.Builder
clearHashFunction()
The hash function we use to calculate the hash.PackageServiceOuterClass.GetPackageResponse.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
PackageServiceOuterClass.GetPackageResponse.Builder
clone()
com.google.protobuf.ByteString
getArchivePayload()
Contains a ``daml_lf`` ArchivePayload.PackageServiceOuterClass.GetPackageResponse
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
java.lang.String
getHash()
The hash of the archive payload, can also used as a ``package_id``.com.google.protobuf.ByteString
getHashBytes()
The hash of the archive payload, can also used as a ``package_id``.PackageServiceOuterClass.HashFunction
getHashFunction()
The hash function we use to calculate the hash.int
getHashFunctionValue()
The hash function we use to calculate the hash.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
PackageServiceOuterClass.GetPackageResponse.Builder
mergeFrom(PackageServiceOuterClass.GetPackageResponse other)
PackageServiceOuterClass.GetPackageResponse.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
PackageServiceOuterClass.GetPackageResponse.Builder
mergeFrom(com.google.protobuf.Message other)
PackageServiceOuterClass.GetPackageResponse.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
PackageServiceOuterClass.GetPackageResponse.Builder
setArchivePayload(com.google.protobuf.ByteString value)
Contains a ``daml_lf`` ArchivePayload.PackageServiceOuterClass.GetPackageResponse.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
PackageServiceOuterClass.GetPackageResponse.Builder
setHash(java.lang.String value)
The hash of the archive payload, can also used as a ``package_id``.PackageServiceOuterClass.GetPackageResponse.Builder
setHashBytes(com.google.protobuf.ByteString value)
The hash of the archive payload, can also used as a ``package_id``.PackageServiceOuterClass.GetPackageResponse.Builder
setHashFunction(PackageServiceOuterClass.HashFunction value)
The hash function we use to calculate the hash.PackageServiceOuterClass.GetPackageResponse.Builder
setHashFunctionValue(int value)
The hash function we use to calculate the hash.PackageServiceOuterClass.GetPackageResponse.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
PackageServiceOuterClass.GetPackageResponse.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<PackageServiceOuterClass.GetPackageResponse.Builder>
-
clear
public PackageServiceOuterClass.GetPackageResponse.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<PackageServiceOuterClass.GetPackageResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<PackageServiceOuterClass.GetPackageResponse.Builder>
-
getDefaultInstanceForType
public PackageServiceOuterClass.GetPackageResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public PackageServiceOuterClass.GetPackageResponse build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public PackageServiceOuterClass.GetPackageResponse buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public PackageServiceOuterClass.GetPackageResponse.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<PackageServiceOuterClass.GetPackageResponse.Builder>
-
setField
public PackageServiceOuterClass.GetPackageResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PackageServiceOuterClass.GetPackageResponse.Builder>
-
clearField
public PackageServiceOuterClass.GetPackageResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PackageServiceOuterClass.GetPackageResponse.Builder>
-
clearOneof
public PackageServiceOuterClass.GetPackageResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<PackageServiceOuterClass.GetPackageResponse.Builder>
-
setRepeatedField
public PackageServiceOuterClass.GetPackageResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PackageServiceOuterClass.GetPackageResponse.Builder>
-
addRepeatedField
public PackageServiceOuterClass.GetPackageResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PackageServiceOuterClass.GetPackageResponse.Builder>
-
mergeFrom
public PackageServiceOuterClass.GetPackageResponse.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<PackageServiceOuterClass.GetPackageResponse.Builder>
-
mergeFrom
public PackageServiceOuterClass.GetPackageResponse.Builder mergeFrom(PackageServiceOuterClass.GetPackageResponse other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<PackageServiceOuterClass.GetPackageResponse.Builder>
-
mergeFrom
public PackageServiceOuterClass.GetPackageResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<PackageServiceOuterClass.GetPackageResponse.Builder>
- Throws:
java.io.IOException
-
getHashFunctionValue
public int getHashFunctionValue()
The hash function we use to calculate the hash. Required
.com.daml.ledger.api.v1.HashFunction hash_function = 1 [json_name = "hashFunction"];
- Specified by:
getHashFunctionValue
in interfacePackageServiceOuterClass.GetPackageResponseOrBuilder
- Returns:
- The enum numeric value on the wire for hashFunction.
-
setHashFunctionValue
public PackageServiceOuterClass.GetPackageResponse.Builder setHashFunctionValue(int value)
The hash function we use to calculate the hash. Required
.com.daml.ledger.api.v1.HashFunction hash_function = 1 [json_name = "hashFunction"];
- Parameters:
value
- The enum numeric value on the wire for hashFunction to set.- Returns:
- This builder for chaining.
-
getHashFunction
public PackageServiceOuterClass.HashFunction getHashFunction()
The hash function we use to calculate the hash. Required
.com.daml.ledger.api.v1.HashFunction hash_function = 1 [json_name = "hashFunction"];
- Specified by:
getHashFunction
in interfacePackageServiceOuterClass.GetPackageResponseOrBuilder
- Returns:
- The hashFunction.
-
setHashFunction
public PackageServiceOuterClass.GetPackageResponse.Builder setHashFunction(PackageServiceOuterClass.HashFunction value)
The hash function we use to calculate the hash. Required
.com.daml.ledger.api.v1.HashFunction hash_function = 1 [json_name = "hashFunction"];
- Parameters:
value
- The hashFunction to set.- Returns:
- This builder for chaining.
-
clearHashFunction
public PackageServiceOuterClass.GetPackageResponse.Builder clearHashFunction()
The hash function we use to calculate the hash. Required
.com.daml.ledger.api.v1.HashFunction hash_function = 1 [json_name = "hashFunction"];
- Returns:
- This builder for chaining.
-
getArchivePayload
public com.google.protobuf.ByteString getArchivePayload()
Contains a ``daml_lf`` ArchivePayload. See further details in ``daml_lf.proto``. Required
bytes archive_payload = 2 [json_name = "archivePayload"];
- Specified by:
getArchivePayload
in interfacePackageServiceOuterClass.GetPackageResponseOrBuilder
- Returns:
- The archivePayload.
-
setArchivePayload
public PackageServiceOuterClass.GetPackageResponse.Builder setArchivePayload(com.google.protobuf.ByteString value)
Contains a ``daml_lf`` ArchivePayload. See further details in ``daml_lf.proto``. Required
bytes archive_payload = 2 [json_name = "archivePayload"];
- Parameters:
value
- The archivePayload to set.- Returns:
- This builder for chaining.
-
clearArchivePayload
public PackageServiceOuterClass.GetPackageResponse.Builder clearArchivePayload()
Contains a ``daml_lf`` ArchivePayload. See further details in ``daml_lf.proto``. Required
bytes archive_payload = 2 [json_name = "archivePayload"];
- Returns:
- This builder for chaining.
-
getHash
public java.lang.String getHash()
The hash of the archive payload, can also used as a ``package_id``. Must be a valid PackageIdString (as described in ``value.proto``). Required
string hash = 3 [json_name = "hash"];
- Specified by:
getHash
in interfacePackageServiceOuterClass.GetPackageResponseOrBuilder
- Returns:
- The hash.
-
getHashBytes
public com.google.protobuf.ByteString getHashBytes()
The hash of the archive payload, can also used as a ``package_id``. Must be a valid PackageIdString (as described in ``value.proto``). Required
string hash = 3 [json_name = "hash"];
- Specified by:
getHashBytes
in interfacePackageServiceOuterClass.GetPackageResponseOrBuilder
- Returns:
- The bytes for hash.
-
setHash
public PackageServiceOuterClass.GetPackageResponse.Builder setHash(java.lang.String value)
The hash of the archive payload, can also used as a ``package_id``. Must be a valid PackageIdString (as described in ``value.proto``). Required
string hash = 3 [json_name = "hash"];
- Parameters:
value
- The hash to set.- Returns:
- This builder for chaining.
-
clearHash
public PackageServiceOuterClass.GetPackageResponse.Builder clearHash()
The hash of the archive payload, can also used as a ``package_id``. Must be a valid PackageIdString (as described in ``value.proto``). Required
string hash = 3 [json_name = "hash"];
- Returns:
- This builder for chaining.
-
setHashBytes
public PackageServiceOuterClass.GetPackageResponse.Builder setHashBytes(com.google.protobuf.ByteString value)
The hash of the archive payload, can also used as a ``package_id``. Must be a valid PackageIdString (as described in ``value.proto``). Required
string hash = 3 [json_name = "hash"];
- Parameters:
value
- The bytes for hash to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final PackageServiceOuterClass.GetPackageResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<PackageServiceOuterClass.GetPackageResponse.Builder>
-
mergeUnknownFields
public final PackageServiceOuterClass.GetPackageResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<PackageServiceOuterClass.GetPackageResponse.Builder>
-
-