Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
*
* .clarifai.api.TextInfo text_info = 5;
*/
@java.lang.Override
public com.clarifai.grpc.api.TextInfoOrBuilder getTextInfoOrBuilder() {
return getTextInfo();
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(raw_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, raw_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, url_);
}
if (allowDuplicateUrl_ != false) {
output.writeBool(3, allowDuplicateUrl_);
}
if (hosted_ != null) {
output.writeMessage(4, getHosted());
}
if (textInfo_ != null) {
output.writeMessage(5, getTextInfo());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(raw_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, raw_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, url_);
}
if (allowDuplicateUrl_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, allowDuplicateUrl_);
}
if (hosted_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getHosted());
}
if (textInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getTextInfo());
}
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 com.clarifai.grpc.api.Text)) {
return super.equals(obj);
}
com.clarifai.grpc.api.Text other = (com.clarifai.grpc.api.Text) obj;
if (!getRaw()
.equals(other.getRaw())) return false;
if (!getUrl()
.equals(other.getUrl())) return false;
if (getAllowDuplicateUrl()
!= other.getAllowDuplicateUrl()) return false;
if (hasHosted() != other.hasHosted()) return false;
if (hasHosted()) {
if (!getHosted()
.equals(other.getHosted())) return false;
}
if (hasTextInfo() != other.hasTextInfo()) return false;
if (hasTextInfo()) {
if (!getTextInfo()
.equals(other.getTextInfo())) 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) + RAW_FIELD_NUMBER;
hash = (53 * hash) + getRaw().hashCode();
hash = (37 * hash) + URL_FIELD_NUMBER;
hash = (53 * hash) + getUrl().hashCode();
hash = (37 * hash) + ALLOW_DUPLICATE_URL_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getAllowDuplicateUrl());
if (hasHosted()) {
hash = (37 * hash) + HOSTED_FIELD_NUMBER;
hash = (53 * hash) + getHosted().hashCode();
}
if (hasTextInfo()) {
hash = (37 * hash) + TEXT_INFO_FIELD_NUMBER;
hash = (53 * hash) + getTextInfo().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.clarifai.grpc.api.Text parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.Text parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.clarifai.grpc.api.Text parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.Text parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.clarifai.grpc.api.Text parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.Text parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.clarifai.grpc.api.Text parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.Text 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 com.clarifai.grpc.api.Text parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.Text 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 com.clarifai.grpc.api.Text parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.Text 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(com.clarifai.grpc.api.Text 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;
}
/**
*
* Text
*
*
* Protobuf type {@code clarifai.api.Text}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:clarifai.api.Text)
com.clarifai.grpc.api.TextOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Text_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Text_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.clarifai.grpc.api.Text.class, com.clarifai.grpc.api.Text.Builder.class);
}
// Construct using com.clarifai.grpc.api.Text.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();
raw_ = "";
url_ = "";
allowDuplicateUrl_ = false;
if (hostedBuilder_ == null) {
hosted_ = null;
} else {
hosted_ = null;
hostedBuilder_ = null;
}
if (textInfoBuilder_ == null) {
textInfo_ = null;
} else {
textInfo_ = null;
textInfoBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Text_descriptor;
}
@java.lang.Override
public com.clarifai.grpc.api.Text getDefaultInstanceForType() {
return com.clarifai.grpc.api.Text.getDefaultInstance();
}
@java.lang.Override
public com.clarifai.grpc.api.Text build() {
com.clarifai.grpc.api.Text result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.clarifai.grpc.api.Text buildPartial() {
com.clarifai.grpc.api.Text result = new com.clarifai.grpc.api.Text(this);
result.raw_ = raw_;
result.url_ = url_;
result.allowDuplicateUrl_ = allowDuplicateUrl_;
if (hostedBuilder_ == null) {
result.hosted_ = hosted_;
} else {
result.hosted_ = hostedBuilder_.build();
}
if (textInfoBuilder_ == null) {
result.textInfo_ = textInfo_;
} else {
result.textInfo_ = textInfoBuilder_.build();
}
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 com.clarifai.grpc.api.Text) {
return mergeFrom((com.clarifai.grpc.api.Text)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.clarifai.grpc.api.Text other) {
if (other == com.clarifai.grpc.api.Text.getDefaultInstance()) return this;
if (!other.getRaw().isEmpty()) {
raw_ = other.raw_;
onChanged();
}
if (!other.getUrl().isEmpty()) {
url_ = other.url_;
onChanged();
}
if (other.getAllowDuplicateUrl() != false) {
setAllowDuplicateUrl(other.getAllowDuplicateUrl());
}
if (other.hasHosted()) {
mergeHosted(other.getHosted());
}
if (other.hasTextInfo()) {
mergeTextInfo(other.getTextInfo());
}
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 {
com.clarifai.grpc.api.Text parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.clarifai.grpc.api.Text) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object raw_ = "";
/**
*
* This is a raw text string.
*
*
* string raw = 1;
* @return The raw.
*/
public java.lang.String getRaw() {
java.lang.Object ref = raw_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
raw_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* This is a raw text string.
*
*
* string raw = 1;
* @return The bytes for raw.
*/
public com.google.protobuf.ByteString
getRawBytes() {
java.lang.Object ref = raw_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
raw_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* This is a raw text string.
*
*
* string raw = 1;
* @param value The raw to set.
* @return This builder for chaining.
*/
public Builder setRaw(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
raw_ = value;
onChanged();
return this;
}
/**
*
* This is a raw text string.
*
*
* string raw = 1;
* @return This builder for chaining.
*/
public Builder clearRaw() {
raw_ = getDefaultInstance().getRaw();
onChanged();
return this;
}
/**
*
* This is a raw text string.
*
*
* string raw = 1;
* @param value The bytes for raw to set.
* @return This builder for chaining.
*/
public Builder setRawBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
raw_ = value;
onChanged();
return this;
}
private java.lang.Object url_ = "";
/**
*