Class GeoInfo.Builder (0.14.1)

public static final class GeoInfo.Builder extends GeneratedMessageV3.Builder<GeoInfo.Builder> implements GeoInfoOrBuilder

User's geographic informaiton.

Protobuf type google.events.firebase.analytics.v1.GeoInfo

Implements

GeoInfoOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GeoInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GeoInfo.Builder
Overrides

build()

public GeoInfo build()
Returns
TypeDescription
GeoInfo

buildPartial()

public GeoInfo buildPartial()
Returns
TypeDescription
GeoInfo

clear()

public GeoInfo.Builder clear()
Returns
TypeDescription
GeoInfo.Builder
Overrides

clearCity()

public GeoInfo.Builder clearCity()

The geographic city. Eg. Sao Paulo

string city = 4;

Returns
TypeDescription
GeoInfo.Builder

This builder for chaining.

clearContinent()

public GeoInfo.Builder clearContinent()

The geographic continent. Eg. Americas

string continent = 1;

Returns
TypeDescription
GeoInfo.Builder

This builder for chaining.

clearCountry()

public GeoInfo.Builder clearCountry()

The geographic country. Eg. Brazil

string country = 2;

Returns
TypeDescription
GeoInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public GeoInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
GeoInfo.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public GeoInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
GeoInfo.Builder
Overrides

clearRegion()

public GeoInfo.Builder clearRegion()

The geographic region. Eg. State of Sao Paulo

string region = 3;

Returns
TypeDescription
GeoInfo.Builder

This builder for chaining.

clone()

public GeoInfo.Builder clone()
Returns
TypeDescription
GeoInfo.Builder
Overrides

getCity()

public String getCity()

The geographic city. Eg. Sao Paulo

string city = 4;

Returns
TypeDescription
String

The city.

getCityBytes()

public ByteString getCityBytes()

The geographic city. Eg. Sao Paulo

string city = 4;

Returns
TypeDescription
ByteString

The bytes for city.

getContinent()

public String getContinent()

The geographic continent. Eg. Americas

string continent = 1;

Returns
TypeDescription
String

The continent.

getContinentBytes()

public ByteString getContinentBytes()

The geographic continent. Eg. Americas

string continent = 1;

Returns
TypeDescription
ByteString

The bytes for continent.

getCountry()

public String getCountry()

The geographic country. Eg. Brazil

string country = 2;

Returns
TypeDescription
String

The country.

getCountryBytes()

public ByteString getCountryBytes()

The geographic country. Eg. Brazil

string country = 2;

Returns
TypeDescription
ByteString

The bytes for country.

getDefaultInstanceForType()

public GeoInfo getDefaultInstanceForType()
Returns
TypeDescription
GeoInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getRegion()

public String getRegion()

The geographic region. Eg. State of Sao Paulo

string region = 3;

Returns
TypeDescription
String

The region.

getRegionBytes()

public ByteString getRegionBytes()

The geographic region. Eg. State of Sao Paulo

string region = 3;

Returns
TypeDescription
ByteString

The bytes for region.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GeoInfo other)

public GeoInfo.Builder mergeFrom(GeoInfo other)
Parameter
NameDescription
otherGeoInfo
Returns
TypeDescription
GeoInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GeoInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GeoInfo.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public GeoInfo.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
GeoInfo.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GeoInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GeoInfo.Builder
Overrides

setCity(String value)

public GeoInfo.Builder setCity(String value)

The geographic city. Eg. Sao Paulo

string city = 4;

Parameter
NameDescription
valueString

The city to set.

Returns
TypeDescription
GeoInfo.Builder

This builder for chaining.

setCityBytes(ByteString value)

public GeoInfo.Builder setCityBytes(ByteString value)

The geographic city. Eg. Sao Paulo

string city = 4;

Parameter
NameDescription
valueByteString

The bytes for city to set.

Returns
TypeDescription
GeoInfo.Builder

This builder for chaining.

setContinent(String value)

public GeoInfo.Builder setContinent(String value)

The geographic continent. Eg. Americas

string continent = 1;

Parameter
NameDescription
valueString

The continent to set.

Returns
TypeDescription
GeoInfo.Builder

This builder for chaining.

setContinentBytes(ByteString value)

public GeoInfo.Builder setContinentBytes(ByteString value)

The geographic continent. Eg. Americas

string continent = 1;

Parameter
NameDescription
valueByteString

The bytes for continent to set.

Returns
TypeDescription
GeoInfo.Builder

This builder for chaining.

setCountry(String value)

public GeoInfo.Builder setCountry(String value)

The geographic country. Eg. Brazil

string country = 2;

Parameter
NameDescription
valueString

The country to set.

Returns
TypeDescription
GeoInfo.Builder

This builder for chaining.

setCountryBytes(ByteString value)

public GeoInfo.Builder setCountryBytes(ByteString value)

The geographic country. Eg. Brazil

string country = 2;

Parameter
NameDescription
valueByteString

The bytes for country to set.

Returns
TypeDescription
GeoInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public GeoInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GeoInfo.Builder
Overrides

setRegion(String value)

public GeoInfo.Builder setRegion(String value)

The geographic region. Eg. State of Sao Paulo

string region = 3;

Parameter
NameDescription
valueString

The region to set.

Returns
TypeDescription
GeoInfo.Builder

This builder for chaining.

setRegionBytes(ByteString value)

public GeoInfo.Builder setRegionBytes(ByteString value)

The geographic region. Eg. State of Sao Paulo

string region = 3;

Parameter
NameDescription
valueByteString

The bytes for region to set.

Returns
TypeDescription
GeoInfo.Builder

This builder for chaining.

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

public GeoInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GeoInfo.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GeoInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GeoInfo.Builder
Overrides