Package org.finos.tracdap.api
Class ResourceInfoResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ResourceInfoResponse.Builder>
com.google.protobuf.GeneratedMessage.Builder<ResourceInfoResponse.Builder>
org.finos.tracdap.api.ResourceInfoResponse.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,ResourceInfoResponseOrBuilder
- Enclosing class:
ResourceInfoResponse
public static final class ResourceInfoResponse.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ResourceInfoResponse.Builder>
implements ResourceInfoResponseOrBuilder
* Response object for a resourceInfo() API call. @see TracMetadataApi.resourceInfoProtobuf type
tracdap.api.ResourceInfoResponse-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()* Protocol of the selected resource./ Resource key of the selected resource./ The type of selected resource.booleancontainsProperties(String key) * Public properties of the selected resource.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.Deprecated.int* Public properties of the selected resource.* Public properties of the selected resource.getPropertiesOrDefault(String key, String defaultValue) * Public properties of the selected resource.* Public properties of the selected resource.* Protocol of the selected resource.com.google.protobuf.ByteString* Protocol of the selected resource./ Resource key of the selected resource.com.google.protobuf.ByteString/ Resource key of the selected resource.org.finos.tracdap.metadata.ResourceType/ The type of selected resource.int/ The type of selected resource.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(ResourceInfoResponse other) putAllProperties(Map<String, String> values) * Public properties of the selected resource.putProperties(String key, String value) * Public properties of the selected resource.removeProperties(String key) * Public properties of the selected resource.setProtocol(String value) * Protocol of the selected resource.setProtocolBytes(com.google.protobuf.ByteString value) * Protocol of the selected resource.setResourceKey(String value) / Resource key of the selected resource.setResourceKeyBytes(com.google.protobuf.ByteString value) / Resource key of the selected resource.setResourceType(org.finos.tracdap.metadata.ResourceType value) / The type of selected resource.setResourceTypeValue(int value) / The type of selected resource.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<ResourceInfoResponse.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<ResourceInfoResponse.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ResourceInfoResponse.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ResourceInfoResponse.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.GeneratedMessage.Builder<ResourceInfoResponse.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
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ResourceInfoResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ResourceInfoResponse.Builder>
-
mergeFrom
public ResourceInfoResponse.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<ResourceInfoResponse.Builder>- Throws:
IOException
-
getResourceTypeValue
public int getResourceTypeValue()/ The type of selected resource.
.tracdap.metadata.ResourceType resourceType = 1;- Specified by:
getResourceTypeValuein interfaceResourceInfoResponseOrBuilder- Returns:
- The enum numeric value on the wire for resourceType.
-
setResourceTypeValue
/ The type of selected resource.
.tracdap.metadata.ResourceType resourceType = 1;- Parameters:
value- The enum numeric value on the wire for resourceType to set.- Returns:
- This builder for chaining.
-
getResourceType
public org.finos.tracdap.metadata.ResourceType getResourceType()/ The type of selected resource.
.tracdap.metadata.ResourceType resourceType = 1;- Specified by:
getResourceTypein interfaceResourceInfoResponseOrBuilder- Returns:
- The resourceType.
-
setResourceType
/ The type of selected resource.
.tracdap.metadata.ResourceType resourceType = 1;- Parameters:
value- The resourceType to set.- Returns:
- This builder for chaining.
-
clearResourceType
/ The type of selected resource.
.tracdap.metadata.ResourceType resourceType = 1;- Returns:
- This builder for chaining.
-
getResourceKey
/ Resource key of the selected resource.
string resourceKey = 2;- Specified by:
getResourceKeyin interfaceResourceInfoResponseOrBuilder- Returns:
- The resourceKey.
-
getResourceKeyBytes
public com.google.protobuf.ByteString getResourceKeyBytes()/ Resource key of the selected resource.
string resourceKey = 2;- Specified by:
getResourceKeyBytesin interfaceResourceInfoResponseOrBuilder- Returns:
- The bytes for resourceKey.
-
setResourceKey
/ Resource key of the selected resource.
string resourceKey = 2;- Parameters:
value- The resourceKey to set.- Returns:
- This builder for chaining.
-
clearResourceKey
/ Resource key of the selected resource.
string resourceKey = 2;- Returns:
- This builder for chaining.
-
setResourceKeyBytes
/ Resource key of the selected resource.
string resourceKey = 2;- Parameters:
value- The bytes for resourceKey to set.- Returns:
- This builder for chaining.
-
getProtocol
* Protocol of the selected resource. Resource protocols correspond to TRAC technology plugins. For example, a storage resource might have protocol LOCAL or S3, and would accordingly require the LOCAL or S3 storage plugin to be installed.
string protocol = 3;- Specified by:
getProtocolin interfaceResourceInfoResponseOrBuilder- Returns:
- The protocol.
-
getProtocolBytes
public com.google.protobuf.ByteString getProtocolBytes()* Protocol of the selected resource. Resource protocols correspond to TRAC technology plugins. For example, a storage resource might have protocol LOCAL or S3, and would accordingly require the LOCAL or S3 storage plugin to be installed.
string protocol = 3;- Specified by:
getProtocolBytesin interfaceResourceInfoResponseOrBuilder- Returns:
- The bytes for protocol.
-
setProtocol
* Protocol of the selected resource. Resource protocols correspond to TRAC technology plugins. For example, a storage resource might have protocol LOCAL or S3, and would accordingly require the LOCAL or S3 storage plugin to be installed.
string protocol = 3;- Parameters:
value- The protocol to set.- Returns:
- This builder for chaining.
-
clearProtocol
* Protocol of the selected resource. Resource protocols correspond to TRAC technology plugins. For example, a storage resource might have protocol LOCAL or S3, and would accordingly require the LOCAL or S3 storage plugin to be installed.
string protocol = 3;- Returns:
- This builder for chaining.
-
setProtocolBytes
* Protocol of the selected resource. Resource protocols correspond to TRAC technology plugins. For example, a storage resource might have protocol LOCAL or S3, and would accordingly require the LOCAL or S3 storage plugin to be installed.
string protocol = 3;- Parameters:
value- The bytes for protocol to set.- Returns:
- This builder for chaining.
-
getPropertiesCount
public int getPropertiesCount()Description copied from interface:ResourceInfoResponseOrBuilder* Public properties of the selected resource. These properties are set in the resource configuration. Certain resource types require certain properties depending on the protocol, however additional arbitrary properties can be added to support client applications.
map<string, string> properties = 4;- Specified by:
getPropertiesCountin interfaceResourceInfoResponseOrBuilder
-
containsProperties
* Public properties of the selected resource. These properties are set in the resource configuration. Certain resource types require certain properties depending on the protocol, however additional arbitrary properties can be added to support client applications.
map<string, string> properties = 4;- Specified by:
containsPropertiesin interfaceResourceInfoResponseOrBuilder
-
getProperties
Deprecated.UsegetPropertiesMap()instead.- Specified by:
getPropertiesin interfaceResourceInfoResponseOrBuilder
-
getPropertiesMap
* Public properties of the selected resource. These properties are set in the resource configuration. Certain resource types require certain properties depending on the protocol, however additional arbitrary properties can be added to support client applications.
map<string, string> properties = 4;- Specified by:
getPropertiesMapin interfaceResourceInfoResponseOrBuilder
-
getPropertiesOrDefault
* Public properties of the selected resource. These properties are set in the resource configuration. Certain resource types require certain properties depending on the protocol, however additional arbitrary properties can be added to support client applications.
map<string, string> properties = 4;- Specified by:
getPropertiesOrDefaultin interfaceResourceInfoResponseOrBuilder
-
getPropertiesOrThrow
* Public properties of the selected resource. These properties are set in the resource configuration. Certain resource types require certain properties depending on the protocol, however additional arbitrary properties can be added to support client applications.
map<string, string> properties = 4;- Specified by:
getPropertiesOrThrowin interfaceResourceInfoResponseOrBuilder
-
clearProperties
-
removeProperties
* Public properties of the selected resource. These properties are set in the resource configuration. Certain resource types require certain properties depending on the protocol, however additional arbitrary properties can be added to support client applications.
map<string, string> properties = 4; -
getMutableProperties
Deprecated.Use alternate mutation accessors instead. -
putProperties
* Public properties of the selected resource. These properties are set in the resource configuration. Certain resource types require certain properties depending on the protocol, however additional arbitrary properties can be added to support client applications.
map<string, string> properties = 4; -
putAllProperties
* Public properties of the selected resource. These properties are set in the resource configuration. Certain resource types require certain properties depending on the protocol, however additional arbitrary properties can be added to support client applications.
map<string, string> properties = 4;
-