Class TestDefinition.UpdateTest.Builder

Stay organized with collections Save and categorize content based on your preferences.
public static final class TestDefinition.UpdateTest.Builder extends GeneratedMessageV3.Builder<TestDefinition.UpdateTest.Builder> implements TestDefinition.UpdateTestOrBuilder

A call to the form of DocumentRef.Update that represents the data as a map or dictionary.

Protobuf type google.cloud.conformance.firestore.v1.UpdateTest

Inheritance

java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > com.google.protobuf.GeneratedMessageV3.Builder > TestDefinition.UpdateTest.Builder

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TestDefinition.UpdateTest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldcom.google.protobuf.Descriptors.FieldDescriptor
valuejava.lang.Object
Returns
TypeDescription
TestDefinition.UpdateTest.Builder
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor,java.lang.Object)

build()

public TestDefinition.UpdateTest build()
Returns
TypeDescription
TestDefinition.UpdateTest

buildPartial()

public TestDefinition.UpdateTest buildPartial()
Returns
TypeDescription
TestDefinition.UpdateTest

clear()

public TestDefinition.UpdateTest.Builder clear()
Returns
TypeDescription
TestDefinition.UpdateTest.Builder
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.clear()

clearDocRefPath()

public TestDefinition.UpdateTest.Builder clearDocRefPath()

path of doc

string doc_ref_path = 1;

Returns
TypeDescription
TestDefinition.UpdateTest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public TestDefinition.UpdateTest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldcom.google.protobuf.Descriptors.FieldDescriptor
Returns
TypeDescription
TestDefinition.UpdateTest.Builder
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.clearField(com.google.protobuf.Descriptors.FieldDescriptor)

clearIsError()

public TestDefinition.UpdateTest.Builder clearIsError()

call signals an error

bool is_error = 5;

Returns
TypeDescription
TestDefinition.UpdateTest.Builder

This builder for chaining.

clearJsonData()

public TestDefinition.UpdateTest.Builder clearJsonData()

data (see CreateTest.json_data)

string json_data = 3;

Returns
TypeDescription
TestDefinition.UpdateTest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public TestDefinition.UpdateTest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofcom.google.protobuf.Descriptors.OneofDescriptor
Returns
TypeDescription
TestDefinition.UpdateTest.Builder
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor)

clearPrecondition()

public TestDefinition.UpdateTest.Builder clearPrecondition()

precondition in call, if any

.google.firestore.v1.Precondition precondition = 2;

Returns
TypeDescription
TestDefinition.UpdateTest.Builder

clearRequest()

public TestDefinition.UpdateTest.Builder clearRequest()

expected request

.google.firestore.v1.CommitRequest request = 4;

Returns
TypeDescription
TestDefinition.UpdateTest.Builder

clone()

public TestDefinition.UpdateTest.Builder clone()
Returns
TypeDescription
TestDefinition.UpdateTest.Builder
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.clone()

getDefaultInstanceForType()

public TestDefinition.UpdateTest getDefaultInstanceForType()
Returns
TypeDescription
TestDefinition.UpdateTest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
com.google.protobuf.Descriptors.Descriptor

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
com.google.protobuf.Descriptors.Descriptor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.getDescriptorForType()

getDocRefPath()

public String getDocRefPath()

path of doc

string doc_ref_path = 1;

Returns
TypeDescription
java.lang.String

The docRefPath.

getDocRefPathBytes()

public ByteString getDocRefPathBytes()

path of doc

string doc_ref_path = 1;

Returns
TypeDescription
com.google.protobuf.ByteString

The bytes for docRefPath.

getIsError()

public boolean getIsError()

call signals an error

bool is_error = 5;

Returns
TypeDescription
boolean

The isError.

getJsonData()

public String getJsonData()

data (see CreateTest.json_data)

string json_data = 3;

Returns
TypeDescription
java.lang.String

The jsonData.

getJsonDataBytes()

