Class ReportConsentChangeRequest

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.discoveryengine.v1alpha.ReportConsentChangeRequest
All Implemented Interfaces:
ReportConsentChangeRequestOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class ReportConsentChangeRequest extends com.google.protobuf.GeneratedMessage implements ReportConsentChangeRequestOrBuilder
 Request for ReportConsentChange method.
 
Protobuf type google.cloud.discoveryengine.v1alpha.ReportConsentChangeRequest
See Also:
  • Field Details

    • PROJECT_FIELD_NUMBER

      public static final int PROJECT_FIELD_NUMBER
      See Also:
    • SERVICE_TERM_ID_FIELD_NUMBER

      public static final int SERVICE_TERM_ID_FIELD_NUMBER
      See Also:
    • SERVICE_TERM_VERSION_FIELD_NUMBER

      public static final int SERVICE_TERM_VERSION_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
    • getConsentChangeActionValue

      public int getConsentChangeActionValue()
       Required. Whether customer decides to accept or decline service term.
      
       At this moment, only accept action is supported.
       
      .google.cloud.discoveryengine.v1alpha.ReportConsentChangeRequest.ConsentChangeAction consent_change_action = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getConsentChangeActionValue in interface ReportConsentChangeRequestOrBuilder
      Returns:
      The enum numeric value on the wire for consentChangeAction.
    • getConsentChangeAction

      public ReportConsentChangeRequest.ConsentChangeAction getConsentChangeAction()
       Required. Whether customer decides to accept or decline service term.
      
       At this moment, only accept action is supported.
       
      .google.cloud.discoveryengine.v1alpha.ReportConsentChangeRequest.ConsentChangeAction consent_change_action = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getConsentChangeAction in interface ReportConsentChangeRequestOrBuilder
      Returns:
      The consentChangeAction.
    • getProject

      public String getProject()
       Required. Full resource name of a
       [Project][google.cloud.discoveryengine.v1alpha.Project], such as
       `projects/{project_id_or_number}`.
       
      string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getProject in interface ReportConsentChangeRequestOrBuilder
      Returns:
      The project.
    • getProjectBytes

      public com.google.protobuf.ByteString getProjectBytes()
       Required. Full resource name of a
       [Project][google.cloud.discoveryengine.v1alpha.Project], such as
       `projects/{project_id_or_number}`.
       
      string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getProjectBytes in interface ReportConsentChangeRequestOrBuilder
      Returns:
      The bytes for project.
    • getServiceTermId

      public String getServiceTermId()
       Required. The unique identifier of the terms of service to update.
       Available term ids:
      
       * `GA_DATA_USE_TERMS`: [Terms for data
       use](https://cloud.google.com/retail/data-use-terms). When using this
       service term id, the acceptable
       [service_term_version][google.cloud.discoveryengine.v1alpha.ReportConsentChangeRequest.service_term_version]
       to provide is `2022-11-23`.
       
      string service_term_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getServiceTermId in interface ReportConsentChangeRequestOrBuilder
      Returns:
      The serviceTermId.
    • getServiceTermIdBytes

      public com.google.protobuf.ByteString getServiceTermIdBytes()
       Required. The unique identifier of the terms of service to update.
       Available term ids:
      
       * `GA_DATA_USE_TERMS`: [Terms for data
       use](https://cloud.google.com/retail/data-use-terms). When using this
       service term id, the acceptable
       [service_term_version][google.cloud.discoveryengine.v1alpha.ReportConsentChangeRequest.service_term_version]
       to provide is `2022-11-23`.
       
      string service_term_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getServiceTermIdBytes in interface ReportConsentChangeRequestOrBuilder
      Returns:
      The bytes for serviceTermId.
    • getServiceTermVersion

      public String getServiceTermVersion()
       Required. The version string of the terms of service to update.
       
      string service_term_version = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getServiceTermVersion in interface ReportConsentChangeRequestOrBuilder
      Returns:
      The serviceTermVersion.
    • getServiceTermVersionBytes

      public com.google.protobuf.ByteString getServiceTermVersionBytes()
       Required. The version string of the terms of service to update.
       
      string service_term_version = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getServiceTermVersionBytes in interface ReportConsentChangeRequestOrBuilder
      Returns:
      The bytes for serviceTermVersion.
    • 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 ReportConsentChangeRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static ReportConsentChangeRequest.Builder newBuilder()
    • newBuilder

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

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

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

      public static ReportConsentChangeRequest getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<ReportConsentChangeRequest> 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 ReportConsentChangeRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder