Package com.google.cloud.apihub.v1
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 Summary
Modifier and TypeMethodDescriptionaddAllServerIps(Iterable<String> values) Optional.addAllSourceLocations(Iterable<String> values) Optional.addAllSourceTypes(Iterable<? extends DiscoveredApiObservation.SourceType> values) Optional.addAllSourceTypesValue(Iterable<Integer> values) Optional.addServerIps(String value) Optional.addServerIpsBytes(com.google.protobuf.ByteString value) Optional.addSourceLocations(String value) Optional.addSourceLocationsBytes(com.google.protobuf.ByteString value) Optional.Optional.addSourceTypesValue(int value) Optional.build()clear()Optional.Output only.Optional.Output only.Optional.Identifier.Optional.Optional.Optional.Output only.Optional.Optional.Output only.Output only.longOptional.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.longOutput only.com.google.protobuf.TimestampOptional.com.google.protobuf.Timestamp.BuilderOptional.com.google.protobuf.TimestampOrBuilderOptional.getName()Identifier.com.google.protobuf.ByteStringIdentifier.Optional.com.google.protobuf.ByteStringOptional.getServerIps(int index) Optional.com.google.protobuf.ByteStringgetServerIpsBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.getSourceLocations(int index) Optional.com.google.protobuf.ByteStringgetSourceLocationsBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.Output only.Output only.Output only.getSourceTypes(int index) Optional.intOptional.Optional.intgetSourceTypesValue(int index) Optional.Optional.getStyle()Optional.intOptional.longOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanOutput only.booleanOptional.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeLastEventDetectedTime(com.google.protobuf.Timestamp value) Optional.Output only.mergeUpdateTime(com.google.protobuf.Timestamp value) Output only.setApiOperationCount(long value) Optional.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setHostname(String value) Optional.setHostnameBytes(com.google.protobuf.ByteString value) Optional.setKnownOperationsCount(long value) Output only.setLastEventDetectedTime(com.google.protobuf.Timestamp value) Optional.setLastEventDetectedTime(com.google.protobuf.Timestamp.Builder builderForValue) Optional.Identifier.setNameBytes(com.google.protobuf.ByteString value) Identifier.Optional.setOriginBytes(com.google.protobuf.ByteString value) Optional.setServerIps(int index, String value) Optional.setSourceLocations(int index, String value) Optional.setSourceMetadata(SourceMetadata value) Output only.setSourceMetadata(SourceMetadata.Builder builderForValue) Output only.setSourceTypes(int index, DiscoveredApiObservation.SourceType value) Optional.setSourceTypesValue(int index, int value) Optional.Optional.setStyleValue(int value) Optional.setUnknownOperationsCount(long value) Output only.setUpdateTime(com.google.protobuf.Timestamp value) Output only.setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<DiscoveredApiObservation.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<DiscoveredApiObservation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<DiscoveredApiObservation.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DiscoveredApiObservation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DiscoveredApiObservation.Builder>- Throws:
IOException
-
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:
getNamein interfaceDiscoveredApiObservationOrBuilder- 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:
getNameBytesin interfaceDiscoveredApiObservationOrBuilder- Returns:
- The bytes for name.
-
setName
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
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:
getStyleValuein interfaceDiscoveredApiObservationOrBuilder- Returns:
- The enum numeric value on the wire for style.
-
setStyleValue
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
Optional. Style of ApiObservation
.google.cloud.apihub.v1.DiscoveredApiObservation.Style style = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getStylein interfaceDiscoveredApiObservationOrBuilder- 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
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:
getServerIpsListin interfaceDiscoveredApiObservationOrBuilder- 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:
getServerIpsCountin interfaceDiscoveredApiObservationOrBuilder- Returns:
- The count of serverIps.
-
getServerIps
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:
getServerIpsin interfaceDiscoveredApiObservationOrBuilder- 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:
getServerIpsBytesin interfaceDiscoveredApiObservationOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the serverIps at the given index.
-
setServerIps
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
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
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
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
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
Optional. The hostname of requests processed for this Observation.
string hostname = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getHostnamein interfaceDiscoveredApiObservationOrBuilder- 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:
getHostnameBytesin interfaceDiscoveredApiObservationOrBuilder- Returns:
- The bytes for hostname.
-
setHostname
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
Optional. The hostname of requests processed for this Observation.
string hostname = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setHostnameBytes
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:
hasLastEventDetectedTimein interfaceDiscoveredApiObservationOrBuilder- 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:
getLastEventDetectedTimein interfaceDiscoveredApiObservationOrBuilder- 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
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:
getLastEventDetectedTimeOrBuilderin interfaceDiscoveredApiObservationOrBuilder
-
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:
getSourceLocationsListin interfaceDiscoveredApiObservationOrBuilder- 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:
getSourceLocationsCountin interfaceDiscoveredApiObservationOrBuilder- Returns:
- The count of sourceLocations.
-
getSourceLocations
Optional. The location of the observation source.
repeated string source_locations = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Specified by:
getSourceLocationsin interfaceDiscoveredApiObservationOrBuilder- 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:
getSourceLocationsBytesin interfaceDiscoveredApiObservationOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the sourceLocations at the given index.
-
setSourceLocations
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
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
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
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:
getApiOperationCountin interfaceDiscoveredApiObservationOrBuilder- Returns:
- The apiOperationCount.
-
setApiOperationCount
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
Optional. The number of observed API Operations.
int64 api_operation_count = 7 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
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:
getOriginin interfaceDiscoveredApiObservationOrBuilder- 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:
getOriginBytesin interfaceDiscoveredApiObservationOrBuilder- Returns:
- The bytes for origin.
-
setOrigin
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
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
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
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:
getSourceTypesListin interfaceDiscoveredApiObservationOrBuilder- 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:
getSourceTypesCountin interfaceDiscoveredApiObservationOrBuilder- Returns:
- The count of sourceTypes.
-
getSourceTypes
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:
getSourceTypesin interfaceDiscoveredApiObservationOrBuilder- 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
public DiscoveredApiObservation.Builder addAllSourceTypes(Iterable<? extends DiscoveredApiObservation.SourceType> 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 sourceTypes to add.- Returns:
- This builder for chaining.
-
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
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:
getSourceTypesValueListin interfaceDiscoveredApiObservationOrBuilder- 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:
getSourceTypesValuein interfaceDiscoveredApiObservationOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of sourceTypes at the given index.
-
setSourceTypesValue
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
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
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:
getKnownOperationsCountin interfaceDiscoveredApiObservationOrBuilder- Returns:
- The knownOperationsCount.
-
setKnownOperationsCount
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
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:
getUnknownOperationsCountin interfaceDiscoveredApiObservationOrBuilder- Returns:
- The unknownOperationsCount.
-
setUnknownOperationsCount
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
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:
hasCreateTimein interfaceDiscoveredApiObservationOrBuilder- 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:
getCreateTimein interfaceDiscoveredApiObservationOrBuilder- Returns:
- The createTime.
-
setCreateTime
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
Output only. Create time stamp of the observation in API Hub.
.google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
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:
getCreateTimeOrBuilderin interfaceDiscoveredApiObservationOrBuilder
-
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:
hasUpdateTimein interfaceDiscoveredApiObservationOrBuilder- 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:
getUpdateTimein interfaceDiscoveredApiObservationOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
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
Output only. Update time stamp of the observation in API Hub.
.google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
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:
getUpdateTimeOrBuilderin interfaceDiscoveredApiObservationOrBuilder
-
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:
hasSourceMetadatain interfaceDiscoveredApiObservationOrBuilder- Returns:
- Whether the sourceMetadata field is set.
-
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:
getSourceMetadatain interfaceDiscoveredApiObservationOrBuilder- Returns:
- The sourceMetadata.
-
setSourceMetadata
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
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
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
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
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
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:
getSourceMetadataOrBuilderin interfaceDiscoveredApiObservationOrBuilder
-