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 Summary
Modifier and TypeMethodDescriptionbuild()clear()The last time when the project agreed to the terms of service.The last time when the project declined or revoked the agreement to terms of service.clearId()The unique identifier of this terms of service.Whether the project has accepted/rejected the service terms or it is still pending.The version string of the terms of service.com.google.protobuf.TimestampThe last time when the project agreed to the terms of service.com.google.protobuf.Timestamp.BuilderThe last time when the project agreed to the terms of service.com.google.protobuf.TimestampOrBuilderThe last time when the project agreed to the terms of service.com.google.protobuf.TimestampThe last time when the project declined or revoked the agreement to terms of service.com.google.protobuf.Timestamp.BuilderThe last time when the project declined or revoked the agreement to terms of service.com.google.protobuf.TimestampOrBuilderThe last time when the project declined or revoked the agreement to terms of service.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetId()The unique identifier of this terms of service.com.google.protobuf.ByteStringThe unique identifier of this terms of service.getState()Whether the project has accepted/rejected the service terms or it is still pending.intWhether the project has accepted/rejected the service terms or it is still pending.The version string of the terms of service.com.google.protobuf.ByteStringThe version string of the terms of service.booleanThe last time when the project agreed to the terms of service.booleanThe last time when the project declined or revoked the agreement to terms of service.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeAcceptTime(com.google.protobuf.Timestamp value) The last time when the project agreed to the terms of service.mergeDeclineTime(com.google.protobuf.Timestamp value) The last time when the project declined or revoked the agreement to terms of service.mergeFrom(Project.ServiceTerms other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAcceptTime(com.google.protobuf.Timestamp value) The last time when the project agreed to the terms of service.setAcceptTime(com.google.protobuf.Timestamp.Builder builderForValue) The last time when the project agreed to the terms of service.setDeclineTime(com.google.protobuf.Timestamp value) The last time when the project declined or revoked the agreement to terms of service.setDeclineTime(com.google.protobuf.Timestamp.Builder builderForValue) The last time when the project declined or revoked the agreement to terms of service.The unique identifier of this terms of service.setIdBytes(com.google.protobuf.ByteString value) The unique identifier of this terms of service.Whether the project has accepted/rejected the service terms or it is still pending.setStateValue(int value) Whether the project has accepted/rejected the service terms or it is still pending.setVersion(String value) The version string of the terms of service.setVersionBytes(com.google.protobuf.ByteString value) The version string of the terms of service.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Project.ServiceTerms.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Project.ServiceTerms.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Project.ServiceTerms.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Project.ServiceTerms.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Project.ServiceTerms.Builder>- Throws:
IOException
-
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:
getIdin interfaceProject.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:
getIdBytesin interfaceProject.ServiceTermsOrBuilder- Returns:
- The bytes for id.
-
setId
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
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
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
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:
getVersionin interfaceProject.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:
getVersionBytesin interfaceProject.ServiceTermsOrBuilder- Returns:
- The bytes for version.
-
setVersion
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
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
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:
getStateValuein interfaceProject.ServiceTermsOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
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
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:
getStatein interfaceProject.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
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:
hasAcceptTimein interfaceProject.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:
getAcceptTimein interfaceProject.ServiceTermsOrBuilder- Returns:
- The acceptTime.
-
setAcceptTime
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
The last time when the project agreed to the terms of service.
.google.protobuf.Timestamp accept_time = 5; -
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:
getAcceptTimeOrBuilderin interfaceProject.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:
hasDeclineTimein interfaceProject.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:
getDeclineTimein interfaceProject.ServiceTermsOrBuilder- Returns:
- The declineTime.
-
setDeclineTime
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
The last time when the project declined or revoked the agreement to terms of service.
.google.protobuf.Timestamp decline_time = 6; -
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:
getDeclineTimeOrBuilderin interfaceProject.ServiceTermsOrBuilder
-