Class DiscoveredApiOperation (0.28.0)

public final class DiscoveredApiOperation extends GeneratedMessageV3 implements DiscoveredApiOperationOrBuilder

DiscoveredApiOperation represents an API Operation observed in one of the sources.

Protobuf type google.cloud.apihub.v1.DiscoveredApiOperation

Static Fields

CLASSIFICATION_FIELD_NUMBER

public static final int CLASSIFICATION_FIELD_NUMBER
Field Value
Type Description
int

COUNT_FIELD_NUMBER

public static final int COUNT_FIELD_NUMBER
Field Value
Type Description
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

FIRST_SEEN_TIME_FIELD_NUMBER

public static final int FIRST_SEEN_TIME_FIELD_NUMBER
Field Value
Type Description
int

HTTP_OPERATION_FIELD_NUMBER

public static final int HTTP_OPERATION_FIELD_NUMBER
Field Value
Type Description
int

LAST_SEEN_TIME_FIELD_NUMBER

public static final int LAST_SEEN_TIME_FIELD_NUMBER
Field Value
Type Description
int

MATCH_RESULTS_FIELD_NUMBER

public static final int MATCH_RESULTS_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

SOURCE_METADATA_FIELD_NUMBER

public static final int SOURCE_METADATA_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 DiscoveredApiOperation getDefaultInstance()
Returns
Type Description
DiscoveredApiOperation

getDescriptor()

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

newBuilder()

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

