Class Project.ServiceTerms.Builder (0.48.0)

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

Metadata about the terms of service.

Protobuf type google.cloud.discoveryengine.v1.Project.ServiceTerms

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Project.ServiceTerms build()
Returns
Type Description
Project.ServiceTerms

buildPartial()

public Project.ServiceTerms buildPartial()
Returns
Type Description
Project.ServiceTerms

clear()

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

clearAcceptTime()

public Project.ServiceTerms.Builder clearAcceptTime()

The last time when the project agreed to the terms of service.

.google.protobuf.Timestamp accept_time = 5;

Returns
Type Description
Project.ServiceTerms.Builder

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;

Returns
Type Description
Project.ServiceTerms.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearId()

public Project.ServiceTerms.Builder clearId()

The unique identifier of this terms of service. Available terms:

  • GA_DATA_USE_TERMS: Terms for data use. When using this as id, the acceptable version to provide is 2022-11-23.

string id = 1;

Returns
Type Description
Project.ServiceTerms.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearState()

public Project.ServiceTerms.Builder clearState()

Whether the project has accepted/rejected the service terms or it is still pending.

.google.cloud.discoveryengine.v1.Project.ServiceTerms.State state = 4;

Returns
Type Description
Project.ServiceTerms.Builder

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 above.

string version = 2;

Returns
Type Description
Project.ServiceTerms.Builder

This builder for chaining.

clone()

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

getAcceptTime()

public Timestamp getAcceptTime()

The last time when the project agreed to the terms of service.

.google.protobuf.Timestamp accept_time = 5;

Returns
Type Description
Timestamp

The acceptTime.

getAcceptTimeBuilder()

public Timestamp.Builder getAcceptTimeBuilder()

The last time when the project agreed to the terms of service.

.google.protobuf.Timestamp accept_time = 5;

Returns
Type Description
Builder

getAcceptTimeOrBuilder()

public TimestampOrBuilder getAcceptTimeOrBuilder()

The last time when the project agreed to the terms of service.

.google.protobuf.Timestamp accept_time = 5;

Returns
Type Description
TimestampOrBuilder

getDeclineTime()

public Timestamp getDeclineTime()

The last time when the project declined or revoked the agreement to terms of service.

.google.protobuf.Timestamp decline_time = 6;

Returns
Type Description
Timestamp

The declineTime.

getDeclineTimeBuilder()

public Timestamp.Builder getDeclineTimeBuilder()

The last time when the project declined or revoked the agreement to terms of service.

.google.protobuf.Timestamp decline_time = 6;

Returns
Type Description
Builder

getDeclineTimeOrBuilder()

public TimestampOrBuilder getDeclineTimeOrBuilder()

The last time when the project declined or revoked the agreement to terms of service.

.google.protobuf.Timestamp decline_time = 6;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Project.ServiceTerms getDefaultInstanceForType()
Returns
Type Description
Project.ServiceTerms

getDescriptorForType()

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

getId()

public String getId()

The unique identifier of this terms of service. Available terms:

  • GA_DATA_USE_TERMS: Terms for data use. When using this as id, the acceptable version to provide is 2022-11-23.

string id = 1;

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

The unique identifier of this terms of service. Available terms:

  • GA_DATA_USE_TERMS: Terms for data use. When using this as id, the acceptable version to provide is 2022-11-23.

string id = 1;

Returns
Type Description
ByteString

The bytes for id.

getState()

public Project.ServiceTerms.State getState()

Whether the project has accepted/rejected the service terms or it is still pending.

.google.cloud.discoveryengine.v1.Project.ServiceTerms.State state = 4;

Returns
Type Description
Project.ServiceTerms.State

The state.

getStateValue()

public int getStateValue()

Whether the project has accepted/rejected the service terms or it is still pending.

.google.cloud.discoveryengine.v1.Project.ServiceTerms.State state = 4;

Returns
Type Description
int

The enum numeric value on the wire for state.

getVersion()

public String getVersion()

The version string of the terms of service. For acceptable values, see the comments for id above.

string version = 2;

Returns
Type Description
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

The version string of the terms of service. For acceptable values, see the comments for id above.

string version = 2;

Returns
Type Description
ByteString

