
com.google.cloud.visionai.v1.AnalyzeAssetMetadata 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;
/**
*
*
*
* Metadata for AnalyzeAsset.
*
*
* Protobuf type {@code google.cloud.visionai.v1.AnalyzeAssetMetadata}
*/
public final class AnalyzeAssetMetadata extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.AnalyzeAssetMetadata)
AnalyzeAssetMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use AnalyzeAssetMetadata.newBuilder() to construct.
private AnalyzeAssetMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AnalyzeAssetMetadata() {
analysisStatus_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new AnalyzeAssetMetadata();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.WarehouseProto
.internal_static_google_cloud_visionai_v1_AnalyzeAssetMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.WarehouseProto
.internal_static_google_cloud_visionai_v1_AnalyzeAssetMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.AnalyzeAssetMetadata.class,
com.google.cloud.visionai.v1.AnalyzeAssetMetadata.Builder.class);
}
public interface AnalysisStatusOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus)
com.google.protobuf.MessageOrBuilder {
/**
* .google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus.State state = 2;
*
* @return The enum numeric value on the wire for state.
*/
int getStateValue();
/**
* .google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus.State state = 2;
*
* @return The state.
*/
com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus.State getState();
/**
* string status_message = 3;
*
* @return The statusMessage.
*/
java.lang.String getStatusMessage();
/**
* string status_message = 3;
*
* @return The bytes for statusMessage.
*/
com.google.protobuf.ByteString getStatusMessageBytes();
/**
*
*
*
* The search capability requested.
*
*
* .google.cloud.visionai.v1.SearchCapability search_capability = 4;
*
* @return Whether the searchCapability field is set.
*/
boolean hasSearchCapability();
/**
*
*
*
* The search capability requested.
*
*
* .google.cloud.visionai.v1.SearchCapability search_capability = 4;
*
* @return The searchCapability.
*/
com.google.cloud.visionai.v1.SearchCapability getSearchCapability();
/**
*
*
*
* The search capability requested.
*
*
* .google.cloud.visionai.v1.SearchCapability search_capability = 4;
*/
com.google.cloud.visionai.v1.SearchCapabilityOrBuilder getSearchCapabilityOrBuilder();
}
/**
*
*
*
* The status of analysis on each search capability.
*
*
* Protobuf type {@code google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus}
*/
public static final class AnalysisStatus extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus)
AnalysisStatusOrBuilder {
private static final long serialVersionUID = 0L;
// Use AnalysisStatus.newBuilder() to construct.
private AnalysisStatus(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AnalysisStatus() {
state_ = 0;
statusMessage_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new AnalysisStatus();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.WarehouseProto
.internal_static_google_cloud_visionai_v1_AnalyzeAssetMetadata_AnalysisStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.WarehouseProto
.internal_static_google_cloud_visionai_v1_AnalyzeAssetMetadata_AnalysisStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus.class,
com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus.Builder.class);
}
/**
*
*
*
* The state of the search capability.
*
*
* Protobuf enum {@code google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus.State}
*/
public enum State implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*
*
* The default process state should never happen.
*
*
* STATE_UNSPECIFIED = 0;
*/
STATE_UNSPECIFIED(0),
/**
*
*
*
* The feature is in progress.
*
*
* IN_PROGRESS = 1;
*/
IN_PROGRESS(1),
/**
*
*
*
* The process is successfully done.
*
*
* SUCCEEDED = 2;
*/
SUCCEEDED(2),
/**
*
*
*
* The process failed.
*
*
* FAILED = 3;
*/
FAILED(3),
UNRECOGNIZED(-1),
;
/**
*
*
*
* The default process state should never happen.
*
*
* STATE_UNSPECIFIED = 0;
*/
public static final int STATE_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* The feature is in progress.
*
*
* IN_PROGRESS = 1;
*/
public static final int IN_PROGRESS_VALUE = 1;
/**
*
*
*
* The process is successfully done.
*
*
* SUCCEEDED = 2;
*/
public static final int SUCCEEDED_VALUE = 2;
/**
*
*
*
* The process failed.
*
*
* FAILED = 3;
*/
public static final int FAILED_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static State valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static State forNumber(int value) {
switch (value) {
case 0:
return STATE_UNSPECIFIED;
case 1:
return IN_PROGRESS;
case 2:
return SUCCEEDED;
case 3:
return FAILED;
default:
return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public State findValueByNumber(int number) {
return State.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
return com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus.getDescriptor()
.getEnumTypes()
.get(0);
}
private static final State[] VALUES = values();
public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private State(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus.State)
}
private int bitField0_;
public static final int STATE_FIELD_NUMBER = 2;
private int state_ = 0;
/**
* .google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus.State state = 2;
*
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override
public int getStateValue() {
return state_;
}
/**
* .google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus.State state = 2;
*
* @return The state.
*/
@java.lang.Override
public com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus.State getState() {
com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus.State result =
com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus.State.forNumber(state_);
return result == null
? com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus.State.UNRECOGNIZED
: result;
}
public static final int STATUS_MESSAGE_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object statusMessage_ = "";
/**
* string status_message = 3;
*
* @return The statusMessage.
*/
@java.lang.Override
public java.lang.String getStatusMessage() {
java.lang.Object ref = statusMessage_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
statusMessage_ = s;
return s;
}
}
/**
* string status_message = 3;
*
* @return The bytes for statusMessage.
*/
@java.lang.Override
public com.google.protobuf.ByteString getStatusMessageBytes() {
java.lang.Object ref = statusMessage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
statusMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SEARCH_CAPABILITY_FIELD_NUMBER = 4;
private com.google.cloud.visionai.v1.SearchCapability searchCapability_;
/**
*
*
*
* The search capability requested.
*
*
* .google.cloud.visionai.v1.SearchCapability search_capability = 4;
*
* @return Whether the searchCapability field is set.
*/
@java.lang.Override
public boolean hasSearchCapability() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* The search capability requested.
*
*
* .google.cloud.visionai.v1.SearchCapability search_capability = 4;
*
* @return The searchCapability.
*/
@java.lang.Override
public com.google.cloud.visionai.v1.SearchCapability getSearchCapability() {
return searchCapability_ == null
? com.google.cloud.visionai.v1.SearchCapability.getDefaultInstance()
: searchCapability_;
}
/**
*
*
*
* The search capability requested.
*
*
* .google.cloud.visionai.v1.SearchCapability search_capability = 4;
*/
@java.lang.Override
public com.google.cloud.visionai.v1.SearchCapabilityOrBuilder getSearchCapabilityOrBuilder() {
return searchCapability_ == null
? com.google.cloud.visionai.v1.SearchCapability.getDefaultInstance()
: searchCapability_;
}
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 (state_
!= com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus.State
.STATE_UNSPECIFIED
.getNumber()) {
output.writeEnum(2, state_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, statusMessage_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(4, getSearchCapability());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (state_
!= com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus.State
.STATE_UNSPECIFIED
.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, statusMessage_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSearchCapability());
}
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.AnalyzeAssetMetadata.AnalysisStatus)) {
return super.equals(obj);
}
com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus other =
(com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus) obj;
if (state_ != other.state_) return false;
if (!getStatusMessage().equals(other.getStatusMessage())) return false;
if (hasSearchCapability() != other.hasSearchCapability()) return false;
if (hasSearchCapability()) {
if (!getSearchCapability().equals(other.getSearchCapability())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + STATE_FIELD_NUMBER;
hash = (53 * hash) + state_;
hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getStatusMessage().hashCode();
if (hasSearchCapability()) {
hash = (37 * hash) + SEARCH_CAPABILITY_FIELD_NUMBER;
hash = (53 * hash) + getSearchCapability().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus 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.AnalyzeAssetMetadata.AnalysisStatus parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus 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.AnalyzeAssetMetadata.AnalysisStatus parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus 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.AnalyzeAssetMetadata.AnalysisStatus parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus 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.AnalyzeAssetMetadata.AnalysisStatus
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus
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.AnalyzeAssetMetadata.AnalysisStatus 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.AnalyzeAssetMetadata.AnalysisStatus 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.AnalyzeAssetMetadata.AnalysisStatus prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* The status of analysis on each search capability.
*
*
* Protobuf type {@code google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus)
com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatusOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.WarehouseProto
.internal_static_google_cloud_visionai_v1_AnalyzeAssetMetadata_AnalysisStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.WarehouseProto
.internal_static_google_cloud_visionai_v1_AnalyzeAssetMetadata_AnalysisStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus.class,
com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus.Builder.class);
}
// Construct using
// com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getSearchCapabilityFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
state_ = 0;
statusMessage_ = "";
searchCapability_ = null;
if (searchCapabilityBuilder_ != null) {
searchCapabilityBuilder_.dispose();
searchCapabilityBuilder_ = 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_AnalyzeAssetMetadata_AnalysisStatus_descriptor;
}
@java.lang.Override
public com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus
getDefaultInstanceForType() {
return com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus
.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus build() {
com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus buildPartial() {
com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus result =
new com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.state_ = state_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.statusMessage_ = statusMessage_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.searchCapability_ =
searchCapabilityBuilder_ == null
? searchCapability_
: searchCapabilityBuilder_.build();
to_bitField0_ |= 0x00000001;
}
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.AnalyzeAssetMetadata.AnalysisStatus) {
return mergeFrom(
(com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus other) {
if (other
== com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus
.getDefaultInstance()) return this;
if (other.state_ != 0) {
setStateValue(other.getStateValue());
}
if (!other.getStatusMessage().isEmpty()) {
statusMessage_ = other.statusMessage_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasSearchCapability()) {
mergeSearchCapability(other.getSearchCapability());
}
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 16:
{
state_ = input.readEnum();
bitField0_ |= 0x00000001;
break;
} // case 16
case 26:
{
statusMessage_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 26
case 34:
{
input.readMessage(
getSearchCapabilityFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 34
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 int state_ = 0;
/**
* .google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus.State state = 2;
*
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override
public int getStateValue() {
return state_;
}
/**
* .google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus.State state = 2;
*
* @param value The enum numeric value on the wire for state to set.
* @return This builder for chaining.
*/
public Builder setStateValue(int value) {
state_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus.State state = 2;
*
* @return The state.
*/
@java.lang.Override
public com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus.State getState() {
com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus.State result =
com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus.State.forNumber(
state_);
return result == null
? com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus.State.UNRECOGNIZED
: result;
}
/**
* .google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus.State state = 2;
*
* @param value The state to set.
* @return This builder for chaining.
*/
public Builder setState(
com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus.State value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
state_ = value.getNumber();
onChanged();
return this;
}
/**
* .google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus.State state = 2;
*
* @return This builder for chaining.
*/
public Builder clearState() {
bitField0_ = (bitField0_ & ~0x00000001);
state_ = 0;
onChanged();
return this;
}
private java.lang.Object statusMessage_ = "";
/**
* string status_message = 3;
*
* @return The statusMessage.
*/
public java.lang.String getStatusMessage() {
java.lang.Object ref = statusMessage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
statusMessage_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string status_message = 3;
*
* @return The bytes for statusMessage.
*/
public com.google.protobuf.ByteString getStatusMessageBytes() {
java.lang.Object ref = statusMessage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
statusMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string status_message = 3;
*
* @param value The statusMessage to set.
* @return This builder for chaining.
*/
public Builder setStatusMessage(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
statusMessage_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* string status_message = 3;
*
* @return This builder for chaining.
*/
public Builder clearStatusMessage() {
statusMessage_ = getDefaultInstance().getStatusMessage();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* string status_message = 3;
*
* @param value The bytes for statusMessage to set.
* @return This builder for chaining.
*/
public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
statusMessage_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private com.google.cloud.visionai.v1.SearchCapability searchCapability_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.SearchCapability,
com.google.cloud.visionai.v1.SearchCapability.Builder,
com.google.cloud.visionai.v1.SearchCapabilityOrBuilder>
searchCapabilityBuilder_;
/**
*
*
*
* The search capability requested.
*
*
* .google.cloud.visionai.v1.SearchCapability search_capability = 4;
*
* @return Whether the searchCapability field is set.
*/
public boolean hasSearchCapability() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* The search capability requested.
*
*
* .google.cloud.visionai.v1.SearchCapability search_capability = 4;
*
* @return The searchCapability.
*/
public com.google.cloud.visionai.v1.SearchCapability getSearchCapability() {
if (searchCapabilityBuilder_ == null) {
return searchCapability_ == null
? com.google.cloud.visionai.v1.SearchCapability.getDefaultInstance()
: searchCapability_;
} else {
return searchCapabilityBuilder_.getMessage();
}
}
/**
*
*
*
* The search capability requested.
*
*
* .google.cloud.visionai.v1.SearchCapability search_capability = 4;
*/
public Builder setSearchCapability(com.google.cloud.visionai.v1.SearchCapability value) {
if (searchCapabilityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
searchCapability_ = value;
} else {
searchCapabilityBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* The search capability requested.
*
*
* .google.cloud.visionai.v1.SearchCapability search_capability = 4;
*/
public Builder setSearchCapability(
com.google.cloud.visionai.v1.SearchCapability.Builder builderForValue) {
if (searchCapabilityBuilder_ == null) {
searchCapability_ = builderForValue.build();
} else {
searchCapabilityBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* The search capability requested.
*
*
* .google.cloud.visionai.v1.SearchCapability search_capability = 4;
*/
public Builder mergeSearchCapability(com.google.cloud.visionai.v1.SearchCapability value) {
if (searchCapabilityBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)
&& searchCapability_ != null
&& searchCapability_
!= com.google.cloud.visionai.v1.SearchCapability.getDefaultInstance()) {
getSearchCapabilityBuilder().mergeFrom(value);
} else {
searchCapability_ = value;
}
} else {
searchCapabilityBuilder_.mergeFrom(value);
}
if (searchCapability_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
*
*
* The search capability requested.
*
*
* .google.cloud.visionai.v1.SearchCapability search_capability = 4;
*/
public Builder clearSearchCapability() {
bitField0_ = (bitField0_ & ~0x00000004);
searchCapability_ = null;
if (searchCapabilityBuilder_ != null) {
searchCapabilityBuilder_.dispose();
searchCapabilityBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* The search capability requested.
*
*
* .google.cloud.visionai.v1.SearchCapability search_capability = 4;
*/
public com.google.cloud.visionai.v1.SearchCapability.Builder getSearchCapabilityBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getSearchCapabilityFieldBuilder().getBuilder();
}
/**
*
*
*
* The search capability requested.
*
*
* .google.cloud.visionai.v1.SearchCapability search_capability = 4;
*/
public com.google.cloud.visionai.v1.SearchCapabilityOrBuilder getSearchCapabilityOrBuilder() {
if (searchCapabilityBuilder_ != null) {
return searchCapabilityBuilder_.getMessageOrBuilder();
} else {
return searchCapability_ == null
? com.google.cloud.visionai.v1.SearchCapability.getDefaultInstance()
: searchCapability_;
}
}
/**
*
*
*
* The search capability requested.
*
*
* .google.cloud.visionai.v1.SearchCapability search_capability = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.SearchCapability,
com.google.cloud.visionai.v1.SearchCapability.Builder,
com.google.cloud.visionai.v1.SearchCapabilityOrBuilder>
getSearchCapabilityFieldBuilder() {
if (searchCapabilityBuilder_ == null) {
searchCapabilityBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.SearchCapability,
com.google.cloud.visionai.v1.SearchCapability.Builder,
com.google.cloud.visionai.v1.SearchCapabilityOrBuilder>(
getSearchCapability(), getParentForChildren(), isClean());
searchCapability_ = null;
}
return searchCapabilityBuilder_;
}
@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.AnalyzeAssetMetadata.AnalysisStatus)
}
// @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus)
private static final com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus();
}
public static com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AnalysisStatus 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.AnalyzeAssetMetadata.AnalysisStatus
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int ANALYSIS_STATUS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List
analysisStatus_;
/**
*
*
*
* The status of analysis on all search capabilities.
*
*
*
* repeated .google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus analysis_status = 1;
*
*/
@java.lang.Override
public java.util.List
getAnalysisStatusList() {
return analysisStatus_;
}
/**
*
*
*
* The status of analysis on all search capabilities.
*
*
*
* repeated .google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus analysis_status = 1;
*
*/
@java.lang.Override
public java.util.List<
? extends com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatusOrBuilder>
getAnalysisStatusOrBuilderList() {
return analysisStatus_;
}
/**
*
*
*
* The status of analysis on all search capabilities.
*
*
*
* repeated .google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus analysis_status = 1;
*
*/
@java.lang.Override
public int getAnalysisStatusCount() {
return analysisStatus_.size();
}
/**
*
*
*
* The status of analysis on all search capabilities.
*
*
*
* repeated .google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus analysis_status = 1;
*
*/
@java.lang.Override
public com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus getAnalysisStatus(
int index) {
return analysisStatus_.get(index);
}
/**
*
*
*
* The status of analysis on all search capabilities.
*
*
*
* repeated .google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus analysis_status = 1;
*
*/
@java.lang.Override
public com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatusOrBuilder
getAnalysisStatusOrBuilder(int index) {
return analysisStatus_.get(index);
}
public static final int START_TIME_FIELD_NUMBER = 2;
private com.google.protobuf.Timestamp startTime_;
/**
*
*
*
* The start time of the operation.
*
*
* .google.protobuf.Timestamp start_time = 2;
*
* @return Whether the startTime field is set.
*/
@java.lang.Override
public boolean hasStartTime() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* The start time of the operation.
*
*
* .google.protobuf.Timestamp start_time = 2;
*
* @return The startTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getStartTime() {
return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
}
/**
*
*
*
* The start time of the operation.
*
*
* .google.protobuf.Timestamp start_time = 2;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
}
public static final int UPDATE_TIME_FIELD_NUMBER = 3;
private com.google.protobuf.Timestamp updateTime_;
/**
*
*
*
* The update time of the operation.
*
*
* .google.protobuf.Timestamp update_time = 3;
*
* @return Whether the updateTime field is set.
*/
@java.lang.Override
public boolean hasUpdateTime() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* The update time of the operation.
*
*
* .google.protobuf.Timestamp update_time = 3;
*
* @return The updateTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getUpdateTime() {
return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
}
/**
*
*
*
* The update time of the operation.
*
*
* .google.protobuf.Timestamp update_time = 3;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
}
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 {
for (int i = 0; i < analysisStatus_.size(); i++) {
output.writeMessage(1, analysisStatus_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getStartTime());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getUpdateTime());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < analysisStatus_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, analysisStatus_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime());
}
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.AnalyzeAssetMetadata)) {
return super.equals(obj);
}
com.google.cloud.visionai.v1.AnalyzeAssetMetadata other =
(com.google.cloud.visionai.v1.AnalyzeAssetMetadata) obj;
if (!getAnalysisStatusList().equals(other.getAnalysisStatusList())) return false;
if (hasStartTime() != other.hasStartTime()) return false;
if (hasStartTime()) {
if (!getStartTime().equals(other.getStartTime())) return false;
}
if (hasUpdateTime() != other.hasUpdateTime()) return false;
if (hasUpdateTime()) {
if (!getUpdateTime().equals(other.getUpdateTime())) 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 (getAnalysisStatusCount() > 0) {
hash = (37 * hash) + ANALYSIS_STATUS_FIELD_NUMBER;
hash = (53 * hash) + getAnalysisStatusList().hashCode();
}
if (hasStartTime()) {
hash = (37 * hash) + START_TIME_FIELD_NUMBER;
hash = (53 * hash) + getStartTime().hashCode();
}
if (hasUpdateTime()) {
hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getUpdateTime().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.visionai.v1.AnalyzeAssetMetadata parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.AnalyzeAssetMetadata 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.AnalyzeAssetMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.AnalyzeAssetMetadata 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.AnalyzeAssetMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.AnalyzeAssetMetadata 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.AnalyzeAssetMetadata parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.AnalyzeAssetMetadata 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.AnalyzeAssetMetadata parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.AnalyzeAssetMetadata 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.AnalyzeAssetMetadata 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.AnalyzeAssetMetadata 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.AnalyzeAssetMetadata 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;
}
/**
*
*
*
* Metadata for AnalyzeAsset.
*
*
* Protobuf type {@code google.cloud.visionai.v1.AnalyzeAssetMetadata}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.AnalyzeAssetMetadata)
com.google.cloud.visionai.v1.AnalyzeAssetMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.WarehouseProto
.internal_static_google_cloud_visionai_v1_AnalyzeAssetMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.WarehouseProto
.internal_static_google_cloud_visionai_v1_AnalyzeAssetMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.AnalyzeAssetMetadata.class,
com.google.cloud.visionai.v1.AnalyzeAssetMetadata.Builder.class);
}
// Construct using com.google.cloud.visionai.v1.AnalyzeAssetMetadata.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getAnalysisStatusFieldBuilder();
getStartTimeFieldBuilder();
getUpdateTimeFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (analysisStatusBuilder_ == null) {
analysisStatus_ = java.util.Collections.emptyList();
} else {
analysisStatus_ = null;
analysisStatusBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
startTime_ = null;
if (startTimeBuilder_ != null) {
startTimeBuilder_.dispose();
startTimeBuilder_ = null;
}
updateTime_ = null;
if (updateTimeBuilder_ != null) {
updateTimeBuilder_.dispose();
updateTimeBuilder_ = 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_AnalyzeAssetMetadata_descriptor;
}
@java.lang.Override
public com.google.cloud.visionai.v1.AnalyzeAssetMetadata getDefaultInstanceForType() {
return com.google.cloud.visionai.v1.AnalyzeAssetMetadata.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.visionai.v1.AnalyzeAssetMetadata build() {
com.google.cloud.visionai.v1.AnalyzeAssetMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.visionai.v1.AnalyzeAssetMetadata buildPartial() {
com.google.cloud.visionai.v1.AnalyzeAssetMetadata result =
new com.google.cloud.visionai.v1.AnalyzeAssetMetadata(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartialRepeatedFields(
com.google.cloud.visionai.v1.AnalyzeAssetMetadata result) {
if (analysisStatusBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
analysisStatus_ = java.util.Collections.unmodifiableList(analysisStatus_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.analysisStatus_ = analysisStatus_;
} else {
result.analysisStatus_ = analysisStatusBuilder_.build();
}
}
private void buildPartial0(com.google.cloud.visionai.v1.AnalyzeAssetMetadata result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.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.AnalyzeAssetMetadata) {
return mergeFrom((com.google.cloud.visionai.v1.AnalyzeAssetMetadata) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.visionai.v1.AnalyzeAssetMetadata other) {
if (other == com.google.cloud.visionai.v1.AnalyzeAssetMetadata.getDefaultInstance())
return this;
if (analysisStatusBuilder_ == null) {
if (!other.analysisStatus_.isEmpty()) {
if (analysisStatus_.isEmpty()) {
analysisStatus_ = other.analysisStatus_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureAnalysisStatusIsMutable();
analysisStatus_.addAll(other.analysisStatus_);
}
onChanged();
}
} else {
if (!other.analysisStatus_.isEmpty()) {
if (analysisStatusBuilder_.isEmpty()) {
analysisStatusBuilder_.dispose();
analysisStatusBuilder_ = null;
analysisStatus_ = other.analysisStatus_;
bitField0_ = (bitField0_ & ~0x00000001);
analysisStatusBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getAnalysisStatusFieldBuilder()
: null;
} else {
analysisStatusBuilder_.addAllMessages(other.analysisStatus_);
}
}
}
if (other.hasStartTime()) {
mergeStartTime(other.getStartTime());
}
if (other.hasUpdateTime()) {
mergeUpdateTime(other.getUpdateTime());
}
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:
{
com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus m =
input.readMessage(
com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus.parser(),
extensionRegistry);
if (analysisStatusBuilder_ == null) {
ensureAnalysisStatusIsMutable();
analysisStatus_.add(m);
} else {
analysisStatusBuilder_.addMessage(m);
}
break;
} // case 10
case 18:
{
input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
input.readMessage(getUpdateTimeFieldBuilder().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 java.util.List
analysisStatus_ = java.util.Collections.emptyList();
private void ensureAnalysisStatusIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
analysisStatus_ =
new java.util.ArrayList<
com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus>(analysisStatus_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus,
com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus.Builder,
com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatusOrBuilder>
analysisStatusBuilder_;
/**
*
*
*
* The status of analysis on all search capabilities.
*
*
*
* repeated .google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus analysis_status = 1;
*
*/
public java.util.List
getAnalysisStatusList() {
if (analysisStatusBuilder_ == null) {
return java.util.Collections.unmodifiableList(analysisStatus_);
} else {
return analysisStatusBuilder_.getMessageList();
}
}
/**
*
*
*
* The status of analysis on all search capabilities.
*
*
*
* repeated .google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus analysis_status = 1;
*
*/
public int getAnalysisStatusCount() {
if (analysisStatusBuilder_ == null) {
return analysisStatus_.size();
} else {
return analysisStatusBuilder_.getCount();
}
}
/**
*
*
*
* The status of analysis on all search capabilities.
*
*
*
* repeated .google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus analysis_status = 1;
*
*/
public com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus getAnalysisStatus(
int index) {
if (analysisStatusBuilder_ == null) {
return analysisStatus_.get(index);
} else {
return analysisStatusBuilder_.getMessage(index);
}
}
/**
*
*
*
* The status of analysis on all search capabilities.
*
*
*
* repeated .google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus analysis_status = 1;
*
*/
public Builder setAnalysisStatus(
int index, com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus value) {
if (analysisStatusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAnalysisStatusIsMutable();
analysisStatus_.set(index, value);
onChanged();
} else {
analysisStatusBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* The status of analysis on all search capabilities.
*
*
*
* repeated .google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus analysis_status = 1;
*
*/
public Builder setAnalysisStatus(
int index,
com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus.Builder builderForValue) {
if (analysisStatusBuilder_ == null) {
ensureAnalysisStatusIsMutable();
analysisStatus_.set(index, builderForValue.build());
onChanged();
} else {
analysisStatusBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* The status of analysis on all search capabilities.
*
*
*
* repeated .google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus analysis_status = 1;
*
*/
public Builder addAnalysisStatus(
com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus value) {
if (analysisStatusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAnalysisStatusIsMutable();
analysisStatus_.add(value);
onChanged();
} else {
analysisStatusBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* The status of analysis on all search capabilities.
*
*
*
* repeated .google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus analysis_status = 1;
*
*/
public Builder addAnalysisStatus(
int index, com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus value) {
if (analysisStatusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAnalysisStatusIsMutable();
analysisStatus_.add(index, value);
onChanged();
} else {
analysisStatusBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* The status of analysis on all search capabilities.
*
*
*
* repeated .google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus analysis_status = 1;
*
*/
public Builder addAnalysisStatus(
com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus.Builder builderForValue) {
if (analysisStatusBuilder_ == null) {
ensureAnalysisStatusIsMutable();
analysisStatus_.add(builderForValue.build());
onChanged();
} else {
analysisStatusBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* The status of analysis on all search capabilities.
*
*
*
* repeated .google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus analysis_status = 1;
*
*/
public Builder addAnalysisStatus(
int index,
com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus.Builder builderForValue) {
if (analysisStatusBuilder_ == null) {
ensureAnalysisStatusIsMutable();
analysisStatus_.add(index, builderForValue.build());
onChanged();
} else {
analysisStatusBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* The status of analysis on all search capabilities.
*
*
*
* repeated .google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus analysis_status = 1;
*
*/
public Builder addAllAnalysisStatus(
java.lang.Iterable<
? extends com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus>
values) {
if (analysisStatusBuilder_ == null) {
ensureAnalysisStatusIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, analysisStatus_);
onChanged();
} else {
analysisStatusBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* The status of analysis on all search capabilities.
*
*
*
* repeated .google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus analysis_status = 1;
*
*/
public Builder clearAnalysisStatus() {
if (analysisStatusBuilder_ == null) {
analysisStatus_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
analysisStatusBuilder_.clear();
}
return this;
}
/**
*
*
*
* The status of analysis on all search capabilities.
*
*
*
* repeated .google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus analysis_status = 1;
*
*/
public Builder removeAnalysisStatus(int index) {
if (analysisStatusBuilder_ == null) {
ensureAnalysisStatusIsMutable();
analysisStatus_.remove(index);
onChanged();
} else {
analysisStatusBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* The status of analysis on all search capabilities.
*
*
*
* repeated .google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus analysis_status = 1;
*
*/
public com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus.Builder
getAnalysisStatusBuilder(int index) {
return getAnalysisStatusFieldBuilder().getBuilder(index);
}
/**
*
*
*
* The status of analysis on all search capabilities.
*
*
*
* repeated .google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus analysis_status = 1;
*
*/
public com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatusOrBuilder
getAnalysisStatusOrBuilder(int index) {
if (analysisStatusBuilder_ == null) {
return analysisStatus_.get(index);
} else {
return analysisStatusBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* The status of analysis on all search capabilities.
*
*
*
* repeated .google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus analysis_status = 1;
*
*/
public java.util.List<
? extends com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatusOrBuilder>
getAnalysisStatusOrBuilderList() {
if (analysisStatusBuilder_ != null) {
return analysisStatusBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(analysisStatus_);
}
}
/**
*
*
*
* The status of analysis on all search capabilities.
*
*
*
* repeated .google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus analysis_status = 1;
*
*/
public com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus.Builder
addAnalysisStatusBuilder() {
return getAnalysisStatusFieldBuilder()
.addBuilder(
com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus
.getDefaultInstance());
}
/**
*
*
*
* The status of analysis on all search capabilities.
*
*
*
* repeated .google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus analysis_status = 1;
*
*/
public com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus.Builder
addAnalysisStatusBuilder(int index) {
return getAnalysisStatusFieldBuilder()
.addBuilder(
index,
com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus
.getDefaultInstance());
}
/**
*
*
*
* The status of analysis on all search capabilities.
*
*
*
* repeated .google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus analysis_status = 1;
*
*/
public java.util.List
getAnalysisStatusBuilderList() {
return getAnalysisStatusFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus,
com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus.Builder,
com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatusOrBuilder>
getAnalysisStatusFieldBuilder() {
if (analysisStatusBuilder_ == null) {
analysisStatusBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus,
com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatus.Builder,
com.google.cloud.visionai.v1.AnalyzeAssetMetadata.AnalysisStatusOrBuilder>(
analysisStatus_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
analysisStatus_ = null;
}
return analysisStatusBuilder_;
}
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_;
/**
*
*
*
* The start time of the operation.
*
*
* .google.protobuf.Timestamp start_time = 2;
*
* @return Whether the startTime field is set.
*/
public boolean hasStartTime() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* The start time of the operation.
*
*
* .google.protobuf.Timestamp start_time = 2;
*
* @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();
}
}
/**
*
*
*
* The start time of the operation.
*
*
* .google.protobuf.Timestamp start_time = 2;
*/
public Builder setStartTime(com.google.protobuf.Timestamp value) {
if (startTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
startTime_ = value;
} else {
startTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* The start time of the operation.
*
*
* .google.protobuf.Timestamp start_time = 2;
*/
public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (startTimeBuilder_ == null) {
startTime_ = builderForValue.build();
} else {
startTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* The start time of the operation.
*
*
* .google.protobuf.Timestamp start_time = 2;
*/
public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
if (startTimeBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)
&& startTime_ != null
&& startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getStartTimeBuilder().mergeFrom(value);
} else {
startTime_ = value;
}
} else {
startTimeBuilder_.mergeFrom(value);
}
if (startTime_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
*
*
* The start time of the operation.
*
*
* .google.protobuf.Timestamp start_time = 2;
*/
public Builder clearStartTime() {
bitField0_ = (bitField0_ & ~0x00000002);
startTime_ = null;
if (startTimeBuilder_ != null) {
startTimeBuilder_.dispose();
startTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* The start time of the operation.
*
*
* .google.protobuf.Timestamp start_time = 2;
*/
public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getStartTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* The start time of the operation.
*
*
* .google.protobuf.Timestamp start_time = 2;
*/
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
if (startTimeBuilder_ != null) {
return startTimeBuilder_.getMessageOrBuilder();
} else {
return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
}
}
/**
*
*
*
* The start time of the operation.
*
*
* .google.protobuf.Timestamp start_time = 2;
*/
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 updateTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
updateTimeBuilder_;
/**
*
*
*
* The update time of the operation.
*
*
* .google.protobuf.Timestamp update_time = 3;
*
* @return Whether the updateTime field is set.
*/
public boolean hasUpdateTime() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* The update time of the operation.
*
*
* .google.protobuf.Timestamp update_time = 3;
*
* @return The updateTime.
*/
public com.google.protobuf.Timestamp getUpdateTime() {
if (updateTimeBuilder_ == null) {
return updateTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: updateTime_;
} else {
return updateTimeBuilder_.getMessage();
}
}
/**
*
*
*
* The update time of the operation.
*
*
* .google.protobuf.Timestamp update_time = 3;
*/
public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
if (updateTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
updateTime_ = value;
} else {
updateTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* The update time of the operation.
*
*
* .google.protobuf.Timestamp update_time = 3;
*/
public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (updateTimeBuilder_ == null) {
updateTime_ = builderForValue.build();
} else {
updateTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* The update time of the operation.
*
*
* .google.protobuf.Timestamp update_time = 3;
*/
public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
if (updateTimeBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)
&& updateTime_ != null
&& updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getUpdateTimeBuilder().mergeFrom(value);
} else {
updateTime_ = value;
}
} else {
updateTimeBuilder_.mergeFrom(value);
}
if (updateTime_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
*
*
* The update time of the operation.
*
*
* .google.protobuf.Timestamp update_time = 3;
*/
public Builder clearUpdateTime() {
bitField0_ = (bitField0_ & ~0x00000004);
updateTime_ = null;
if (updateTimeBuilder_ != null) {
updateTimeBuilder_.dispose();
updateTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* The update time of the operation.
*
*
* .google.protobuf.Timestamp update_time = 3;
*/
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getUpdateTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* The update time of the operation.
*
*
* .google.protobuf.Timestamp update_time = 3;
*/
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
if (updateTimeBuilder_ != null) {
return updateTimeBuilder_.getMessageOrBuilder();
} else {
return updateTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: updateTime_;
}
}
/**
*
*
*
* The update time of the operation.
*
*
* .google.protobuf.Timestamp update_time = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getUpdateTimeFieldBuilder() {
if (updateTimeBuilder_ == null) {
updateTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getUpdateTime(), getParentForChildren(), isClean());
updateTime_ = null;
}
return updateTimeBuilder_;
}
@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.AnalyzeAssetMetadata)
}
// @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.AnalyzeAssetMetadata)
private static final com.google.cloud.visionai.v1.AnalyzeAssetMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.visionai.v1.AnalyzeAssetMetadata();
}
public static com.google.cloud.visionai.v1.AnalyzeAssetMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AnalyzeAssetMetadata 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.AnalyzeAssetMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy