
com.google.cloud.visionai.v1.EventUpdate Maven / Gradle / Ivy
/*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/visionai/v1/streaming_service.proto
// Protobuf Java Version: 3.25.3
package com.google.cloud.visionai.v1;
/**
*
*
*
* The event update message.
*
*
* Protobuf type {@code google.cloud.visionai.v1.EventUpdate}
*/
public final class EventUpdate extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.EventUpdate)
EventUpdateOrBuilder {
private static final long serialVersionUID = 0L;
// Use EventUpdate.newBuilder() to construct.
private EventUpdate(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EventUpdate() {
stream_ = "";
event_ = "";
series_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new EventUpdate();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.StreamingServiceProto
.internal_static_google_cloud_visionai_v1_EventUpdate_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.StreamingServiceProto
.internal_static_google_cloud_visionai_v1_EventUpdate_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.EventUpdate.class,
com.google.cloud.visionai.v1.EventUpdate.Builder.class);
}
private int bitField0_;
public static final int STREAM_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object stream_ = "";
/**
*
*
*
* The name of the stream that the event is attached to.
*
*
* string stream = 1;
*
* @return The stream.
*/
@java.lang.Override
public java.lang.String getStream() {
java.lang.Object ref = stream_;
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();
stream_ = s;
return s;
}
}
/**
*
*
*
* The name of the stream that the event is attached to.
*
*
* string stream = 1;
*
* @return The bytes for stream.
*/
@java.lang.Override
public com.google.protobuf.ByteString getStreamBytes() {
java.lang.Object ref = stream_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
stream_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EVENT_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object event_ = "";
/**
*
*
*
* The name of the event.
*
*
* string event = 2;
*
* @return The event.
*/
@java.lang.Override
public java.lang.String getEvent() {
java.lang.Object ref = event_;
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();
event_ = s;
return s;
}
}
/**
*
*
*
* The name of the event.
*
*
* string event = 2;
*
* @return The bytes for event.
*/
@java.lang.Override
public com.google.protobuf.ByteString getEventBytes() {
java.lang.Object ref = event_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
event_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SERIES_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object series_ = "";
/**
*
*
*
* The name of the series.
*
*
* string series = 3;
*
* @return The series.
*/
@java.lang.Override
public java.lang.String getSeries() {
java.lang.Object ref = series_;
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();
series_ = s;
return s;
}
}
/**
*
*
*
* The name of the series.
*
*
* string series = 3;
*
* @return The bytes for series.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSeriesBytes() {
java.lang.Object ref = series_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
series_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int UPDATE_TIME_FIELD_NUMBER = 4;
private com.google.protobuf.Timestamp updateTime_;
/**
*
*
*
* The timestamp when the Event update happens.
*
*
* .google.protobuf.Timestamp update_time = 4;
*
* @return Whether the updateTime field is set.
*/
@java.lang.Override
public boolean hasUpdateTime() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* The timestamp when the Event update happens.
*
*
* .google.protobuf.Timestamp update_time = 4;
*
* @return The updateTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getUpdateTime() {
return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
}
/**
*
*
*
* The timestamp when the Event update happens.
*
*
* .google.protobuf.Timestamp update_time = 4;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
}
public static final int OFFSET_FIELD_NUMBER = 5;
private long offset_ = 0L;
/**
*
*
*
* The offset of the message that will be used to acknowledge of the message
* receiving.
*
*
* int64 offset = 5;
*
* @return The offset.
*/
@java.lang.Override
public long getOffset() {
return offset_;
}
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(stream_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stream_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(event_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, event_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(series_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, series_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(4, getUpdateTime());
}
if (offset_ != 0L) {
output.writeInt64(5, offset_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stream_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, stream_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(event_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, event_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(series_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, series_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime());
}
if (offset_ != 0L) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, offset_);
}
size += getUnknownFields().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.google.cloud.visionai.v1.EventUpdate)) {
return super.equals(obj);
}
com.google.cloud.visionai.v1.EventUpdate other = (com.google.cloud.visionai.v1.EventUpdate) obj;
if (!getStream().equals(other.getStream())) return false;
if (!getEvent().equals(other.getEvent())) return false;
if (!getSeries().equals(other.getSeries())) return false;
if (hasUpdateTime() != other.hasUpdateTime()) return false;
if (hasUpdateTime()) {
if (!getUpdateTime().equals(other.getUpdateTime())) return false;
}
if (getOffset() != other.getOffset()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + STREAM_FIELD_NUMBER;
hash = (53 * hash) + getStream().hashCode();
hash = (37 * hash) + EVENT_FIELD_NUMBER;
hash = (53 * hash) + getEvent().hashCode();
hash = (37 * hash) + SERIES_FIELD_NUMBER;
hash = (53 * hash) + getSeries().hashCode();
if (hasUpdateTime()) {
hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getUpdateTime().hashCode();
}
hash = (37 * hash) + OFFSET_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getOffset());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.visionai.v1.EventUpdate parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.EventUpdate parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.visionai.v1.EventUpdate parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.EventUpdate parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.visionai.v1.EventUpdate parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.EventUpdate parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.visionai.v1.EventUpdate parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.EventUpdate 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.google.cloud.visionai.v1.EventUpdate parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.EventUpdate 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.google.cloud.visionai.v1.EventUpdate parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.EventUpdate 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.google.cloud.visionai.v1.EventUpdate 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;
}
/**
*
*
*
* The event update message.
*
*
* Protobuf type {@code google.cloud.visionai.v1.EventUpdate}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.EventUpdate)
com.google.cloud.visionai.v1.EventUpdateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.StreamingServiceProto
.internal_static_google_cloud_visionai_v1_EventUpdate_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.StreamingServiceProto
.internal_static_google_cloud_visionai_v1_EventUpdate_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.EventUpdate.class,
com.google.cloud.visionai.v1.EventUpdate.Builder.class);
}
// Construct using com.google.cloud.visionai.v1.EventUpdate.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getUpdateTimeFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
stream_ = "";
event_ = "";
series_ = "";
updateTime_ = null;
if (updateTimeBuilder_ != null) {
updateTimeBuilder_.dispose();
updateTimeBuilder_ = null;
}
offset_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.visionai.v1.StreamingServiceProto
.internal_static_google_cloud_visionai_v1_EventUpdate_descriptor;
}
@java.lang.Override
public com.google.cloud.visionai.v1.EventUpdate getDefaultInstanceForType() {
return com.google.cloud.visionai.v1.EventUpdate.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.visionai.v1.EventUpdate build() {
com.google.cloud.visionai.v1.EventUpdate result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.visionai.v1.EventUpdate buildPartial() {
com.google.cloud.visionai.v1.EventUpdate result =
new com.google.cloud.visionai.v1.EventUpdate(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.visionai.v1.EventUpdate result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.stream_ = stream_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.event_ = event_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.series_ = series_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000008) != 0)) {
result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.offset_ = offset_;
}
result.bitField0_ |= to_bitField0_;
}
@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.google.cloud.visionai.v1.EventUpdate) {
return mergeFrom((com.google.cloud.visionai.v1.EventUpdate) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.visionai.v1.EventUpdate other) {
if (other == com.google.cloud.visionai.v1.EventUpdate.getDefaultInstance()) return this;
if (!other.getStream().isEmpty()) {
stream_ = other.stream_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getEvent().isEmpty()) {
event_ = other.event_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getSeries().isEmpty()) {
series_ = other.series_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasUpdateTime()) {
mergeUpdateTime(other.getUpdateTime());
}
if (other.getOffset() != 0L) {
setOffset(other.getOffset());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
stream_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
event_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
series_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34:
{
input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 40:
{
offset_ = input.readInt64();
bitField0_ |= 0x00000010;
break;
} // case 40
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object stream_ = "";
/**
*
*
*
* The name of the stream that the event is attached to.
*
*
* string stream = 1;
*
* @return The stream.
*/
public java.lang.String getStream() {
java.lang.Object ref = stream_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
stream_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The name of the stream that the event is attached to.
*
*
* string stream = 1;
*
* @return The bytes for stream.
*/
public com.google.protobuf.ByteString getStreamBytes() {
java.lang.Object ref = stream_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
stream_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The name of the stream that the event is attached to.
*
*
* string stream = 1;
*
* @param value The stream to set.
* @return This builder for chaining.
*/
public Builder setStream(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
stream_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* The name of the stream that the event is attached to.
*
*
* string stream = 1;
*
* @return This builder for chaining.
*/
public Builder clearStream() {
stream_ = getDefaultInstance().getStream();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* The name of the stream that the event is attached to.
*
*
* string stream = 1;
*
* @param value The bytes for stream to set.
* @return This builder for chaining.
*/
public Builder setStreamBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
stream_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object event_ = "";
/**
*
*
*
* The name of the event.
*
*
* string event = 2;
*
* @return The event.
*/
public java.lang.String getEvent() {
java.lang.Object ref = event_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
event_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The name of the event.
*
*
* string event = 2;
*
* @return The bytes for event.
*/
public com.google.protobuf.ByteString getEventBytes() {
java.lang.Object ref = event_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
event_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The name of the event.
*
*
* string event = 2;
*
* @param value The event to set.
* @return This builder for chaining.
*/
public Builder setEvent(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
event_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* The name of the event.
*
*
* string event = 2;
*
* @return This builder for chaining.
*/
public Builder clearEvent() {
event_ = getDefaultInstance().getEvent();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*
*
* The name of the event.
*
*
* string event = 2;
*
* @param value The bytes for event to set.
* @return This builder for chaining.
*/
public Builder setEventBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
event_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object series_ = "";
/**
*
*
*
* The name of the series.
*
*
* string series = 3;
*
* @return The series.
*/
public java.lang.String getSeries() {
java.lang.Object ref = series_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
series_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The name of the series.
*
*
* string series = 3;
*
* @return The bytes for series.
*/
public com.google.protobuf.ByteString getSeriesBytes() {
java.lang.Object ref = series_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
series_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The name of the series.
*
*
* string series = 3;
*
* @param value The series to set.
* @return This builder for chaining.
*/
public Builder setSeries(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
series_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* The name of the series.
*
*
* string series = 3;
*
* @return This builder for chaining.
*/
public Builder clearSeries() {
series_ = getDefaultInstance().getSeries();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
*
*
* The name of the series.
*
*
* string series = 3;
*
* @param value The bytes for series to set.
* @return This builder for chaining.
*/
public Builder setSeriesBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
series_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private com.google.protobuf.Timestamp updateTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
updateTimeBuilder_;
/**
*
*
*
* The timestamp when the Event update happens.
*
*
* .google.protobuf.Timestamp update_time = 4;
*
* @return Whether the updateTime field is set.
*/
public boolean hasUpdateTime() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*
*
* The timestamp when the Event update happens.
*
*
* .google.protobuf.Timestamp update_time = 4;
*
* @return The updateTime.
*/
public com.google.protobuf.Timestamp getUpdateTime() {
if (updateTimeBuilder_ == null) {
return updateTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: updateTime_;
} else {
return updateTimeBuilder_.getMessage();
}
}
/**
*
*
*
* The timestamp when the Event update happens.
*
*
* .google.protobuf.Timestamp update_time = 4;
*/
public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
if (updateTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
updateTime_ = value;
} else {
updateTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* The timestamp when the Event update happens.
*
*
* .google.protobuf.Timestamp update_time = 4;
*/
public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (updateTimeBuilder_ == null) {
updateTime_ = builderForValue.build();
} else {
updateTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* The timestamp when the Event update happens.
*
*
* .google.protobuf.Timestamp update_time = 4;
*/
public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
if (updateTimeBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)
&& updateTime_ != null
&& updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getUpdateTimeBuilder().mergeFrom(value);
} else {
updateTime_ = value;
}
} else {
updateTimeBuilder_.mergeFrom(value);
}
if (updateTime_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
*
*
* The timestamp when the Event update happens.
*
*
* .google.protobuf.Timestamp update_time = 4;
*/
public Builder clearUpdateTime() {
bitField0_ = (bitField0_ & ~0x00000008);
updateTime_ = null;
if (updateTimeBuilder_ != null) {
updateTimeBuilder_.dispose();
updateTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* The timestamp when the Event update happens.
*
*
* .google.protobuf.Timestamp update_time = 4;
*/
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getUpdateTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* The timestamp when the Event update happens.
*
*
* .google.protobuf.Timestamp update_time = 4;
*/
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
if (updateTimeBuilder_ != null) {
return updateTimeBuilder_.getMessageOrBuilder();
} else {
return updateTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: updateTime_;
}
}
/**
*
*
*
* The timestamp when the Event update happens.
*
*
* .google.protobuf.Timestamp update_time = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getUpdateTimeFieldBuilder() {
if (updateTimeBuilder_ == null) {
updateTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getUpdateTime(), getParentForChildren(), isClean());
updateTime_ = null;
}
return updateTimeBuilder_;
}
private long offset_;
/**
*
*
*
* The offset of the message that will be used to acknowledge of the message
* receiving.
*
*
* int64 offset = 5;
*
* @return The offset.
*/
@java.lang.Override
public long getOffset() {
return offset_;
}
/**
*
*
*
* The offset of the message that will be used to acknowledge of the message
* receiving.
*
*
* int64 offset = 5;
*
* @param value The offset to set.
* @return This builder for chaining.
*/
public Builder setOffset(long value) {
offset_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* The offset of the message that will be used to acknowledge of the message
* receiving.
*
*
* int64 offset = 5;
*
* @return This builder for chaining.
*/
public Builder clearOffset() {
bitField0_ = (bitField0_ & ~0x00000010);
offset_ = 0L;
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:google.cloud.visionai.v1.EventUpdate)
}
// @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.EventUpdate)
private static final com.google.cloud.visionai.v1.EventUpdate DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.visionai.v1.EventUpdate();
}
public static com.google.cloud.visionai.v1.EventUpdate getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public EventUpdate parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.visionai.v1.EventUpdate getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy