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.resourceInfo
 
Protobuf type tracdap.api.ResourceInfoResponse
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<ResourceInfoResponse.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<ResourceInfoResponse.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ResourceInfoResponse.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ResourceInfoResponse.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ResourceInfoResponse.Builder>
    • getDefaultInstanceForType

      public ResourceInfoResponse getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ResourceInfoResponse build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ResourceInfoResponse buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ResourceInfoResponse.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ResourceInfoResponse.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ResourceInfoResponse.Builder>
      Throws:
      IOException
    • getResourceTypeValue

      public int getResourceTypeValue()
       / The type of selected resource.
       
      .tracdap.metadata.ResourceType resourceType = 1;
      Specified by:
      getResourceTypeValue in interface ResourceInfoResponseOrBuilder
      Returns:
      The enum numeric value on the wire for resourceType.
    • setResourceTypeValue

      public ResourceInfoResponse.Builder setResourceTypeValue(int value)
       / 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:
      getResourceType in interface ResourceInfoResponseOrBuilder
      Returns:
      The resourceType.
    • setResourceType

      public ResourceInfoResponse.Builder setResourceType(org.finos.tracdap.metadata.ResourceType value)
       / The type of selected resource.
       
      .tracdap.metadata.ResourceType resourceType = 1;
      Parameters:
      value - The resourceType to set.
      Returns:
      This builder for chaining.
    • clearResourceType

      public ResourceInfoResponse.Builder clearResourceType()
       / The type of selected resource.
       
      .tracdap.metadata.ResourceType resourceType = 1;
      Returns:
      This builder for chaining.
    • getResourceKey

      public String getResourceKey()
       / Resource key of the selected resource.
       
      string resourceKey = 2;
      Specified by:
      getResourceKey in interface ResourceInfoResponseOrBuilder
      Returns:
      The resourceKey.
    • getResourceKeyBytes

      public com.google.protobuf.ByteString getResourceKeyBytes()
       / Resource key of the selected resource.
       
      string resourceKey = 2;
      Specified by:
      getResourceKeyBytes in interface ResourceInfoResponseOrBuilder
      Returns:
      The bytes for resourceKey.
    • setResourceKey

      public ResourceInfoResponse.Builder setResourceKey(String value)
       / Resource key of the selected resource.
       
      string resourceKey = 2;
      Parameters:
      value - The resourceKey to set.
      Returns:
      This builder for chaining.
    • clearResourceKey

      public ResourceInfoResponse.Builder clearResourceKey()
       / Resource key of the selected resource.
       
      string resourceKey = 2;
      Returns:
      This builder for chaining.
    • setResourceKeyBytes

      public ResourceInfoResponse.Builder setResourceKeyBytes(com.google.protobuf.ByteString value)
       / Resource key of the selected resource.
       
      string resourceKey = 2;
      Parameters:
      value - The bytes for resourceKey to set.
      Returns:
      This builder for chaining.
    • getProtocol

      public String 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:
      getProtocol in interface ResourceInfoResponseOrBuilder
      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:
      getProtocolBytes in interface ResourceInfoResponseOrBuilder
      Returns:
      The bytes for protocol.
    • setProtocol

      public ResourceInfoResponse.Builder setProtocol(String value)
       *
       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

      public ResourceInfoResponse.Builder 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

      public ResourceInfoResponse.Builder setProtocolBytes(com.google.protobuf.ByteString value)
       *
       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:
      getPropertiesCount in interface ResourceInfoResponseOrBuilder
    • containsProperties

      public boolean containsProperties(String key)
       *
       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:
      containsProperties in interface ResourceInfoResponseOrBuilder
    • getProperties

      @Deprecated public Map<String,String> getProperties()
      Deprecated.
      Use getPropertiesMap() instead.
      Specified by:
      getProperties in interface ResourceInfoResponseOrBuilder
    • getPropertiesMap

      public Map<String,String> 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:
      getPropertiesMap in interface ResourceInfoResponseOrBuilder
    • getPropertiesOrDefault

      public String getPropertiesOrDefault(String key, String defaultValue)
       *
       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:
      getPropertiesOrDefault in interface ResourceInfoResponseOrBuilder
    • getPropertiesOrThrow

      public String getPropertiesOrThrow(String key)
       *
       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:
      getPropertiesOrThrow in interface ResourceInfoResponseOrBuilder
    • clearProperties

      public ResourceInfoResponse.Builder clearProperties()
    • removeProperties

      public ResourceInfoResponse.Builder removeProperties(String key)
       *
       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 public Map<String,String> getMutableProperties()
      Deprecated.
      Use alternate mutation accessors instead.
    • putProperties

      public ResourceInfoResponse.Builder putProperties(String key, String value)
       *
       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 ResourceInfoResponse.Builder putAllProperties(Map<String,String> values)
       *
       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;