Class BatchGetAssetsHistoryRequest.Builder

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

public static final class BatchGetAssetsHistoryRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<BatchGetAssetsHistoryRequest.Builder> implements BatchGetAssetsHistoryRequestOrBuilder
 Batch get assets history request.
 
Protobuf type google.cloud.asset.v1.BatchGetAssetsHistoryRequest
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<BatchGetAssetsHistoryRequest.Builder>
    • clear

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

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

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

    • isInitialized

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

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

      public BatchGetAssetsHistoryRequest.Builder setParent(String value)
       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) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

       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) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public BatchGetAssetsHistoryRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       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) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • 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.
    • setAssetNames

      public BatchGetAssetsHistoryRequest.Builder setAssetNames(int index, String value)
       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;
      Parameters:
      index - The index to set the value at.
      value - The assetNames to set.
      Returns:
      This builder for chaining.
    • addAssetNames

      public BatchGetAssetsHistoryRequest.Builder addAssetNames(String value)
       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;
      Parameters:
      value - The assetNames to add.
      Returns:
      This builder for chaining.
    • addAllAssetNames

      public BatchGetAssetsHistoryRequest.Builder addAllAssetNames(Iterable<String> values)
       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;
      Parameters:
      values - The assetNames to add.
      Returns:
      This builder for chaining.
    • clearAssetNames

      public BatchGetAssetsHistoryRequest.Builder clearAssetNames()
       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;
      Returns:
      This builder for chaining.
    • addAssetNamesBytes

      public BatchGetAssetsHistoryRequest.Builder addAssetNamesBytes(com.google.protobuf.ByteString value)
       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;
      Parameters:
      value - The bytes of the assetNames to add.
      Returns:
      This builder for chaining.
    • 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.
    • setContentTypeValue

      public BatchGetAssetsHistoryRequest.Builder setContentTypeValue(int value)
       Optional. The content type.
       
      .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for contentType to set.
      Returns:
      This builder for chaining.
    • 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 interface BatchGetAssetsHistoryRequestOrBuilder
      Returns:
      The contentType.
    • setContentType

      public BatchGetAssetsHistoryRequest.Builder setContentType(ContentType value)
       Optional. The content type.
       
      .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The contentType to set.
      Returns:
      This builder for chaining.
    • clearContentType

      public BatchGetAssetsHistoryRequest.Builder clearContentType()
       Optional. The content type.
       
      .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • 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.
    • setReadTimeWindow

      public BatchGetAssetsHistoryRequest.Builder setReadTimeWindow(TimeWindow value)
       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];
    • setReadTimeWindow

      public BatchGetAssetsHistoryRequest.Builder setReadTimeWindow(TimeWindow.Builder builderForValue)
       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];
    • mergeReadTimeWindow

      public BatchGetAssetsHistoryRequest.Builder mergeReadTimeWindow(TimeWindow value)
       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];
    • clearReadTimeWindow

      public BatchGetAssetsHistoryRequest.Builder clearReadTimeWindow()
       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];
    • getReadTimeWindowBuilder

      public TimeWindow.Builder getReadTimeWindowBuilder()
       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];
    • 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.
    • setRelationshipTypes

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

      public BatchGetAssetsHistoryRequest.Builder addRelationshipTypes(String value)
       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];
      Parameters:
      value - The relationshipTypes to add.
      Returns:
      This builder for chaining.
    • addAllRelationshipTypes

      public BatchGetAssetsHistoryRequest.Builder addAllRelationshipTypes(Iterable<String> values)
       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];
      Parameters:
      values - The relationshipTypes to add.
      Returns:
      This builder for chaining.
    • clearRelationshipTypes

      public BatchGetAssetsHistoryRequest.Builder clearRelationshipTypes()
       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];
      Returns:
      This builder for chaining.
    • addRelationshipTypesBytes

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