Package com.google.cloud.asset.v1
Class BatchGetAssetsHistoryRequest
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest
-
- All Implemented Interfaces:
BatchGetAssetsHistoryRequestOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class BatchGetAssetsHistoryRequest extends com.google.protobuf.GeneratedMessageV3 implements BatchGetAssetsHistoryRequestOrBuilder
Batch get assets history request.
Protobuf typegoogle.cloud.asset.v1.BatchGetAssetsHistoryRequest- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBatchGetAssetsHistoryRequest.BuilderBatch get assets history request.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intASSET_NAMES_FIELD_NUMBERstatic intCONTENT_TYPE_FIELD_NUMBERstatic intPARENT_FIELD_NUMBERstatic intREAD_TIME_WINDOW_FIELD_NUMBERstatic intRELATIONSHIP_TYPES_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetAssetNames(int index)A list of the full names of the assets.com.google.protobuf.ByteStringgetAssetNamesBytes(int index)A list of the full names of the assets.intgetAssetNamesCount()A list of the full names of the assets.com.google.protobuf.ProtocolStringListgetAssetNamesList()A list of the full names of the assets.ContentTypegetContentType()Optional.intgetContentTypeValue()Optional.static BatchGetAssetsHistoryRequestgetDefaultInstance()BatchGetAssetsHistoryRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetParent()Required.com.google.protobuf.ByteStringgetParentBytes()Required.com.google.protobuf.Parser<BatchGetAssetsHistoryRequest>getParserForType()TimeWindowgetReadTimeWindow()Optional.TimeWindowOrBuildergetReadTimeWindowOrBuilder()Optional.StringgetRelationshipTypes(int index)Optional.com.google.protobuf.ByteStringgetRelationshipTypesBytes(int index)Optional.intgetRelationshipTypesCount()Optional.com.google.protobuf.ProtocolStringListgetRelationshipTypesList()Optional.intgetSerializedSize()inthashCode()booleanhasReadTimeWindow()Optional.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static BatchGetAssetsHistoryRequest.BuildernewBuilder()static BatchGetAssetsHistoryRequest.BuildernewBuilder(BatchGetAssetsHistoryRequest prototype)BatchGetAssetsHistoryRequest.BuildernewBuilderForType()protected BatchGetAssetsHistoryRequest.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static BatchGetAssetsHistoryRequestparseDelimitedFrom(InputStream input)static BatchGetAssetsHistoryRequestparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static BatchGetAssetsHistoryRequestparseFrom(byte[] data)static BatchGetAssetsHistoryRequestparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static BatchGetAssetsHistoryRequestparseFrom(com.google.protobuf.ByteString data)static BatchGetAssetsHistoryRequestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static BatchGetAssetsHistoryRequestparseFrom(com.google.protobuf.CodedInputStream input)static BatchGetAssetsHistoryRequestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static BatchGetAssetsHistoryRequestparseFrom(InputStream input)static BatchGetAssetsHistoryRequestparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static BatchGetAssetsHistoryRequestparseFrom(ByteBuffer data)static BatchGetAssetsHistoryRequestparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<BatchGetAssetsHistoryRequest>parser()BatchGetAssetsHistoryRequest.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
PARENT_FIELD_NUMBER
public static final int PARENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ASSET_NAMES_FIELD_NUMBER
public static final int ASSET_NAMES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONTENT_TYPE_FIELD_NUMBER
public static final int CONTENT_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
READ_TIME_WINDOW_FIELD_NUMBER
public static final int READ_TIME_WINDOW_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RELATIONSHIP_TYPES_FIELD_NUMBER
public static final int RELATIONSHIP_TYPES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getParent
public String getParent()
Required. The relative name of the root asset. It can only be an organization number (such as "organizations/123"), a project ID (such as "projects/my-project-id")", or a project number (such as "projects/12345").
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getParentin interfaceBatchGetAssetsHistoryRequestOrBuilder- Returns:
- The parent.
-
getParentBytes
public com.google.protobuf.ByteString getParentBytes()
Required. The relative name of the root asset. It can only be an organization number (such as "organizations/123"), a project ID (such as "projects/my-project-id")", or a project number (such as "projects/12345").
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getParentBytesin interfaceBatchGetAssetsHistoryRequestOrBuilder- Returns:
- The bytes for parent.
-
getAssetNamesList
public com.google.protobuf.ProtocolStringList getAssetNamesList()
A list of the full names of the assets. See: https://cloud.google.com/asset-inventory/docs/resource-name-format Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. The request becomes a no-op if the asset name list is empty, and the max size of the asset name list is 100 in one request.
repeated string asset_names = 2;- Specified by:
getAssetNamesListin interfaceBatchGetAssetsHistoryRequestOrBuilder- Returns:
- A list containing the assetNames.
-
getAssetNamesCount
public int getAssetNamesCount()
A list of the full names of the assets. See: https://cloud.google.com/asset-inventory/docs/resource-name-format Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. The request becomes a no-op if the asset name list is empty, and the max size of the asset name list is 100 in one request.
repeated string asset_names = 2;- Specified by:
getAssetNamesCountin interfaceBatchGetAssetsHistoryRequestOrBuilder- Returns:
- The count of assetNames.
-
getAssetNames
public String getAssetNames(int index)
A list of the full names of the assets. See: https://cloud.google.com/asset-inventory/docs/resource-name-format Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. The request becomes a no-op if the asset name list is empty, and the max size of the asset name list is 100 in one request.
repeated string asset_names = 2;- Specified by:
getAssetNamesin interfaceBatchGetAssetsHistoryRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The assetNames at the given index.
-
getAssetNamesBytes
public com.google.protobuf.ByteString getAssetNamesBytes(int index)
A list of the full names of the assets. See: https://cloud.google.com/asset-inventory/docs/resource-name-format Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. The request becomes a no-op if the asset name list is empty, and the max size of the asset name list is 100 in one request.
repeated string asset_names = 2;- Specified by:
getAssetNamesBytesin interfaceBatchGetAssetsHistoryRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the assetNames at the given index.
-
getContentTypeValue
public int getContentTypeValue()
Optional. The content type.
.google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getContentTypeValuein interfaceBatchGetAssetsHistoryRequestOrBuilder- Returns:
- The enum numeric value on the wire for contentType.
-
getContentType
public ContentType getContentType()
Optional. The content type.
.google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getContentTypein interfaceBatchGetAssetsHistoryRequestOrBuilder- Returns:
- The contentType.
-
hasReadTimeWindow
public boolean hasReadTimeWindow()
Optional. The time window for the asset history. Both start_time and end_time are optional and if set, it must be after the current time minus 35 days. If end_time is not set, it is default to current timestamp. If start_time is not set, the snapshot of the assets at end_time will be returned. The returned results contain all temporal assets whose time window overlap with read_time_window.
.google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasReadTimeWindowin interfaceBatchGetAssetsHistoryRequestOrBuilder- Returns:
- Whether the readTimeWindow field is set.
-
getReadTimeWindow
public TimeWindow getReadTimeWindow()
Optional. The time window for the asset history. Both start_time and end_time are optional and if set, it must be after the current time minus 35 days. If end_time is not set, it is default to current timestamp. If start_time is not set, the snapshot of the assets at end_time will be returned. The returned results contain all temporal assets whose time window overlap with read_time_window.
.google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getReadTimeWindowin interfaceBatchGetAssetsHistoryRequestOrBuilder- Returns:
- The readTimeWindow.
-
getReadTimeWindowOrBuilder
public TimeWindowOrBuilder getReadTimeWindowOrBuilder()
Optional. The time window for the asset history. Both start_time and end_time are optional and if set, it must be after the current time minus 35 days. If end_time is not set, it is default to current timestamp. If start_time is not set, the snapshot of the assets at end_time will be returned. The returned results contain all temporal assets whose time window overlap with read_time_window.
.google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getReadTimeWindowOrBuilderin interfaceBatchGetAssetsHistoryRequestOrBuilder
-
getRelationshipTypesList
public com.google.protobuf.ProtocolStringList getRelationshipTypesList()
Optional. A list of relationship types to output, for example: `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if content_type=RELATIONSHIP. * If specified: it outputs specified relationships' history on the [asset_names]. It returns an error if any of the [relationship_types] doesn't belong to the supported relationship types of the [asset_names] or if any of the [asset_names]'s types doesn't belong to the source types of the [relationship_types]. * Otherwise: it outputs the supported relationships' history on the [asset_names] or returns an error if any of the [asset_names]'s types has no relationship support. See [Introduction to Cloud Asset Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all supported asset types and relationship types.
repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRelationshipTypesListin interfaceBatchGetAssetsHistoryRequestOrBuilder- Returns:
- A list containing the relationshipTypes.
-
getRelationshipTypesCount
public int getRelationshipTypesCount()
Optional. A list of relationship types to output, for example: `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if content_type=RELATIONSHIP. * If specified: it outputs specified relationships' history on the [asset_names]. It returns an error if any of the [relationship_types] doesn't belong to the supported relationship types of the [asset_names] or if any of the [asset_names]'s types doesn't belong to the source types of the [relationship_types]. * Otherwise: it outputs the supported relationships' history on the [asset_names] or returns an error if any of the [asset_names]'s types has no relationship support. See [Introduction to Cloud Asset Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all supported asset types and relationship types.
repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRelationshipTypesCountin interfaceBatchGetAssetsHistoryRequestOrBuilder- Returns:
- The count of relationshipTypes.
-
getRelationshipTypes
public String getRelationshipTypes(int index)
Optional. A list of relationship types to output, for example: `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if content_type=RELATIONSHIP. * If specified: it outputs specified relationships' history on the [asset_names]. It returns an error if any of the [relationship_types] doesn't belong to the supported relationship types of the [asset_names] or if any of the [asset_names]'s types doesn't belong to the source types of the [relationship_types]. * Otherwise: it outputs the supported relationships' history on the [asset_names] or returns an error if any of the [asset_names]'s types has no relationship support. See [Introduction to Cloud Asset Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all supported asset types and relationship types.
repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRelationshipTypesin interfaceBatchGetAssetsHistoryRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The relationshipTypes at the given index.
-
getRelationshipTypesBytes
public com.google.protobuf.ByteString getRelationshipTypesBytes(int index)
Optional. A list of relationship types to output, for example: `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if content_type=RELATIONSHIP. * If specified: it outputs specified relationships' history on the [asset_names]. It returns an error if any of the [relationship_types] doesn't belong to the supported relationship types of the [asset_names] or if any of the [asset_names]'s types doesn't belong to the source types of the [relationship_types]. * Otherwise: it outputs the supported relationships' history on the [asset_names] or returns an error if any of the [asset_names]'s types has no relationship support. See [Introduction to Cloud Asset Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all supported asset types and relationship types.
repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRelationshipTypesBytesin interfaceBatchGetAssetsHistoryRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the relationshipTypes at the given index.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static BatchGetAssetsHistoryRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BatchGetAssetsHistoryRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BatchGetAssetsHistoryRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BatchGetAssetsHistoryRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BatchGetAssetsHistoryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BatchGetAssetsHistoryRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BatchGetAssetsHistoryRequest parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static BatchGetAssetsHistoryRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static BatchGetAssetsHistoryRequest parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static BatchGetAssetsHistoryRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static BatchGetAssetsHistoryRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static BatchGetAssetsHistoryRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public BatchGetAssetsHistoryRequest.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static BatchGetAssetsHistoryRequest.Builder newBuilder()
-
newBuilder
public static BatchGetAssetsHistoryRequest.Builder newBuilder(BatchGetAssetsHistoryRequest prototype)
-
toBuilder
public BatchGetAssetsHistoryRequest.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected BatchGetAssetsHistoryRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static BatchGetAssetsHistoryRequest getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<BatchGetAssetsHistoryRequest> parser()
-
getParserForType
public com.google.protobuf.Parser<BatchGetAssetsHistoryRequest> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public BatchGetAssetsHistoryRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-