Class Project.Builder (0.41.0)

public static final class Project.Builder extends GeneratedMessageV3.Builder<Project.Builder> implements ProjectOrBuilder

Metadata and configurations for a Google Cloud project in the service.

Protobuf type google.cloud.discoveryengine.v1.Project

Implements

ProjectOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Project.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Project.Builder
Overrides

build()

public Project build()
Returns
Type Description
Project

buildPartial()

public Project buildPartial()
Returns
Type Description
Project

clear()

public Project.Builder clear()
Returns
Type Description
Project.Builder
Overrides

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];

Returns
Type Description
Project.Builder

clearField(Descriptors.FieldDescriptor field)

public Project.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Project.Builder
Overrides

clearName()

public Project.Builder clearName()

Output only. Full resource name of the project, for example projects/{project_number}. 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
Type Description
Project.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Project.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Project.Builder
Overrides

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];

Returns
Type Description
Project.Builder

clearServiceTermsMap()

public Project.Builder clearServiceTermsMap()
Returns
Type Description
Project.Builder

clone()

public Project.Builder clone()
Returns
Type Description
Project.Builder
Overrides

containsServiceTermsMap(String key)

public boolean containsServiceTermsMap(String key)

Output only. A map of terms of services. The key is the id of ServiceTerms.

map<string, .google.cloud.discoveryengine.v1.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
boolean

getCreateTime()

public Timestamp getCreateTime()

Output only. The timestamp when this project is created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The timestamp when this project is created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The timestamp when this project is created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Project getDefaultInstanceForType()
Returns
Type Description
Project

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMutableServiceTermsMap() (deprecated)

public Map<String,Project.ServiceTerms> getMutableServiceTermsMap()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,ServiceTerms>

getName()

public String getName()

Output only. Full resource name of the project, for example projects/{project_number}. 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
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. Full resource name of the project, for example projects/{project_number}. 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
Type Description
ByteString

The bytes for name.

getProvisionCompletionTime()

public 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];

Returns
Type Description
Timestamp

The provisionCompletionTime.

getProvisionCompletionTimeBuilder()

public 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];

Returns
Type Description
Builder

getProvisionCompletionTimeOrBuilder()

public 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];

Returns
Type Description
TimestampOrBuilder

getServiceTermsMap() (deprecated)

public Map<String,Project.ServiceTerms> getServiceTermsMap()
Returns
Type Description
Map<String,ServiceTerms>

getServiceTermsMapCount()

public int getServiceTermsMapCount()

Output only. A map of terms of services. The key is the id of ServiceTerms.

map<string, .google.cloud.discoveryengine.v1.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getServiceTermsMapMap()

public Map<String,Project.ServiceTerms> getServiceTermsMapMap()

Output only. A map of terms of services. The key is the id of ServiceTerms.

map<string, .google.cloud.discoveryengine.v1.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Map<String,ServiceTerms>

getServiceTermsMapOrDefault(String key, Project.ServiceTerms defaultValue)

public Project.ServiceTerms getServiceTermsMapOrDefault(String key, Project.ServiceTerms defaultValue)

Output only. A map of terms of services. The key is the id of ServiceTerms.

map<string, .google.cloud.discoveryengine.v1.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
key String
defaultValue Project.ServiceTerms
Returns
Type Description
Project.ServiceTerms

getServiceTermsMapOrThrow(String key)

public Project.ServiceTerms getServiceTermsMapOrThrow(String key)

Output only. A map of terms of services. The key is the id of ServiceTerms.

map<string, .google.cloud.discoveryengine.v1.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
Project.ServiceTerms

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];

Returns
Type Description
boolean

Whether the createTime field is set.

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];

Returns
Type Description
boolean

Whether the provisionCompletionTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public Project.Builder mergeCreateTime(Timestamp value)

Output only. The timestamp when this project is created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Project.Builder

mergeFrom(Project other)

public Project.Builder mergeFrom(Project other)
Parameter
Name Description
other Project
Returns
Type Description
Project.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Project.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Project.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Project.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Project.Builder
Overrides

mergeProvisionCompletionTime(Timestamp value)

public Project.Builder mergeProvisionCompletionTime(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];

Parameter
Name Description
value Timestamp
Returns
Type Description
Project.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Project.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Project.Builder
Overrides

putAllServiceTermsMap(Map<String,Project.ServiceTerms> values)

public Project.Builder putAllServiceTermsMap(Map<String,Project.ServiceTerms> values)

Output only. A map of terms of services. The key is the id of ServiceTerms.

map<string, .google.cloud.discoveryengine.v1.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Map<String,ServiceTerms>
Returns
Type Description
Project.Builder

putServiceTermsMap(String key, Project.ServiceTerms value)

public Project.Builder putServiceTermsMap(String key, Project.ServiceTerms value)

Output only. A map of terms of services. The key is the id of ServiceTerms.

map<string, .google.cloud.discoveryengine.v1.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
key String
value Project.ServiceTerms
Returns
Type Description
Project.Builder

putServiceTermsMapBuilderIfAbsent(String key)

public Project.ServiceTerms.Builder putServiceTermsMapBuilderIfAbsent(String key)

Output only. A map of terms of services. The key is the id of ServiceTerms.

map<string, .google.cloud.discoveryengine.v1.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
Project.ServiceTerms.Builder

removeServiceTermsMap(String key)

public Project.Builder removeServiceTermsMap(String key)

Output only. A map of terms of services. The key is the id of ServiceTerms.

map<string, .google.cloud.discoveryengine.v1.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
Project.Builder

setCreateTime(Timestamp value)

public Project.Builder setCreateTime(Timestamp value)

Output only. The timestamp when this project is created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Project.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Project.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The timestamp when this project is created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Project.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Project.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Project.Builder
Overrides

setName(String value)

public Project.Builder setName(String value)

Output only. Full resource name of the project, for example projects/{project_number}. 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];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Project.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Project.Builder setNameBytes(ByteString value)

Output only. Full resource name of the project, for example projects/{project_number}. 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];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Project.Builder

This builder for chaining.

setProvisionCompletionTime(Timestamp value)

public Project.Builder setProvisionCompletionTime(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];

Parameter
Name Description
value Timestamp
Returns
Type Description
Project.Builder

setProvisionCompletionTime(Timestamp.Builder builderForValue)

public Project.Builder setProvisionCompletionTime(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];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Project.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Project.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Project.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Project.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Project.Builder
Overrides