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 class
BatchGetAssetsHistoryRequest.Builder
Batch 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 int
ASSET_NAMES_FIELD_NUMBER
static int
CONTENT_TYPE_FIELD_NUMBER
static int
PARENT_FIELD_NUMBER
static int
READ_TIME_WINDOW_FIELD_NUMBER
static int
RELATIONSHIP_TYPES_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getAssetNames(int index)
A list of the full names of the assets.com.google.protobuf.ByteString
getAssetNamesBytes(int index)
A list of the full names of the assets.int
getAssetNamesCount()
A list of the full names of the assets.com.google.protobuf.ProtocolStringList
getAssetNamesList()
A list of the full names of the assets.ContentType
getContentType()
Optional.int
getContentTypeValue()
Optional.static BatchGetAssetsHistoryRequest
getDefaultInstance()
BatchGetAssetsHistoryRequest
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
String
getParent()
Required.com.google.protobuf.ByteString
getParentBytes()
Required.com.google.protobuf.Parser<BatchGetAssetsHistoryRequest>
getParserForType()
TimeWindow
getReadTimeWindow()
Optional.TimeWindowOrBuilder
getReadTimeWindowOrBuilder()
Optional.String
getRelationshipTypes(int index)
Optional.com.google.protobuf.ByteString
getRelationshipTypesBytes(int index)
Optional.int
getRelationshipTypesCount()
Optional.com.google.protobuf.ProtocolStringList
getRelationshipTypesList()
Optional.int
getSerializedSize()
int
hashCode()
boolean
hasReadTimeWindow()
Optional.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static BatchGetAssetsHistoryRequest.Builder
newBuilder()
static BatchGetAssetsHistoryRequest.Builder
newBuilder(BatchGetAssetsHistoryRequest prototype)
BatchGetAssetsHistoryRequest.Builder
newBuilderForType()
protected BatchGetAssetsHistoryRequest.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static BatchGetAssetsHistoryRequest
parseDelimitedFrom(InputStream input)
static BatchGetAssetsHistoryRequest
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static BatchGetAssetsHistoryRequest
parseFrom(byte[] data)
static BatchGetAssetsHistoryRequest
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static BatchGetAssetsHistoryRequest
parseFrom(com.google.protobuf.ByteString data)
static BatchGetAssetsHistoryRequest
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static BatchGetAssetsHistoryRequest
parseFrom(com.google.protobuf.CodedInputStream input)
static BatchGetAssetsHistoryRequest
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static BatchGetAssetsHistoryRequest
parseFrom(InputStream input)
static BatchGetAssetsHistoryRequest
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static BatchGetAssetsHistoryRequest
parseFrom(ByteBuffer data)
static BatchGetAssetsHistoryRequest
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<BatchGetAssetsHistoryRequest>
parser()
BatchGetAssetsHistoryRequest.Builder
toBuilder()
void
writeTo(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:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in 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:
getParent
in 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:
getParentBytes
in 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:
getAssetNamesList
in 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:
getAssetNamesCount
in 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:
getAssetNames
in 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:
getAssetNamesBytes
in 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:
getContentTypeValue
in 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:
getContentType
in 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:
hasReadTimeWindow
in 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:
getReadTimeWindow
in 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:
getReadTimeWindowOrBuilder
in 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:
getRelationshipTypesList
in 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:
getRelationshipTypesCount
in 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:
getRelationshipTypes
in 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:
getRelationshipTypesBytes
in 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:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected BatchGetAssetsHistoryRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public BatchGetAssetsHistoryRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-