Class TestDefinition.CreateTest.Builder

public static final class TestDefinition.CreateTest.Builder extends GeneratedMessageV3.Builder<TestDefinition.CreateTest.Builder> implements TestDefinition.CreateTestOrBuilder

Call to DocumentRef.Create.

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

Inheritance

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearDocRefPath()

public TestDefinition.CreateTest.Builder clearDocRefPath()

The path of the doc, e.g. "projects/projectID/databases/(default)/documents/C/d"

string doc_ref_path = 1;

Returns
TypeDescription
TestDefinition.CreateTest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearIsError()

public TestDefinition.CreateTest.Builder clearIsError()

If true, the call should result in an error without generating a request. If this is true, request should not be set.

bool is_error = 4;

Returns
TypeDescription
TestDefinition.CreateTest.Builder

This builder for chaining.

clearJsonData()

public TestDefinition.CreateTest.Builder clearJsonData()

The data passed to Create, as JSON. The strings "Delete" and "ServerTimestamp" denote the two special sentinel values. Values that could be interpreted as integers (i.e. digit strings) should be treated as integers.

string json_data = 2;

Returns
TypeDescription
TestDefinition.CreateTest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRequest()

public TestDefinition.CreateTest.Builder clearRequest()

The request that the call should generate.

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

Returns
TypeDescription
TestDefinition.CreateTest.Builder

clone()

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

getDefaultInstanceForType()

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

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()

The path of the doc, e.g. "projects/projectID/databases/(default)/documents/C/d"

string doc_ref_path = 1;

Returns
TypeDescription
java.lang.String

The docRefPath.

getDocRefPathBytes()

public ByteString getDocRefPathBytes()

The path of the doc, e.g. "projects/projectID/databases/(default)/documents/C/d"

string doc_ref_path = 1;

Returns
TypeDescription
com.google.protobuf.ByteString

The bytes for docRefPath.

getIsError()

public boolean getIsError()

If true, the call should result in an error without generating a request. If this is true, request should not be set.

bool is_error = 4;

Returns
TypeDescription
boolean

The isError.

getJsonData()

public String getJsonData()

The data passed to Create, as JSON. The strings "Delete" and "ServerTimestamp" denote the two special sentinel values. Values that could be interpreted as integers (i.e. digit strings) should be treated as integers.

string json_data = 2;

Returns
TypeDescription
java.lang.String

The jsonData.

getJsonDataBytes()

public ByteString getJsonDataBytes()

The data passed to Create, as JSON. The strings "Delete" and "ServerTimestamp" denote the two special sentinel values. Values that could be interpreted as integers (i.e. digit strings) should be treated as integers.

string json_data = 2;

Returns
TypeDescription
com.google.protobuf.ByteString

The bytes for jsonData.

getRequest()

public CommitRequest getRequest()

The request that the call should generate.

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

Returns
TypeDescription
com.google.firestore.v1.CommitRequest

The request.

getRequestBuilder()

public CommitRequest.Builder getRequestBuilder()

The request that the call should generate.

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

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

getRequestOrBuilder()

public CommitRequestOrBuilder getRequestOrBuilder()

The request that the call should generate.

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

Returns
TypeDescription
com.google.firestore.v1.CommitRequestOrBuilder

hasRequest()

public boolean hasRequest()

The request that the call should generate.

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

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.CreateTest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TestDefinition.CreateTest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputcom.google.protobuf.CodedInputStream
extensionRegistrycom.google.protobuf.ExtensionRegistryLite
Returns
TypeDescription
TestDefinition.CreateTest.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.CreateTest.Builder mergeFrom(Message other)
Parameter
NameDescription
othercom.google.protobuf.Message
Returns
TypeDescription
TestDefinition.CreateTest.Builder
Overrides
com.google.protobuf.AbstractMessage.Builder.mergeFrom(com.google.protobuf.Message)

mergeRequest(CommitRequest value)

public TestDefinition.CreateTest.Builder mergeRequest(CommitRequest value)

The request that the call should generate.

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDocRefPath(String value)

public TestDefinition.CreateTest.Builder setDocRefPath(String value)

The path of the doc, e.g. "projects/projectID/databases/(default)/documents/C/d"

string doc_ref_path = 1;

Parameter
NameDescription
valuejava.lang.String

The docRefPath to set.

Returns
TypeDescription
TestDefinition.CreateTest.Builder

This builder for chaining.

setDocRefPathBytes(ByteString value)

public TestDefinition.CreateTest.Builder setDocRefPathBytes(ByteString value)

The path of the doc, e.g. "projects/projectID/databases/(default)/documents/C/d"

string doc_ref_path = 1;

Parameter
NameDescription
valuecom.google.protobuf.ByteString

The bytes for docRefPath to set.

Returns
TypeDescription
TestDefinition.CreateTest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setIsError(boolean value)

public TestDefinition.CreateTest.Builder setIsError(boolean value)

If true, the call should result in an error without generating a request. If this is true, request should not be set.

bool is_error = 4;

Parameter
NameDescription
valueboolean

The isError to set.

Returns
TypeDescription
TestDefinition.CreateTest.Builder

This builder for chaining.

setJsonData(String value)

public TestDefinition.CreateTest.Builder setJsonData(String value)

The data passed to Create, as JSON. The strings "Delete" and "ServerTimestamp" denote the two special sentinel values. Values that could be interpreted as integers (i.e. digit strings) should be treated as integers.

string json_data = 2;

Parameter
NameDescription
valuejava.lang.String

The jsonData to set.

Returns
TypeDescription
TestDefinition.CreateTest.Builder

This builder for chaining.

setJsonDataBytes(ByteString value)

public TestDefinition.CreateTest.Builder setJsonDataBytes(ByteString value)

The data passed to Create, as JSON. The strings "Delete" and "ServerTimestamp" denote the two special sentinel values. Values that could be interpreted as integers (i.e. digit strings) should be treated as integers.

string json_data = 2;

Parameter
NameDescription
valuecom.google.protobuf.ByteString

The bytes for jsonData to set.

Returns
TypeDescription
TestDefinition.CreateTest.Builder

This builder for chaining.

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

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

setRequest(CommitRequest value)

public TestDefinition.CreateTest.Builder setRequest(CommitRequest value)

The request that the call should generate.

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

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

setRequest(CommitRequest.Builder builderForValue)

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

The request that the call should generate.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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