Class PurgeProductsRequest

  • All Implemented Interfaces:
    PurgeProductsRequestOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class PurgeProductsRequest
    extends com.google.protobuf.GeneratedMessageV3
    implements PurgeProductsRequestOrBuilder
     Request message for the `PurgeProducts` method.
     
    Protobuf type google.cloud.vision.v1p4beta1.PurgeProductsRequest
    See Also:
    Serialized Form
    • Field Detail

      • PRODUCT_SET_PURGE_CONFIG_FIELD_NUMBER

        public static final int PRODUCT_SET_PURGE_CONFIG_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DELETE_ORPHAN_PRODUCTS_FIELD_NUMBER

        public static final int DELETE_ORPHAN_PRODUCTS_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
      • hasProductSetPurgeConfig

        public boolean hasProductSetPurgeConfig()
         Specify which ProductSet contains the Products to be deleted.
         
        .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2;
        Specified by:
        hasProductSetPurgeConfig in interface PurgeProductsRequestOrBuilder
        Returns:
        Whether the productSetPurgeConfig field is set.
      • 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.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 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
      • newBuilderForType

        public PurgeProductsRequest.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • 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.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
      • getDefaultInstanceForType

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