ai.promoted.proto.common.ClientHints Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deliveryclient Show documentation
Show all versions of deliveryclient Show documentation
A Java Client to contact the Promoted.ai Delivery API.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: proto/common/common.proto
package ai.promoted.proto.common;
/**
* Protobuf type {@code common.ClientHints}
*/
public final class ClientHints extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:common.ClientHints)
ClientHintsOrBuilder {
private static final long serialVersionUID = 0L;
// Use ClientHints.newBuilder() to construct.
private ClientHints(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ClientHints() {
brand_ = java.util.Collections.emptyList();
architecture_ = "";
model_ = "";
platform_ = "";
platformVersion_ = "";
uaFullVersion_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ClientHints();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ClientHints(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
isMobile_ = input.readBool();
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
brand_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
brand_.add(
input.readMessage(ai.promoted.proto.common.ClientHintBrand.parser(), extensionRegistry));
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
architecture_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
model_ = s;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
platform_ = s;
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
platformVersion_ = s;
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
uaFullVersion_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
brand_ = java.util.Collections.unmodifiableList(brand_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.promoted.proto.common.CommonProto.internal_static_common_ClientHints_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.promoted.proto.common.CommonProto.internal_static_common_ClientHints_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.promoted.proto.common.ClientHints.class, ai.promoted.proto.common.ClientHints.Builder.class);
}
public static final int IS_MOBILE_FIELD_NUMBER = 1;
private boolean isMobile_;
/**
* bool is_mobile = 1 [json_name = "isMobile"];
* @return The isMobile.
*/
@java.lang.Override
public boolean getIsMobile() {
return isMobile_;
}
public static final int BRAND_FIELD_NUMBER = 2;
private java.util.List brand_;
/**
* repeated .common.ClientHintBrand brand = 2 [json_name = "brand"];
*/
@java.lang.Override
public java.util.List getBrandList() {
return brand_;
}
/**
* repeated .common.ClientHintBrand brand = 2 [json_name = "brand"];
*/
@java.lang.Override
public java.util.List extends ai.promoted.proto.common.ClientHintBrandOrBuilder>
getBrandOrBuilderList() {
return brand_;
}
/**
* repeated .common.ClientHintBrand brand = 2 [json_name = "brand"];
*/
@java.lang.Override
public int getBrandCount() {
return brand_.size();
}
/**
* repeated .common.ClientHintBrand brand = 2 [json_name = "brand"];
*/
@java.lang.Override
public ai.promoted.proto.common.ClientHintBrand getBrand(int index) {
return brand_.get(index);
}
/**
* repeated .common.ClientHintBrand brand = 2 [json_name = "brand"];
*/
@java.lang.Override
public ai.promoted.proto.common.ClientHintBrandOrBuilder getBrandOrBuilder(
int index) {
return brand_.get(index);
}
public static final int ARCHITECTURE_FIELD_NUMBER = 3;
private volatile java.lang.Object architecture_;
/**
* string architecture = 3 [json_name = "architecture"];
* @return The architecture.
*/
@java.lang.Override
public java.lang.String getArchitecture() {
java.lang.Object ref = architecture_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
architecture_ = s;
return s;
}
}
/**
* string architecture = 3 [json_name = "architecture"];
* @return The bytes for architecture.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getArchitectureBytes() {
java.lang.Object ref = architecture_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
architecture_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MODEL_FIELD_NUMBER = 4;
private volatile java.lang.Object model_;
/**
* string model = 4 [json_name = "model"];
* @return The model.
*/
@java.lang.Override
public java.lang.String getModel() {
java.lang.Object ref = model_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
model_ = s;
return s;
}
}
/**
* string model = 4 [json_name = "model"];
* @return The bytes for model.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getModelBytes() {
java.lang.Object ref = model_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
model_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PLATFORM_FIELD_NUMBER = 5;
private volatile java.lang.Object platform_;
/**
* string platform = 5 [json_name = "platform"];
* @return The platform.
*/
@java.lang.Override
public java.lang.String getPlatform() {
java.lang.Object ref = platform_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
platform_ = s;
return s;
}
}
/**
* string platform = 5 [json_name = "platform"];
* @return The bytes for platform.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPlatformBytes() {
java.lang.Object ref = platform_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
platform_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PLATFORM_VERSION_FIELD_NUMBER = 6;
private volatile java.lang.Object platformVersion_;
/**
* string platform_version = 6 [json_name = "platformVersion"];
* @return The platformVersion.
*/
@java.lang.Override
public java.lang.String getPlatformVersion() {
java.lang.Object ref = platformVersion_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
platformVersion_ = s;
return s;
}
}
/**
* string platform_version = 6 [json_name = "platformVersion"];
* @return The bytes for platformVersion.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPlatformVersionBytes() {
java.lang.Object ref = platformVersion_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
platformVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int UA_FULL_VERSION_FIELD_NUMBER = 7;
private volatile java.lang.Object uaFullVersion_;
/**
* string ua_full_version = 7 [json_name = "uaFullVersion"];
* @return The uaFullVersion.
*/
@java.lang.Override
public java.lang.String getUaFullVersion() {
java.lang.Object ref = uaFullVersion_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
uaFullVersion_ = s;
return s;
}
}
/**
* string ua_full_version = 7 [json_name = "uaFullVersion"];
* @return The bytes for uaFullVersion.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUaFullVersionBytes() {
java.lang.Object ref = uaFullVersion_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
uaFullVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (isMobile_ != false) {
output.writeBool(1, isMobile_);
}
for (int i = 0; i < brand_.size(); i++) {
output.writeMessage(2, brand_.get(i));
}
if (!getArchitectureBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, architecture_);
}
if (!getModelBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, model_);
}
if (!getPlatformBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, platform_);
}
if (!getPlatformVersionBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, platformVersion_);
}
if (!getUaFullVersionBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, uaFullVersion_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (isMobile_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, isMobile_);
}
for (int i = 0; i < brand_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, brand_.get(i));
}
if (!getArchitectureBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, architecture_);
}
if (!getModelBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, model_);
}
if (!getPlatformBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, platform_);
}
if (!getPlatformVersionBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, platformVersion_);
}
if (!getUaFullVersionBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, uaFullVersion_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ai.promoted.proto.common.ClientHints)) {
return super.equals(obj);
}
ai.promoted.proto.common.ClientHints other = (ai.promoted.proto.common.ClientHints) obj;
if (getIsMobile()
!= other.getIsMobile()) return false;
if (!getBrandList()
.equals(other.getBrandList())) return false;
if (!getArchitecture()
.equals(other.getArchitecture())) return false;
if (!getModel()
.equals(other.getModel())) return false;
if (!getPlatform()
.equals(other.getPlatform())) return false;
if (!getPlatformVersion()
.equals(other.getPlatformVersion())) return false;
if (!getUaFullVersion()
.equals(other.getUaFullVersion())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + IS_MOBILE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsMobile());
if (getBrandCount() > 0) {
hash = (37 * hash) + BRAND_FIELD_NUMBER;
hash = (53 * hash) + getBrandList().hashCode();
}
hash = (37 * hash) + ARCHITECTURE_FIELD_NUMBER;
hash = (53 * hash) + getArchitecture().hashCode();
hash = (37 * hash) + MODEL_FIELD_NUMBER;
hash = (53 * hash) + getModel().hashCode();
hash = (37 * hash) + PLATFORM_FIELD_NUMBER;
hash = (53 * hash) + getPlatform().hashCode();
hash = (37 * hash) + PLATFORM_VERSION_FIELD_NUMBER;
hash = (53 * hash) + getPlatformVersion().hashCode();
hash = (37 * hash) + UA_FULL_VERSION_FIELD_NUMBER;
hash = (53 * hash) + getUaFullVersion().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.promoted.proto.common.ClientHints parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.promoted.proto.common.ClientHints parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.promoted.proto.common.ClientHints parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.promoted.proto.common.ClientHints parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.promoted.proto.common.ClientHints parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.promoted.proto.common.ClientHints parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.promoted.proto.common.ClientHints parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.promoted.proto.common.ClientHints parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static ai.promoted.proto.common.ClientHints parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.promoted.proto.common.ClientHints parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static ai.promoted.proto.common.ClientHints parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.promoted.proto.common.ClientHints parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(ai.promoted.proto.common.ClientHints prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code common.ClientHints}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:common.ClientHints)
ai.promoted.proto.common.ClientHintsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.promoted.proto.common.CommonProto.internal_static_common_ClientHints_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.promoted.proto.common.CommonProto.internal_static_common_ClientHints_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.promoted.proto.common.ClientHints.class, ai.promoted.proto.common.ClientHints.Builder.class);
}
// Construct using ai.promoted.proto.common.ClientHints.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getBrandFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
isMobile_ = false;
if (brandBuilder_ == null) {
brand_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
brandBuilder_.clear();
}
architecture_ = "";
model_ = "";
platform_ = "";
platformVersion_ = "";
uaFullVersion_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.promoted.proto.common.CommonProto.internal_static_common_ClientHints_descriptor;
}
@java.lang.Override
public ai.promoted.proto.common.ClientHints getDefaultInstanceForType() {
return ai.promoted.proto.common.ClientHints.getDefaultInstance();
}
@java.lang.Override
public ai.promoted.proto.common.ClientHints build() {
ai.promoted.proto.common.ClientHints result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.promoted.proto.common.ClientHints buildPartial() {
ai.promoted.proto.common.ClientHints result = new ai.promoted.proto.common.ClientHints(this);
int from_bitField0_ = bitField0_;
result.isMobile_ = isMobile_;
if (brandBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
brand_ = java.util.Collections.unmodifiableList(brand_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.brand_ = brand_;
} else {
result.brand_ = brandBuilder_.build();
}
result.architecture_ = architecture_;
result.model_ = model_;
result.platform_ = platform_;
result.platformVersion_ = platformVersion_;
result.uaFullVersion_ = uaFullVersion_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.promoted.proto.common.ClientHints) {
return mergeFrom((ai.promoted.proto.common.ClientHints)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.promoted.proto.common.ClientHints other) {
if (other == ai.promoted.proto.common.ClientHints.getDefaultInstance()) return this;
if (other.getIsMobile() != false) {
setIsMobile(other.getIsMobile());
}
if (brandBuilder_ == null) {
if (!other.brand_.isEmpty()) {
if (brand_.isEmpty()) {
brand_ = other.brand_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureBrandIsMutable();
brand_.addAll(other.brand_);
}
onChanged();
}
} else {
if (!other.brand_.isEmpty()) {
if (brandBuilder_.isEmpty()) {
brandBuilder_.dispose();
brandBuilder_ = null;
brand_ = other.brand_;
bitField0_ = (bitField0_ & ~0x00000001);
brandBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getBrandFieldBuilder() : null;
} else {
brandBuilder_.addAllMessages(other.brand_);
}
}
}
if (!other.getArchitecture().isEmpty()) {
architecture_ = other.architecture_;
onChanged();
}
if (!other.getModel().isEmpty()) {
model_ = other.model_;
onChanged();
}
if (!other.getPlatform().isEmpty()) {
platform_ = other.platform_;
onChanged();
}
if (!other.getPlatformVersion().isEmpty()) {
platformVersion_ = other.platformVersion_;
onChanged();
}
if (!other.getUaFullVersion().isEmpty()) {
uaFullVersion_ = other.uaFullVersion_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ai.promoted.proto.common.ClientHints parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ai.promoted.proto.common.ClientHints) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private boolean isMobile_ ;
/**
* bool is_mobile = 1 [json_name = "isMobile"];
* @return The isMobile.
*/
@java.lang.Override
public boolean getIsMobile() {
return isMobile_;
}
/**
* bool is_mobile = 1 [json_name = "isMobile"];
* @param value The isMobile to set.
* @return This builder for chaining.
*/
public Builder setIsMobile(boolean value) {
isMobile_ = value;
onChanged();
return this;
}
/**
* bool is_mobile = 1 [json_name = "isMobile"];
* @return This builder for chaining.
*/
public Builder clearIsMobile() {
isMobile_ = false;
onChanged();
return this;
}
private java.util.List brand_ =
java.util.Collections.emptyList();
private void ensureBrandIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
brand_ = new java.util.ArrayList(brand_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ai.promoted.proto.common.ClientHintBrand, ai.promoted.proto.common.ClientHintBrand.Builder, ai.promoted.proto.common.ClientHintBrandOrBuilder> brandBuilder_;
/**
* repeated .common.ClientHintBrand brand = 2 [json_name = "brand"];
*/
public java.util.List getBrandList() {
if (brandBuilder_ == null) {
return java.util.Collections.unmodifiableList(brand_);
} else {
return brandBuilder_.getMessageList();
}
}
/**
* repeated .common.ClientHintBrand brand = 2 [json_name = "brand"];
*/
public int getBrandCount() {
if (brandBuilder_ == null) {
return brand_.size();
} else {
return brandBuilder_.getCount();
}
}
/**
* repeated .common.ClientHintBrand brand = 2 [json_name = "brand"];
*/
public ai.promoted.proto.common.ClientHintBrand getBrand(int index) {
if (brandBuilder_ == null) {
return brand_.get(index);
} else {
return brandBuilder_.getMessage(index);
}
}
/**
* repeated .common.ClientHintBrand brand = 2 [json_name = "brand"];
*/
public Builder setBrand(
int index, ai.promoted.proto.common.ClientHintBrand value) {
if (brandBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBrandIsMutable();
brand_.set(index, value);
onChanged();
} else {
brandBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .common.ClientHintBrand brand = 2 [json_name = "brand"];
*/
public Builder setBrand(
int index, ai.promoted.proto.common.ClientHintBrand.Builder builderForValue) {
if (brandBuilder_ == null) {
ensureBrandIsMutable();
brand_.set(index, builderForValue.build());
onChanged();
} else {
brandBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .common.ClientHintBrand brand = 2 [json_name = "brand"];
*/
public Builder addBrand(ai.promoted.proto.common.ClientHintBrand value) {
if (brandBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBrandIsMutable();
brand_.add(value);
onChanged();
} else {
brandBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .common.ClientHintBrand brand = 2 [json_name = "brand"];
*/
public Builder addBrand(
int index, ai.promoted.proto.common.ClientHintBrand value) {
if (brandBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBrandIsMutable();
brand_.add(index, value);
onChanged();
} else {
brandBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .common.ClientHintBrand brand = 2 [json_name = "brand"];
*/
public Builder addBrand(
ai.promoted.proto.common.ClientHintBrand.Builder builderForValue) {
if (brandBuilder_ == null) {
ensureBrandIsMutable();
brand_.add(builderForValue.build());
onChanged();
} else {
brandBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .common.ClientHintBrand brand = 2 [json_name = "brand"];
*/
public Builder addBrand(
int index, ai.promoted.proto.common.ClientHintBrand.Builder builderForValue) {
if (brandBuilder_ == null) {
ensureBrandIsMutable();
brand_.add(index, builderForValue.build());
onChanged();
} else {
brandBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .common.ClientHintBrand brand = 2 [json_name = "brand"];
*/
public Builder addAllBrand(
java.lang.Iterable extends ai.promoted.proto.common.ClientHintBrand> values) {
if (brandBuilder_ == null) {
ensureBrandIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, brand_);
onChanged();
} else {
brandBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .common.ClientHintBrand brand = 2 [json_name = "brand"];
*/
public Builder clearBrand() {
if (brandBuilder_ == null) {
brand_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
brandBuilder_.clear();
}
return this;
}
/**
* repeated .common.ClientHintBrand brand = 2 [json_name = "brand"];
*/
public Builder removeBrand(int index) {
if (brandBuilder_ == null) {
ensureBrandIsMutable();
brand_.remove(index);
onChanged();
} else {
brandBuilder_.remove(index);
}
return this;
}
/**
* repeated .common.ClientHintBrand brand = 2 [json_name = "brand"];
*/
public ai.promoted.proto.common.ClientHintBrand.Builder getBrandBuilder(
int index) {
return getBrandFieldBuilder().getBuilder(index);
}
/**
* repeated .common.ClientHintBrand brand = 2 [json_name = "brand"];
*/
public ai.promoted.proto.common.ClientHintBrandOrBuilder getBrandOrBuilder(
int index) {
if (brandBuilder_ == null) {
return brand_.get(index); } else {
return brandBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .common.ClientHintBrand brand = 2 [json_name = "brand"];
*/
public java.util.List extends ai.promoted.proto.common.ClientHintBrandOrBuilder>
getBrandOrBuilderList() {
if (brandBuilder_ != null) {
return brandBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(brand_);
}
}
/**
* repeated .common.ClientHintBrand brand = 2 [json_name = "brand"];
*/
public ai.promoted.proto.common.ClientHintBrand.Builder addBrandBuilder() {
return getBrandFieldBuilder().addBuilder(
ai.promoted.proto.common.ClientHintBrand.getDefaultInstance());
}
/**
* repeated .common.ClientHintBrand brand = 2 [json_name = "brand"];
*/
public ai.promoted.proto.common.ClientHintBrand.Builder addBrandBuilder(
int index) {
return getBrandFieldBuilder().addBuilder(
index, ai.promoted.proto.common.ClientHintBrand.getDefaultInstance());
}
/**
* repeated .common.ClientHintBrand brand = 2 [json_name = "brand"];
*/
public java.util.List
getBrandBuilderList() {
return getBrandFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ai.promoted.proto.common.ClientHintBrand, ai.promoted.proto.common.ClientHintBrand.Builder, ai.promoted.proto.common.ClientHintBrandOrBuilder>
getBrandFieldBuilder() {
if (brandBuilder_ == null) {
brandBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
ai.promoted.proto.common.ClientHintBrand, ai.promoted.proto.common.ClientHintBrand.Builder, ai.promoted.proto.common.ClientHintBrandOrBuilder>(
brand_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
brand_ = null;
}
return brandBuilder_;
}
private java.lang.Object architecture_ = "";
/**
* string architecture = 3 [json_name = "architecture"];
* @return The architecture.
*/
public java.lang.String getArchitecture() {
java.lang.Object ref = architecture_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
architecture_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string architecture = 3 [json_name = "architecture"];
* @return The bytes for architecture.
*/
public com.google.protobuf.ByteString
getArchitectureBytes() {
java.lang.Object ref = architecture_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
architecture_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string architecture = 3 [json_name = "architecture"];
* @param value The architecture to set.
* @return This builder for chaining.
*/
public Builder setArchitecture(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
architecture_ = value;
onChanged();
return this;
}
/**
* string architecture = 3 [json_name = "architecture"];
* @return This builder for chaining.
*/
public Builder clearArchitecture() {
architecture_ = getDefaultInstance().getArchitecture();
onChanged();
return this;
}
/**
* string architecture = 3 [json_name = "architecture"];
* @param value The bytes for architecture to set.
* @return This builder for chaining.
*/
public Builder setArchitectureBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
architecture_ = value;
onChanged();
return this;
}
private java.lang.Object model_ = "";
/**
* string model = 4 [json_name = "model"];
* @return The model.
*/
public java.lang.String getModel() {
java.lang.Object ref = model_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
model_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string model = 4 [json_name = "model"];
* @return The bytes for model.
*/
public com.google.protobuf.ByteString
getModelBytes() {
java.lang.Object ref = model_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
model_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string model = 4 [json_name = "model"];
* @param value The model to set.
* @return This builder for chaining.
*/
public Builder setModel(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
model_ = value;
onChanged();
return this;
}
/**
* string model = 4 [json_name = "model"];
* @return This builder for chaining.
*/
public Builder clearModel() {
model_ = getDefaultInstance().getModel();
onChanged();
return this;
}
/**
* string model = 4 [json_name = "model"];
* @param value The bytes for model to set.
* @return This builder for chaining.
*/
public Builder setModelBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
model_ = value;
onChanged();
return this;
}
private java.lang.Object platform_ = "";
/**
* string platform = 5 [json_name = "platform"];
* @return The platform.
*/
public java.lang.String getPlatform() {
java.lang.Object ref = platform_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
platform_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string platform = 5 [json_name = "platform"];
* @return The bytes for platform.
*/
public com.google.protobuf.ByteString
getPlatformBytes() {
java.lang.Object ref = platform_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
platform_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string platform = 5 [json_name = "platform"];
* @param value The platform to set.
* @return This builder for chaining.
*/
public Builder setPlatform(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
platform_ = value;
onChanged();
return this;
}
/**
* string platform = 5 [json_name = "platform"];
* @return This builder for chaining.
*/
public Builder clearPlatform() {
platform_ = getDefaultInstance().getPlatform();
onChanged();
return this;
}
/**
* string platform = 5 [json_name = "platform"];
* @param value The bytes for platform to set.
* @return This builder for chaining.
*/
public Builder setPlatformBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
platform_ = value;
onChanged();
return this;
}
private java.lang.Object platformVersion_ = "";
/**
* string platform_version = 6 [json_name = "platformVersion"];
* @return The platformVersion.
*/
public java.lang.String getPlatformVersion() {
java.lang.Object ref = platformVersion_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
platformVersion_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string platform_version = 6 [json_name = "platformVersion"];
* @return The bytes for platformVersion.
*/
public com.google.protobuf.ByteString
getPlatformVersionBytes() {
java.lang.Object ref = platformVersion_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
platformVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string platform_version = 6 [json_name = "platformVersion"];
* @param value The platformVersion to set.
* @return This builder for chaining.
*/
public Builder setPlatformVersion(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
platformVersion_ = value;
onChanged();
return this;
}
/**
* string platform_version = 6 [json_name = "platformVersion"];
* @return This builder for chaining.
*/
public Builder clearPlatformVersion() {
platformVersion_ = getDefaultInstance().getPlatformVersion();
onChanged();
return this;
}
/**
* string platform_version = 6 [json_name = "platformVersion"];
* @param value The bytes for platformVersion to set.
* @return This builder for chaining.
*/
public Builder setPlatformVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
platformVersion_ = value;
onChanged();
return this;
}
private java.lang.Object uaFullVersion_ = "";
/**
* string ua_full_version = 7 [json_name = "uaFullVersion"];
* @return The uaFullVersion.
*/
public java.lang.String getUaFullVersion() {
java.lang.Object ref = uaFullVersion_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
uaFullVersion_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string ua_full_version = 7 [json_name = "uaFullVersion"];
* @return The bytes for uaFullVersion.
*/
public com.google.protobuf.ByteString
getUaFullVersionBytes() {
java.lang.Object ref = uaFullVersion_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
uaFullVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string ua_full_version = 7 [json_name = "uaFullVersion"];
* @param value The uaFullVersion to set.
* @return This builder for chaining.
*/
public Builder setUaFullVersion(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
uaFullVersion_ = value;
onChanged();
return this;
}
/**
* string ua_full_version = 7 [json_name = "uaFullVersion"];
* @return This builder for chaining.
*/
public Builder clearUaFullVersion() {
uaFullVersion_ = getDefaultInstance().getUaFullVersion();
onChanged();
return this;
}
/**
* string ua_full_version = 7 [json_name = "uaFullVersion"];
* @param value The bytes for uaFullVersion to set.
* @return This builder for chaining.
*/
public Builder setUaFullVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
uaFullVersion_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:common.ClientHints)
}
// @@protoc_insertion_point(class_scope:common.ClientHints)
private static final ai.promoted.proto.common.ClientHints DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.promoted.proto.common.ClientHints();
}
public static ai.promoted.proto.common.ClientHints getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ClientHints parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ClientHints(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.promoted.proto.common.ClientHints getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy