Class DiscoveredApiObservation.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DiscoveredApiObservation.Builder>
com.google.cloud.apihub.v1.DiscoveredApiObservation.Builder
All Implemented Interfaces:
DiscoveredApiObservationOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
DiscoveredApiObservation

public static final class DiscoveredApiObservation.Builder extends com.google.protobuf.GeneratedMessage.Builder<DiscoveredApiObservation.Builder> implements DiscoveredApiObservationOrBuilder
 Respresents an API Observation observed in one of the sources.
 
Protobuf type google.cloud.apihub.v1.DiscoveredApiObservation
  • 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.Builder<DiscoveredApiObservation.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<DiscoveredApiObservation.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<DiscoveredApiObservation.Builder>
    • getDefaultInstanceForType

      public DiscoveredApiObservation getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

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

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

      public DiscoveredApiObservation.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DiscoveredApiObservation.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<DiscoveredApiObservation.Builder>
    • mergeFrom

      public DiscoveredApiObservation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DiscoveredApiObservation.Builder>
      Throws:
      IOException
    • 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.
    • setName

      public DiscoveredApiObservation.Builder setName(String value)
       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];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       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];
      Returns:
      This builder for chaining.
    • setNameBytes

      public DiscoveredApiObservation.Builder setNameBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • 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.
    • setStyleValue

      public DiscoveredApiObservation.Builder setStyleValue(int value)
       Optional. Style of ApiObservation
       
      .google.cloud.apihub.v1.DiscoveredApiObservation.Style style = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for style to set.
      Returns:
      This builder for chaining.
    • 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.
    • setStyle

       Optional. Style of ApiObservation
       
      .google.cloud.apihub.v1.DiscoveredApiObservation.Style style = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The style to set.
      Returns:
      This builder for chaining.
    • clearStyle

      public DiscoveredApiObservation.Builder clearStyle()
       Optional. Style of ApiObservation
       
      .google.cloud.apihub.v1.DiscoveredApiObservation.Style style = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • 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.
    • setServerIps

      public DiscoveredApiObservation.Builder setServerIps(int index, String value)
       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];
      Parameters:
      index - The index to set the value at.
      value - The serverIps to set.
      Returns:
      This builder for chaining.
    • addServerIps

      public DiscoveredApiObservation.Builder addServerIps(String value)
       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];
      Parameters:
      value - The serverIps to add.
      Returns:
      This builder for chaining.
    • addAllServerIps

      public DiscoveredApiObservation.Builder addAllServerIps(Iterable<String> values)
       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];
      Parameters:
      values - The serverIps to add.
      Returns:
      This builder for chaining.
    • clearServerIps

      public DiscoveredApiObservation.Builder clearServerIps()
       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];
      Returns:
      This builder for chaining.
    • addServerIpsBytes

      public DiscoveredApiObservation.Builder addServerIpsBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes of the serverIps to add.
      Returns:
      This builder for chaining.
    • 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.
    • setHostname

      public DiscoveredApiObservation.Builder setHostname(String value)
       Optional. The hostname of requests processed for this Observation.
       
      string hostname = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The hostname to set.
      Returns:
      This builder for chaining.
    • clearHostname

      public DiscoveredApiObservation.Builder clearHostname()
       Optional. The hostname of requests processed for this Observation.
       
      string hostname = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setHostnameBytes

      public DiscoveredApiObservation.Builder setHostnameBytes(com.google.protobuf.ByteString value)
       Optional. The hostname of requests processed for this Observation.
       
      string hostname = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for hostname to set.
      Returns:
      This builder for chaining.
    • 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.
    • setLastEventDetectedTime

      public DiscoveredApiObservation.Builder setLastEventDetectedTime(com.google.protobuf.Timestamp value)
       Optional. Last event detected time stamp
       
      .google.protobuf.Timestamp last_event_detected_time = 5 [(.google.api.field_behavior) = OPTIONAL];
    • setLastEventDetectedTime

      public DiscoveredApiObservation.Builder setLastEventDetectedTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Optional. Last event detected time stamp
       
      .google.protobuf.Timestamp last_event_detected_time = 5 [(.google.api.field_behavior) = OPTIONAL];
    • mergeLastEventDetectedTime

      public DiscoveredApiObservation.Builder mergeLastEventDetectedTime(com.google.protobuf.Timestamp value)
       Optional. Last event detected time stamp
       
      .google.protobuf.Timestamp last_event_detected_time = 5 [(.google.api.field_behavior) = OPTIONAL];
    • clearLastEventDetectedTime

      public DiscoveredApiObservation.Builder clearLastEventDetectedTime()
       Optional. Last event detected time stamp
       
      .google.protobuf.Timestamp last_event_detected_time = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getLastEventDetectedTimeBuilder

      public com.google.protobuf.Timestamp.Builder getLastEventDetectedTimeBuilder()
       Optional. Last event detected time stamp
       
      .google.protobuf.Timestamp last_event_detected_time = 5 [(.google.api.field_behavior) = OPTIONAL];
    • 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.
    • setSourceLocations

      public DiscoveredApiObservation.Builder setSourceLocations(int index, String value)
       Optional. The location of the observation source.
       
      repeated string source_locations = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      index - The index to set the value at.
      value - The sourceLocations to set.
      Returns:
      This builder for chaining.
    • addSourceLocations

      public DiscoveredApiObservation.Builder addSourceLocations(String value)
       Optional. The location of the observation source.
       
      repeated string source_locations = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The sourceLocations to add.
      Returns:
      This builder for chaining.
    • addAllSourceLocations

      public DiscoveredApiObservation.Builder addAllSourceLocations(Iterable<String> values)
       Optional. The location of the observation source.
       
      repeated string source_locations = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      values - The sourceLocations to add.
      Returns:
      This builder for chaining.
    • clearSourceLocations

      public DiscoveredApiObservation.Builder clearSourceLocations()
       Optional. The location of the observation source.
       
      repeated string source_locations = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • addSourceLocationsBytes

      public DiscoveredApiObservation.Builder addSourceLocationsBytes(com.google.protobuf.ByteString value)
       Optional. The location of the observation source.
       
      repeated string source_locations = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes of the sourceLocations to add.
      Returns:
      This builder for chaining.
    • 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.
    • setApiOperationCount

      public DiscoveredApiObservation.Builder setApiOperationCount(long value)
       Optional. The number of observed API Operations.
       
      int64 api_operation_count = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The apiOperationCount to set.
      Returns:
      This builder for chaining.
    • clearApiOperationCount

      public DiscoveredApiObservation.Builder clearApiOperationCount()
       Optional. The number of observed API Operations.
       
      int64 api_operation_count = 7 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • 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.
    • setOrigin

      public DiscoveredApiObservation.Builder setOrigin(String value)
       Optional. For an observation pushed from a gcp resource, this would be the
       gcp project id.
       
      string origin = 8 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The origin to set.
      Returns:
      This builder for chaining.
    • clearOrigin

      public DiscoveredApiObservation.Builder clearOrigin()
       Optional. For an observation pushed from a gcp resource, this would be the
       gcp project id.
       
      string origin = 8 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setOriginBytes

      public DiscoveredApiObservation.Builder setOriginBytes(com.google.protobuf.ByteString value)
       Optional. For an observation pushed from a gcp resource, this would be the
       gcp project id.
       
      string origin = 8 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for origin to set.
      Returns:
      This builder for chaining.
    • 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.
    • setSourceTypes

      public DiscoveredApiObservation.Builder setSourceTypes(int index, DiscoveredApiObservation.SourceType value)
       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];
      Parameters:
      index - The index to set the value at.
      value - The sourceTypes to set.
      Returns:
      This builder for chaining.
    • addSourceTypes

       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];
      Parameters:
      value - The sourceTypes to add.
      Returns:
      This builder for chaining.
    • addAllSourceTypes

       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];
      Parameters:
      values - The sourceTypes to add.
      Returns:
      This builder for chaining.
    • clearSourceTypes

      public DiscoveredApiObservation.Builder clearSourceTypes()
       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];
      Returns:
      This builder for chaining.
    • 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.
    • setSourceTypesValue

      public DiscoveredApiObservation.Builder setSourceTypesValue(int index, int value)
       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];
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for sourceTypes to set.
      Returns:
      This builder for chaining.
    • addSourceTypesValue

      public DiscoveredApiObservation.Builder addSourceTypesValue(int value)
       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];
      Parameters:
      value - The enum numeric value on the wire for sourceTypes to add.
      Returns:
      This builder for chaining.
    • addAllSourceTypesValue

      public DiscoveredApiObservation.Builder addAllSourceTypesValue(Iterable<Integer> values)
       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];
      Parameters:
      values - The enum numeric values on the wire for sourceTypes to add.
      Returns:
      This builder for chaining.
    • 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.
    • setKnownOperationsCount

      public DiscoveredApiObservation.Builder setKnownOperationsCount(long value)
       Output only. The number of known API Operations.
       
      int64 known_operations_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The knownOperationsCount to set.
      Returns:
      This builder for chaining.
    • clearKnownOperationsCount

      public DiscoveredApiObservation.Builder clearKnownOperationsCount()
       Output only. The number of known API Operations.
       
      int64 known_operations_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • 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.
    • setUnknownOperationsCount

      public DiscoveredApiObservation.Builder setUnknownOperationsCount(long value)
       Output only. The number of unknown API Operations.
       
      int64 unknown_operations_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The unknownOperationsCount to set.
      Returns:
      This builder for chaining.
    • clearUnknownOperationsCount

      public DiscoveredApiObservation.Builder clearUnknownOperationsCount()
       Output only. The number of unknown API Operations.
       
      int64 unknown_operations_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • 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.
    • setCreateTime

      public DiscoveredApiObservation.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. Create time stamp of the observation in API Hub.
       
      .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public DiscoveredApiObservation.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Create time stamp of the observation in API Hub.
       
      .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public DiscoveredApiObservation.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. Create time stamp of the observation in API Hub.
       
      .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public DiscoveredApiObservation.Builder clearCreateTime()
       Output only. Create time stamp of the observation in API Hub.
       
      .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. Create time stamp of the observation in API Hub.
       
      .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • 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.
    • setUpdateTime

      public DiscoveredApiObservation.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Update time stamp of the observation in API Hub.
       
      .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public DiscoveredApiObservation.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Update time stamp of the observation in API Hub.
       
      .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public DiscoveredApiObservation.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Update time stamp of the observation in API Hub.
       
      .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public DiscoveredApiObservation.Builder clearUpdateTime()
       Output only. Update time stamp of the observation in API Hub.
       
      .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. Update time stamp of the observation in API Hub.
       
      .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • 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.
    • setSourceMetadata

      public DiscoveredApiObservation.Builder setSourceMetadata(SourceMetadata value)
       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];
    • setSourceMetadata

      public DiscoveredApiObservation.Builder setSourceMetadata(SourceMetadata.Builder builderForValue)
       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];
    • mergeSourceMetadata

      public DiscoveredApiObservation.Builder mergeSourceMetadata(SourceMetadata value)
       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];
    • clearSourceMetadata

      public DiscoveredApiObservation.Builder clearSourceMetadata()
       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];
    • getSourceMetadataBuilder

      public SourceMetadata.Builder getSourceMetadataBuilder()
       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];
    • 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