public ByteString getJsonDataBytes()

data (see CreateTest.json_data)

string json_data = 3;

Returns
TypeDescription
com.google.protobuf.ByteString

The bytes for jsonData.

getPrecondition()

public Precondition getPrecondition()

precondition in call, if any

.google.firestore.v1.Precondition precondition = 2;

Returns
TypeDescription
com.google.firestore.v1.Precondition

The precondition.

getPreconditionBuilder()

public Precondition.Builder getPreconditionBuilder()

precondition in call, if any

.google.firestore.v1.Precondition precondition = 2;

Returns
TypeDescription
com.google.firestore.v1.Precondition.Builder

getPreconditionOrBuilder()

public PreconditionOrBuilder getPreconditionOrBuilder()

precondition in call, if any

.google.firestore.v1.Precondition precondition = 2;

Returns
TypeDescription
com.google.firestore.v1.PreconditionOrBuilder

getRequest()

public CommitRequest getRequest()

expected request

.google.firestore.v1.CommitRequest request = 4;

Returns
TypeDescription
com.google.firestore.v1.CommitRequest

The request.

getRequestBuilder()

public CommitRequest.Builder getRequestBuilder()

expected request

.google.firestore.v1.CommitRequest request = 4;

Returns
TypeDescription
com.google.firestore.v1.CommitRequest.Builder

getRequestOrBuilder()

public CommitRequestOrBuilder getRequestOrBuilder()

expected request

.google.firestore.v1.CommitRequest request = 4;

Returns
TypeDescription
com.google.firestore.v1.CommitRequestOrBuilder

hasPrecondition()

public boolean hasPrecondition()

precondition in call, if any

.google.firestore.v1.Precondition precondition = 2;

Returns
TypeDescription
boolean

Whether the precondition field is set.

hasRequest()

public boolean hasRequest()

expected request

.google.firestore.v1.CommitRequest request = 4;

Returns
TypeDescription
boolean

Whether the request field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetFieldAccessorTable()

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.isInitialized()

mergeFrom(TestDefinition.UpdateTest other)

