Class DiscoveredApiOperation

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

@Generated public final class DiscoveredApiOperation extends com.google.protobuf.GeneratedMessage implements DiscoveredApiOperationOrBuilder
 DiscoveredApiOperation represents an API Operation observed in one of the
 sources.
 
Protobuf type google.cloud.apihub.v1.DiscoveredApiOperation
See Also:
  • Field Details

    • HTTP_OPERATION_FIELD_NUMBER

      public static final int HTTP_OPERATION_FIELD_NUMBER
      See Also:
    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • FIRST_SEEN_TIME_FIELD_NUMBER

      public static final int FIRST_SEEN_TIME_FIELD_NUMBER
      See Also:
    • LAST_SEEN_TIME_FIELD_NUMBER

      public static final int LAST_SEEN_TIME_FIELD_NUMBER
      See Also:
    • COUNT_FIELD_NUMBER

      public static final int COUNT_FIELD_NUMBER
      See Also:
    • CLASSIFICATION_FIELD_NUMBER

      public static final int CLASSIFICATION_FIELD_NUMBER
      See Also:
    • MATCH_RESULTS_FIELD_NUMBER

      public static final int MATCH_RESULTS_FIELD_NUMBER
      See Also:
    • SOURCE_METADATA_FIELD_NUMBER

      public static final int SOURCE_METADATA_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
    • getOperationCase

      public DiscoveredApiOperation.OperationCase getOperationCase()
      Specified by:
      getOperationCase in interface DiscoveredApiOperationOrBuilder
    • hasHttpOperation

      public boolean hasHttpOperation()
       Optional. An HTTP Operation.
       
      .google.cloud.apihub.v1.HttpOperationDetails http_operation = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasHttpOperation in interface DiscoveredApiOperationOrBuilder
      Returns:
      Whether the httpOperation field is set.
    • getHttpOperation

      public HttpOperationDetails getHttpOperation()
       Optional. An HTTP Operation.
       
      .google.cloud.apihub.v1.HttpOperationDetails http_operation = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getHttpOperation in interface DiscoveredApiOperationOrBuilder
      Returns:
      The httpOperation.
    • getHttpOperationOrBuilder

      public HttpOperationDetailsOrBuilder getHttpOperationOrBuilder()
       Optional. An HTTP Operation.
       
      .google.cloud.apihub.v1.HttpOperationDetails http_operation = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getHttpOperationOrBuilder in interface DiscoveredApiOperationOrBuilder
    • 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];
      Specified by:
      getName in interface DiscoveredApiOperationOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.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];
      Specified by:
      getNameBytes in interface DiscoveredApiOperationOrBuilder
      Returns:
      The bytes for name.
    • hasFirstSeenTime

      public boolean hasFirstSeenTime()
       Optional. First seen time stamp
       
      .google.protobuf.Timestamp first_seen_time = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasFirstSeenTime in interface DiscoveredApiOperationOrBuilder
      Returns:
      Whether the firstSeenTime field is set.
    • getFirstSeenTime

      public com.google.protobuf.Timestamp getFirstSeenTime()
       Optional. First seen time stamp
       
      .google.protobuf.Timestamp first_seen_time = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFirstSeenTime in interface DiscoveredApiOperationOrBuilder
      Returns:
      The firstSeenTime.
    • getFirstSeenTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getFirstSeenTimeOrBuilder()
       Optional. First seen time stamp
       
      .google.protobuf.Timestamp first_seen_time = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFirstSeenTimeOrBuilder in interface DiscoveredApiOperationOrBuilder
    • hasLastSeenTime

      public boolean hasLastSeenTime()
       Optional. Last seen time stamp
       
      .google.protobuf.Timestamp last_seen_time = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasLastSeenTime in interface DiscoveredApiOperationOrBuilder
      Returns:
      Whether the lastSeenTime field is set.
    • getLastSeenTime

      public com.google.protobuf.Timestamp getLastSeenTime()
       Optional. Last seen time stamp
       
      .google.protobuf.Timestamp last_seen_time = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLastSeenTime in interface DiscoveredApiOperationOrBuilder
      Returns:
      The lastSeenTime.
    • getLastSeenTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getLastSeenTimeOrBuilder()
       Optional. Last seen time stamp
       
      .google.protobuf.Timestamp last_seen_time = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLastSeenTimeOrBuilder in interface DiscoveredApiOperationOrBuilder
    • getCount

      public long getCount()
       Optional. The number of occurrences of this API Operation.
       
      int64 count = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCount in interface DiscoveredApiOperationOrBuilder
      Returns:
      The count.
    • 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];
      Specified by:
      getClassificationValue in interface DiscoveredApiOperationOrBuilder
      Returns:
      The enum numeric value on the wire for classification.
    • 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];
      Specified by:
      getClassification in interface DiscoveredApiOperationOrBuilder
      Returns:
      The classification.
    • 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];
      Specified by:
      getMatchResultsList in interface DiscoveredApiOperationOrBuilder
    • 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];
      Specified by:
      getMatchResultsOrBuilderList in interface DiscoveredApiOperationOrBuilder
    • 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];
      Specified by:
      getMatchResultsCount in interface DiscoveredApiOperationOrBuilder
    • getMatchResults

      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];
      Specified by:
      getMatchResults in interface DiscoveredApiOperationOrBuilder
    • getMatchResultsOrBuilder

      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];
      Specified by:
      getMatchResultsOrBuilder in interface DiscoveredApiOperationOrBuilder
    • 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];
      Specified by:
      hasSourceMetadata in interface DiscoveredApiOperationOrBuilder
      Returns:
      Whether the sourceMetadata field is set.
    • 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];
      Specified by:
      getSourceMetadata in interface DiscoveredApiOperationOrBuilder
      Returns:
      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];
      Specified by:
      getSourceMetadataOrBuilder in interface DiscoveredApiOperationOrBuilder
    • 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];
      Specified by:
      hasCreateTime in interface DiscoveredApiOperationOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.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];
      Specified by:
      getCreateTime in interface DiscoveredApiOperationOrBuilder
      Returns:
      The createTime.
    • getCreateTimeOrBuilder

      public com.google.protobuf.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];
      Specified by:
      getCreateTimeOrBuilder in interface DiscoveredApiOperationOrBuilder
    • 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];
      Specified by:
      hasUpdateTime in interface DiscoveredApiOperationOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.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];
      Specified by:
      getUpdateTime in interface DiscoveredApiOperationOrBuilder
      Returns:
      The updateTime.
    • getUpdateTimeOrBuilder

      public com.google.protobuf.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];
      Specified by:
      getUpdateTimeOrBuilder in interface DiscoveredApiOperationOrBuilder
    • 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 DiscoveredApiOperation parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static DiscoveredApiOperation.Builder newBuilder()
    • newBuilder

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

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

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

      public static DiscoveredApiOperation getDefaultInstance()
    • parser

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

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