Package org.finos.tracdap.api
Class MetadataWriteRequest
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
org.finos.tracdap.api.MetadataWriteRequest
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,MetadataWriteRequestOrBuilder
public final class MetadataWriteRequest
extends com.google.protobuf.GeneratedMessage
implements MetadataWriteRequestOrBuilder
* Request to create or update an object in the TRAC metadata store. @see TracMetadataApiProtobuf type
tracdap.api.MetadataWriteRequest- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class* Request to create or update an object in the TRAC metadata store.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic MetadataWriteRequestorg.finos.tracdap.metadata.ObjectDefinition* New object definition to save.org.finos.tracdap.metadata.ObjectDefinitionOrBuilder* New object definition to save.static final com.google.protobuf.Descriptors.Descriptororg.finos.tracdap.metadata.ObjectType* Object type for the requested operation, always required.int* Object type for the requested operation, always required.com.google.protobuf.Parser<MetadataWriteRequest> org.finos.tracdap.metadata.TagSelector* Prior object/tag version to use for update operations.org.finos.tracdap.metadata.TagSelectorOrBuilder* Prior object/tag version to use for update operations.intorg.finos.tracdap.metadata.TagUpdategetTagUpdates(int index) * Tag update operations to be applied.int* Tag update operations to be applied.List<org.finos.tracdap.metadata.TagUpdate> * Tag update operations to be applied.org.finos.tracdap.metadata.TagUpdateOrBuildergetTagUpdatesOrBuilder(int index) * Tag update operations to be applied.List<? extends org.finos.tracdap.metadata.TagUpdateOrBuilder> * Tag update operations to be applied.* Tenant code for the requested operation, always required.com.google.protobuf.ByteString* Tenant code for the requested operation, always required.boolean* New object definition to save.inthashCode()boolean* Prior object/tag version to use for update operations.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic MetadataWriteRequest.Builderstatic MetadataWriteRequest.BuildernewBuilder(MetadataWriteRequest prototype) protected MetadataWriteRequest.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static MetadataWriteRequestparseDelimitedFrom(InputStream input) static MetadataWriteRequestparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MetadataWriteRequestparseFrom(byte[] data) static MetadataWriteRequestparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MetadataWriteRequestparseFrom(com.google.protobuf.ByteString data) static MetadataWriteRequestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MetadataWriteRequestparseFrom(com.google.protobuf.CodedInputStream input) static MetadataWriteRequestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MetadataWriteRequestparseFrom(InputStream input) static MetadataWriteRequestparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MetadataWriteRequestparseFrom(ByteBuffer data) static MetadataWriteRequestparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<MetadataWriteRequest> parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
TENANT_FIELD_NUMBER
public static final int TENANT_FIELD_NUMBER- See Also:
-
OBJECTTYPE_FIELD_NUMBER
public static final int OBJECTTYPE_FIELD_NUMBER- See Also:
-
PRIORVERSION_FIELD_NUMBER
public static final int PRIORVERSION_FIELD_NUMBER- See Also:
-
DEFINITION_FIELD_NUMBER
public static final int DEFINITION_FIELD_NUMBER- See Also:
-
TAGUPDATES_FIELD_NUMBER
public static final int TAGUPDATES_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getTenant
* Tenant code for the requested operation, always required.
string tenant = 1;- Specified by:
getTenantin interfaceMetadataWriteRequestOrBuilder- Returns:
- The tenant.
-
getTenantBytes
public com.google.protobuf.ByteString getTenantBytes()* Tenant code for the requested operation, always required.
string tenant = 1;- Specified by:
getTenantBytesin interfaceMetadataWriteRequestOrBuilder- Returns:
- The bytes for tenant.
-
getObjectTypeValue
public int getObjectTypeValue()* Object type for the requested operation, always required.
.tracdap.metadata.ObjectType objectType = 2;- Specified by:
getObjectTypeValuein interfaceMetadataWriteRequestOrBuilder- Returns:
- The enum numeric value on the wire for objectType.
-
getObjectType
public org.finos.tracdap.metadata.ObjectType getObjectType()* Object type for the requested operation, always required.
.tracdap.metadata.ObjectType objectType = 2;- Specified by:
getObjectTypein interfaceMetadataWriteRequestOrBuilder- Returns:
- The objectType.
-
hasPriorVersion
public boolean hasPriorVersion()* Prior object/tag version to use for update operations. This field should be omitted when creating a new object.
optional .tracdap.metadata.TagSelector priorVersion = 3;- Specified by:
hasPriorVersionin interfaceMetadataWriteRequestOrBuilder- Returns:
- Whether the priorVersion field is set.
-
getPriorVersion
public org.finos.tracdap.metadata.TagSelector getPriorVersion()* Prior object/tag version to use for update operations. This field should be omitted when creating a new object.
optional .tracdap.metadata.TagSelector priorVersion = 3;- Specified by:
getPriorVersionin interfaceMetadataWriteRequestOrBuilder- Returns:
- The priorVersion.
-
getPriorVersionOrBuilder
public org.finos.tracdap.metadata.TagSelectorOrBuilder getPriorVersionOrBuilder()* Prior object/tag version to use for update operations. This field should be omitted when creating a new object.
optional .tracdap.metadata.TagSelector priorVersion = 3;- Specified by:
getPriorVersionOrBuilderin interfaceMetadataWriteRequestOrBuilder
-
hasDefinition
public boolean hasDefinition()* New object definition to save. A definition is required to create or update an object, for tag updates the definition field should be left blank. This field should be omitted for tag update operations.
optional .tracdap.metadata.ObjectDefinition definition = 4;- Specified by:
hasDefinitionin interfaceMetadataWriteRequestOrBuilder- Returns:
- Whether the definition field is set.
-
getDefinition
public org.finos.tracdap.metadata.ObjectDefinition getDefinition()* New object definition to save. A definition is required to create or update an object, for tag updates the definition field should be left blank. This field should be omitted for tag update operations.
optional .tracdap.metadata.ObjectDefinition definition = 4;- Specified by:
getDefinitionin interfaceMetadataWriteRequestOrBuilder- Returns:
- The definition.
-
getDefinitionOrBuilder
public org.finos.tracdap.metadata.ObjectDefinitionOrBuilder getDefinitionOrBuilder()* New object definition to save. A definition is required to create or update an object, for tag updates the definition field should be left blank. This field should be omitted for tag update operations.
optional .tracdap.metadata.ObjectDefinition definition = 4;- Specified by:
getDefinitionOrBuilderin interfaceMetadataWriteRequestOrBuilder
-
getTagUpdatesList
* Tag update operations to be applied. The updates are applied in order and must all succeeded in order for the request to be successful. If the API call fails for any reason, none of the requested tag updates will be applied.
repeated .tracdap.metadata.TagUpdate tagUpdates = 5;- Specified by:
getTagUpdatesListin interfaceMetadataWriteRequestOrBuilder
-
getTagUpdatesOrBuilderList
* Tag update operations to be applied. The updates are applied in order and must all succeeded in order for the request to be successful. If the API call fails for any reason, none of the requested tag updates will be applied.
repeated .tracdap.metadata.TagUpdate tagUpdates = 5;- Specified by:
getTagUpdatesOrBuilderListin interfaceMetadataWriteRequestOrBuilder
-
getTagUpdatesCount
public int getTagUpdatesCount()* Tag update operations to be applied. The updates are applied in order and must all succeeded in order for the request to be successful. If the API call fails for any reason, none of the requested tag updates will be applied.
repeated .tracdap.metadata.TagUpdate tagUpdates = 5;- Specified by:
getTagUpdatesCountin interfaceMetadataWriteRequestOrBuilder
-
getTagUpdates
public org.finos.tracdap.metadata.TagUpdate getTagUpdates(int index) * Tag update operations to be applied. The updates are applied in order and must all succeeded in order for the request to be successful. If the API call fails for any reason, none of the requested tag updates will be applied.
repeated .tracdap.metadata.TagUpdate tagUpdates = 5;- Specified by:
getTagUpdatesin interfaceMetadataWriteRequestOrBuilder
-
getTagUpdatesOrBuilder
public org.finos.tracdap.metadata.TagUpdateOrBuilder getTagUpdatesOrBuilder(int index) * Tag update operations to be applied. The updates are applied in order and must all succeeded in order for the request to be successful. If the API call fails for any reason, none of the requested tag updates will be applied.
repeated .tracdap.metadata.TagUpdate tagUpdates = 5;- Specified by:
getTagUpdatesOrBuilderin interfaceMetadataWriteRequestOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static MetadataWriteRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MetadataWriteRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MetadataWriteRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MetadataWriteRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MetadataWriteRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MetadataWriteRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static MetadataWriteRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static MetadataWriteRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static MetadataWriteRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static MetadataWriteRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected MetadataWriteRequest.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-