Class BatchGetAssetsHistoryRequest

    • Field Detail

      • 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 class com.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 class com.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 interface BatchGetAssetsHistoryRequestOrBuilder
        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 interface BatchGetAssetsHistoryRequestOrBuilder
        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 interface BatchGetAssetsHistoryRequestOrBuilder
        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 interface BatchGetAssetsHistoryRequestOrBuilder
        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 interface BatchGetAssetsHistoryRequestOrBuilder
        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 interface BatchGetAssetsHistoryRequestOrBuilder
        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 interface BatchGetAssetsHistoryRequestOrBuilder
        Returns:
        The enum numeric value on the wire for 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 interface BatchGetAssetsHistoryRequestOrBuilder
        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 interface BatchGetAssetsHistoryRequestOrBuilder
        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 interface BatchGetAssetsHistoryRequestOrBuilder
      • 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 interface BatchGetAssetsHistoryRequestOrBuilder
        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 interface BatchGetAssetsHistoryRequestOrBuilder
        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 interface BatchGetAssetsHistoryRequestOrBuilder
        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 interface BatchGetAssetsHistoryRequestOrBuilder
        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 interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static 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
      • newBuilderForType

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

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

        protected BatchGetAssetsHistoryRequest.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<BatchGetAssetsHistoryRequest> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public BatchGetAssetsHistoryRequest getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder