Class Curation

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

@Generated public final class Curation extends com.google.protobuf.GeneratedMessage implements CurationOrBuilder
 A curation resource in the API Hub.
 
Protobuf type google.cloud.apihub.v1.Curation
See Also:
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • DISPLAY_NAME_FIELD_NUMBER

      public static final int DISPLAY_NAME_FIELD_NUMBER
      See Also:
    • DESCRIPTION_FIELD_NUMBER

      public static final int DESCRIPTION_FIELD_NUMBER
      See Also:
    • ENDPOINT_FIELD_NUMBER

      public static final int ENDPOINT_FIELD_NUMBER
      See Also:
    • PLUGIN_INSTANCE_ACTIONS_FIELD_NUMBER

      public static final int PLUGIN_INSTANCE_ACTIONS_FIELD_NUMBER
      See Also:
    • LAST_EXECUTION_STATE_FIELD_NUMBER

      public static final int LAST_EXECUTION_STATE_FIELD_NUMBER
      See Also:
    • LAST_EXECUTION_ERROR_CODE_FIELD_NUMBER

      public static final int LAST_EXECUTION_ERROR_CODE_FIELD_NUMBER
      See Also:
    • LAST_EXECUTION_ERROR_MESSAGE_FIELD_NUMBER

      public static final int LAST_EXECUTION_ERROR_MESSAGE_FIELD_NUMBER
      See Also:
    • CREATE_TIME_FIELD_NUMBER

      public static final int CREATE_TIME_FIELD_NUMBER
      See Also:
    • UPDATE_TIME_FIELD_NUMBER

      public static final int UPDATE_TIME_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
    • getName

      public String getName()
       Identifier. The name of the curation.
      
       Format:
       `projects/{project}/locations/{location}/curations/{curation}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface CurationOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. The name of the curation.
      
       Format:
       `projects/{project}/locations/{location}/curations/{curation}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface CurationOrBuilder
      Returns:
      The bytes for name.
    • getDisplayName

      public String getDisplayName()
       Required. The display name of the curation.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDisplayName in interface CurationOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Required. The display name of the curation.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDisplayNameBytes in interface CurationOrBuilder
      Returns:
      The bytes for displayName.
    • getDescription

      public String getDescription()
       Optional. The description of the curation.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface CurationOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Optional. The description of the curation.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescriptionBytes in interface CurationOrBuilder
      Returns:
      The bytes for description.
    • hasEndpoint

      public boolean hasEndpoint()
       Required. The endpoint to be triggered for curation.
       
      .google.cloud.apihub.v1.Endpoint endpoint = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasEndpoint in interface CurationOrBuilder
      Returns:
      Whether the endpoint field is set.
    • getEndpoint

      public Endpoint getEndpoint()
       Required. The endpoint to be triggered for curation.
       
      .google.cloud.apihub.v1.Endpoint endpoint = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEndpoint in interface CurationOrBuilder
      Returns:
      The endpoint.
    • getEndpointOrBuilder

      public EndpointOrBuilder getEndpointOrBuilder()
       Required. The endpoint to be triggered for curation.
       
      .google.cloud.apihub.v1.Endpoint endpoint = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEndpointOrBuilder in interface CurationOrBuilder
    • getPluginInstanceActionsList

      public List<Curation.PluginInstanceActionID> getPluginInstanceActionsList()
       Output only. The plugin instances and associated actions that are using the
       curation. Note: A particular curation could be used by multiple plugin
       instances or multiple actions in a plugin instance.
       
      repeated .google.cloud.apihub.v1.Curation.PluginInstanceActionID plugin_instance_actions = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPluginInstanceActionsList in interface CurationOrBuilder
    • getPluginInstanceActionsOrBuilderList

      public List<? extends Curation.PluginInstanceActionIDOrBuilder> getPluginInstanceActionsOrBuilderList()
       Output only. The plugin instances and associated actions that are using the
       curation. Note: A particular curation could be used by multiple plugin
       instances or multiple actions in a plugin instance.
       
      repeated .google.cloud.apihub.v1.Curation.PluginInstanceActionID plugin_instance_actions = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPluginInstanceActionsOrBuilderList in interface CurationOrBuilder
    • getPluginInstanceActionsCount

      public int getPluginInstanceActionsCount()
       Output only. The plugin instances and associated actions that are using the
       curation. Note: A particular curation could be used by multiple plugin
       instances or multiple actions in a plugin instance.
       
      repeated .google.cloud.apihub.v1.Curation.PluginInstanceActionID plugin_instance_actions = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPluginInstanceActionsCount in interface CurationOrBuilder
    • getPluginInstanceActions

      public Curation.PluginInstanceActionID getPluginInstanceActions(int index)
       Output only. The plugin instances and associated actions that are using the
       curation. Note: A particular curation could be used by multiple plugin
       instances or multiple actions in a plugin instance.
       
      repeated .google.cloud.apihub.v1.Curation.PluginInstanceActionID plugin_instance_actions = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPluginInstanceActions in interface CurationOrBuilder
    • getPluginInstanceActionsOrBuilder

      public Curation.PluginInstanceActionIDOrBuilder getPluginInstanceActionsOrBuilder(int index)
       Output only. The plugin instances and associated actions that are using the
       curation. Note: A particular curation could be used by multiple plugin
       instances or multiple actions in a plugin instance.
       
      repeated .google.cloud.apihub.v1.Curation.PluginInstanceActionID plugin_instance_actions = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPluginInstanceActionsOrBuilder in interface CurationOrBuilder
    • getLastExecutionStateValue

      public int getLastExecutionStateValue()
       Output only. The last execution state of the curation.
       
      .google.cloud.apihub.v1.Curation.LastExecutionState last_execution_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLastExecutionStateValue in interface CurationOrBuilder
      Returns:
      The enum numeric value on the wire for lastExecutionState.
    • getLastExecutionState

      public Curation.LastExecutionState getLastExecutionState()
       Output only. The last execution state of the curation.
       
      .google.cloud.apihub.v1.Curation.LastExecutionState last_execution_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLastExecutionState in interface CurationOrBuilder
      Returns:
      The lastExecutionState.
    • getLastExecutionErrorCodeValue

      public int getLastExecutionErrorCodeValue()
       Output only. The error code of the last execution of the curation. The
       error code is populated only when the last execution state is failed.
       
      .google.cloud.apihub.v1.Curation.ErrorCode last_execution_error_code = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLastExecutionErrorCodeValue in interface CurationOrBuilder
      Returns:
      The enum numeric value on the wire for lastExecutionErrorCode.
    • getLastExecutionErrorCode

      public Curation.ErrorCode getLastExecutionErrorCode()
       Output only. The error code of the last execution of the curation. The
       error code is populated only when the last execution state is failed.
       
      .google.cloud.apihub.v1.Curation.ErrorCode last_execution_error_code = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLastExecutionErrorCode in interface CurationOrBuilder
      Returns:
      The lastExecutionErrorCode.
    • getLastExecutionErrorMessage

      public String getLastExecutionErrorMessage()
       Output only. Error message describing the failure, if any, during the last
       execution of the curation.
       
      string last_execution_error_message = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLastExecutionErrorMessage in interface CurationOrBuilder
      Returns:
      The lastExecutionErrorMessage.
    • getLastExecutionErrorMessageBytes

      public com.google.protobuf.ByteString getLastExecutionErrorMessageBytes()
       Output only. Error message describing the failure, if any, during the last
       execution of the curation.
       
      string last_execution_error_message = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLastExecutionErrorMessageBytes in interface CurationOrBuilder
      Returns:
      The bytes for lastExecutionErrorMessage.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The time at which the curation was created.
       
      .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface CurationOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The time at which the curation was created.
       
      .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface CurationOrBuilder
      Returns:
      The createTime.
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The time at which the curation was created.
       
      .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface CurationOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. The time at which the curation was last updated.
       
      .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface CurationOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. The time at which the curation was last updated.
       
      .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface CurationOrBuilder
      Returns:
      The updateTime.
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The time at which the curation was last updated.
       
      .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface CurationOrBuilder
    • 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 Curation parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static Curation.Builder newBuilder()
    • newBuilder

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

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

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

      public static Curation getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<Curation> 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 Curation getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder