Class Curation (0.28.0)

public final class Curation extends GeneratedMessageV3 implements CurationOrBuilder

A curation resource in the API Hub.

Protobuf type google.cloud.apihub.v1.Curation

Implements

CurationOrBuilder

Static Fields

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
Type Description
int

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

ENDPOINT_FIELD_NUMBER

public static final int ENDPOINT_FIELD_NUMBER
Field Value
Type Description
int

LAST_EXECUTION_ERROR_CODE_FIELD_NUMBER

public static final int LAST_EXECUTION_ERROR_CODE_FIELD_NUMBER
Field Value
Type Description
int

LAST_EXECUTION_ERROR_MESSAGE_FIELD_NUMBER

public static final int LAST_EXECUTION_ERROR_MESSAGE_FIELD_NUMBER
Field Value
Type Description
int

LAST_EXECUTION_STATE_FIELD_NUMBER

public static final int LAST_EXECUTION_STATE_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

PLUGIN_INSTANCE_ACTIONS_FIELD_NUMBER

public static final int PLUGIN_INSTANCE_ACTIONS_FIELD_NUMBER
Field Value
Type Description
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Curation getDefaultInstance()
Returns
Type Description
Curation

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Curation.Builder newBuilder()
Returns
Type Description
Curation.Builder

newBuilder(Curation prototype)

public static Curation.Builder newBuilder(Curation prototype)
Parameter
Name Description
prototype Curation
Returns
Type Description
Curation.Builder

parseDelimitedFrom(InputStream input)

public static Curation parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Curation
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Curation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Curation
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Curation parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Curation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Curation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Curation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Curation parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Curation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Curation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Curation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Curation parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Curation
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Curation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Curation
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Curation parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Curation
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Curation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Curation
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Curation parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Curation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Curation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Curation
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Curation> parser()
Returns
Type Description
Parser<Curation>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCreateTime()

public Timestamp getCreateTime()

Output only. The time at which the curation was created.

.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time at which the curation was created.

.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Curation getDefaultInstanceForType()
Returns
Type Description
Curation

getDescription()

public String getDescription()

Optional. The description of the curation.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. The description of the curation.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for description.

getDisplayName()

public String getDisplayName()

Required. The display name of the curation.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Required. The display name of the curation.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for displayName.

getEndpoint()

public Endpoint getEndpoint()

Required. The endpoint to be triggered for curation.

.google.cloud.apihub.v1.Endpoint endpoint = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Endpoint

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];

Returns
Type Description
EndpointOrBuilder

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];

Returns
Type Description
Curation.ErrorCode

The lastExecutionErrorCode.

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];

Returns
Type Description
int

The enum numeric value on the wire for 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];

Returns
Type Description
String

The lastExecutionErrorMessage.

getLastExecutionErrorMessageBytes()

public 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];

Returns
Type Description
ByteString

The bytes for lastExecutionErrorMessage.

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];

Returns
Type Description
Curation.LastExecutionState

The lastExecutionState.

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];

Returns
Type Description
int

The enum numeric value on the wire for lastExecutionState.

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];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The name of the curation.

Format: projects/{project}/locations/{location}/curations/{curation}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<Curation> getParserForType()
Returns
Type Description
Parser<Curation>
Overrides

getPluginInstanceActions(int index)

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];

Parameter
Name Description
index int
Returns
Type Description
Curation.PluginInstanceActionID

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];

Returns
Type Description
int

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];

Returns
Type Description
List<PluginInstanceActionID>

getPluginInstanceActionsOrBuilder(int index)

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];

Parameter
Name Description
index int
Returns
Type Description
Curation.PluginInstanceActionIDOrBuilder

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];

Returns
Type Description
List<? extends com.google.cloud.apihub.v1.Curation.PluginInstanceActionIDOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getUpdateTime()

public 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];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public 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];

Returns
Type Description
TimestampOrBuilder

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];

Returns
Type Description
boolean

Whether the createTime field is set.

hasEndpoint()

public boolean hasEndpoint()

Required. The endpoint to be triggered for curation.

.google.cloud.apihub.v1.Endpoint endpoint = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the endpoint field is set.

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];

Returns
Type Description
boolean

Whether the updateTime field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Curation.Builder newBuilderForType()
Returns
Type Description
Curation.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Curation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Curation.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Curation.Builder toBuilder()
Returns
Type Description
Curation.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException