Class CollectApiDataRequest

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.apihub.v1.CollectApiDataRequest
All Implemented Interfaces:
CollectApiDataRequestOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class CollectApiDataRequest extends com.google.protobuf.GeneratedMessage implements CollectApiDataRequestOrBuilder
 The CollectApiData method's request.
 
Protobuf type google.cloud.apihub.v1.CollectApiDataRequest
See Also:
  • Field Details

    • LOCATION_FIELD_NUMBER

      public static final int LOCATION_FIELD_NUMBER
      See Also:
    • COLLECTION_TYPE_FIELD_NUMBER

      public static final int COLLECTION_TYPE_FIELD_NUMBER
      See Also:
    • PLUGIN_INSTANCE_FIELD_NUMBER

      public static final int PLUGIN_INSTANCE_FIELD_NUMBER
      See Also:
    • ACTION_ID_FIELD_NUMBER

      public static final int ACTION_ID_FIELD_NUMBER
      See Also:
    • API_DATA_FIELD_NUMBER

      public static final int API_DATA_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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static CollectApiDataRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CollectApiDataRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CollectApiDataRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CollectApiDataRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CollectApiDataRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CollectApiDataRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CollectApiDataRequest parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CollectApiDataRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static CollectApiDataRequest parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static CollectApiDataRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CollectApiDataRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CollectApiDataRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static CollectApiDataRequest.Builder newBuilder()
    • newBuilder

      public static CollectApiDataRequest.Builder newBuilder(CollectApiDataRequest prototype)
    • toBuilder

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

      protected CollectApiDataRequest.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static CollectApiDataRequest getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<CollectApiDataRequest> parser()
    • getParserForType

      public com.google.protobuf.Parser<CollectApiDataRequest> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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