The bytes for version.

hasAcceptTime()

public boolean hasAcceptTime()

The last time when the project agreed to the terms of service.

.google.protobuf.Timestamp accept_time = 5;

Returns
Type Description
boolean

Whether the acceptTime field is set.

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;

Returns
Type Description
boolean

Whether the declineTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAcceptTime(Timestamp value)

public Project.ServiceTerms.Builder mergeAcceptTime(Timestamp value)

The last time when the project agreed to the terms of service.

.google.protobuf.Timestamp accept_time = 5;

Parameter
Name Description
value Timestamp
Returns
Type Description
Project.ServiceTerms.Builder

mergeDeclineTime(Timestamp value)

public Project.ServiceTerms.Builder mergeDeclineTime(Timestamp value)

The last time when the project declined or revoked the agreement to terms of service.

.google.protobuf.Timestamp decline_time = 6;

Parameter
Name Description
value Timestamp
Returns
Type Description
Project.ServiceTerms.Builder

mergeFrom(Project.ServiceTerms other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAcceptTime(Timestamp value)

public Project.ServiceTerms.Builder setAcceptTime(Timestamp value)

The last time when the project agreed to the terms of service.

.google.protobuf.Timestamp accept_time = 5;

Parameter
Name Description
value Timestamp
Returns
Type Description
Project.ServiceTerms.Builder

setAcceptTime(Timestamp.Builder builderForValue)

public Project.ServiceTerms.Builder setAcceptTime(Timestamp.Builder builderForValue)

The last time when the project agreed to the terms of service.

.google.protobuf.Timestamp accept_time = 5;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Project.ServiceTerms.Builder

setDeclineTime(Timestamp value)

public Project.ServiceTerms.Builder setDeclineTime(Timestamp value)

The last time when the project declined or revoked the agreement to terms of service.

.google.protobuf.Timestamp decline_time = 6;

Parameter
Name Description
value Timestamp
Returns
Type Description
Project.ServiceTerms.Builder

setDeclineTime(Timestamp.Builder builderForValue)

public Project.ServiceTerms.Builder setDeclineTime(Timestamp.Builder builderForValue)

The last time when the project declined or revoked the agreement to terms of service.

.google.protobuf.Timestamp decline_time = 6;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Project.ServiceTerms.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setId(String value)

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. When using this as id, the acceptable version to provide is 2022-11-23.

string id = 1;

Parameter
Name Description
value String

The id to set.

Returns
Type Description
Project.ServiceTerms.Builder

This builder for chaining.

setIdBytes(ByteString value)

public Project.ServiceTerms.Builder setIdBytes(ByteString value)

The unique identifier of this terms of service. Available terms:

  • GA_DATA_USE_TERMS: Terms for data use. When using this as id, the acceptable version to provide is 2022-11-23.

string id = 1;

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
Project.ServiceTerms.Builder

This builder for chaining.

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

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

setState(Project.ServiceTerms.State value)

public Project.ServiceTerms.Builder setState(Project.ServiceTerms.State value)

Whether the project has accepted/rejected the service terms or it is still pending.

.google.cloud.discoveryengine.v1.Project.ServiceTerms.State state = 4;

Parameter
Name Description
value Project.ServiceTerms.State

The state to set.

Returns
Type Description
Project.ServiceTerms.Builder

This builder for chaining.

setStateValue(int value)

public Project.ServiceTerms.Builder setStateValue(int value)

Whether the project has accepted/rejected the service terms or it is still pending.

.google.cloud.discoveryengine.v1.Project.ServiceTerms.State state = 4;

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
Project.ServiceTerms.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setVersion(String value)

public Project.ServiceTerms.Builder setVersion(String value)

The version string of the terms of service. For acceptable values, see the comments for id above.

string version = 2;

Parameter
Name Description
value String

The version to set.

Returns
Type Description
Project.ServiceTerms.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public Project.ServiceTerms.Builder setVersionBytes(ByteString value)

The version string of the terms of service. For acceptable values, see the comments for id above.

string version = 2;

Parameter
Name Description
value ByteString

The bytes for version to set.

Returns
Type Description
Project.ServiceTerms.Builder

This builder for chaining.