ai.promoted.proto.common.Browser 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.Browser}
*/
public final class Browser extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:common.Browser)
BrowserOrBuilder {
private static final long serialVersionUID = 0L;
// Use Browser.newBuilder() to construct.
private Browser(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Browser() {
userAgent_ = "";
referrer_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Browser();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Browser(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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 10: {
java.lang.String s = input.readStringRequireUtf8();
userAgent_ = s;
break;
}
case 18: {
ai.promoted.proto.common.Size.Builder subBuilder = null;
if (viewportSize_ != null) {
subBuilder = viewportSize_.toBuilder();
}
viewportSize_ = input.readMessage(ai.promoted.proto.common.Size.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(viewportSize_);
viewportSize_ = subBuilder.buildPartial();
}
break;
}
case 26: {
ai.promoted.proto.common.ClientHints.Builder subBuilder = null;
if (clientHints_ != null) {
subBuilder = clientHints_.toBuilder();
}
clientHints_ = input.readMessage(ai.promoted.proto.common.ClientHints.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(clientHints_);
clientHints_ = subBuilder.buildPartial();
}
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
referrer_ = 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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.promoted.proto.common.CommonProto.internal_static_common_Browser_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.promoted.proto.common.CommonProto.internal_static_common_Browser_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.promoted.proto.common.Browser.class, ai.promoted.proto.common.Browser.Builder.class);
}
public static final int USER_AGENT_FIELD_NUMBER = 1;
private volatile java.lang.Object userAgent_;
/**
* string user_agent = 1 [json_name = "userAgent"];
* @return The userAgent.
*/
@java.lang.Override
public java.lang.String getUserAgent() {
java.lang.Object ref = userAgent_;
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();
userAgent_ = s;
return s;
}
}
/**
* string user_agent = 1 [json_name = "userAgent"];
* @return The bytes for userAgent.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUserAgentBytes() {
java.lang.Object ref = userAgent_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userAgent_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VIEWPORT_SIZE_FIELD_NUMBER = 2;
private ai.promoted.proto.common.Size viewportSize_;
/**
* .common.Size viewport_size = 2 [json_name = "viewportSize"];
* @return Whether the viewportSize field is set.
*/
@java.lang.Override
public boolean hasViewportSize() {
return viewportSize_ != null;
}
/**
* .common.Size viewport_size = 2 [json_name = "viewportSize"];
* @return The viewportSize.
*/
@java.lang.Override
public ai.promoted.proto.common.Size getViewportSize() {
return viewportSize_ == null ? ai.promoted.proto.common.Size.getDefaultInstance() : viewportSize_;
}
/**
* .common.Size viewport_size = 2 [json_name = "viewportSize"];
*/
@java.lang.Override
public ai.promoted.proto.common.SizeOrBuilder getViewportSizeOrBuilder() {
return getViewportSize();
}
public static final int CLIENT_HINTS_FIELD_NUMBER = 3;
private ai.promoted.proto.common.ClientHints clientHints_;
/**
* .common.ClientHints client_hints = 3 [json_name = "clientHints"];
* @return Whether the clientHints field is set.
*/
@java.lang.Override
public boolean hasClientHints() {
return clientHints_ != null;
}
/**
* .common.ClientHints client_hints = 3 [json_name = "clientHints"];
* @return The clientHints.
*/
@java.lang.Override
public ai.promoted.proto.common.ClientHints getClientHints() {
return clientHints_ == null ? ai.promoted.proto.common.ClientHints.getDefaultInstance() : clientHints_;
}
/**
* .common.ClientHints client_hints = 3 [json_name = "clientHints"];
*/
@java.lang.Override
public ai.promoted.proto.common.ClientHintsOrBuilder getClientHintsOrBuilder() {
return getClientHints();
}
public static final int REFERRER_FIELD_NUMBER = 4;
private volatile java.lang.Object referrer_;
/**
* string referrer = 4 [json_name = "referrer"];
* @return The referrer.
*/
@java.lang.Override
public java.lang.String getReferrer() {
java.lang.Object ref = referrer_;
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();
referrer_ = s;
return s;
}
}
/**
* string referrer = 4 [json_name = "referrer"];
* @return The bytes for referrer.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getReferrerBytes() {
java.lang.Object ref = referrer_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
referrer_ = 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 (!getUserAgentBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, userAgent_);
}
if (viewportSize_ != null) {
output.writeMessage(2, getViewportSize());
}
if (clientHints_ != null) {
output.writeMessage(3, getClientHints());
}
if (!getReferrerBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, referrer_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getUserAgentBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, userAgent_);
}
if (viewportSize_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getViewportSize());
}
if (clientHints_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getClientHints());
}
if (!getReferrerBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, referrer_);
}
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.Browser)) {
return super.equals(obj);
}
ai.promoted.proto.common.Browser other = (ai.promoted.proto.common.Browser) obj;
if (!getUserAgent()
.equals(other.getUserAgent())) return false;
if (hasViewportSize() != other.hasViewportSize()) return false;
if (hasViewportSize()) {
if (!getViewportSize()
.equals(other.getViewportSize())) return false;
}
if (hasClientHints() != other.hasClientHints()) return false;
if (hasClientHints()) {
if (!getClientHints()
.equals(other.getClientHints())) return false;
}
if (!getReferrer()
.equals(other.getReferrer())) 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) + USER_AGENT_FIELD_NUMBER;
hash = (53 * hash) + getUserAgent().hashCode();
if (hasViewportSize()) {
hash = (37 * hash) + VIEWPORT_SIZE_FIELD_NUMBER;
hash = (53 * hash) + getViewportSize().hashCode();
}
if (hasClientHints()) {
hash = (37 * hash) + CLIENT_HINTS_FIELD_NUMBER;
hash = (53 * hash) + getClientHints().hashCode();
}
hash = (37 * hash) + REFERRER_FIELD_NUMBER;
hash = (53 * hash) + getReferrer().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.promoted.proto.common.Browser parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.promoted.proto.common.Browser 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.Browser parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.promoted.proto.common.Browser 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.Browser parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.promoted.proto.common.Browser parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.promoted.proto.common.Browser parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.promoted.proto.common.Browser 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.Browser parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.promoted.proto.common.Browser 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.Browser parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.promoted.proto.common.Browser 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.Browser 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.Browser}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:common.Browser)
ai.promoted.proto.common.BrowserOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.promoted.proto.common.CommonProto.internal_static_common_Browser_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.promoted.proto.common.CommonProto.internal_static_common_Browser_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.promoted.proto.common.Browser.class, ai.promoted.proto.common.Browser.Builder.class);
}
// Construct using ai.promoted.proto.common.Browser.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
userAgent_ = "";
if (viewportSizeBuilder_ == null) {
viewportSize_ = null;
} else {
viewportSize_ = null;
viewportSizeBuilder_ = null;
}
if (clientHintsBuilder_ == null) {
clientHints_ = null;
} else {
clientHints_ = null;
clientHintsBuilder_ = null;
}
referrer_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.promoted.proto.common.CommonProto.internal_static_common_Browser_descriptor;
}
@java.lang.Override
public ai.promoted.proto.common.Browser getDefaultInstanceForType() {
return ai.promoted.proto.common.Browser.getDefaultInstance();
}
@java.lang.Override
public ai.promoted.proto.common.Browser build() {
ai.promoted.proto.common.Browser result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.promoted.proto.common.Browser buildPartial() {
ai.promoted.proto.common.Browser result = new ai.promoted.proto.common.Browser(this);
result.userAgent_ = userAgent_;
if (viewportSizeBuilder_ == null) {
result.viewportSize_ = viewportSize_;
} else {
result.viewportSize_ = viewportSizeBuilder_.build();
}
if (clientHintsBuilder_ == null) {
result.clientHints_ = clientHints_;
} else {
result.clientHints_ = clientHintsBuilder_.build();
}
result.referrer_ = referrer_;
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.Browser) {
return mergeFrom((ai.promoted.proto.common.Browser)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.promoted.proto.common.Browser other) {
if (other == ai.promoted.proto.common.Browser.getDefaultInstance()) return this;
if (!other.getUserAgent().isEmpty()) {
userAgent_ = other.userAgent_;
onChanged();
}
if (other.hasViewportSize()) {
mergeViewportSize(other.getViewportSize());
}
if (other.hasClientHints()) {
mergeClientHints(other.getClientHints());
}
if (!other.getReferrer().isEmpty()) {
referrer_ = other.referrer_;
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.Browser parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ai.promoted.proto.common.Browser) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object userAgent_ = "";
/**
* string user_agent = 1 [json_name = "userAgent"];
* @return The userAgent.
*/
public java.lang.String getUserAgent() {
java.lang.Object ref = userAgent_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
userAgent_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string user_agent = 1 [json_name = "userAgent"];
* @return The bytes for userAgent.
*/
public com.google.protobuf.ByteString
getUserAgentBytes() {
java.lang.Object ref = userAgent_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userAgent_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string user_agent = 1 [json_name = "userAgent"];
* @param value The userAgent to set.
* @return This builder for chaining.
*/
public Builder setUserAgent(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
userAgent_ = value;
onChanged();
return this;
}
/**
* string user_agent = 1 [json_name = "userAgent"];
* @return This builder for chaining.
*/
public Builder clearUserAgent() {
userAgent_ = getDefaultInstance().getUserAgent();
onChanged();
return this;
}
/**
* string user_agent = 1 [json_name = "userAgent"];
* @param value The bytes for userAgent to set.
* @return This builder for chaining.
*/
public Builder setUserAgentBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
userAgent_ = value;
onChanged();
return this;
}
private ai.promoted.proto.common.Size viewportSize_;
private com.google.protobuf.SingleFieldBuilderV3<
ai.promoted.proto.common.Size, ai.promoted.proto.common.Size.Builder, ai.promoted.proto.common.SizeOrBuilder> viewportSizeBuilder_;
/**
* .common.Size viewport_size = 2 [json_name = "viewportSize"];
* @return Whether the viewportSize field is set.
*/
public boolean hasViewportSize() {
return viewportSizeBuilder_ != null || viewportSize_ != null;
}
/**
* .common.Size viewport_size = 2 [json_name = "viewportSize"];
* @return The viewportSize.
*/
public ai.promoted.proto.common.Size getViewportSize() {
if (viewportSizeBuilder_ == null) {
return viewportSize_ == null ? ai.promoted.proto.common.Size.getDefaultInstance() : viewportSize_;
} else {
return viewportSizeBuilder_.getMessage();
}
}
/**
* .common.Size viewport_size = 2 [json_name = "viewportSize"];
*/
public Builder setViewportSize(ai.promoted.proto.common.Size value) {
if (viewportSizeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
viewportSize_ = value;
onChanged();
} else {
viewportSizeBuilder_.setMessage(value);
}
return this;
}
/**
* .common.Size viewport_size = 2 [json_name = "viewportSize"];
*/
public Builder setViewportSize(
ai.promoted.proto.common.Size.Builder builderForValue) {
if (viewportSizeBuilder_ == null) {
viewportSize_ = builderForValue.build();
onChanged();
} else {
viewportSizeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .common.Size viewport_size = 2 [json_name = "viewportSize"];
*/
public Builder mergeViewportSize(ai.promoted.proto.common.Size value) {
if (viewportSizeBuilder_ == null) {
if (viewportSize_ != null) {
viewportSize_ =
ai.promoted.proto.common.Size.newBuilder(viewportSize_).mergeFrom(value).buildPartial();
} else {
viewportSize_ = value;
}
onChanged();
} else {
viewportSizeBuilder_.mergeFrom(value);
}
return this;
}
/**
* .common.Size viewport_size = 2 [json_name = "viewportSize"];
*/
public Builder clearViewportSize() {
if (viewportSizeBuilder_ == null) {
viewportSize_ = null;
onChanged();
} else {
viewportSize_ = null;
viewportSizeBuilder_ = null;
}
return this;
}
/**
* .common.Size viewport_size = 2 [json_name = "viewportSize"];
*/
public ai.promoted.proto.common.Size.Builder getViewportSizeBuilder() {
onChanged();
return getViewportSizeFieldBuilder().getBuilder();
}
/**
* .common.Size viewport_size = 2 [json_name = "viewportSize"];
*/
public ai.promoted.proto.common.SizeOrBuilder getViewportSizeOrBuilder() {
if (viewportSizeBuilder_ != null) {
return viewportSizeBuilder_.getMessageOrBuilder();
} else {
return viewportSize_ == null ?
ai.promoted.proto.common.Size.getDefaultInstance() : viewportSize_;
}
}
/**
* .common.Size viewport_size = 2 [json_name = "viewportSize"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.promoted.proto.common.Size, ai.promoted.proto.common.Size.Builder, ai.promoted.proto.common.SizeOrBuilder>
getViewportSizeFieldBuilder() {
if (viewportSizeBuilder_ == null) {
viewportSizeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.promoted.proto.common.Size, ai.promoted.proto.common.Size.Builder, ai.promoted.proto.common.SizeOrBuilder>(
getViewportSize(),
getParentForChildren(),
isClean());
viewportSize_ = null;
}
return viewportSizeBuilder_;
}
private ai.promoted.proto.common.ClientHints clientHints_;
private com.google.protobuf.SingleFieldBuilderV3<
ai.promoted.proto.common.ClientHints, ai.promoted.proto.common.ClientHints.Builder, ai.promoted.proto.common.ClientHintsOrBuilder> clientHintsBuilder_;
/**
* .common.ClientHints client_hints = 3 [json_name = "clientHints"];
* @return Whether the clientHints field is set.
*/
public boolean hasClientHints() {
return clientHintsBuilder_ != null || clientHints_ != null;
}
/**
* .common.ClientHints client_hints = 3 [json_name = "clientHints"];
* @return The clientHints.
*/
public ai.promoted.proto.common.ClientHints getClientHints() {
if (clientHintsBuilder_ == null) {
return clientHints_ == null ? ai.promoted.proto.common.ClientHints.getDefaultInstance() : clientHints_;
} else {
return clientHintsBuilder_.getMessage();
}
}
/**
* .common.ClientHints client_hints = 3 [json_name = "clientHints"];
*/
public Builder setClientHints(ai.promoted.proto.common.ClientHints value) {
if (clientHintsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
clientHints_ = value;
onChanged();
} else {
clientHintsBuilder_.setMessage(value);
}
return this;
}
/**
* .common.ClientHints client_hints = 3 [json_name = "clientHints"];
*/
public Builder setClientHints(
ai.promoted.proto.common.ClientHints.Builder builderForValue) {
if (clientHintsBuilder_ == null) {
clientHints_ = builderForValue.build();
onChanged();
} else {
clientHintsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .common.ClientHints client_hints = 3 [json_name = "clientHints"];
*/
public Builder mergeClientHints(ai.promoted.proto.common.ClientHints value) {
if (clientHintsBuilder_ == null) {
if (clientHints_ != null) {
clientHints_ =
ai.promoted.proto.common.ClientHints.newBuilder(clientHints_).mergeFrom(value).buildPartial();
} else {
clientHints_ = value;
}
onChanged();
} else {
clientHintsBuilder_.mergeFrom(value);
}
return this;
}
/**
* .common.ClientHints client_hints = 3 [json_name = "clientHints"];
*/
public Builder clearClientHints() {
if (clientHintsBuilder_ == null) {
clientHints_ = null;
onChanged();
} else {
clientHints_ = null;
clientHintsBuilder_ = null;
}
return this;
}
/**
* .common.ClientHints client_hints = 3 [json_name = "clientHints"];
*/
public ai.promoted.proto.common.ClientHints.Builder getClientHintsBuilder() {
onChanged();
return getClientHintsFieldBuilder().getBuilder();
}
/**
* .common.ClientHints client_hints = 3 [json_name = "clientHints"];
*/
public ai.promoted.proto.common.ClientHintsOrBuilder getClientHintsOrBuilder() {
if (clientHintsBuilder_ != null) {
return clientHintsBuilder_.getMessageOrBuilder();
} else {
return clientHints_ == null ?
ai.promoted.proto.common.ClientHints.getDefaultInstance() : clientHints_;
}
}
/**
* .common.ClientHints client_hints = 3 [json_name = "clientHints"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.promoted.proto.common.ClientHints, ai.promoted.proto.common.ClientHints.Builder, ai.promoted.proto.common.ClientHintsOrBuilder>
getClientHintsFieldBuilder() {
if (clientHintsBuilder_ == null) {
clientHintsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.promoted.proto.common.ClientHints, ai.promoted.proto.common.ClientHints.Builder, ai.promoted.proto.common.ClientHintsOrBuilder>(
getClientHints(),
getParentForChildren(),
isClean());
clientHints_ = null;
}
return clientHintsBuilder_;
}
private java.lang.Object referrer_ = "";
/**
* string referrer = 4 [json_name = "referrer"];
* @return The referrer.
*/
public java.lang.String getReferrer() {
java.lang.Object ref = referrer_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
referrer_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string referrer = 4 [json_name = "referrer"];
* @return The bytes for referrer.
*/
public com.google.protobuf.ByteString
getReferrerBytes() {
java.lang.Object ref = referrer_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
referrer_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string referrer = 4 [json_name = "referrer"];
* @param value The referrer to set.
* @return This builder for chaining.
*/
public Builder setReferrer(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
referrer_ = value;
onChanged();
return this;
}
/**
* string referrer = 4 [json_name = "referrer"];
* @return This builder for chaining.
*/
public Builder clearReferrer() {
referrer_ = getDefaultInstance().getReferrer();
onChanged();
return this;
}
/**
* string referrer = 4 [json_name = "referrer"];
* @param value The bytes for referrer to set.
* @return This builder for chaining.
*/
public Builder setReferrerBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
referrer_ = 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.Browser)
}
// @@protoc_insertion_point(class_scope:common.Browser)
private static final ai.promoted.proto.common.Browser DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.promoted.proto.common.Browser();
}
public static ai.promoted.proto.common.Browser getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Browser parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Browser(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.Browser getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy