Class GeoInfo.Builder (0.16.0)

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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GeoInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GeoInfo.Builder
Overrides

build()

public GeoInfo build()
Returns
Type Description
GeoInfo

buildPartial()

public GeoInfo buildPartial()
Returns
Type Description
GeoInfo

clear()

public GeoInfo.Builder clear()
Returns
Type Description
GeoInfo.Builder
Overrides

clearCity()

public GeoInfo.Builder clearCity()

The geographic city. Eg. Sao Paulo

string city = 4;

Returns
Type Description
GeoInfo.Builder

This builder for chaining.

clearContinent()

public GeoInfo.Builder clearContinent()

The geographic continent. Eg. Americas

string continent = 1;

Returns
Type Description
GeoInfo.Builder

This builder for chaining.

clearCountry()

public GeoInfo.Builder clearCountry()

The geographic country. Eg. Brazil

string country = 2;

Returns
Type Description
GeoInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public GeoInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
GeoInfo.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public GeoInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GeoInfo.Builder
Overrides

clearRegion()

public GeoInfo.Builder clearRegion()

The geographic region. Eg. State of Sao Paulo

string region = 3;

Returns
Type Description
GeoInfo.Builder

This builder for chaining.

clone()

public GeoInfo.Builder clone()
Returns
Type Description
GeoInfo.Builder
Overrides

getCity()

public String getCity()

The geographic city. Eg. Sao Paulo

string city = 4;

Returns
Type Description
String

The city.

getCityBytes()

public ByteString getCityBytes()

The geographic city. Eg. Sao Paulo

string city = 4;

Returns
Type Description
ByteString

The bytes for city.

getContinent()

public String getContinent()

The geographic continent. Eg. Americas

string continent = 1;

Returns
Type Description
String

The continent.

getContinentBytes()

public ByteString getContinentBytes()

The geographic continent. Eg. Americas

string continent = 1;

Returns
Type Description
ByteString

The bytes for continent.

getCountry()

public String getCountry()

The geographic country. Eg. Brazil

string country = 2;

Returns
Type Description
String

The country.

getCountryBytes()

public ByteString getCountryBytes()

The geographic country. Eg. Brazil

string country = 2;

Returns
Type Description
ByteString

The bytes for country.

getDefaultInstanceForType()

public GeoInfo getDefaultInstanceForType()
Returns
Type Description
GeoInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getRegion()

public String getRegion()

The geographic region. Eg. State of Sao Paulo

string region = 3;

Returns
Type Description
String

The region.

getRegionBytes()

public ByteString getRegionBytes()

The geographic region. Eg. State of Sao Paulo

string region = 3;

Returns
Type Description
ByteString

The bytes for region.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GeoInfo other)

public GeoInfo.Builder mergeFrom(GeoInfo other)
Parameter
Name Description
other GeoInfo
Returns
Type Description
GeoInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GeoInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GeoInfo.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public GeoInfo.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
GeoInfo.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GeoInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GeoInfo.Builder
Overrides

setCity(String value)

public GeoInfo.Builder setCity(String value)

The geographic city. Eg. Sao Paulo

string city = 4;

Parameter
Name Description
value String

The city to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for city to set.

Returns
Type Description
GeoInfo.Builder

This builder for chaining.

setContinent(String value)

public GeoInfo.Builder setContinent(String value)

The geographic continent. Eg. Americas

string continent = 1;

Parameter
Name Description
value String

The continent to set.

Returns
Type Description
GeoInfo.Builder

This builder for chaining.

setContinentBytes(ByteString value)

public GeoInfo.Builder setContinentBytes(ByteString value)

The geographic continent. Eg. Americas

string continent = 1;

Parameter
Name Description
value ByteString

The bytes for continent to set.

Returns
Type Description
GeoInfo.Builder

This builder for chaining.

setCountry(String value)

public GeoInfo.Builder setCountry(String value)

The geographic country. Eg. Brazil

string country = 2;

Parameter
Name Description
value String

The country to set.

Returns
Type Description
GeoInfo.Builder

This builder for chaining.

setCountryBytes(ByteString value)

public GeoInfo.Builder setCountryBytes(ByteString value)

The geographic country. Eg. Brazil

string country = 2;

Parameter
Name Description
value ByteString

The bytes for country to set.

Returns
Type Description
GeoInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public GeoInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GeoInfo.Builder
Overrides

setRegion(String value)

public GeoInfo.Builder setRegion(String value)

The geographic region. Eg. State of Sao Paulo

string region = 3;

Parameter
Name Description
value String

The region to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for region to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GeoInfo.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GeoInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GeoInfo.Builder
Overrides