public TestDefinition.UpdateTest.Builder mergeFrom(TestDefinition.UpdateTest other)
Parameter
NameDescription
otherTestDefinition.UpdateTest
Returns
TypeDescription
TestDefinition.UpdateTest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TestDefinition.UpdateTest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputcom.google.protobuf.CodedInputStream
extensionRegistrycom.google.protobuf.ExtensionRegistryLite
Returns
TypeDescription
TestDefinition.UpdateTest.Builder
Overrides
com.google.protobuf.AbstractMessage.Builder.mergeFrom(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
Exceptions
TypeDescription
java.io.IOException

mergeFrom(Message other)

public TestDefinition.UpdateTest.Builder mergeFrom(Message other)
Parameter
NameDescription
othercom.google.protobuf.Message
Returns
TypeDescription
TestDefinition.UpdateTest.Builder
Overrides
com.google.protobuf.AbstractMessage.Builder.mergeFrom(com.google.protobuf.Message)

mergePrecondition(Precondition value)

public TestDefinition.UpdateTest.Builder mergePrecondition(Precondition value)

precondition in call, if any

.google.firestore.v1.Precondition precondition = 2;

Parameter
NameDescription
valuecom.google.firestore.v1.Precondition
Returns
TypeDescription
TestDefinition.UpdateTest.Builder

mergeRequest(CommitRequest value)

public TestDefinition.UpdateTest.Builder mergeRequest(CommitRequest value)

expected request

.google.firestore.v1.CommitRequest request = 4;

Parameter
NameDescription
valuecom.google.firestore.v1.CommitRequest
Returns
TypeDescription
TestDefinition.UpdateTest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TestDefinition.UpdateTest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldscom.google.protobuf.UnknownFieldSet
Returns
TypeDescription
TestDefinition.UpdateTest.Builder
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownFields(com.google.protobuf.UnknownFieldSet)

setDocRefPath(String value)

public TestDefinition.UpdateTest.Builder setDocRefPath(String value)

path of doc

string doc_ref_path = 1;

Parameter
NameDescription
valuejava.lang.String

The docRefPath to set.

Returns
TypeDescription
TestDefinition.UpdateTest.Builder

This builder for chaining.

setDocRefPathBytes(ByteString value)

public TestDefinition.UpdateTest.Builder setDocRefPathBytes(ByteString value)

path of doc

string doc_ref_path = 1;

Parameter
NameDescription
valuecom.google.protobuf.ByteString

The bytes for docRefPath to set.

Returns
TypeDescription
TestDefinition.UpdateTest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public TestDefinition.UpdateTest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldcom.google.protobuf.Descriptors.FieldDescriptor
valuejava.lang.Object
Returns
TypeDescription
TestDefinition.UpdateTest.Builder
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.setField(com.google.protobuf.Descriptors.FieldDescriptor,java.lang.Object)

setIsError(boolean value)

public TestDefinition.UpdateTest.Builder setIsError(boolean value)

call signals an error

bool is_error = 5;

Parameter
NameDescription
valueboolean

The isError to set.

Returns
TypeDescription
TestDefinition.UpdateTest.Builder

This builder for chaining.

setJsonData(String value)

public TestDefinition.UpdateTest.Builder setJsonData(String value)

data (see CreateTest.json_data)

string json_data = 3;

Parameter
NameDescription
valuejava.lang.String

The jsonData to set.

Returns
TypeDescription
TestDefinition.UpdateTest.Builder

This builder for chaining.

setJsonDataBytes(ByteString value)

public TestDefinition.UpdateTest.Builder setJsonDataBytes(ByteString value)

data (see CreateTest.json_data)

string json_data = 3;

Parameter
NameDescription
valuecom.google.protobuf.ByteString

The bytes for jsonData to set.

Returns
TypeDescription
TestDefinition.UpdateTest.Builder

This builder for chaining.

setPrecondition(Precondition value)

public TestDefinition.UpdateTest.Builder setPrecondition(Precondition value)

precondition in call, if any

.google.firestore.v1.Precondition precondition = 2;

Parameter
NameDescription
valuecom.google.firestore.v1.Precondition
Returns
TypeDescription
TestDefinition.UpdateTest.Builder

setPrecondition(Precondition.Builder builderForValue)

public TestDefinition.UpdateTest.Builder setPrecondition(Precondition.Builder builderForValue)

precondition in call, if any

.google.firestore.v1.Precondition precondition = 2;

Parameter
NameDescription
builderForValuecom.google.firestore.v1.Precondition.Builder
Returns
TypeDescription
TestDefinition.UpdateTest.Builder

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

public TestDefinition.UpdateTest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldcom.google.protobuf.Descriptors.FieldDescriptor
indexint
valuejava.lang.Object
Returns
TypeDescription
TestDefinition.UpdateTest.Builder
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor,int,java.lang.Object)

setRequest(CommitRequest value)

public TestDefinition.UpdateTest.Builder setRequest(CommitRequest value)

expected request

.google.firestore.v1.CommitRequest request = 4;

Parameter
NameDescription
valuecom.google.firestore.v1.CommitRequest
Returns
TypeDescription
TestDefinition.UpdateTest.Builder

setRequest(CommitRequest.Builder builderForValue)

public TestDefinition.UpdateTest.Builder setRequest(CommitRequest.Builder builderForValue)

expected request

.google.firestore.v1.CommitRequest request = 4;

Parameter
NameDescription
builderForValuecom.google.firestore.v1.CommitRequest.Builder
Returns
TypeDescription
TestDefinition.UpdateTest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final TestDefinition.UpdateTest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldscom.google.protobuf.UnknownFieldSet
Returns
TypeDescription
TestDefinition.UpdateTest.Builder
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFields(com.google.protobuf.UnknownFieldSet)