Class CollectApiDataRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CollectApiDataRequest.Builder>
com.google.cloud.apihub.v1.CollectApiDataRequest.Builder
All Implemented Interfaces:
CollectApiDataRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CollectApiDataRequest

public static final class CollectApiDataRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CollectApiDataRequest.Builder> implements CollectApiDataRequestOrBuilder
 The CollectApiData method's request.
 
Protobuf type google.cloud.apihub.v1.CollectApiDataRequest
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CollectApiDataRequest.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<CollectApiDataRequest.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<CollectApiDataRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public CollectApiDataRequest.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<CollectApiDataRequest.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<CollectApiDataRequest.Builder>
    • mergeFrom

      public CollectApiDataRequest.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<CollectApiDataRequest.Builder>
      Throws:
      IOException
    • getLocation

      public String getLocation()
       Required. The regional location of the API hub instance and its resources.
       Format: `projects/{project}/locations/{location}`
       
      string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getLocation in interface CollectApiDataRequestOrBuilder
      Returns:
      The location.
    • getLocationBytes

      public com.google.protobuf.ByteString getLocationBytes()
       Required. The regional location of the API hub instance and its resources.
       Format: `projects/{project}/locations/{location}`
       
      string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getLocationBytes in interface CollectApiDataRequestOrBuilder
      Returns:
      The bytes for location.
    • setLocation

      public CollectApiDataRequest.Builder setLocation(String value)
       Required. The regional location of the API hub instance and its resources.
       Format: `projects/{project}/locations/{location}`
       
      string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The location to set.
      Returns:
      This builder for chaining.
    • clearLocation

      public CollectApiDataRequest.Builder clearLocation()
       Required. The regional location of the API hub instance and its resources.
       Format: `projects/{project}/locations/{location}`
       
      string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setLocationBytes

      public CollectApiDataRequest.Builder setLocationBytes(com.google.protobuf.ByteString value)
       Required. The regional location of the API hub instance and its resources.
       Format: `projects/{project}/locations/{location}`
       
      string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for location to set.
      Returns:
      This builder for chaining.
    • getCollectionTypeValue

      public int getCollectionTypeValue()
       Required. The type of collection. Applies to all entries in
       [api_data][google.cloud.apihub.v1.CollectApiDataRequest.api_data].
       
      .google.cloud.apihub.v1.CollectionType collection_type = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCollectionTypeValue in interface CollectApiDataRequestOrBuilder
      Returns:
      The enum numeric value on the wire for collectionType.
    • setCollectionTypeValue

      public CollectApiDataRequest.Builder setCollectionTypeValue(int value)
       Required. The type of collection. Applies to all entries in
       [api_data][google.cloud.apihub.v1.CollectApiDataRequest.api_data].
       
      .google.cloud.apihub.v1.CollectionType collection_type = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for collectionType to set.
      Returns:
      This builder for chaining.
    • getCollectionType

      public CollectionType getCollectionType()
       Required. The type of collection. Applies to all entries in
       [api_data][google.cloud.apihub.v1.CollectApiDataRequest.api_data].
       
      .google.cloud.apihub.v1.CollectionType collection_type = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCollectionType in interface CollectApiDataRequestOrBuilder
      Returns:
      The collectionType.
    • setCollectionType

      public CollectApiDataRequest.Builder setCollectionType(CollectionType value)
       Required. The type of collection. Applies to all entries in
       [api_data][google.cloud.apihub.v1.CollectApiDataRequest.api_data].
       
      .google.cloud.apihub.v1.CollectionType collection_type = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The collectionType to set.
      Returns:
      This builder for chaining.
    • clearCollectionType

      public CollectApiDataRequest.Builder clearCollectionType()
       Required. The type of collection. Applies to all entries in
       [api_data][google.cloud.apihub.v1.CollectApiDataRequest.api_data].
       
      .google.cloud.apihub.v1.CollectionType collection_type = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getPluginInstance

      public String getPluginInstance()
       Required. The plugin instance collecting the API data.
       Format:
       `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`.
       
      string plugin_instance = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getPluginInstance in interface CollectApiDataRequestOrBuilder
      Returns:
      The pluginInstance.
    • getPluginInstanceBytes

      public com.google.protobuf.ByteString getPluginInstanceBytes()
       Required. The plugin instance collecting the API data.
       Format:
       `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`.
       
      string plugin_instance = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getPluginInstanceBytes in interface CollectApiDataRequestOrBuilder
      Returns:
      The bytes for pluginInstance.
    • setPluginInstance

      public CollectApiDataRequest.Builder setPluginInstance(String value)
       Required. The plugin instance collecting the API data.
       Format:
       `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`.
       
      string plugin_instance = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The pluginInstance to set.
      Returns:
      This builder for chaining.
    • clearPluginInstance

      public CollectApiDataRequest.Builder clearPluginInstance()
       Required. The plugin instance collecting the API data.
       Format:
       `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`.
       
      string plugin_instance = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setPluginInstanceBytes

      public CollectApiDataRequest.Builder setPluginInstanceBytes(com.google.protobuf.ByteString value)
       Required. The plugin instance collecting the API data.
       Format:
       `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`.
       
      string plugin_instance = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for pluginInstance to set.
      Returns:
      This builder for chaining.
    • getActionId

      public String getActionId()
       Required. The action ID to be used for collecting the API data.
       This should map to one of the action IDs specified
       in action configs in the plugin.
       
      string action_id = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getActionId in interface CollectApiDataRequestOrBuilder
      Returns:
      The actionId.
    • getActionIdBytes

      public com.google.protobuf.ByteString getActionIdBytes()
       Required. The action ID to be used for collecting the API data.
       This should map to one of the action IDs specified
       in action configs in the plugin.
       
      string action_id = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getActionIdBytes in interface CollectApiDataRequestOrBuilder
      Returns:
      The bytes for actionId.
    • setActionId

      public CollectApiDataRequest.Builder setActionId(String value)
       Required. The action ID to be used for collecting the API data.
       This should map to one of the action IDs specified
       in action configs in the plugin.
       
      string action_id = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The actionId to set.
      Returns:
      This builder for chaining.
    • clearActionId

      public CollectApiDataRequest.Builder clearActionId()
       Required. The action ID to be used for collecting the API data.
       This should map to one of the action IDs specified
       in action configs in the plugin.
       
      string action_id = 4 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setActionIdBytes

      public CollectApiDataRequest.Builder setActionIdBytes(com.google.protobuf.ByteString value)
       Required. The action ID to be used for collecting the API data.
       This should map to one of the action IDs specified
       in action configs in the plugin.
       
      string action_id = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for actionId to set.
      Returns:
      This builder for chaining.
    • hasApiData

      public boolean hasApiData()
       Required. The API data to be collected.
       
      .google.cloud.apihub.v1.ApiData api_data = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasApiData in interface CollectApiDataRequestOrBuilder
      Returns:
      Whether the apiData field is set.
    • getApiData

      public ApiData getApiData()
       Required. The API data to be collected.
       
      .google.cloud.apihub.v1.ApiData api_data = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getApiData in interface CollectApiDataRequestOrBuilder
      Returns:
      The apiData.
    • setApiData

      public CollectApiDataRequest.Builder setApiData(ApiData value)
       Required. The API data to be collected.
       
      .google.cloud.apihub.v1.ApiData api_data = 5 [(.google.api.field_behavior) = REQUIRED];
    • setApiData

      public CollectApiDataRequest.Builder setApiData(ApiData.Builder builderForValue)
       Required. The API data to be collected.
       
      .google.cloud.apihub.v1.ApiData api_data = 5 [(.google.api.field_behavior) = REQUIRED];
    • mergeApiData

      public CollectApiDataRequest.Builder mergeApiData(ApiData value)
       Required. The API data to be collected.
       
      .google.cloud.apihub.v1.ApiData api_data = 5 [(.google.api.field_behavior) = REQUIRED];
    • clearApiData

      public CollectApiDataRequest.Builder clearApiData()
       Required. The API data to be collected.
       
      .google.cloud.apihub.v1.ApiData api_data = 5 [(.google.api.field_behavior) = REQUIRED];
    • getApiDataBuilder

      public ApiData.Builder getApiDataBuilder()
       Required. The API data to be collected.
       
      .google.cloud.apihub.v1.ApiData api_data = 5 [(.google.api.field_behavior) = REQUIRED];
    • getApiDataOrBuilder

      public ApiDataOrBuilder getApiDataOrBuilder()
       Required. The API data to be collected.
       
      .google.cloud.apihub.v1.ApiData api_data = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getApiDataOrBuilder in interface CollectApiDataRequestOrBuilder