Class DiscoveredApiObservation

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

@Generated public final class DiscoveredApiObservation extends com.google.protobuf.GeneratedMessage implements DiscoveredApiObservationOrBuilder
 Respresents an API Observation observed in one of the sources.
 
Protobuf type google.cloud.apihub.v1.DiscoveredApiObservation
See Also:
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • STYLE_FIELD_NUMBER

      public static final int STYLE_FIELD_NUMBER
      See Also:
    • SERVER_IPS_FIELD_NUMBER

      public static final int SERVER_IPS_FIELD_NUMBER
      See Also:
    • HOSTNAME_FIELD_NUMBER

      public static final int HOSTNAME_FIELD_NUMBER
      See Also:
    • LAST_EVENT_DETECTED_TIME_FIELD_NUMBER

      public static final int LAST_EVENT_DETECTED_TIME_FIELD_NUMBER
      See Also:
    • SOURCE_LOCATIONS_FIELD_NUMBER

      public static final int SOURCE_LOCATIONS_FIELD_NUMBER
      See Also:
    • API_OPERATION_COUNT_FIELD_NUMBER

      public static final int API_OPERATION_COUNT_FIELD_NUMBER
      See Also:
    • ORIGIN_FIELD_NUMBER

      public static final int ORIGIN_FIELD_NUMBER
      See Also:
    • SOURCE_TYPES_FIELD_NUMBER

      public static final int SOURCE_TYPES_FIELD_NUMBER
      See Also:
    • KNOWN_OPERATIONS_COUNT_FIELD_NUMBER

      public static final int KNOWN_OPERATIONS_COUNT_FIELD_NUMBER
      See Also:
    • UNKNOWN_OPERATIONS_COUNT_FIELD_NUMBER

      public static final int UNKNOWN_OPERATIONS_COUNT_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:
    • SOURCE_METADATA_FIELD_NUMBER

      public static final int SOURCE_METADATA_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 discovered API Observation.
      
       Format:
       `projects/{project}/locations/{location}/discoveredApiObservations/{discovered_api_observation}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface DiscoveredApiObservationOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. The name of the discovered API Observation.
      
       Format:
       `projects/{project}/locations/{location}/discoveredApiObservations/{discovered_api_observation}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface DiscoveredApiObservationOrBuilder
      Returns:
      The bytes for name.
    • getStyleValue

      public int getStyleValue()
       Optional. Style of ApiObservation
       
      .google.cloud.apihub.v1.DiscoveredApiObservation.Style style = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStyleValue in interface DiscoveredApiObservationOrBuilder
      Returns:
      The enum numeric value on the wire for style.
    • getStyle

      public DiscoveredApiObservation.Style getStyle()
       Optional. Style of ApiObservation
       
      .google.cloud.apihub.v1.DiscoveredApiObservation.Style style = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStyle in interface DiscoveredApiObservationOrBuilder
      Returns:
      The style.
    • getServerIpsList

      public com.google.protobuf.ProtocolStringList getServerIpsList()
       Optional. The IP address (IPv4 or IPv6) of the origin server that the
       request was sent to. This field can include port information. Examples:
       `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`.
       
      repeated string server_ips = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getServerIpsList in interface DiscoveredApiObservationOrBuilder
      Returns:
      A list containing the serverIps.
    • getServerIpsCount

      public int getServerIpsCount()
       Optional. The IP address (IPv4 or IPv6) of the origin server that the
       request was sent to. This field can include port information. Examples:
       `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`.
       
      repeated string server_ips = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getServerIpsCount in interface DiscoveredApiObservationOrBuilder
      Returns:
      The count of serverIps.
    • getServerIps

      public String getServerIps(int index)
       Optional. The IP address (IPv4 or IPv6) of the origin server that the
       request was sent to. This field can include port information. Examples:
       `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`.
       
      repeated string server_ips = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getServerIps in interface DiscoveredApiObservationOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The serverIps at the given index.
    • getServerIpsBytes

      public com.google.protobuf.ByteString getServerIpsBytes(int index)
       Optional. The IP address (IPv4 or IPv6) of the origin server that the
       request was sent to. This field can include port information. Examples:
       `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`.
       
      repeated string server_ips = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getServerIpsBytes in interface DiscoveredApiObservationOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the serverIps at the given index.
    • getHostname

      public String getHostname()
       Optional. The hostname of requests processed for this Observation.
       
      string hostname = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getHostname in interface DiscoveredApiObservationOrBuilder
      Returns:
      The hostname.
    • getHostnameBytes

      public com.google.protobuf.ByteString getHostnameBytes()
       Optional. The hostname of requests processed for this Observation.
       
      string hostname = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getHostnameBytes in interface DiscoveredApiObservationOrBuilder
      Returns:
      The bytes for hostname.
    • hasLastEventDetectedTime

      public boolean hasLastEventDetectedTime()
       Optional. Last event detected time stamp
       
      .google.protobuf.Timestamp last_event_detected_time = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasLastEventDetectedTime in interface DiscoveredApiObservationOrBuilder
      Returns:
      Whether the lastEventDetectedTime field is set.
    • getLastEventDetectedTime

      public com.google.protobuf.Timestamp getLastEventDetectedTime()
       Optional. Last event detected time stamp
       
      .google.protobuf.Timestamp last_event_detected_time = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLastEventDetectedTime in interface DiscoveredApiObservationOrBuilder
      Returns:
      The lastEventDetectedTime.
    • getLastEventDetectedTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getLastEventDetectedTimeOrBuilder()
       Optional. Last event detected time stamp
       
      .google.protobuf.Timestamp last_event_detected_time = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLastEventDetectedTimeOrBuilder in interface DiscoveredApiObservationOrBuilder
    • getSourceLocationsList

      public com.google.protobuf.ProtocolStringList getSourceLocationsList()
       Optional. The location of the observation source.
       
      repeated string source_locations = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getSourceLocationsList in interface DiscoveredApiObservationOrBuilder
      Returns:
      A list containing the sourceLocations.
    • getSourceLocationsCount

      public int getSourceLocationsCount()
       Optional. The location of the observation source.
       
      repeated string source_locations = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getSourceLocationsCount in interface DiscoveredApiObservationOrBuilder
      Returns:
      The count of sourceLocations.
    • getSourceLocations

      public String getSourceLocations(int index)
       Optional. The location of the observation source.
       
      repeated string source_locations = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getSourceLocations in interface DiscoveredApiObservationOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The sourceLocations at the given index.
    • getSourceLocationsBytes

      public com.google.protobuf.ByteString getSourceLocationsBytes(int index)
       Optional. The location of the observation source.
       
      repeated string source_locations = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getSourceLocationsBytes in interface DiscoveredApiObservationOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the sourceLocations at the given index.
    • getApiOperationCount

      public long getApiOperationCount()
       Optional. The number of observed API Operations.
       
      int64 api_operation_count = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getApiOperationCount in interface DiscoveredApiObservationOrBuilder
      Returns:
      The apiOperationCount.
    • getOrigin

      public String getOrigin()
       Optional. For an observation pushed from a gcp resource, this would be the
       gcp project id.
       
      string origin = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOrigin in interface DiscoveredApiObservationOrBuilder
      Returns:
      The origin.
    • getOriginBytes

      public com.google.protobuf.ByteString getOriginBytes()
       Optional. For an observation pushed from a gcp resource, this would be the
       gcp project id.
       
      string origin = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOriginBytes in interface DiscoveredApiObservationOrBuilder
      Returns:
      The bytes for origin.
    • getSourceTypesList

      public List<DiscoveredApiObservation.SourceType> getSourceTypesList()
       Optional. The type of the source from which the observation was collected.
       
      repeated .google.cloud.apihub.v1.DiscoveredApiObservation.SourceType source_types = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSourceTypesList in interface DiscoveredApiObservationOrBuilder
      Returns:
      A list containing the sourceTypes.
    • getSourceTypesCount

      public int getSourceTypesCount()
       Optional. The type of the source from which the observation was collected.
       
      repeated .google.cloud.apihub.v1.DiscoveredApiObservation.SourceType source_types = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSourceTypesCount in interface DiscoveredApiObservationOrBuilder
      Returns:
      The count of sourceTypes.
    • getSourceTypes

      public DiscoveredApiObservation.SourceType getSourceTypes(int index)
       Optional. The type of the source from which the observation was collected.
       
      repeated .google.cloud.apihub.v1.DiscoveredApiObservation.SourceType source_types = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSourceTypes in interface DiscoveredApiObservationOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The sourceTypes at the given index.
    • getSourceTypesValueList

      public List<Integer> getSourceTypesValueList()
       Optional. The type of the source from which the observation was collected.
       
      repeated .google.cloud.apihub.v1.DiscoveredApiObservation.SourceType source_types = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSourceTypesValueList in interface DiscoveredApiObservationOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for sourceTypes.
    • getSourceTypesValue

      public int getSourceTypesValue(int index)
       Optional. The type of the source from which the observation was collected.
       
      repeated .google.cloud.apihub.v1.DiscoveredApiObservation.SourceType source_types = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSourceTypesValue in interface DiscoveredApiObservationOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of sourceTypes at the given index.
    • getKnownOperationsCount

      public long getKnownOperationsCount()
       Output only. The number of known API Operations.
       
      int64 known_operations_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getKnownOperationsCount in interface DiscoveredApiObservationOrBuilder
      Returns:
      The knownOperationsCount.
    • getUnknownOperationsCount

      public long getUnknownOperationsCount()
       Output only. The number of unknown API Operations.
       
      int64 unknown_operations_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUnknownOperationsCount in interface DiscoveredApiObservationOrBuilder
      Returns:
      The unknownOperationsCount.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. Create time stamp of the observation in API Hub.
       
      .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface DiscoveredApiObservationOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. Create time stamp of the observation in API Hub.
       
      .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface DiscoveredApiObservationOrBuilder
      Returns:
      The createTime.
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. Create time stamp of the observation in API Hub.
       
      .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface DiscoveredApiObservationOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. Update time stamp of the observation in API Hub.
       
      .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface DiscoveredApiObservationOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. Update time stamp of the observation in API Hub.
       
      .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface DiscoveredApiObservationOrBuilder
      Returns:
      The updateTime.
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. Update time stamp of the observation in API Hub.
       
      .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface DiscoveredApiObservationOrBuilder
    • hasSourceMetadata

      public boolean hasSourceMetadata()
       Output only. The metadata of the source from which the observation was
       collected.
       
      .google.cloud.apihub.v1.SourceMetadata source_metadata = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasSourceMetadata in interface DiscoveredApiObservationOrBuilder
      Returns:
      Whether the sourceMetadata field is set.
    • getSourceMetadata

      public SourceMetadata getSourceMetadata()
       Output only. The metadata of the source from which the observation was
       collected.
       
      .google.cloud.apihub.v1.SourceMetadata source_metadata = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSourceMetadata in interface DiscoveredApiObservationOrBuilder
      Returns:
      The sourceMetadata.
    • getSourceMetadataOrBuilder

      public SourceMetadataOrBuilder getSourceMetadataOrBuilder()
       Output only. The metadata of the source from which the observation was
       collected.
       
      .google.cloud.apihub.v1.SourceMetadata source_metadata = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSourceMetadataOrBuilder in interface DiscoveredApiObservationOrBuilder
    • 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 DiscoveredApiObservation parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static DiscoveredApiObservation.Builder newBuilder()
    • newBuilder

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

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

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

      public static DiscoveredApiObservation getDefaultInstance()
    • parser

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

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