Package com.daml.ledger.api.v2
Class EventOuterClass.InterfaceView.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<EventOuterClass.InterfaceView.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<EventOuterClass.InterfaceView.Builder>
com.daml.ledger.api.v2.EventOuterClass.InterfaceView.Builder
- All Implemented Interfaces:
EventOuterClass.InterfaceViewOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
EventOuterClass.InterfaceView
public static final class EventOuterClass.InterfaceView.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<EventOuterClass.InterfaceView.Builder>
implements EventOuterClass.InterfaceViewOrBuilder
View of a create event matched by an interface filter.Protobuf type
com.daml.ledger.api.v2.InterfaceView-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The package defining the interface implementation used to compute the view.The interface implemented by the matched event.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Whether the view was successfully computed, and if not, the reason for the error.The value of the interface's view method on this event.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe package defining the interface implementation used to compute the view.com.google.protobuf.ByteStringThe package defining the interface implementation used to compute the view.com.daml.ledger.api.v2.ValueOuterClass.IdentifierThe interface implemented by the matched event.com.daml.ledger.api.v2.ValueOuterClass.Identifier.BuilderThe interface implemented by the matched event.com.daml.ledger.api.v2.ValueOuterClass.IdentifierOrBuilderThe interface implemented by the matched event.com.google.rpc.StatusWhether the view was successfully computed, and if not, the reason for the error.com.google.rpc.Status.BuilderWhether the view was successfully computed, and if not, the reason for the error.com.google.rpc.StatusOrBuilderWhether the view was successfully computed, and if not, the reason for the error.com.daml.ledger.api.v2.ValueOuterClass.RecordThe value of the interface's view method on this event.com.daml.ledger.api.v2.ValueOuterClass.Record.BuilderThe value of the interface's view method on this event.com.daml.ledger.api.v2.ValueOuterClass.RecordOrBuilderThe value of the interface's view method on this event.booleanThe interface implemented by the matched event.booleanWhether the view was successfully computed, and if not, the reason for the error.booleanThe value of the interface's view method on this event.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeInterfaceId(com.daml.ledger.api.v2.ValueOuterClass.Identifier value) The interface implemented by the matched event.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) mergeViewStatus(com.google.rpc.Status value) Whether the view was successfully computed, and if not, the reason for the error.mergeViewValue(com.daml.ledger.api.v2.ValueOuterClass.Record value) The value of the interface's view method on this event.setImplementationPackageId(String value) The package defining the interface implementation used to compute the view.setImplementationPackageIdBytes(com.google.protobuf.ByteString value) The package defining the interface implementation used to compute the view.setInterfaceId(com.daml.ledger.api.v2.ValueOuterClass.Identifier value) The interface implemented by the matched event.setInterfaceId(com.daml.ledger.api.v2.ValueOuterClass.Identifier.Builder builderForValue) The interface implemented by the matched event.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setViewStatus(com.google.rpc.Status value) Whether the view was successfully computed, and if not, the reason for the error.setViewStatus(com.google.rpc.Status.Builder builderForValue) Whether the view was successfully computed, and if not, the reason for the error.setViewValue(com.daml.ledger.api.v2.ValueOuterClass.Record value) The value of the interface's view method on this event.setViewValue(com.daml.ledger.api.v2.ValueOuterClass.Record.Builder builderForValue) The value of the interface's view method on this event.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<EventOuterClass.InterfaceView.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<EventOuterClass.InterfaceView.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<EventOuterClass.InterfaceView.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<EventOuterClass.InterfaceView.Builder>
-
setField
public EventOuterClass.InterfaceView.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<EventOuterClass.InterfaceView.Builder>
-
clearField
public EventOuterClass.InterfaceView.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<EventOuterClass.InterfaceView.Builder>
-
clearOneof
public EventOuterClass.InterfaceView.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<EventOuterClass.InterfaceView.Builder>
-
setRepeatedField
public EventOuterClass.InterfaceView.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<EventOuterClass.InterfaceView.Builder>
-
addRepeatedField
public EventOuterClass.InterfaceView.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<EventOuterClass.InterfaceView.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<EventOuterClass.InterfaceView.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<EventOuterClass.InterfaceView.Builder>
-
mergeFrom
public EventOuterClass.InterfaceView.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<EventOuterClass.InterfaceView.Builder>- Throws:
IOException
-
hasInterfaceId
public boolean hasInterfaceId()The interface implemented by the matched event. The identifier uses the package-id reference format. Required
.com.daml.ledger.api.v2.Identifier interface_id = 1;- Specified by:
hasInterfaceIdin interfaceEventOuterClass.InterfaceViewOrBuilder- Returns:
- Whether the interfaceId field is set.
-
getInterfaceId
public com.daml.ledger.api.v2.ValueOuterClass.Identifier getInterfaceId()The interface implemented by the matched event. The identifier uses the package-id reference format. Required
.com.daml.ledger.api.v2.Identifier interface_id = 1;- Specified by:
getInterfaceIdin interfaceEventOuterClass.InterfaceViewOrBuilder- Returns:
- The interfaceId.
-
setInterfaceId
public EventOuterClass.InterfaceView.Builder setInterfaceId(com.daml.ledger.api.v2.ValueOuterClass.Identifier value) The interface implemented by the matched event. The identifier uses the package-id reference format. Required
.com.daml.ledger.api.v2.Identifier interface_id = 1; -
setInterfaceId
public EventOuterClass.InterfaceView.Builder setInterfaceId(com.daml.ledger.api.v2.ValueOuterClass.Identifier.Builder builderForValue) The interface implemented by the matched event. The identifier uses the package-id reference format. Required
.com.daml.ledger.api.v2.Identifier interface_id = 1; -
mergeInterfaceId
public EventOuterClass.InterfaceView.Builder mergeInterfaceId(com.daml.ledger.api.v2.ValueOuterClass.Identifier value) The interface implemented by the matched event. The identifier uses the package-id reference format. Required
.com.daml.ledger.api.v2.Identifier interface_id = 1; -
clearInterfaceId
The interface implemented by the matched event. The identifier uses the package-id reference format. Required
.com.daml.ledger.api.v2.Identifier interface_id = 1; -
getInterfaceIdBuilder
public com.daml.ledger.api.v2.ValueOuterClass.Identifier.Builder getInterfaceIdBuilder()The interface implemented by the matched event. The identifier uses the package-id reference format. Required
.com.daml.ledger.api.v2.Identifier interface_id = 1; -
getInterfaceIdOrBuilder
public com.daml.ledger.api.v2.ValueOuterClass.IdentifierOrBuilder getInterfaceIdOrBuilder()The interface implemented by the matched event. The identifier uses the package-id reference format. Required
.com.daml.ledger.api.v2.Identifier interface_id = 1;- Specified by:
getInterfaceIdOrBuilderin interfaceEventOuterClass.InterfaceViewOrBuilder
-
hasViewStatus
public boolean hasViewStatus()Whether the view was successfully computed, and if not, the reason for the error. The error is reported using the same rules for error codes and messages as the errors returned for API requests. Required
.google.rpc.Status view_status = 2;- Specified by:
hasViewStatusin interfaceEventOuterClass.InterfaceViewOrBuilder- Returns:
- Whether the viewStatus field is set.
-
getViewStatus
public com.google.rpc.Status getViewStatus()Whether the view was successfully computed, and if not, the reason for the error. The error is reported using the same rules for error codes and messages as the errors returned for API requests. Required
.google.rpc.Status view_status = 2;- Specified by:
getViewStatusin interfaceEventOuterClass.InterfaceViewOrBuilder- Returns:
- The viewStatus.
-
setViewStatus
Whether the view was successfully computed, and if not, the reason for the error. The error is reported using the same rules for error codes and messages as the errors returned for API requests. Required
.google.rpc.Status view_status = 2; -
setViewStatus
public EventOuterClass.InterfaceView.Builder setViewStatus(com.google.rpc.Status.Builder builderForValue) Whether the view was successfully computed, and if not, the reason for the error. The error is reported using the same rules for error codes and messages as the errors returned for API requests. Required
.google.rpc.Status view_status = 2; -
mergeViewStatus
Whether the view was successfully computed, and if not, the reason for the error. The error is reported using the same rules for error codes and messages as the errors returned for API requests. Required
.google.rpc.Status view_status = 2; -
clearViewStatus
Whether the view was successfully computed, and if not, the reason for the error. The error is reported using the same rules for error codes and messages as the errors returned for API requests. Required
.google.rpc.Status view_status = 2; -
getViewStatusBuilder
public com.google.rpc.Status.Builder getViewStatusBuilder()Whether the view was successfully computed, and if not, the reason for the error. The error is reported using the same rules for error codes and messages as the errors returned for API requests. Required
.google.rpc.Status view_status = 2; -
getViewStatusOrBuilder
public com.google.rpc.StatusOrBuilder getViewStatusOrBuilder()Whether the view was successfully computed, and if not, the reason for the error. The error is reported using the same rules for error codes and messages as the errors returned for API requests. Required
.google.rpc.Status view_status = 2;- Specified by:
getViewStatusOrBuilderin interfaceEventOuterClass.InterfaceViewOrBuilder
-
hasViewValue
public boolean hasViewValue()The value of the interface's view method on this event. Set if it was requested in the ``InterfaceFilter`` and it could be successfully computed. Optional
.com.daml.ledger.api.v2.Record view_value = 3;- Specified by:
hasViewValuein interfaceEventOuterClass.InterfaceViewOrBuilder- Returns:
- Whether the viewValue field is set.
-
getViewValue
public com.daml.ledger.api.v2.ValueOuterClass.Record getViewValue()The value of the interface's view method on this event. Set if it was requested in the ``InterfaceFilter`` and it could be successfully computed. Optional
.com.daml.ledger.api.v2.Record view_value = 3;- Specified by:
getViewValuein interfaceEventOuterClass.InterfaceViewOrBuilder- Returns:
- The viewValue.
-
setViewValue
public EventOuterClass.InterfaceView.Builder setViewValue(com.daml.ledger.api.v2.ValueOuterClass.Record value) The value of the interface's view method on this event. Set if it was requested in the ``InterfaceFilter`` and it could be successfully computed. Optional
.com.daml.ledger.api.v2.Record view_value = 3; -
setViewValue
public EventOuterClass.InterfaceView.Builder setViewValue(com.daml.ledger.api.v2.ValueOuterClass.Record.Builder builderForValue) The value of the interface's view method on this event. Set if it was requested in the ``InterfaceFilter`` and it could be successfully computed. Optional
.com.daml.ledger.api.v2.Record view_value = 3; -
mergeViewValue
public EventOuterClass.InterfaceView.Builder mergeViewValue(com.daml.ledger.api.v2.ValueOuterClass.Record value) The value of the interface's view method on this event. Set if it was requested in the ``InterfaceFilter`` and it could be successfully computed. Optional
.com.daml.ledger.api.v2.Record view_value = 3; -
clearViewValue
The value of the interface's view method on this event. Set if it was requested in the ``InterfaceFilter`` and it could be successfully computed. Optional
.com.daml.ledger.api.v2.Record view_value = 3; -
getViewValueBuilder
public com.daml.ledger.api.v2.ValueOuterClass.Record.Builder getViewValueBuilder()The value of the interface's view method on this event. Set if it was requested in the ``InterfaceFilter`` and it could be successfully computed. Optional
.com.daml.ledger.api.v2.Record view_value = 3; -
getViewValueOrBuilder
public com.daml.ledger.api.v2.ValueOuterClass.RecordOrBuilder getViewValueOrBuilder()The value of the interface's view method on this event. Set if it was requested in the ``InterfaceFilter`` and it could be successfully computed. Optional
.com.daml.ledger.api.v2.Record view_value = 3;- Specified by:
getViewValueOrBuilderin interfaceEventOuterClass.InterfaceViewOrBuilder
-
getImplementationPackageId
The package defining the interface implementation used to compute the view. Can be different from the package that was used to create the contract itself, as the contract arguments can be upgraded or downgraded using smart-contract upgrading as part of computing the interface view. Populated if the view computation is successful, otherwise empty. Optional
string implementation_package_id = 4;- Specified by:
getImplementationPackageIdin interfaceEventOuterClass.InterfaceViewOrBuilder- Returns:
- The implementationPackageId.
-
getImplementationPackageIdBytes
public com.google.protobuf.ByteString getImplementationPackageIdBytes()The package defining the interface implementation used to compute the view. Can be different from the package that was used to create the contract itself, as the contract arguments can be upgraded or downgraded using smart-contract upgrading as part of computing the interface view. Populated if the view computation is successful, otherwise empty. Optional
string implementation_package_id = 4;- Specified by:
getImplementationPackageIdBytesin interfaceEventOuterClass.InterfaceViewOrBuilder- Returns:
- The bytes for implementationPackageId.
-
setImplementationPackageId
The package defining the interface implementation used to compute the view. Can be different from the package that was used to create the contract itself, as the contract arguments can be upgraded or downgraded using smart-contract upgrading as part of computing the interface view. Populated if the view computation is successful, otherwise empty. Optional
string implementation_package_id = 4;- Parameters:
value- The implementationPackageId to set.- Returns:
- This builder for chaining.
-
clearImplementationPackageId
The package defining the interface implementation used to compute the view. Can be different from the package that was used to create the contract itself, as the contract arguments can be upgraded or downgraded using smart-contract upgrading as part of computing the interface view. Populated if the view computation is successful, otherwise empty. Optional
string implementation_package_id = 4;- Returns:
- This builder for chaining.
-
setImplementationPackageIdBytes
public EventOuterClass.InterfaceView.Builder setImplementationPackageIdBytes(com.google.protobuf.ByteString value) The package defining the interface implementation used to compute the view. Can be different from the package that was used to create the contract itself, as the contract arguments can be upgraded or downgraded using smart-contract upgrading as part of computing the interface view. Populated if the view computation is successful, otherwise empty. Optional
string implementation_package_id = 4;- Parameters:
value- The bytes for implementationPackageId to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final EventOuterClass.InterfaceView.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<EventOuterClass.InterfaceView.Builder>
-
mergeUnknownFields
public final EventOuterClass.InterfaceView.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<EventOuterClass.InterfaceView.Builder>
-