
com.google.cloud.visionai.v1.Partition 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/warehouse.proto
// Protobuf Java Version: 3.25.3
package com.google.cloud.visionai.v1;
/**
*
*
*
* Partition to specify the partition in time and space for sub-asset level
* annotation.
*
*
* Protobuf type {@code google.cloud.visionai.v1.Partition}
*/
public final class Partition extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.Partition)
PartitionOrBuilder {
private static final long serialVersionUID = 0L;
// Use Partition.newBuilder() to construct.
private Partition(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Partition() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Partition();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.WarehouseProto
.internal_static_google_cloud_visionai_v1_Partition_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.WarehouseProto
.internal_static_google_cloud_visionai_v1_Partition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.Partition.class,
com.google.cloud.visionai.v1.Partition.Builder.class);
}
public interface TemporalPartitionOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.visionai.v1.Partition.TemporalPartition)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Start time of the partition.
*
*
* .google.protobuf.Timestamp start_time = 1;
*
* @return Whether the startTime field is set.
*/
boolean hasStartTime();
/**
*
*
*
* Start time of the partition.
*
*
* .google.protobuf.Timestamp start_time = 1;
*
* @return The startTime.
*/
com.google.protobuf.Timestamp getStartTime();
/**
*
*
*
* Start time of the partition.
*
*
* .google.protobuf.Timestamp start_time = 1;
*/
com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder();
/**
*
*
*
* End time of the partition.
*
*
* .google.protobuf.Timestamp end_time = 2;
*
* @return Whether the endTime field is set.
*/
boolean hasEndTime();
/**
*
*
*
* End time of the partition.
*
*
* .google.protobuf.Timestamp end_time = 2;
*
* @return The endTime.
*/
com.google.protobuf.Timestamp getEndTime();
/**
*
*
*
* End time of the partition.
*
*
* .google.protobuf.Timestamp end_time = 2;
*/
com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder();
}
/**
*
*
*
* Partition of asset in UTC Epoch time. Supported by STREAM_VIDEO corpus
* type.
*
*
* Protobuf type {@code google.cloud.visionai.v1.Partition.TemporalPartition}
*/
public static final class TemporalPartition extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.Partition.TemporalPartition)
TemporalPartitionOrBuilder {
private static final long serialVersionUID = 0L;
// Use TemporalPartition.newBuilder() to construct.
private TemporalPartition(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TemporalPartition() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new TemporalPartition();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.WarehouseProto
.internal_static_google_cloud_visionai_v1_Partition_TemporalPartition_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.WarehouseProto
.internal_static_google_cloud_visionai_v1_Partition_TemporalPartition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.Partition.TemporalPartition.class,
com.google.cloud.visionai.v1.Partition.TemporalPartition.Builder.class);
}
private int bitField0_;
public static final int START_TIME_FIELD_NUMBER = 1;
private com.google.protobuf.Timestamp startTime_;
/**
*
*
*
* Start time of the partition.
*
*
* .google.protobuf.Timestamp start_time = 1;
*
* @return Whether the startTime field is set.
*/
@java.lang.Override
public boolean hasStartTime() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Start time of the partition.
*
*
* .google.protobuf.Timestamp start_time = 1;
*
* @return The startTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getStartTime() {
return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
}
/**
*
*
*
* Start time of the partition.
*
*
* .google.protobuf.Timestamp start_time = 1;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
}
public static final int END_TIME_FIELD_NUMBER = 2;
private com.google.protobuf.Timestamp endTime_;
/**
*
*
*
* End time of the partition.
*
*
* .google.protobuf.Timestamp end_time = 2;
*
* @return Whether the endTime field is set.
*/
@java.lang.Override
public boolean hasEndTime() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* End time of the partition.
*
*
* .google.protobuf.Timestamp end_time = 2;
*
* @return The endTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getEndTime() {
return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
}
/**
*
*
*
* End time of the partition.
*
*
* .google.protobuf.Timestamp end_time = 2;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getStartTime());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getEndTime());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime());
}
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.Partition.TemporalPartition)) {
return super.equals(obj);
}
com.google.cloud.visionai.v1.Partition.TemporalPartition other =
(com.google.cloud.visionai.v1.Partition.TemporalPartition) obj;
if (hasStartTime() != other.hasStartTime()) return false;
if (hasStartTime()) {
if (!getStartTime().equals(other.getStartTime())) return false;
}
if (hasEndTime() != other.hasEndTime()) return false;
if (hasEndTime()) {
if (!getEndTime().equals(other.getEndTime())) 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();
if (hasStartTime()) {
hash = (37 * hash) + START_TIME_FIELD_NUMBER;
hash = (53 * hash) + getStartTime().hashCode();
}
if (hasEndTime()) {
hash = (37 * hash) + END_TIME_FIELD_NUMBER;
hash = (53 * hash) + getEndTime().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.visionai.v1.Partition.TemporalPartition parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.Partition.TemporalPartition 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.Partition.TemporalPartition parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.Partition.TemporalPartition 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.Partition.TemporalPartition parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.Partition.TemporalPartition 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.Partition.TemporalPartition parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.Partition.TemporalPartition 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.Partition.TemporalPartition parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.Partition.TemporalPartition 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.Partition.TemporalPartition 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.Partition.TemporalPartition 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.Partition.TemporalPartition 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;
}
/**
*
*
*
* Partition of asset in UTC Epoch time. Supported by STREAM_VIDEO corpus
* type.
*
*
* Protobuf type {@code google.cloud.visionai.v1.Partition.TemporalPartition}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.Partition.TemporalPartition)
com.google.cloud.visionai.v1.Partition.TemporalPartitionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.WarehouseProto
.internal_static_google_cloud_visionai_v1_Partition_TemporalPartition_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.WarehouseProto
.internal_static_google_cloud_visionai_v1_Partition_TemporalPartition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.Partition.TemporalPartition.class,
com.google.cloud.visionai.v1.Partition.TemporalPartition.Builder.class);
}
// Construct using com.google.cloud.visionai.v1.Partition.TemporalPartition.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getStartTimeFieldBuilder();
getEndTimeFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
startTime_ = null;
if (startTimeBuilder_ != null) {
startTimeBuilder_.dispose();
startTimeBuilder_ = null;
}
endTime_ = null;
if (endTimeBuilder_ != null) {
endTimeBuilder_.dispose();
endTimeBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.visionai.v1.WarehouseProto
.internal_static_google_cloud_visionai_v1_Partition_TemporalPartition_descriptor;
}
@java.lang.Override
public com.google.cloud.visionai.v1.Partition.TemporalPartition getDefaultInstanceForType() {
return com.google.cloud.visionai.v1.Partition.TemporalPartition.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.visionai.v1.Partition.TemporalPartition build() {
com.google.cloud.visionai.v1.Partition.TemporalPartition result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.visionai.v1.Partition.TemporalPartition buildPartial() {
com.google.cloud.visionai.v1.Partition.TemporalPartition result =
new com.google.cloud.visionai.v1.Partition.TemporalPartition(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.visionai.v1.Partition.TemporalPartition result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
to_bitField0_ |= 0x00000002;
}
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.Partition.TemporalPartition) {
return mergeFrom((com.google.cloud.visionai.v1.Partition.TemporalPartition) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.visionai.v1.Partition.TemporalPartition other) {
if (other == com.google.cloud.visionai.v1.Partition.TemporalPartition.getDefaultInstance())
return this;
if (other.hasStartTime()) {
mergeStartTime(other.getStartTime());
}
if (other.hasEndTime()) {
mergeEndTime(other.getEndTime());
}
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:
{
input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
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 com.google.protobuf.Timestamp startTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
startTimeBuilder_;
/**
*
*
*
* Start time of the partition.
*
*
* .google.protobuf.Timestamp start_time = 1;
*
* @return Whether the startTime field is set.
*/
public boolean hasStartTime() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Start time of the partition.
*
*
* .google.protobuf.Timestamp start_time = 1;
*
* @return The startTime.
*/
public com.google.protobuf.Timestamp getStartTime() {
if (startTimeBuilder_ == null) {
return startTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: startTime_;
} else {
return startTimeBuilder_.getMessage();
}
}
/**
*
*
*
* Start time of the partition.
*
*
* .google.protobuf.Timestamp start_time = 1;
*/
public Builder setStartTime(com.google.protobuf.Timestamp value) {
if (startTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
startTime_ = value;
} else {
startTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Start time of the partition.
*
*
* .google.protobuf.Timestamp start_time = 1;
*/
public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (startTimeBuilder_ == null) {
startTime_ = builderForValue.build();
} else {
startTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Start time of the partition.
*
*
* .google.protobuf.Timestamp start_time = 1;
*/
public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
if (startTimeBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)
&& startTime_ != null
&& startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getStartTimeBuilder().mergeFrom(value);
} else {
startTime_ = value;
}
} else {
startTimeBuilder_.mergeFrom(value);
}
if (startTime_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
*
*
* Start time of the partition.
*
*
* .google.protobuf.Timestamp start_time = 1;
*/
public Builder clearStartTime() {
bitField0_ = (bitField0_ & ~0x00000001);
startTime_ = null;
if (startTimeBuilder_ != null) {
startTimeBuilder_.dispose();
startTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Start time of the partition.
*
*
* .google.protobuf.Timestamp start_time = 1;
*/
public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getStartTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* Start time of the partition.
*
*
* .google.protobuf.Timestamp start_time = 1;
*/
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
if (startTimeBuilder_ != null) {
return startTimeBuilder_.getMessageOrBuilder();
} else {
return startTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: startTime_;
}
}
/**
*
*
*
* Start time of the partition.
*
*
* .google.protobuf.Timestamp start_time = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getStartTimeFieldBuilder() {
if (startTimeBuilder_ == null) {
startTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getStartTime(), getParentForChildren(), isClean());
startTime_ = null;
}
return startTimeBuilder_;
}
private com.google.protobuf.Timestamp endTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
endTimeBuilder_;
/**
*
*
*
* End time of the partition.
*
*
* .google.protobuf.Timestamp end_time = 2;
*
* @return Whether the endTime field is set.
*/
public boolean hasEndTime() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* End time of the partition.
*
*
* .google.protobuf.Timestamp end_time = 2;
*
* @return The endTime.
*/
public com.google.protobuf.Timestamp getEndTime() {
if (endTimeBuilder_ == null) {
return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
} else {
return endTimeBuilder_.getMessage();
}
}
/**
*
*
*
* End time of the partition.
*
*
* .google.protobuf.Timestamp end_time = 2;
*/
public Builder setEndTime(com.google.protobuf.Timestamp value) {
if (endTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
endTime_ = value;
} else {
endTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* End time of the partition.
*
*
* .google.protobuf.Timestamp end_time = 2;
*/
public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (endTimeBuilder_ == null) {
endTime_ = builderForValue.build();
} else {
endTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* End time of the partition.
*
*
* .google.protobuf.Timestamp end_time = 2;
*/
public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
if (endTimeBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)
&& endTime_ != null
&& endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getEndTimeBuilder().mergeFrom(value);
} else {
endTime_ = value;
}
} else {
endTimeBuilder_.mergeFrom(value);
}
if (endTime_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
*
*
* End time of the partition.
*
*
* .google.protobuf.Timestamp end_time = 2;
*/
public Builder clearEndTime() {
bitField0_ = (bitField0_ & ~0x00000002);
endTime_ = null;
if (endTimeBuilder_ != null) {
endTimeBuilder_.dispose();
endTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* End time of the partition.
*
*
* .google.protobuf.Timestamp end_time = 2;
*/
public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getEndTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* End time of the partition.
*
*
* .google.protobuf.Timestamp end_time = 2;
*/
public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
if (endTimeBuilder_ != null) {
return endTimeBuilder_.getMessageOrBuilder();
} else {
return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
}
}
/**
*
*
*
* End time of the partition.
*
*
* .google.protobuf.Timestamp end_time = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getEndTimeFieldBuilder() {
if (endTimeBuilder_ == null) {
endTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getEndTime(), getParentForChildren(), isClean());
endTime_ = null;
}
return endTimeBuilder_;
}
@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.Partition.TemporalPartition)
}
// @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.Partition.TemporalPartition)
private static final com.google.cloud.visionai.v1.Partition.TemporalPartition DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.visionai.v1.Partition.TemporalPartition();
}
public static com.google.cloud.visionai.v1.Partition.TemporalPartition getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TemporalPartition 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.Partition.TemporalPartition getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SpatialPartitionOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.visionai.v1.Partition.SpatialPartition)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* The minimum x coordinate value.
*
*
* optional int64 x_min = 1;
*
* @return Whether the xMin field is set.
*/
boolean hasXMin();
/**
*
*
*
* The minimum x coordinate value.
*
*
* optional int64 x_min = 1;
*
* @return The xMin.
*/
long getXMin();
/**
*
*
*
* The minimum y coordinate value.
*
*
* optional int64 y_min = 2;
*
* @return Whether the yMin field is set.
*/
boolean hasYMin();
/**
*
*
*
* The minimum y coordinate value.
*
*
* optional int64 y_min = 2;
*
* @return The yMin.
*/
long getYMin();
/**
*
*
*
* The maximum x coordinate value.
*
*
* optional int64 x_max = 3;
*
* @return Whether the xMax field is set.
*/
boolean hasXMax();
/**
*
*
*
* The maximum x coordinate value.
*
*
* optional int64 x_max = 3;
*
* @return The xMax.
*/
long getXMax();
/**
*
*
*
* The maximum y coordinate value.
*
*
* optional int64 y_max = 4;
*
* @return Whether the yMax field is set.
*/
boolean hasYMax();
/**
*
*
*
* The maximum y coordinate value.
*
*
* optional int64 y_max = 4;
*
* @return The yMax.
*/
long getYMax();
}
/**
*
*
*
* Partition of asset in space.
*
*
* Protobuf type {@code google.cloud.visionai.v1.Partition.SpatialPartition}
*/
public static final class SpatialPartition extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.Partition.SpatialPartition)
SpatialPartitionOrBuilder {
private static final long serialVersionUID = 0L;
// Use SpatialPartition.newBuilder() to construct.
private SpatialPartition(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SpatialPartition() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new SpatialPartition();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.WarehouseProto
.internal_static_google_cloud_visionai_v1_Partition_SpatialPartition_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.WarehouseProto
.internal_static_google_cloud_visionai_v1_Partition_SpatialPartition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.Partition.SpatialPartition.class,
com.google.cloud.visionai.v1.Partition.SpatialPartition.Builder.class);
}
private int bitField0_;
public static final int X_MIN_FIELD_NUMBER = 1;
private long xMin_ = 0L;
/**
*
*
*
* The minimum x coordinate value.
*
*
* optional int64 x_min = 1;
*
* @return Whether the xMin field is set.
*/
@java.lang.Override
public boolean hasXMin() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* The minimum x coordinate value.
*
*
* optional int64 x_min = 1;
*
* @return The xMin.
*/
@java.lang.Override
public long getXMin() {
return xMin_;
}
public static final int Y_MIN_FIELD_NUMBER = 2;
private long yMin_ = 0L;
/**
*
*
*
* The minimum y coordinate value.
*
*
* optional int64 y_min = 2;
*
* @return Whether the yMin field is set.
*/
@java.lang.Override
public boolean hasYMin() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* The minimum y coordinate value.
*
*
* optional int64 y_min = 2;
*
* @return The yMin.
*/
@java.lang.Override
public long getYMin() {
return yMin_;
}
public static final int X_MAX_FIELD_NUMBER = 3;
private long xMax_ = 0L;
/**
*
*
*
* The maximum x coordinate value.
*
*
* optional int64 x_max = 3;
*
* @return Whether the xMax field is set.
*/
@java.lang.Override
public boolean hasXMax() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* The maximum x coordinate value.
*
*
* optional int64 x_max = 3;
*
* @return The xMax.
*/
@java.lang.Override
public long getXMax() {
return xMax_;
}
public static final int Y_MAX_FIELD_NUMBER = 4;
private long yMax_ = 0L;
/**
*
*
*
* The maximum y coordinate value.
*
*
* optional int64 y_max = 4;
*
* @return Whether the yMax field is set.
*/
@java.lang.Override
public boolean hasYMax() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*
*
* The maximum y coordinate value.
*
*
* optional int64 y_max = 4;
*
* @return The yMax.
*/
@java.lang.Override
public long getYMax() {
return yMax_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeInt64(1, xMin_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt64(2, yMin_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeInt64(3, xMax_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeInt64(4, yMax_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, xMin_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, yMin_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, xMax_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, yMax_);
}
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.Partition.SpatialPartition)) {
return super.equals(obj);
}
com.google.cloud.visionai.v1.Partition.SpatialPartition other =
(com.google.cloud.visionai.v1.Partition.SpatialPartition) obj;
if (hasXMin() != other.hasXMin()) return false;
if (hasXMin()) {
if (getXMin() != other.getXMin()) return false;
}
if (hasYMin() != other.hasYMin()) return false;
if (hasYMin()) {
if (getYMin() != other.getYMin()) return false;
}
if (hasXMax() != other.hasXMax()) return false;
if (hasXMax()) {
if (getXMax() != other.getXMax()) return false;
}
if (hasYMax() != other.hasYMax()) return false;
if (hasYMax()) {
if (getYMax() != other.getYMax()) 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();
if (hasXMin()) {
hash = (37 * hash) + X_MIN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getXMin());
}
if (hasYMin()) {
hash = (37 * hash) + Y_MIN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getYMin());
}
if (hasXMax()) {
hash = (37 * hash) + X_MAX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getXMax());
}
if (hasYMax()) {
hash = (37 * hash) + Y_MAX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getYMax());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.visionai.v1.Partition.SpatialPartition parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.Partition.SpatialPartition 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.Partition.SpatialPartition parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.Partition.SpatialPartition 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.Partition.SpatialPartition parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.Partition.SpatialPartition 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.Partition.SpatialPartition parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.Partition.SpatialPartition 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.Partition.SpatialPartition parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.Partition.SpatialPartition 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.Partition.SpatialPartition 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.Partition.SpatialPartition 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.Partition.SpatialPartition 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;
}
/**
*
*
*
* Partition of asset in space.
*
*
* Protobuf type {@code google.cloud.visionai.v1.Partition.SpatialPartition}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.Partition.SpatialPartition)
com.google.cloud.visionai.v1.Partition.SpatialPartitionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.WarehouseProto
.internal_static_google_cloud_visionai_v1_Partition_SpatialPartition_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.WarehouseProto
.internal_static_google_cloud_visionai_v1_Partition_SpatialPartition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.Partition.SpatialPartition.class,
com.google.cloud.visionai.v1.Partition.SpatialPartition.Builder.class);
}
// Construct using com.google.cloud.visionai.v1.Partition.SpatialPartition.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
xMin_ = 0L;
yMin_ = 0L;
xMax_ = 0L;
yMax_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.visionai.v1.WarehouseProto
.internal_static_google_cloud_visionai_v1_Partition_SpatialPartition_descriptor;
}
@java.lang.Override
public com.google.cloud.visionai.v1.Partition.SpatialPartition getDefaultInstanceForType() {
return com.google.cloud.visionai.v1.Partition.SpatialPartition.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.visionai.v1.Partition.SpatialPartition build() {
com.google.cloud.visionai.v1.Partition.SpatialPartition result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.visionai.v1.Partition.SpatialPartition buildPartial() {
com.google.cloud.visionai.v1.Partition.SpatialPartition result =
new com.google.cloud.visionai.v1.Partition.SpatialPartition(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.visionai.v1.Partition.SpatialPartition result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.xMin_ = xMin_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.yMin_ = yMin_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.xMax_ = xMax_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.yMax_ = yMax_;
to_bitField0_ |= 0x00000008;
}
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.Partition.SpatialPartition) {
return mergeFrom((com.google.cloud.visionai.v1.Partition.SpatialPartition) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.visionai.v1.Partition.SpatialPartition other) {
if (other == com.google.cloud.visionai.v1.Partition.SpatialPartition.getDefaultInstance())
return this;
if (other.hasXMin()) {
setXMin(other.getXMin());
}
if (other.hasYMin()) {
setYMin(other.getYMin());
}
if (other.hasXMax()) {
setXMax(other.getXMax());
}
if (other.hasYMax()) {
setYMax(other.getYMax());
}
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 8:
{
xMin_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16:
{
yMin_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24:
{
xMax_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32:
{
yMax_ = input.readInt64();
bitField0_ |= 0x00000008;
break;
} // case 32
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 long xMin_;
/**
*
*
*
* The minimum x coordinate value.
*
*
* optional int64 x_min = 1;
*
* @return Whether the xMin field is set.
*/
@java.lang.Override
public boolean hasXMin() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* The minimum x coordinate value.
*
*
* optional int64 x_min = 1;
*
* @return The xMin.
*/
@java.lang.Override
public long getXMin() {
return xMin_;
}
/**
*
*
*
* The minimum x coordinate value.
*
*
* optional int64 x_min = 1;
*
* @param value The xMin to set.
* @return This builder for chaining.
*/
public Builder setXMin(long value) {
xMin_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* The minimum x coordinate value.
*
*
* optional int64 x_min = 1;
*
* @return This builder for chaining.
*/
public Builder clearXMin() {
bitField0_ = (bitField0_ & ~0x00000001);
xMin_ = 0L;
onChanged();
return this;
}
private long yMin_;
/**
*
*
*
* The minimum y coordinate value.
*
*
* optional int64 y_min = 2;
*
* @return Whether the yMin field is set.
*/
@java.lang.Override
public boolean hasYMin() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* The minimum y coordinate value.
*
*
* optional int64 y_min = 2;
*
* @return The yMin.
*/
@java.lang.Override
public long getYMin() {
return yMin_;
}
/**
*
*
*
* The minimum y coordinate value.
*
*
* optional int64 y_min = 2;
*
* @param value The yMin to set.
* @return This builder for chaining.
*/
public Builder setYMin(long value) {
yMin_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* The minimum y coordinate value.
*
*
* optional int64 y_min = 2;
*
* @return This builder for chaining.
*/
public Builder clearYMin() {
bitField0_ = (bitField0_ & ~0x00000002);
yMin_ = 0L;
onChanged();
return this;
}
private long xMax_;
/**
*
*
*
* The maximum x coordinate value.
*
*
* optional int64 x_max = 3;
*
* @return Whether the xMax field is set.
*/
@java.lang.Override
public boolean hasXMax() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* The maximum x coordinate value.
*
*
* optional int64 x_max = 3;
*
* @return The xMax.
*/
@java.lang.Override
public long getXMax() {
return xMax_;
}
/**
*
*
*
* The maximum x coordinate value.
*
*
* optional int64 x_max = 3;
*
* @param value The xMax to set.
* @return This builder for chaining.
*/
public Builder setXMax(long value) {
xMax_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* The maximum x coordinate value.
*
*
* optional int64 x_max = 3;
*
* @return This builder for chaining.
*/
public Builder clearXMax() {
bitField0_ = (bitField0_ & ~0x00000004);
xMax_ = 0L;
onChanged();
return this;
}
private long yMax_;
/**
*
*
*
* The maximum y coordinate value.
*
*
* optional int64 y_max = 4;
*
* @return Whether the yMax field is set.
*/
@java.lang.Override
public boolean hasYMax() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*
*
* The maximum y coordinate value.
*
*
* optional int64 y_max = 4;
*
* @return The yMax.
*/
@java.lang.Override
public long getYMax() {
return yMax_;
}
/**
*
*
*
* The maximum y coordinate value.
*
*
* optional int64 y_max = 4;
*
* @param value The yMax to set.
* @return This builder for chaining.
*/
public Builder setYMax(long value) {
yMax_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* The maximum y coordinate value.
*
*
* optional int64 y_max = 4;
*
* @return This builder for chaining.
*/
public Builder clearYMax() {
bitField0_ = (bitField0_ & ~0x00000008);
yMax_ = 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.Partition.SpatialPartition)
}
// @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.Partition.SpatialPartition)
private static final com.google.cloud.visionai.v1.Partition.SpatialPartition DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.visionai.v1.Partition.SpatialPartition();
}
public static com.google.cloud.visionai.v1.Partition.SpatialPartition getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SpatialPartition 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.Partition.SpatialPartition getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RelativeTemporalPartitionOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.visionai.v1.Partition.RelativeTemporalPartition)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Start time offset of the partition.
*
*
* .google.protobuf.Duration start_offset = 1;
*
* @return Whether the startOffset field is set.
*/
boolean hasStartOffset();
/**
*
*
*
* Start time offset of the partition.
*
*
* .google.protobuf.Duration start_offset = 1;
*
* @return The startOffset.
*/
com.google.protobuf.Duration getStartOffset();
/**
*
*
*
* Start time offset of the partition.
*
*
* .google.protobuf.Duration start_offset = 1;
*/
com.google.protobuf.DurationOrBuilder getStartOffsetOrBuilder();
/**
*
*
*
* End time offset of the partition.
*
*
* .google.protobuf.Duration end_offset = 2;
*
* @return Whether the endOffset field is set.
*/
boolean hasEndOffset();
/**
*
*
*
* End time offset of the partition.
*
*
* .google.protobuf.Duration end_offset = 2;
*
* @return The endOffset.
*/
com.google.protobuf.Duration getEndOffset();
/**
*
*
*
* End time offset of the partition.
*
*
* .google.protobuf.Duration end_offset = 2;
*/
com.google.protobuf.DurationOrBuilder getEndOffsetOrBuilder();
}
/**
*
*
*
* Partition of asset in relative time. Supported by VIDEO_ON_DEMAND corpus
* type.
*
*
* Protobuf type {@code google.cloud.visionai.v1.Partition.RelativeTemporalPartition}
*/
public static final class RelativeTemporalPartition extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.Partition.RelativeTemporalPartition)
RelativeTemporalPartitionOrBuilder {
private static final long serialVersionUID = 0L;
// Use RelativeTemporalPartition.newBuilder() to construct.
private RelativeTemporalPartition(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RelativeTemporalPartition() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new RelativeTemporalPartition();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.WarehouseProto
.internal_static_google_cloud_visionai_v1_Partition_RelativeTemporalPartition_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.WarehouseProto
.internal_static_google_cloud_visionai_v1_Partition_RelativeTemporalPartition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.Partition.RelativeTemporalPartition.class,
com.google.cloud.visionai.v1.Partition.RelativeTemporalPartition.Builder.class);
}
private int bitField0_;
public static final int START_OFFSET_FIELD_NUMBER = 1;
private com.google.protobuf.Duration startOffset_;
/**
*
*
*
* Start time offset of the partition.
*
*
* .google.protobuf.Duration start_offset = 1;
*
* @return Whether the startOffset field is set.
*/
@java.lang.Override
public boolean hasStartOffset() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Start time offset of the partition.
*
*
* .google.protobuf.Duration start_offset = 1;
*
* @return The startOffset.
*/
@java.lang.Override
public com.google.protobuf.Duration getStartOffset() {
return startOffset_ == null
? com.google.protobuf.Duration.getDefaultInstance()
: startOffset_;
}
/**
*
*
*
* Start time offset of the partition.
*
*
* .google.protobuf.Duration start_offset = 1;
*/
@java.lang.Override
public com.google.protobuf.DurationOrBuilder getStartOffsetOrBuilder() {
return startOffset_ == null
? com.google.protobuf.Duration.getDefaultInstance()
: startOffset_;
}
public static final int END_OFFSET_FIELD_NUMBER = 2;
private com.google.protobuf.Duration endOffset_;
/**
*
*
*
* End time offset of the partition.
*
*
* .google.protobuf.Duration end_offset = 2;
*
* @return Whether the endOffset field is set.
*/
@java.lang.Override
public boolean hasEndOffset() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* End time offset of the partition.
*
*
* .google.protobuf.Duration end_offset = 2;
*
* @return The endOffset.
*/
@java.lang.Override
public com.google.protobuf.Duration getEndOffset() {
return endOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : endOffset_;
}
/**
*
*
*
* End time offset of the partition.
*
*
* .google.protobuf.Duration end_offset = 2;
*/
@java.lang.Override
public com.google.protobuf.DurationOrBuilder getEndOffsetOrBuilder() {
return endOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : endOffset_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getStartOffset());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getEndOffset());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartOffset());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndOffset());
}
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.Partition.RelativeTemporalPartition)) {
return super.equals(obj);
}
com.google.cloud.visionai.v1.Partition.RelativeTemporalPartition other =
(com.google.cloud.visionai.v1.Partition.RelativeTemporalPartition) obj;
if (hasStartOffset() != other.hasStartOffset()) return false;
if (hasStartOffset()) {
if (!getStartOffset().equals(other.getStartOffset())) return false;
}
if (hasEndOffset() != other.hasEndOffset()) return false;
if (hasEndOffset()) {
if (!getEndOffset().equals(other.getEndOffset())) 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();
if (hasStartOffset()) {
hash = (37 * hash) + START_OFFSET_FIELD_NUMBER;
hash = (53 * hash) + getStartOffset().hashCode();
}
if (hasEndOffset()) {
hash = (37 * hash) + END_OFFSET_FIELD_NUMBER;
hash = (53 * hash) + getEndOffset().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.visionai.v1.Partition.RelativeTemporalPartition parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.Partition.RelativeTemporalPartition 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.Partition.RelativeTemporalPartition parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.Partition.RelativeTemporalPartition 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.Partition.RelativeTemporalPartition parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.Partition.RelativeTemporalPartition 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.Partition.RelativeTemporalPartition parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.Partition.RelativeTemporalPartition 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.Partition.RelativeTemporalPartition
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.Partition.RelativeTemporalPartition
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.Partition.RelativeTemporalPartition 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.Partition.RelativeTemporalPartition 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.Partition.RelativeTemporalPartition 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;
}
/**
*
*
*
* Partition of asset in relative time. Supported by VIDEO_ON_DEMAND corpus
* type.
*
*
* Protobuf type {@code google.cloud.visionai.v1.Partition.RelativeTemporalPartition}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.Partition.RelativeTemporalPartition)
com.google.cloud.visionai.v1.Partition.RelativeTemporalPartitionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.WarehouseProto
.internal_static_google_cloud_visionai_v1_Partition_RelativeTemporalPartition_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.WarehouseProto
.internal_static_google_cloud_visionai_v1_Partition_RelativeTemporalPartition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.Partition.RelativeTemporalPartition.class,
com.google.cloud.visionai.v1.Partition.RelativeTemporalPartition.Builder.class);
}
// Construct using
// com.google.cloud.visionai.v1.Partition.RelativeTemporalPartition.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getStartOffsetFieldBuilder();
getEndOffsetFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
startOffset_ = null;
if (startOffsetBuilder_ != null) {
startOffsetBuilder_.dispose();
startOffsetBuilder_ = null;
}
endOffset_ = null;
if (endOffsetBuilder_ != null) {
endOffsetBuilder_.dispose();
endOffsetBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.visionai.v1.WarehouseProto
.internal_static_google_cloud_visionai_v1_Partition_RelativeTemporalPartition_descriptor;
}
@java.lang.Override
public com.google.cloud.visionai.v1.Partition.RelativeTemporalPartition
getDefaultInstanceForType() {
return com.google.cloud.visionai.v1.Partition.RelativeTemporalPartition
.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.visionai.v1.Partition.RelativeTemporalPartition build() {
com.google.cloud.visionai.v1.Partition.RelativeTemporalPartition result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.visionai.v1.Partition.RelativeTemporalPartition buildPartial() {
com.google.cloud.visionai.v1.Partition.RelativeTemporalPartition result =
new com.google.cloud.visionai.v1.Partition.RelativeTemporalPartition(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.visionai.v1.Partition.RelativeTemporalPartition result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.startOffset_ =
startOffsetBuilder_ == null ? startOffset_ : startOffsetBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.endOffset_ = endOffsetBuilder_ == null ? endOffset_ : endOffsetBuilder_.build();
to_bitField0_ |= 0x00000002;
}
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.Partition.RelativeTemporalPartition) {
return mergeFrom(
(com.google.cloud.visionai.v1.Partition.RelativeTemporalPartition) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.visionai.v1.Partition.RelativeTemporalPartition other) {
if (other
== com.google.cloud.visionai.v1.Partition.RelativeTemporalPartition
.getDefaultInstance()) return this;
if (other.hasStartOffset()) {
mergeStartOffset(other.getStartOffset());
}
if (other.hasEndOffset()) {
mergeEndOffset(other.getEndOffset());
}
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:
{
input.readMessage(getStartOffsetFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
input.readMessage(getEndOffsetFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
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 com.google.protobuf.Duration startOffset_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration,
com.google.protobuf.Duration.Builder,
com.google.protobuf.DurationOrBuilder>
startOffsetBuilder_;
/**
*
*
*
* Start time offset of the partition.
*
*
* .google.protobuf.Duration start_offset = 1;
*
* @return Whether the startOffset field is set.
*/
public boolean hasStartOffset() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Start time offset of the partition.
*
*
* .google.protobuf.Duration start_offset = 1;
*
* @return The startOffset.
*/
public com.google.protobuf.Duration getStartOffset() {
if (startOffsetBuilder_ == null) {
return startOffset_ == null
? com.google.protobuf.Duration.getDefaultInstance()
: startOffset_;
} else {
return startOffsetBuilder_.getMessage();
}
}
/**
*
*
*
* Start time offset of the partition.
*
*
* .google.protobuf.Duration start_offset = 1;
*/
public Builder setStartOffset(com.google.protobuf.Duration value) {
if (startOffsetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
startOffset_ = value;
} else {
startOffsetBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Start time offset of the partition.
*
*
* .google.protobuf.Duration start_offset = 1;
*/
public Builder setStartOffset(com.google.protobuf.Duration.Builder builderForValue) {
if (startOffsetBuilder_ == null) {
startOffset_ = builderForValue.build();
} else {
startOffsetBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Start time offset of the partition.
*
*
* .google.protobuf.Duration start_offset = 1;
*/
public Builder mergeStartOffset(com.google.protobuf.Duration value) {
if (startOffsetBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)
&& startOffset_ != null
&& startOffset_ != com.google.protobuf.Duration.getDefaultInstance()) {
getStartOffsetBuilder().mergeFrom(value);
} else {
startOffset_ = value;
}
} else {
startOffsetBuilder_.mergeFrom(value);
}
if (startOffset_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
*
*
* Start time offset of the partition.
*
*
* .google.protobuf.Duration start_offset = 1;
*/
public Builder clearStartOffset() {
bitField0_ = (bitField0_ & ~0x00000001);
startOffset_ = null;
if (startOffsetBuilder_ != null) {
startOffsetBuilder_.dispose();
startOffsetBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Start time offset of the partition.
*
*
* .google.protobuf.Duration start_offset = 1;
*/
public com.google.protobuf.Duration.Builder getStartOffsetBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getStartOffsetFieldBuilder().getBuilder();
}
/**
*
*
*
* Start time offset of the partition.
*
*
* .google.protobuf.Duration start_offset = 1;
*/
public com.google.protobuf.DurationOrBuilder getStartOffsetOrBuilder() {
if (startOffsetBuilder_ != null) {
return startOffsetBuilder_.getMessageOrBuilder();
} else {
return startOffset_ == null
? com.google.protobuf.Duration.getDefaultInstance()
: startOffset_;
}
}
/**
*
*
*
* Start time offset of the partition.
*
*
* .google.protobuf.Duration start_offset = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration,
com.google.protobuf.Duration.Builder,
com.google.protobuf.DurationOrBuilder>
getStartOffsetFieldBuilder() {
if (startOffsetBuilder_ == null) {
startOffsetBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration,
com.google.protobuf.Duration.Builder,
com.google.protobuf.DurationOrBuilder>(
getStartOffset(), getParentForChildren(), isClean());
startOffset_ = null;
}
return startOffsetBuilder_;
}
private com.google.protobuf.Duration endOffset_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration,
com.google.protobuf.Duration.Builder,
com.google.protobuf.DurationOrBuilder>
endOffsetBuilder_;
/**
*
*
*
* End time offset of the partition.
*
*
* .google.protobuf.Duration end_offset = 2;
*
* @return Whether the endOffset field is set.
*/
public boolean hasEndOffset() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* End time offset of the partition.
*
*
* .google.protobuf.Duration end_offset = 2;
*
* @return The endOffset.
*/
public com.google.protobuf.Duration getEndOffset() {
if (endOffsetBuilder_ == null) {
return endOffset_ == null
? com.google.protobuf.Duration.getDefaultInstance()
: endOffset_;
} else {
return endOffsetBuilder_.getMessage();
}
}
/**
*
*
*
* End time offset of the partition.
*
*
* .google.protobuf.Duration end_offset = 2;
*/
public Builder setEndOffset(com.google.protobuf.Duration value) {
if (endOffsetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
endOffset_ = value;
} else {
endOffsetBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* End time offset of the partition.
*
*
* .google.protobuf.Duration end_offset = 2;
*/
public Builder setEndOffset(com.google.protobuf.Duration.Builder builderForValue) {
if (endOffsetBuilder_ == null) {
endOffset_ = builderForValue.build();
} else {
endOffsetBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* End time offset of the partition.
*
*
* .google.protobuf.Duration end_offset = 2;
*/
public Builder mergeEndOffset(com.google.protobuf.Duration value) {
if (endOffsetBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)
&& endOffset_ != null
&& endOffset_ != com.google.protobuf.Duration.getDefaultInstance()) {
getEndOffsetBuilder().mergeFrom(value);
} else {
endOffset_ = value;
}
} else {
endOffsetBuilder_.mergeFrom(value);
}
if (endOffset_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
*
*
* End time offset of the partition.
*
*
* .google.protobuf.Duration end_offset = 2;
*/
public Builder clearEndOffset() {
bitField0_ = (bitField0_ & ~0x00000002);
endOffset_ = null;
if (endOffsetBuilder_ != null) {
endOffsetBuilder_.dispose();
endOffsetBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* End time offset of the partition.
*
*
* .google.protobuf.Duration end_offset = 2;
*/
public com.google.protobuf.Duration.Builder getEndOffsetBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getEndOffsetFieldBuilder().getBuilder();
}
/**
*
*
*
* End time offset of the partition.
*
*
* .google.protobuf.Duration end_offset = 2;
*/
public com.google.protobuf.DurationOrBuilder getEndOffsetOrBuilder() {
if (endOffsetBuilder_ != null) {
return endOffsetBuilder_.getMessageOrBuilder();
} else {
return endOffset_ == null
? com.google.protobuf.Duration.getDefaultInstance()
: endOffset_;
}
}
/**
*
*
*
* End time offset of the partition.
*
*
* .google.protobuf.Duration end_offset = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration,
com.google.protobuf.Duration.Builder,
com.google.protobuf.DurationOrBuilder>
getEndOffsetFieldBuilder() {
if (endOffsetBuilder_ == null) {
endOffsetBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration,
com.google.protobuf.Duration.Builder,
com.google.protobuf.DurationOrBuilder>(
getEndOffset(), getParentForChildren(), isClean());
endOffset_ = null;
}
return endOffsetBuilder_;
}
@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.Partition.RelativeTemporalPartition)
}
// @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.Partition.RelativeTemporalPartition)
private static final com.google.cloud.visionai.v1.Partition.RelativeTemporalPartition
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.visionai.v1.Partition.RelativeTemporalPartition();
}
public static com.google.cloud.visionai.v1.Partition.RelativeTemporalPartition
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RelativeTemporalPartition 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.Partition.RelativeTemporalPartition
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int TEMPORAL_PARTITION_FIELD_NUMBER = 1;
private com.google.cloud.visionai.v1.Partition.TemporalPartition temporalPartition_;
/**
*
*
*
* Partition of asset in time.
*
*
* .google.cloud.visionai.v1.Partition.TemporalPartition temporal_partition = 1;
*
* @return Whether the temporalPartition field is set.
*/
@java.lang.Override
public boolean hasTemporalPartition() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Partition of asset in time.
*
*
* .google.cloud.visionai.v1.Partition.TemporalPartition temporal_partition = 1;
*
* @return The temporalPartition.
*/
@java.lang.Override
public com.google.cloud.visionai.v1.Partition.TemporalPartition getTemporalPartition() {
return temporalPartition_ == null
? com.google.cloud.visionai.v1.Partition.TemporalPartition.getDefaultInstance()
: temporalPartition_;
}
/**
*
*
*
* Partition of asset in time.
*
*
* .google.cloud.visionai.v1.Partition.TemporalPartition temporal_partition = 1;
*/
@java.lang.Override
public com.google.cloud.visionai.v1.Partition.TemporalPartitionOrBuilder
getTemporalPartitionOrBuilder() {
return temporalPartition_ == null
? com.google.cloud.visionai.v1.Partition.TemporalPartition.getDefaultInstance()
: temporalPartition_;
}
public static final int SPATIAL_PARTITION_FIELD_NUMBER = 2;
private com.google.cloud.visionai.v1.Partition.SpatialPartition spatialPartition_;
/**
*
*
*
* Partition of asset in space.
*
*
* .google.cloud.visionai.v1.Partition.SpatialPartition spatial_partition = 2;
*
* @return Whether the spatialPartition field is set.
*/
@java.lang.Override
public boolean hasSpatialPartition() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Partition of asset in space.
*
*
* .google.cloud.visionai.v1.Partition.SpatialPartition spatial_partition = 2;
*
* @return The spatialPartition.
*/
@java.lang.Override
public com.google.cloud.visionai.v1.Partition.SpatialPartition getSpatialPartition() {
return spatialPartition_ == null
? com.google.cloud.visionai.v1.Partition.SpatialPartition.getDefaultInstance()
: spatialPartition_;
}
/**
*
*
*
* Partition of asset in space.
*
*
* .google.cloud.visionai.v1.Partition.SpatialPartition spatial_partition = 2;
*/
@java.lang.Override
public com.google.cloud.visionai.v1.Partition.SpatialPartitionOrBuilder
getSpatialPartitionOrBuilder() {
return spatialPartition_ == null
? com.google.cloud.visionai.v1.Partition.SpatialPartition.getDefaultInstance()
: spatialPartition_;
}
public static final int RELATIVE_TEMPORAL_PARTITION_FIELD_NUMBER = 3;
private com.google.cloud.visionai.v1.Partition.RelativeTemporalPartition
relativeTemporalPartition_;
/**
*
*
*
* Partition of asset in time.
*
*
*
* .google.cloud.visionai.v1.Partition.RelativeTemporalPartition relative_temporal_partition = 3;
*
*
* @return Whether the relativeTemporalPartition field is set.
*/
@java.lang.Override
public boolean hasRelativeTemporalPartition() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* Partition of asset in time.
*
*
*
* .google.cloud.visionai.v1.Partition.RelativeTemporalPartition relative_temporal_partition = 3;
*
*
* @return The relativeTemporalPartition.
*/
@java.lang.Override
public com.google.cloud.visionai.v1.Partition.RelativeTemporalPartition
getRelativeTemporalPartition() {
return relativeTemporalPartition_ == null
? com.google.cloud.visionai.v1.Partition.RelativeTemporalPartition.getDefaultInstance()
: relativeTemporalPartition_;
}
/**
*
*
*
* Partition of asset in time.
*
*
*
* .google.cloud.visionai.v1.Partition.RelativeTemporalPartition relative_temporal_partition = 3;
*
*/
@java.lang.Override
public com.google.cloud.visionai.v1.Partition.RelativeTemporalPartitionOrBuilder
getRelativeTemporalPartitionOrBuilder() {
return relativeTemporalPartition_ == null
? com.google.cloud.visionai.v1.Partition.RelativeTemporalPartition.getDefaultInstance()
: relativeTemporalPartition_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getTemporalPartition());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getSpatialPartition());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(3, getRelativeTemporalPartition());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTemporalPartition());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSpatialPartition());
}
if (((bitField0_ & 0x00000004) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
3, getRelativeTemporalPartition());
}
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.Partition)) {
return super.equals(obj);
}
com.google.cloud.visionai.v1.Partition other = (com.google.cloud.visionai.v1.Partition) obj;
if (hasTemporalPartition() != other.hasTemporalPartition()) return false;
if (hasTemporalPartition()) {
if (!getTemporalPartition().equals(other.getTemporalPartition())) return false;
}
if (hasSpatialPartition() != other.hasSpatialPartition()) return false;
if (hasSpatialPartition()) {
if (!getSpatialPartition().equals(other.getSpatialPartition())) return false;
}
if (hasRelativeTemporalPartition() != other.hasRelativeTemporalPartition()) return false;
if (hasRelativeTemporalPartition()) {
if (!getRelativeTemporalPartition().equals(other.getRelativeTemporalPartition()))
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();
if (hasTemporalPartition()) {
hash = (37 * hash) + TEMPORAL_PARTITION_FIELD_NUMBER;
hash = (53 * hash) + getTemporalPartition().hashCode();
}
if (hasSpatialPartition()) {
hash = (37 * hash) + SPATIAL_PARTITION_FIELD_NUMBER;
hash = (53 * hash) + getSpatialPartition().hashCode();
}
if (hasRelativeTemporalPartition()) {
hash = (37 * hash) + RELATIVE_TEMPORAL_PARTITION_FIELD_NUMBER;
hash = (53 * hash) + getRelativeTemporalPartition().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.visionai.v1.Partition parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.Partition 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.Partition parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.Partition 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.Partition parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.Partition 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.Partition parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.Partition 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.Partition parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.Partition 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.Partition 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.Partition 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.Partition 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;
}
/**
*
*
*
* Partition to specify the partition in time and space for sub-asset level
* annotation.
*
*
* Protobuf type {@code google.cloud.visionai.v1.Partition}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.Partition)
com.google.cloud.visionai.v1.PartitionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.WarehouseProto
.internal_static_google_cloud_visionai_v1_Partition_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.WarehouseProto
.internal_static_google_cloud_visionai_v1_Partition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.Partition.class,
com.google.cloud.visionai.v1.Partition.Builder.class);
}
// Construct using com.google.cloud.visionai.v1.Partition.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getTemporalPartitionFieldBuilder();
getSpatialPartitionFieldBuilder();
getRelativeTemporalPartitionFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
temporalPartition_ = null;
if (temporalPartitionBuilder_ != null) {
temporalPartitionBuilder_.dispose();
temporalPartitionBuilder_ = null;
}
spatialPartition_ = null;
if (spatialPartitionBuilder_ != null) {
spatialPartitionBuilder_.dispose();
spatialPartitionBuilder_ = null;
}
relativeTemporalPartition_ = null;
if (relativeTemporalPartitionBuilder_ != null) {
relativeTemporalPartitionBuilder_.dispose();
relativeTemporalPartitionBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.visionai.v1.WarehouseProto
.internal_static_google_cloud_visionai_v1_Partition_descriptor;
}
@java.lang.Override
public com.google.cloud.visionai.v1.Partition getDefaultInstanceForType() {
return com.google.cloud.visionai.v1.Partition.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.visionai.v1.Partition build() {
com.google.cloud.visionai.v1.Partition result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.visionai.v1.Partition buildPartial() {
com.google.cloud.visionai.v1.Partition result =
new com.google.cloud.visionai.v1.Partition(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.visionai.v1.Partition result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.temporalPartition_ =
temporalPartitionBuilder_ == null
? temporalPartition_
: temporalPartitionBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.spatialPartition_ =
spatialPartitionBuilder_ == null ? spatialPartition_ : spatialPartitionBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.relativeTemporalPartition_ =
relativeTemporalPartitionBuilder_ == null
? relativeTemporalPartition_
: relativeTemporalPartitionBuilder_.build();
to_bitField0_ |= 0x00000004;
}
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.Partition) {
return mergeFrom((com.google.cloud.visionai.v1.Partition) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.visionai.v1.Partition other) {
if (other == com.google.cloud.visionai.v1.Partition.getDefaultInstance()) return this;
if (other.hasTemporalPartition()) {
mergeTemporalPartition(other.getTemporalPartition());
}
if (other.hasSpatialPartition()) {
mergeSpatialPartition(other.getSpatialPartition());
}
if (other.hasRelativeTemporalPartition()) {
mergeRelativeTemporalPartition(other.getRelativeTemporalPartition());
}
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:
{
input.readMessage(
getTemporalPartitionFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
input.readMessage(
getSpatialPartitionFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
input.readMessage(
getRelativeTemporalPartitionFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
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 com.google.cloud.visionai.v1.Partition.TemporalPartition temporalPartition_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.Partition.TemporalPartition,
com.google.cloud.visionai.v1.Partition.TemporalPartition.Builder,
com.google.cloud.visionai.v1.Partition.TemporalPartitionOrBuilder>
temporalPartitionBuilder_;
/**
*
*
*
* Partition of asset in time.
*
*
* .google.cloud.visionai.v1.Partition.TemporalPartition temporal_partition = 1;
*
* @return Whether the temporalPartition field is set.
*/
public boolean hasTemporalPartition() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Partition of asset in time.
*
*
* .google.cloud.visionai.v1.Partition.TemporalPartition temporal_partition = 1;
*
* @return The temporalPartition.
*/
public com.google.cloud.visionai.v1.Partition.TemporalPartition getTemporalPartition() {
if (temporalPartitionBuilder_ == null) {
return temporalPartition_ == null
? com.google.cloud.visionai.v1.Partition.TemporalPartition.getDefaultInstance()
: temporalPartition_;
} else {
return temporalPartitionBuilder_.getMessage();
}
}
/**
*
*
*
* Partition of asset in time.
*
*
* .google.cloud.visionai.v1.Partition.TemporalPartition temporal_partition = 1;
*/
public Builder setTemporalPartition(
com.google.cloud.visionai.v1.Partition.TemporalPartition value) {
if (temporalPartitionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
temporalPartition_ = value;
} else {
temporalPartitionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Partition of asset in time.
*
*
* .google.cloud.visionai.v1.Partition.TemporalPartition temporal_partition = 1;
*/
public Builder setTemporalPartition(
com.google.cloud.visionai.v1.Partition.TemporalPartition.Builder builderForValue) {
if (temporalPartitionBuilder_ == null) {
temporalPartition_ = builderForValue.build();
} else {
temporalPartitionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Partition of asset in time.
*
*
* .google.cloud.visionai.v1.Partition.TemporalPartition temporal_partition = 1;
*/
public Builder mergeTemporalPartition(
com.google.cloud.visionai.v1.Partition.TemporalPartition value) {
if (temporalPartitionBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)
&& temporalPartition_ != null
&& temporalPartition_
!= com.google.cloud.visionai.v1.Partition.TemporalPartition.getDefaultInstance()) {
getTemporalPartitionBuilder().mergeFrom(value);
} else {
temporalPartition_ = value;
}
} else {
temporalPartitionBuilder_.mergeFrom(value);
}
if (temporalPartition_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
*
*
* Partition of asset in time.
*
*
* .google.cloud.visionai.v1.Partition.TemporalPartition temporal_partition = 1;
*/
public Builder clearTemporalPartition() {
bitField0_ = (bitField0_ & ~0x00000001);
temporalPartition_ = null;
if (temporalPartitionBuilder_ != null) {
temporalPartitionBuilder_.dispose();
temporalPartitionBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Partition of asset in time.
*
*
* .google.cloud.visionai.v1.Partition.TemporalPartition temporal_partition = 1;
*/
public com.google.cloud.visionai.v1.Partition.TemporalPartition.Builder
getTemporalPartitionBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getTemporalPartitionFieldBuilder().getBuilder();
}
/**
*
*
*
* Partition of asset in time.
*
*
* .google.cloud.visionai.v1.Partition.TemporalPartition temporal_partition = 1;
*/
public com.google.cloud.visionai.v1.Partition.TemporalPartitionOrBuilder
getTemporalPartitionOrBuilder() {
if (temporalPartitionBuilder_ != null) {
return temporalPartitionBuilder_.getMessageOrBuilder();
} else {
return temporalPartition_ == null
? com.google.cloud.visionai.v1.Partition.TemporalPartition.getDefaultInstance()
: temporalPartition_;
}
}
/**
*
*
*
* Partition of asset in time.
*
*
* .google.cloud.visionai.v1.Partition.TemporalPartition temporal_partition = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.Partition.TemporalPartition,
com.google.cloud.visionai.v1.Partition.TemporalPartition.Builder,
com.google.cloud.visionai.v1.Partition.TemporalPartitionOrBuilder>
getTemporalPartitionFieldBuilder() {
if (temporalPartitionBuilder_ == null) {
temporalPartitionBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.Partition.TemporalPartition,
com.google.cloud.visionai.v1.Partition.TemporalPartition.Builder,
com.google.cloud.visionai.v1.Partition.TemporalPartitionOrBuilder>(
getTemporalPartition(), getParentForChildren(), isClean());
temporalPartition_ = null;
}
return temporalPartitionBuilder_;
}
private com.google.cloud.visionai.v1.Partition.SpatialPartition spatialPartition_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.Partition.SpatialPartition,
com.google.cloud.visionai.v1.Partition.SpatialPartition.Builder,
com.google.cloud.visionai.v1.Partition.SpatialPartitionOrBuilder>
spatialPartitionBuilder_;
/**
*
*
*
* Partition of asset in space.
*
*
* .google.cloud.visionai.v1.Partition.SpatialPartition spatial_partition = 2;
*
* @return Whether the spatialPartition field is set.
*/
public boolean hasSpatialPartition() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Partition of asset in space.
*
*
* .google.cloud.visionai.v1.Partition.SpatialPartition spatial_partition = 2;
*
* @return The spatialPartition.
*/
public com.google.cloud.visionai.v1.Partition.SpatialPartition getSpatialPartition() {
if (spatialPartitionBuilder_ == null) {
return spatialPartition_ == null
? com.google.cloud.visionai.v1.Partition.SpatialPartition.getDefaultInstance()
: spatialPartition_;
} else {
return spatialPartitionBuilder_.getMessage();
}
}
/**
*
*
*
* Partition of asset in space.
*
*
* .google.cloud.visionai.v1.Partition.SpatialPartition spatial_partition = 2;
*/
public Builder setSpatialPartition(
com.google.cloud.visionai.v1.Partition.SpatialPartition value) {
if (spatialPartitionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
spatialPartition_ = value;
} else {
spatialPartitionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Partition of asset in space.
*
*
* .google.cloud.visionai.v1.Partition.SpatialPartition spatial_partition = 2;
*/
public Builder setSpatialPartition(
com.google.cloud.visionai.v1.Partition.SpatialPartition.Builder builderForValue) {
if (spatialPartitionBuilder_ == null) {
spatialPartition_ = builderForValue.build();
} else {
spatialPartitionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Partition of asset in space.
*
*
* .google.cloud.visionai.v1.Partition.SpatialPartition spatial_partition = 2;
*/
public Builder mergeSpatialPartition(
com.google.cloud.visionai.v1.Partition.SpatialPartition value) {
if (spatialPartitionBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)
&& spatialPartition_ != null
&& spatialPartition_
!= com.google.cloud.visionai.v1.Partition.SpatialPartition.getDefaultInstance()) {
getSpatialPartitionBuilder().mergeFrom(value);
} else {
spatialPartition_ = value;
}
} else {
spatialPartitionBuilder_.mergeFrom(value);
}
if (spatialPartition_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
*
*
* Partition of asset in space.
*
*
* .google.cloud.visionai.v1.Partition.SpatialPartition spatial_partition = 2;
*/
public Builder clearSpatialPartition() {
bitField0_ = (bitField0_ & ~0x00000002);
spatialPartition_ = null;
if (spatialPartitionBuilder_ != null) {
spatialPartitionBuilder_.dispose();
spatialPartitionBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Partition of asset in space.
*
*
* .google.cloud.visionai.v1.Partition.SpatialPartition spatial_partition = 2;
*/
public com.google.cloud.visionai.v1.Partition.SpatialPartition.Builder
getSpatialPartitionBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getSpatialPartitionFieldBuilder().getBuilder();
}
/**
*
*
*
* Partition of asset in space.
*
*
* .google.cloud.visionai.v1.Partition.SpatialPartition spatial_partition = 2;
*/
public com.google.cloud.visionai.v1.Partition.SpatialPartitionOrBuilder
getSpatialPartitionOrBuilder() {
if (spatialPartitionBuilder_ != null) {
return spatialPartitionBuilder_.getMessageOrBuilder();
} else {
return spatialPartition_ == null
? com.google.cloud.visionai.v1.Partition.SpatialPartition.getDefaultInstance()
: spatialPartition_;
}
}
/**
*
*
*
* Partition of asset in space.
*
*
* .google.cloud.visionai.v1.Partition.SpatialPartition spatial_partition = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.Partition.SpatialPartition,
com.google.cloud.visionai.v1.Partition.SpatialPartition.Builder,
com.google.cloud.visionai.v1.Partition.SpatialPartitionOrBuilder>
getSpatialPartitionFieldBuilder() {
if (spatialPartitionBuilder_ == null) {
spatialPartitionBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.Partition.SpatialPartition,
com.google.cloud.visionai.v1.Partition.SpatialPartition.Builder,
com.google.cloud.visionai.v1.Partition.SpatialPartitionOrBuilder>(
getSpatialPartition(), getParentForChildren(), isClean());
spatialPartition_ = null;
}
return spatialPartitionBuilder_;
}
private com.google.cloud.visionai.v1.Partition.RelativeTemporalPartition
relativeTemporalPartition_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.Partition.RelativeTemporalPartition,
com.google.cloud.visionai.v1.Partition.RelativeTemporalPartition.Builder,
com.google.cloud.visionai.v1.Partition.RelativeTemporalPartitionOrBuilder>
relativeTemporalPartitionBuilder_;
/**
*
*
*
* Partition of asset in time.
*
*
*
* .google.cloud.visionai.v1.Partition.RelativeTemporalPartition relative_temporal_partition = 3;
*
*
* @return Whether the relativeTemporalPartition field is set.
*/
public boolean hasRelativeTemporalPartition() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* Partition of asset in time.
*
*
*
* .google.cloud.visionai.v1.Partition.RelativeTemporalPartition relative_temporal_partition = 3;
*
*
* @return The relativeTemporalPartition.
*/
public com.google.cloud.visionai.v1.Partition.RelativeTemporalPartition
getRelativeTemporalPartition() {
if (relativeTemporalPartitionBuilder_ == null) {
return relativeTemporalPartition_ == null
? com.google.cloud.visionai.v1.Partition.RelativeTemporalPartition.getDefaultInstance()
: relativeTemporalPartition_;
} else {
return relativeTemporalPartitionBuilder_.getMessage();
}
}
/**
*
*
*
* Partition of asset in time.
*
*
*
* .google.cloud.visionai.v1.Partition.RelativeTemporalPartition relative_temporal_partition = 3;
*
*/
public Builder setRelativeTemporalPartition(
com.google.cloud.visionai.v1.Partition.RelativeTemporalPartition value) {
if (relativeTemporalPartitionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
relativeTemporalPartition_ = value;
} else {
relativeTemporalPartitionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Partition of asset in time.
*
*
*
* .google.cloud.visionai.v1.Partition.RelativeTemporalPartition relative_temporal_partition = 3;
*
*/
public Builder setRelativeTemporalPartition(
com.google.cloud.visionai.v1.Partition.RelativeTemporalPartition.Builder builderForValue) {
if (relativeTemporalPartitionBuilder_ == null) {
relativeTemporalPartition_ = builderForValue.build();
} else {
relativeTemporalPartitionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Partition of asset in time.
*
*
*
* .google.cloud.visionai.v1.Partition.RelativeTemporalPartition relative_temporal_partition = 3;
*
*/
public Builder mergeRelativeTemporalPartition(
com.google.cloud.visionai.v1.Partition.RelativeTemporalPartition value) {
if (relativeTemporalPartitionBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)
&& relativeTemporalPartition_ != null
&& relativeTemporalPartition_
!= com.google.cloud.visionai.v1.Partition.RelativeTemporalPartition
.getDefaultInstance()) {
getRelativeTemporalPartitionBuilder().mergeFrom(value);
} else {
relativeTemporalPartition_ = value;
}
} else {
relativeTemporalPartitionBuilder_.mergeFrom(value);
}
if (relativeTemporalPartition_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
*
*
* Partition of asset in time.
*
*
*
* .google.cloud.visionai.v1.Partition.RelativeTemporalPartition relative_temporal_partition = 3;
*
*/
public Builder clearRelativeTemporalPartition() {
bitField0_ = (bitField0_ & ~0x00000004);
relativeTemporalPartition_ = null;
if (relativeTemporalPartitionBuilder_ != null) {
relativeTemporalPartitionBuilder_.dispose();
relativeTemporalPartitionBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Partition of asset in time.
*
*
*
* .google.cloud.visionai.v1.Partition.RelativeTemporalPartition relative_temporal_partition = 3;
*
*/
public com.google.cloud.visionai.v1.Partition.RelativeTemporalPartition.Builder
getRelativeTemporalPartitionBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getRelativeTemporalPartitionFieldBuilder().getBuilder();
}
/**
*
*
*
* Partition of asset in time.
*
*
*
* .google.cloud.visionai.v1.Partition.RelativeTemporalPartition relative_temporal_partition = 3;
*
*/
public com.google.cloud.visionai.v1.Partition.RelativeTemporalPartitionOrBuilder
getRelativeTemporalPartitionOrBuilder() {
if (relativeTemporalPartitionBuilder_ != null) {
return relativeTemporalPartitionBuilder_.getMessageOrBuilder();
} else {
return relativeTemporalPartition_ == null
? com.google.cloud.visionai.v1.Partition.RelativeTemporalPartition.getDefaultInstance()
: relativeTemporalPartition_;
}
}
/**
*
*
*
* Partition of asset in time.
*
*
*
* .google.cloud.visionai.v1.Partition.RelativeTemporalPartition relative_temporal_partition = 3;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.Partition.RelativeTemporalPartition,
com.google.cloud.visionai.v1.Partition.RelativeTemporalPartition.Builder,
com.google.cloud.visionai.v1.Partition.RelativeTemporalPartitionOrBuilder>
getRelativeTemporalPartitionFieldBuilder() {
if (relativeTemporalPartitionBuilder_ == null) {
relativeTemporalPartitionBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.Partition.RelativeTemporalPartition,
com.google.cloud.visionai.v1.Partition.RelativeTemporalPartition.Builder,
com.google.cloud.visionai.v1.Partition.RelativeTemporalPartitionOrBuilder>(
getRelativeTemporalPartition(), getParentForChildren(), isClean());
relativeTemporalPartition_ = null;
}
return relativeTemporalPartitionBuilder_;
}
@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.Partition)
}
// @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.Partition)
private static final com.google.cloud.visionai.v1.Partition DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.visionai.v1.Partition();
}
public static com.google.cloud.visionai.v1.Partition getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Partition 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.Partition getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy