Class PurgeProductsRequest

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.vision.v1.PurgeProductsRequest
All Implemented Interfaces:
PurgeProductsRequestOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class PurgeProductsRequest extends com.google.protobuf.GeneratedMessage implements PurgeProductsRequestOrBuilder
 Request message for the `PurgeProducts` method.
 
Protobuf type google.cloud.vision.v1.PurgeProductsRequest
See Also:
  • Field Details

    • PRODUCT_SET_PURGE_CONFIG_FIELD_NUMBER

      public static final int PRODUCT_SET_PURGE_CONFIG_FIELD_NUMBER
      See Also:
    • DELETE_ORPHAN_PRODUCTS_FIELD_NUMBER

      public static final int DELETE_ORPHAN_PRODUCTS_FIELD_NUMBER
      See Also:
    • PARENT_FIELD_NUMBER

      public static final int PARENT_FIELD_NUMBER
      See Also:
    • FORCE_FIELD_NUMBER

      public static final int FORCE_FIELD_NUMBER
      See Also:
  • 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
    • getTargetCase

      public PurgeProductsRequest.TargetCase getTargetCase()
      Specified by:
      getTargetCase in interface PurgeProductsRequestOrBuilder
    • hasProductSetPurgeConfig

      public boolean hasProductSetPurgeConfig()
       Specify which ProductSet contains the Products to be deleted.
       
      .google.cloud.vision.v1.ProductSetPurgeConfig product_set_purge_config = 2;
      Specified by:
      hasProductSetPurgeConfig in interface PurgeProductsRequestOrBuilder
      Returns:
      Whether the productSetPurgeConfig field is set.
    • getProductSetPurgeConfig

      public ProductSetPurgeConfig getProductSetPurgeConfig()
       Specify which ProductSet contains the Products to be deleted.
       
      .google.cloud.vision.v1.ProductSetPurgeConfig product_set_purge_config = 2;
      Specified by:
      getProductSetPurgeConfig in interface PurgeProductsRequestOrBuilder
      Returns:
      The productSetPurgeConfig.
    • getProductSetPurgeConfigOrBuilder

      public ProductSetPurgeConfigOrBuilder getProductSetPurgeConfigOrBuilder()
       Specify which ProductSet contains the Products to be deleted.
       
      .google.cloud.vision.v1.ProductSetPurgeConfig product_set_purge_config = 2;
      Specified by:
      getProductSetPurgeConfigOrBuilder in interface PurgeProductsRequestOrBuilder
    • hasDeleteOrphanProducts

      public boolean hasDeleteOrphanProducts()
       If delete_orphan_products is true, all Products that are not in any
       ProductSet will be deleted.
       
      bool delete_orphan_products = 3;
      Specified by:
      hasDeleteOrphanProducts in interface PurgeProductsRequestOrBuilder
      Returns:
      Whether the deleteOrphanProducts field is set.
    • getDeleteOrphanProducts

      public boolean getDeleteOrphanProducts()
       If delete_orphan_products is true, all Products that are not in any
       ProductSet will be deleted.
       
      bool delete_orphan_products = 3;
      Specified by:
      getDeleteOrphanProducts in interface PurgeProductsRequestOrBuilder
      Returns:
      The deleteOrphanProducts.
    • getParent

      public String getParent()
       Required. The project and location in which the Products should be deleted.
      
       Format is `projects/PROJECT_ID/locations/LOC_ID`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface PurgeProductsRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The project and location in which the Products should be deleted.
      
       Format is `projects/PROJECT_ID/locations/LOC_ID`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface PurgeProductsRequestOrBuilder
      Returns:
      The bytes for parent.
    • getForce

      public boolean getForce()
       The default value is false. Override this value to true to actually perform
       the purge.
       
      bool force = 4;
      Specified by:
      getForce in interface PurgeProductsRequestOrBuilder
      Returns:
      The force.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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 PurgeProductsRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PurgeProductsRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PurgeProductsRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PurgeProductsRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PurgeProductsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PurgeProductsRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PurgeProductsRequest parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static PurgeProductsRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static PurgeProductsRequest parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static PurgeProductsRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static PurgeProductsRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static PurgeProductsRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static PurgeProductsRequest.Builder newBuilder()
    • newBuilder

      public static PurgeProductsRequest.Builder newBuilder(PurgeProductsRequest prototype)
    • toBuilder

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

      protected PurgeProductsRequest.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static PurgeProductsRequest getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<PurgeProductsRequest> parser()
    • getParserForType

      public com.google.protobuf.Parser<PurgeProductsRequest> 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.GeneratedMessage
    • getDefaultInstanceForType

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