Class Project.Builder

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

public static final class Project.Builder extends com.google.protobuf.GeneratedMessage.Builder<Project.Builder> implements ProjectOrBuilder
 Metadata and configurations for a Google Cloud project in the service.
 
Protobuf type google.cloud.discoveryengine.v1beta.Project
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Project.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Project.Builder>
    • internalGetFieldAccessorTable

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

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

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

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

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

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

      public Project.Builder mergeFrom(Project other)
    • isInitialized

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

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

      public String getName()
       Output only. Full resource name of the project, for example
       `projects/{project}`.
       Note that when making requests, project number and project id are both
       acceptable, but the server will always respond in project number.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface ProjectOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. Full resource name of the project, for example
       `projects/{project}`.
       Note that when making requests, project number and project id are both
       acceptable, but the server will always respond in project number.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNameBytes in interface ProjectOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Project.Builder setName(String value)
       Output only. Full resource name of the project, for example
       `projects/{project}`.
       Note that when making requests, project number and project id are both
       acceptable, but the server will always respond in project number.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Project.Builder clearName()
       Output only. Full resource name of the project, for example
       `projects/{project}`.
       Note that when making requests, project number and project id are both
       acceptable, but the server will always respond in project number.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Project.Builder setNameBytes(com.google.protobuf.ByteString value)
       Output only. Full resource name of the project, for example
       `projects/{project}`.
       Note that when making requests, project number and project id are both
       acceptable, but the server will always respond in project number.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The timestamp when this project is created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface ProjectOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The timestamp when this project is created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface ProjectOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Project.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when this project is created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public Project.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The timestamp when this project is created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public Project.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when this project is created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public Project.Builder clearCreateTime()
       Output only. The timestamp when this project is created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The timestamp when this project is created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The timestamp when this project is created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface ProjectOrBuilder
    • hasProvisionCompletionTime

      public boolean hasProvisionCompletionTime()
       Output only. The timestamp when this project is successfully provisioned.
       Empty value means this project is still provisioning and is not ready for
       use.
       
      .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasProvisionCompletionTime in interface ProjectOrBuilder
      Returns:
      Whether the provisionCompletionTime field is set.
    • getProvisionCompletionTime

      public com.google.protobuf.Timestamp getProvisionCompletionTime()
       Output only. The timestamp when this project is successfully provisioned.
       Empty value means this project is still provisioning and is not ready for
       use.
       
      .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getProvisionCompletionTime in interface ProjectOrBuilder
      Returns:
      The provisionCompletionTime.
    • setProvisionCompletionTime

      public Project.Builder setProvisionCompletionTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when this project is successfully provisioned.
       Empty value means this project is still provisioning and is not ready for
       use.
       
      .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setProvisionCompletionTime

      public Project.Builder setProvisionCompletionTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The timestamp when this project is successfully provisioned.
       Empty value means this project is still provisioning and is not ready for
       use.
       
      .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeProvisionCompletionTime

      public Project.Builder mergeProvisionCompletionTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when this project is successfully provisioned.
       Empty value means this project is still provisioning and is not ready for
       use.
       
      .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearProvisionCompletionTime

      public Project.Builder clearProvisionCompletionTime()
       Output only. The timestamp when this project is successfully provisioned.
       Empty value means this project is still provisioning and is not ready for
       use.
       
      .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getProvisionCompletionTimeBuilder

      public com.google.protobuf.Timestamp.Builder getProvisionCompletionTimeBuilder()
       Output only. The timestamp when this project is successfully provisioned.
       Empty value means this project is still provisioning and is not ready for
       use.
       
      .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getProvisionCompletionTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getProvisionCompletionTimeOrBuilder()
       Output only. The timestamp when this project is successfully provisioned.
       Empty value means this project is still provisioning and is not ready for
       use.
       
      .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getProvisionCompletionTimeOrBuilder in interface ProjectOrBuilder
    • getServiceTermsMapCount

      public int getServiceTermsMapCount()
      Description copied from interface: ProjectOrBuilder
       Output only. A map of terms of services. The key is the `id` of
       [ServiceTerms][google.cloud.discoveryengine.v1beta.Project.ServiceTerms].
       
      map<string, .google.cloud.discoveryengine.v1beta.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getServiceTermsMapCount in interface ProjectOrBuilder
    • containsServiceTermsMap

      public boolean containsServiceTermsMap(String key)
       Output only. A map of terms of services. The key is the `id` of
       [ServiceTerms][google.cloud.discoveryengine.v1beta.Project.ServiceTerms].
       
      map<string, .google.cloud.discoveryengine.v1beta.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      containsServiceTermsMap in interface ProjectOrBuilder
    • getServiceTermsMap

      @Deprecated public Map<String,Project.ServiceTerms> getServiceTermsMap()
      Deprecated.
      Specified by:
      getServiceTermsMap in interface ProjectOrBuilder
    • getServiceTermsMapMap

      public Map<String,Project.ServiceTerms> getServiceTermsMapMap()
       Output only. A map of terms of services. The key is the `id` of
       [ServiceTerms][google.cloud.discoveryengine.v1beta.Project.ServiceTerms].
       
      map<string, .google.cloud.discoveryengine.v1beta.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getServiceTermsMapMap in interface ProjectOrBuilder
    • getServiceTermsMapOrDefault

      public Project.ServiceTerms getServiceTermsMapOrDefault(String key, Project.ServiceTerms defaultValue)
       Output only. A map of terms of services. The key is the `id` of
       [ServiceTerms][google.cloud.discoveryengine.v1beta.Project.ServiceTerms].
       
      map<string, .google.cloud.discoveryengine.v1beta.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getServiceTermsMapOrDefault in interface ProjectOrBuilder
    • getServiceTermsMapOrThrow

      public Project.ServiceTerms getServiceTermsMapOrThrow(String key)
       Output only. A map of terms of services. The key is the `id` of
       [ServiceTerms][google.cloud.discoveryengine.v1beta.Project.ServiceTerms].
       
      map<string, .google.cloud.discoveryengine.v1beta.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getServiceTermsMapOrThrow in interface ProjectOrBuilder
    • clearServiceTermsMap

      public Project.Builder clearServiceTermsMap()
    • removeServiceTermsMap

      public Project.Builder removeServiceTermsMap(String key)
       Output only. A map of terms of services. The key is the `id` of
       [ServiceTerms][google.cloud.discoveryengine.v1beta.Project.ServiceTerms].
       
      map<string, .google.cloud.discoveryengine.v1beta.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getMutableServiceTermsMap

      @Deprecated public Map<String,Project.ServiceTerms> getMutableServiceTermsMap()
      Deprecated.
      Use alternate mutation accessors instead.
    • putServiceTermsMap

      public Project.Builder putServiceTermsMap(String key, Project.ServiceTerms value)
       Output only. A map of terms of services. The key is the `id` of
       [ServiceTerms][google.cloud.discoveryengine.v1beta.Project.ServiceTerms].
       
      map<string, .google.cloud.discoveryengine.v1beta.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • putAllServiceTermsMap

      public Project.Builder putAllServiceTermsMap(Map<String,Project.ServiceTerms> values)
       Output only. A map of terms of services. The key is the `id` of
       [ServiceTerms][google.cloud.discoveryengine.v1beta.Project.ServiceTerms].
       
      map<string, .google.cloud.discoveryengine.v1beta.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • putServiceTermsMapBuilderIfAbsent

      public Project.ServiceTerms.Builder putServiceTermsMapBuilderIfAbsent(String key)
       Output only. A map of terms of services. The key is the `id` of
       [ServiceTerms][google.cloud.discoveryengine.v1beta.Project.ServiceTerms].
       
      map<string, .google.cloud.discoveryengine.v1beta.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];