newBuilder(DiscoveredApiOperation prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getClassification()

public DiscoveredApiOperation.Classification getClassification()

Output only. The classification of the discovered API operation.

.google.cloud.apihub.v1.DiscoveredApiOperation.Classification classification = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DiscoveredApiOperation.Classification

The classification.

getClassificationValue()

public int getClassificationValue()

Output only. The classification of the discovered API operation.

.google.cloud.apihub.v1.DiscoveredApiOperation.Classification classification = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for classification.

getCount()

public long getCount()

Optional. The number of occurrences of this API Operation.

int64 count = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
long

The count.

getCreateTime()

public Timestamp getCreateTime()

Output only. Create time stamp of the discovered API operation in API Hub.

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

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Create time stamp of the discovered API operation in API Hub.

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

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public DiscoveredApiOperation getDefaultInstanceForType()
Returns
Type Description
DiscoveredApiOperation

getFirstSeenTime()

public Timestamp getFirstSeenTime()

Optional. First seen time stamp

.google.protobuf.Timestamp first_seen_time = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Timestamp

The firstSeenTime.

getFirstSeenTimeOrBuilder()

public TimestampOrBuilder getFirstSeenTimeOrBuilder()

Optional. First seen time stamp

.google.protobuf.Timestamp first_seen_time = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TimestampOrBuilder

getHttpOperation()

public HttpOperationDetails getHttpOperation()

Optional. An HTTP Operation.

.google.cloud.apihub.v1.HttpOperationDetails http_operation = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
HttpOperationDetails

The httpOperation.

getHttpOperationOrBuilder()

public HttpOperationDetailsOrBuilder getHttpOperationOrBuilder()

Optional. An HTTP Operation.

.google.cloud.apihub.v1.HttpOperationDetails http_operation = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
HttpOperationDetailsOrBuilder

getLastSeenTime()

public Timestamp getLastSeenTime()

Optional. Last seen time stamp

.google.protobuf.Timestamp last_seen_time = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Timestamp

The lastSeenTime.

getLastSeenTimeOrBuilder()

public TimestampOrBuilder getLastSeenTimeOrBuilder()

Optional. Last seen time stamp

.google.protobuf.Timestamp last_seen_time = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TimestampOrBuilder

getMatchResults(int index)

public DiscoveredApiOperation.MatchResult getMatchResults(int index)

Output only. The list of matched results for the discovered API operation. This will be populated only if the classification is known. The current usecase is for a single match. Keeping it repeated to support multiple matches in future.

repeated .google.cloud.apihub.v1.DiscoveredApiOperation.MatchResult match_results = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
DiscoveredApiOperation.MatchResult

getMatchResultsCount()

public int getMatchResultsCount()

Output only. The list of matched results for the discovered API operation. This will be populated only if the classification is known. The current usecase is for a single match. Keeping it repeated to support multiple matches in future.

repeated .google.cloud.apihub.v1.DiscoveredApiOperation.MatchResult match_results = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getMatchResultsList()

public List<DiscoveredApiOperation.MatchResult> getMatchResultsList()

Output only. The list of matched results for the discovered API operation. This will be populated only if the classification is known. The current usecase is for a single match. Keeping it repeated to support multiple matches in future.

repeated .google.cloud.apihub.v1.DiscoveredApiOperation.MatchResult match_results = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<MatchResult>

getMatchResultsOrBuilder(int index)

public DiscoveredApiOperation.MatchResultOrBuilder getMatchResultsOrBuilder(int index)

Output only. The list of matched results for the discovered API operation. This will be populated only if the classification is known. The current usecase is for a single match. Keeping it repeated to support multiple matches in future.

repeated .google.cloud.apihub.v1.DiscoveredApiOperation.MatchResult match_results = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
DiscoveredApiOperation.MatchResultOrBuilder

getMatchResultsOrBuilderList()

public List<? extends DiscoveredApiOperation.MatchResultOrBuilder> getMatchResultsOrBuilderList()

Output only. The list of matched results for the discovered API operation. This will be populated only if the classification is known. The current usecase is for a single match. Keeping it repeated to support multiple matches in future.

repeated .google.cloud.apihub.v1.DiscoveredApiOperation.MatchResult match_results = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.apihub.v1.DiscoveredApiOperation.MatchResultOrBuilder>

getName()

public String getName()

Identifier. The name of the discovered API Operation.

Format: projects/{project}/locations/{location}/discoveredApiObservations/{discovered_api_observation}/discoveredApiOperations/{discovered_api_operation}

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The name of the discovered API Operation.

Format: projects/{project}/locations/{location}/discoveredApiObservations/{discovered_api_observation}/discoveredApiOperations/{discovered_api_operation}

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

Returns
Type Description
ByteString

The bytes for name.

getOperationCase()

public DiscoveredApiOperation.OperationCase getOperationCase()
Returns
Type Description
DiscoveredApiOperation.OperationCase

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSourceMetadata()

public SourceMetadata getSourceMetadata()

Output only. The metadata of the source from which the api operation was collected.

.google.cloud.apihub.v1.SourceMetadata source_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SourceMetadata

The sourceMetadata.

getSourceMetadataOrBuilder()

public SourceMetadataOrBuilder getSourceMetadataOrBuilder()

Output only. The metadata of the source from which the api operation was collected.

.google.cloud.apihub.v1.SourceMetadata source_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SourceMetadataOrBuilder

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Update time stamp of the discovered API operation in API Hub.

.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Update time stamp of the discovered API operation in API Hub.

.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Create time stamp of the discovered API operation in API Hub.

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

Returns
Type Description
boolean

Whether the createTime field is set.

hasFirstSeenTime()

public boolean hasFirstSeenTime()

Optional. First seen time stamp

.google.protobuf.Timestamp first_seen_time = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the firstSeenTime field is set.

hasHttpOperation()

public boolean hasHttpOperation()

Optional. An HTTP Operation.

.google.cloud.apihub.v1.HttpOperationDetails http_operation = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the httpOperation field is set.

hasLastSeenTime()

public boolean hasLastSeenTime()

Optional. Last seen time stamp

.google.protobuf.Timestamp last_seen_time = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the lastSeenTime field is set.

hasSourceMetadata()

public boolean hasSourceMetadata()

Output only. The metadata of the source from which the api operation was collected.

.google.cloud.apihub.v1.SourceMetadata source_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the sourceMetadata field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Update time stamp of the discovered API operation in API Hub.

.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 DiscoveredApiOperation.Builder newBuilderForType()
Returns
Type Description
DiscoveredApiOperation.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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