Class Project.ServiceTerms.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Project.ServiceTerms.Builder>
com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms.Builder
All Implemented Interfaces:
Project.ServiceTermsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Project.ServiceTerms

public static final class Project.ServiceTerms.Builder extends com.google.protobuf.GeneratedMessage.Builder<Project.ServiceTerms.Builder> implements Project.ServiceTermsOrBuilder
 Metadata about the terms of service.
 
Protobuf type google.cloud.discoveryengine.v1beta.Project.ServiceTerms
  • 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<Project.ServiceTerms.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<Project.ServiceTerms.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<Project.ServiceTerms.Builder>
    • getDefaultInstanceForType

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

      public Project.ServiceTerms build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public Project.ServiceTerms.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<Project.ServiceTerms.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<Project.ServiceTerms.Builder>
    • mergeFrom

      public Project.ServiceTerms.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<Project.ServiceTerms.Builder>
      Throws:
      IOException
    • getId

      public String getId()
       The unique identifier of this terms of service.
       Available terms:
      
       * `GA_DATA_USE_TERMS`: [Terms for data
       use](https://cloud.google.com/retail/data-use-terms). When using this as
       `id`, the acceptable
       [version][google.cloud.discoveryengine.v1beta.Project.ServiceTerms.version]
       to provide is `2022-11-23`.
       
      string id = 1;
      Specified by:
      getId in interface Project.ServiceTermsOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       The unique identifier of this terms of service.
       Available terms:
      
       * `GA_DATA_USE_TERMS`: [Terms for data
       use](https://cloud.google.com/retail/data-use-terms). When using this as
       `id`, the acceptable
       [version][google.cloud.discoveryengine.v1beta.Project.ServiceTerms.version]
       to provide is `2022-11-23`.
       
      string id = 1;
      Specified by:
      getIdBytes in interface Project.ServiceTermsOrBuilder
      Returns:
      The bytes for id.
    • setId

      public Project.ServiceTerms.Builder setId(String value)
       The unique identifier of this terms of service.
       Available terms:
      
       * `GA_DATA_USE_TERMS`: [Terms for data
       use](https://cloud.google.com/retail/data-use-terms). When using this as
       `id`, the acceptable
       [version][google.cloud.discoveryengine.v1beta.Project.ServiceTerms.version]
       to provide is `2022-11-23`.
       
      string id = 1;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public Project.ServiceTerms.Builder clearId()
       The unique identifier of this terms of service.
       Available terms:
      
       * `GA_DATA_USE_TERMS`: [Terms for data
       use](https://cloud.google.com/retail/data-use-terms). When using this as
       `id`, the acceptable
       [version][google.cloud.discoveryengine.v1beta.Project.ServiceTerms.version]
       to provide is `2022-11-23`.
       
      string id = 1;
      Returns:
      This builder for chaining.
    • setIdBytes

      public Project.ServiceTerms.Builder setIdBytes(com.google.protobuf.ByteString value)
       The unique identifier of this terms of service.
       Available terms:
      
       * `GA_DATA_USE_TERMS`: [Terms for data
       use](https://cloud.google.com/retail/data-use-terms). When using this as
       `id`, the acceptable
       [version][google.cloud.discoveryengine.v1beta.Project.ServiceTerms.version]
       to provide is `2022-11-23`.
       
      string id = 1;
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • getVersion

      public String getVersion()
       The version string of the terms of service.
       For acceptable values, see the comments for
       [id][google.cloud.discoveryengine.v1beta.Project.ServiceTerms.id] above.
       
      string version = 2;
      Specified by:
      getVersion in interface Project.ServiceTermsOrBuilder
      Returns:
      The version.
    • getVersionBytes

      public com.google.protobuf.ByteString getVersionBytes()
       The version string of the terms of service.
       For acceptable values, see the comments for
       [id][google.cloud.discoveryengine.v1beta.Project.ServiceTerms.id] above.
       
      string version = 2;
      Specified by:
      getVersionBytes in interface Project.ServiceTermsOrBuilder
      Returns:
      The bytes for version.
    • setVersion

      public Project.ServiceTerms.Builder setVersion(String value)
       The version string of the terms of service.
       For acceptable values, see the comments for
       [id][google.cloud.discoveryengine.v1beta.Project.ServiceTerms.id] above.
       
      string version = 2;
      Parameters:
      value - The version to set.
      Returns:
      This builder for chaining.
    • clearVersion

      public Project.ServiceTerms.Builder clearVersion()
       The version string of the terms of service.
       For acceptable values, see the comments for
       [id][google.cloud.discoveryengine.v1beta.Project.ServiceTerms.id] above.
       
      string version = 2;
      Returns:
      This builder for chaining.
    • setVersionBytes

      public Project.ServiceTerms.Builder setVersionBytes(com.google.protobuf.ByteString value)
       The version string of the terms of service.
       For acceptable values, see the comments for
       [id][google.cloud.discoveryengine.v1beta.Project.ServiceTerms.id] above.
       
      string version = 2;
      Parameters:
      value - The bytes for version to set.
      Returns:
      This builder for chaining.
    • getStateValue

      public int getStateValue()
       Whether the project has accepted/rejected the service terms or it is
       still pending.
       
      .google.cloud.discoveryengine.v1beta.Project.ServiceTerms.State state = 4;
      Specified by:
      getStateValue in interface Project.ServiceTermsOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public Project.ServiceTerms.Builder setStateValue(int value)
       Whether the project has accepted/rejected the service terms or it is
       still pending.
       
      .google.cloud.discoveryengine.v1beta.Project.ServiceTerms.State state = 4;
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public Project.ServiceTerms.State getState()
       Whether the project has accepted/rejected the service terms or it is
       still pending.
       
      .google.cloud.discoveryengine.v1beta.Project.ServiceTerms.State state = 4;
      Specified by:
      getState in interface Project.ServiceTermsOrBuilder
      Returns:
      The state.
    • setState

       Whether the project has accepted/rejected the service terms or it is
       still pending.
       
      .google.cloud.discoveryengine.v1beta.Project.ServiceTerms.State state = 4;
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public Project.ServiceTerms.Builder clearState()
       Whether the project has accepted/rejected the service terms or it is
       still pending.
       
      .google.cloud.discoveryengine.v1beta.Project.ServiceTerms.State state = 4;
      Returns:
      This builder for chaining.
    • hasAcceptTime

      public boolean hasAcceptTime()
       The last time when the project agreed to the terms of service.
       
      .google.protobuf.Timestamp accept_time = 5;
      Specified by:
      hasAcceptTime in interface Project.ServiceTermsOrBuilder
      Returns:
      Whether the acceptTime field is set.
    • getAcceptTime

      public com.google.protobuf.Timestamp getAcceptTime()
       The last time when the project agreed to the terms of service.
       
      .google.protobuf.Timestamp accept_time = 5;
      Specified by:
      getAcceptTime in interface Project.ServiceTermsOrBuilder
      Returns:
      The acceptTime.
    • setAcceptTime

      public Project.ServiceTerms.Builder setAcceptTime(com.google.protobuf.Timestamp value)
       The last time when the project agreed to the terms of service.
       
      .google.protobuf.Timestamp accept_time = 5;
    • setAcceptTime

      public Project.ServiceTerms.Builder setAcceptTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The last time when the project agreed to the terms of service.
       
      .google.protobuf.Timestamp accept_time = 5;
    • mergeAcceptTime

      public Project.ServiceTerms.Builder mergeAcceptTime(com.google.protobuf.Timestamp value)
       The last time when the project agreed to the terms of service.
       
      .google.protobuf.Timestamp accept_time = 5;
    • clearAcceptTime

      public Project.ServiceTerms.Builder clearAcceptTime()
       The last time when the project agreed to the terms of service.
       
      .google.protobuf.Timestamp accept_time = 5;
    • getAcceptTimeBuilder

      public com.google.protobuf.Timestamp.Builder getAcceptTimeBuilder()
       The last time when the project agreed to the terms of service.
       
      .google.protobuf.Timestamp accept_time = 5;
    • getAcceptTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getAcceptTimeOrBuilder()
       The last time when the project agreed to the terms of service.
       
      .google.protobuf.Timestamp accept_time = 5;
      Specified by:
      getAcceptTimeOrBuilder in interface Project.ServiceTermsOrBuilder
    • hasDeclineTime

      public boolean hasDeclineTime()
       The last time when the project declined or revoked the agreement to terms
       of service.
       
      .google.protobuf.Timestamp decline_time = 6;
      Specified by:
      hasDeclineTime in interface Project.ServiceTermsOrBuilder
      Returns:
      Whether the declineTime field is set.
    • getDeclineTime

      public com.google.protobuf.Timestamp getDeclineTime()
       The last time when the project declined or revoked the agreement to terms
       of service.
       
      .google.protobuf.Timestamp decline_time = 6;
      Specified by:
      getDeclineTime in interface Project.ServiceTermsOrBuilder
      Returns:
      The declineTime.
    • setDeclineTime

      public Project.ServiceTerms.Builder setDeclineTime(com.google.protobuf.Timestamp value)
       The last time when the project declined or revoked the agreement to terms
       of service.
       
      .google.protobuf.Timestamp decline_time = 6;
    • setDeclineTime

      public Project.ServiceTerms.Builder setDeclineTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The last time when the project declined or revoked the agreement to terms
       of service.
       
      .google.protobuf.Timestamp decline_time = 6;
    • mergeDeclineTime

      public Project.ServiceTerms.Builder mergeDeclineTime(com.google.protobuf.Timestamp value)
       The last time when the project declined or revoked the agreement to terms
       of service.
       
      .google.protobuf.Timestamp decline_time = 6;
    • clearDeclineTime

      public Project.ServiceTerms.Builder clearDeclineTime()
       The last time when the project declined or revoked the agreement to terms
       of service.
       
      .google.protobuf.Timestamp decline_time = 6;
    • getDeclineTimeBuilder

      public com.google.protobuf.Timestamp.Builder getDeclineTimeBuilder()
       The last time when the project declined or revoked the agreement to terms
       of service.
       
      .google.protobuf.Timestamp decline_time = 6;
    • getDeclineTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getDeclineTimeOrBuilder()
       The last time when the project declined or revoked the agreement to terms
       of service.
       
      .google.protobuf.Timestamp decline_time = 6;
      Specified by:
      getDeclineTimeOrBuilder in interface Project.ServiceTermsOrBuilder