Class TestDefinition.SetOption.Builder

public static final class TestDefinition.SetOption.Builder extends GeneratedMessageV3.Builder<TestDefinition.SetOption.Builder> implements TestDefinition.SetOptionOrBuilder

An option to the DocumentRef.Set call.

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

Inheritance

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

Methods

addAllFields(Iterable<? extends TestDefinition.FieldPath> values)

public TestDefinition.SetOption.Builder addAllFields(Iterable<? extends TestDefinition.FieldPath> values)

field paths for a Merge option

repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 2;

Parameter
NameDescription
valuesjava.lang.Iterable<? extends com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath>
Returns
TypeDescription
TestDefinition.SetOption.Builder

addFields(TestDefinition.FieldPath value)

public TestDefinition.SetOption.Builder addFields(TestDefinition.FieldPath value)

field paths for a Merge option

repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 2;

Parameter
NameDescription
valueTestDefinition.FieldPath
Returns
TypeDescription
TestDefinition.SetOption.Builder

addFields(TestDefinition.FieldPath.Builder builderForValue)

public TestDefinition.SetOption.Builder addFields(TestDefinition.FieldPath.Builder builderForValue)

field paths for a Merge option

repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 2;

Parameter
NameDescription
builderForValueTestDefinition.FieldPath.Builder
Returns
TypeDescription
TestDefinition.SetOption.Builder

addFields(int index, TestDefinition.FieldPath value)

public TestDefinition.SetOption.Builder addFields(int index, TestDefinition.FieldPath value)

field paths for a Merge option

repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 2;

Parameters
NameDescription
indexint
valueTestDefinition.FieldPath
Returns
TypeDescription
TestDefinition.SetOption.Builder

addFields(int index, TestDefinition.FieldPath.Builder builderForValue)

public TestDefinition.SetOption.Builder addFields(int index, TestDefinition.FieldPath.Builder builderForValue)

field paths for a Merge option

repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 2;

Parameters
NameDescription
indexint
builderForValueTestDefinition.FieldPath.Builder
Returns
TypeDescription
TestDefinition.SetOption.Builder

addFieldsBuilder()

public TestDefinition.FieldPath.Builder addFieldsBuilder()

field paths for a Merge option

repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 2;

Returns
TypeDescription
TestDefinition.FieldPath.Builder

addFieldsBuilder(int index)

public TestDefinition.FieldPath.Builder addFieldsBuilder(int index)

field paths for a Merge option

repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
TestDefinition.FieldPath.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearAll()

public TestDefinition.SetOption.Builder clearAll()

if true, merge all fields ("fields" is ignored).

bool all = 1;

Returns
TypeDescription
TestDefinition.SetOption.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearFields()

public TestDefinition.SetOption.Builder clearFields()

field paths for a Merge option

repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 2;

Returns
TypeDescription
TestDefinition.SetOption.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAll()

public boolean getAll()

if true, merge all fields ("fields" is ignored).

bool all = 1;

Returns
TypeDescription
boolean

The all.

getDefaultInstanceForType()

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

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

getFields(int index)

public TestDefinition.FieldPath getFields(int index)

field paths for a Merge option

repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
TestDefinition.FieldPath

getFieldsBuilder(int index)

public TestDefinition.FieldPath.Builder getFieldsBuilder(int index)

field paths for a Merge option

repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
TestDefinition.FieldPath.Builder

getFieldsBuilderList()

public List<TestDefinition.FieldPath.Builder> getFieldsBuilderList()

field paths for a Merge option

repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 2;

Returns
TypeDescription
java.util.List<Builder>

getFieldsCount()

public int getFieldsCount()

field paths for a Merge option

repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 2;

Returns
TypeDescription
int

getFieldsList()

public List<TestDefinition.FieldPath> getFieldsList()

field paths for a Merge option

repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 2;

Returns
TypeDescription
java.util.List<FieldPath>

getFieldsOrBuilder(int index)

public TestDefinition.FieldPathOrBuilder getFieldsOrBuilder(int index)

field paths for a Merge option

repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
TestDefinition.FieldPathOrBuilder

getFieldsOrBuilderList()

public List<? extends TestDefinition.FieldPathOrBuilder> getFieldsOrBuilderList()

field paths for a Merge option

repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 2;

Returns
TypeDescription
java.util.List<? extends com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPathOrBuilder>

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeFields(int index)

public TestDefinition.SetOption.Builder removeFields(int index)

field paths for a Merge option

repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
TestDefinition.SetOption.Builder

setAll(boolean value)

public TestDefinition.SetOption.Builder setAll(boolean value)

if true, merge all fields ("fields" is ignored).

bool all = 1;

Parameter
NameDescription
valueboolean

The all to set.

Returns
TypeDescription
TestDefinition.SetOption.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setFields(int index, TestDefinition.FieldPath value)

public TestDefinition.SetOption.Builder setFields(int index, TestDefinition.FieldPath value)

field paths for a Merge option

repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 2;

Parameters
NameDescription
indexint
valueTestDefinition.FieldPath
Returns
TypeDescription
TestDefinition.SetOption.Builder

setFields(int index, TestDefinition.FieldPath.Builder builderForValue)

public TestDefinition.SetOption.Builder setFields(int index, TestDefinition.FieldPath.Builder builderForValue)

field paths for a Merge option

repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 2;

Parameters
NameDescription
indexint
builderForValueTestDefinition.FieldPath.Builder
Returns
TypeDescription
TestDefinition.SetOption.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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