
com.google.cloud.visionai.v1.Processor 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/platform.proto
// Protobuf Java Version: 3.25.3
package com.google.cloud.visionai.v1;
/**
*
*
*
* Message describing Processor object.
* Next ID: 19
*
*
* Protobuf type {@code google.cloud.visionai.v1.Processor}
*/
public final class Processor extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.Processor)
ProcessorOrBuilder {
private static final long serialVersionUID = 0L;
// Use Processor.newBuilder() to construct.
private Processor(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Processor() {
name_ = "";
displayName_ = "";
description_ = "";
processorType_ = 0;
modelType_ = 0;
state_ = 0;
configurationTypeurl_ = "";
supportedAnnotationTypes_ = java.util.Collections.emptyList();
supportedInstanceTypes_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Processor();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_Processor_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 4:
return internalGetLabels();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_Processor_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.Processor.class,
com.google.cloud.visionai.v1.Processor.Builder.class);
}
/**
*
*
*
* Type
*
*
* Protobuf enum {@code google.cloud.visionai.v1.Processor.ProcessorType}
*/
public enum ProcessorType implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*
*
* Processor Type UNSPECIFIED.
*
*
* PROCESSOR_TYPE_UNSPECIFIED = 0;
*/
PROCESSOR_TYPE_UNSPECIFIED(0),
/**
*
*
*
* Processor Type PRETRAINED.
* Pretrained processor is developed by Vision AI App Platform with
* state-of-the-art vision data processing functionality, like occupancy
* counting or person blur. Pretrained processor is usually publicly
* available.
*
*
* PRETRAINED = 1;
*/
PRETRAINED(1),
/**
*
*
*
* Processor Type CUSTOM.
* Custom processors are specialized processors which are either uploaded by
* customers or imported from other GCP platform (for example Vertex AI).
* Custom processor is only visible to the creator.
*
*
* CUSTOM = 2;
*/
CUSTOM(2),
/**
*
*
*
* Processor Type CONNECTOR.
* Connector processors are special processors which perform I/O for the
* application, they do not processing the data but either deliver the data
* to other processors or receive data from other processors.
*
*
* CONNECTOR = 3;
*/
CONNECTOR(3),
UNRECOGNIZED(-1),
;
/**
*
*
*
* Processor Type UNSPECIFIED.
*
*
* PROCESSOR_TYPE_UNSPECIFIED = 0;
*/
public static final int PROCESSOR_TYPE_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* Processor Type PRETRAINED.
* Pretrained processor is developed by Vision AI App Platform with
* state-of-the-art vision data processing functionality, like occupancy
* counting or person blur. Pretrained processor is usually publicly
* available.
*
*
* PRETRAINED = 1;
*/
public static final int PRETRAINED_VALUE = 1;
/**
*
*
*
* Processor Type CUSTOM.
* Custom processors are specialized processors which are either uploaded by
* customers or imported from other GCP platform (for example Vertex AI).
* Custom processor is only visible to the creator.
*
*
* CUSTOM = 2;
*/
public static final int CUSTOM_VALUE = 2;
/**
*
*
*
* Processor Type CONNECTOR.
* Connector processors are special processors which perform I/O for the
* application, they do not processing the data but either deliver the data
* to other processors or receive data from other processors.
*
*
* CONNECTOR = 3;
*/
public static final int CONNECTOR_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 ProcessorType 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 ProcessorType forNumber(int value) {
switch (value) {
case 0:
return PROCESSOR_TYPE_UNSPECIFIED;
case 1:
return PRETRAINED;
case 2:
return CUSTOM;
case 3:
return CONNECTOR;
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 ProcessorType findValueByNumber(int number) {
return ProcessorType.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.Processor.getDescriptor().getEnumTypes().get(0);
}
private static final ProcessorType[] VALUES = values();
public static ProcessorType 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 ProcessorType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.cloud.visionai.v1.Processor.ProcessorType)
}
/** Protobuf enum {@code google.cloud.visionai.v1.Processor.ProcessorState} */
public enum ProcessorState implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*
*
* Unspecified Processor state.
*
*
* PROCESSOR_STATE_UNSPECIFIED = 0;
*/
PROCESSOR_STATE_UNSPECIFIED(0),
/**
*
*
*
* Processor is being created (not ready for use).
*
*
* CREATING = 1;
*/
CREATING(1),
/**
*
*
*
* Processor is and ready for use.
*
*
* ACTIVE = 2;
*/
ACTIVE(2),
/**
*
*
*
* Processor is being deleted (not ready for use).
*
*
* DELETING = 3;
*/
DELETING(3),
/**
*
*
*
* Processor deleted or creation failed .
*
*
* FAILED = 4;
*/
FAILED(4),
UNRECOGNIZED(-1),
;
/**
*
*
*
* Unspecified Processor state.
*
*
* PROCESSOR_STATE_UNSPECIFIED = 0;
*/
public static final int PROCESSOR_STATE_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* Processor is being created (not ready for use).
*
*
* CREATING = 1;
*/
public static final int CREATING_VALUE = 1;
/**
*
*
*
* Processor is and ready for use.
*
*
* ACTIVE = 2;
*/
public static final int ACTIVE_VALUE = 2;
/**
*
*
*
* Processor is being deleted (not ready for use).
*
*
* DELETING = 3;
*/
public static final int DELETING_VALUE = 3;
/**
*
*
*
* Processor deleted or creation failed .
*
*
* FAILED = 4;
*/
public static final int FAILED_VALUE = 4;
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 ProcessorState 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 ProcessorState forNumber(int value) {
switch (value) {
case 0:
return PROCESSOR_STATE_UNSPECIFIED;
case 1:
return CREATING;
case 2:
return ACTIVE;
case 3:
return DELETING;
case 4:
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 ProcessorState findValueByNumber(int number) {
return ProcessorState.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.Processor.getDescriptor().getEnumTypes().get(1);
}
private static final ProcessorState[] VALUES = values();
public static ProcessorState 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 ProcessorState(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.cloud.visionai.v1.Processor.ProcessorState)
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
*
*
* name of resource.
*
*
* string name = 1;
*
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
*
*
*
* name of resource.
*
*
* string name = 1;
*
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CREATE_TIME_FIELD_NUMBER = 2;
private com.google.protobuf.Timestamp createTime_;
/**
*
*
*
* Output only. [Output only] Create timestamp.
*
*
* .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the createTime field is set.
*/
@java.lang.Override
public boolean hasCreateTime() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Output only. [Output only] Create timestamp.
*
*
* .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The createTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getCreateTime() {
return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
}
/**
*
*
*
* Output only. [Output only] Create timestamp.
*
*
* .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
}
public static final int UPDATE_TIME_FIELD_NUMBER = 3;
private com.google.protobuf.Timestamp updateTime_;
/**
*
*
*
* Output only. [Output only] Update timestamp.
*
*
* .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the updateTime field is set.
*/
@java.lang.Override
public boolean hasUpdateTime() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Output only. [Output only] Update timestamp.
*
*
* .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The updateTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getUpdateTime() {
return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
}
/**
*
*
*
* Output only. [Output only] Update timestamp.
*
*
* .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
}
public static final int LABELS_FIELD_NUMBER = 4;
private static final class LabelsDefaultEntryHolder {
static final com.google.protobuf.MapEntry defaultEntry =
com.google.protobuf.MapEntry.newDefaultInstance(
com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_Processor_LabelsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField labels_;
private com.google.protobuf.MapField internalGetLabels() {
if (labels_ == null) {
return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
}
return labels_;
}
public int getLabelsCount() {
return internalGetLabels().getMap().size();
}
/**
*
*
*
* Labels as key value pairs.
*
*
* map<string, string> labels = 4;
*/
@java.lang.Override
public boolean containsLabels(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetLabels().getMap().containsKey(key);
}
/** Use {@link #getLabelsMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getLabels() {
return getLabelsMap();
}
/**
*
*
*
* Labels as key value pairs.
*
*
* map<string, string> labels = 4;
*/
@java.lang.Override
public java.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
*
*
*
* Labels as key value pairs.
*
*
* map<string, string> labels = 4;
*/
@java.lang.Override
public /* nullable */ java.lang.String getLabelsOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
*
*
* Labels as key value pairs.
*
*
* map<string, string> labels = 4;
*/
@java.lang.Override
public java.lang.String getLabelsOrThrow(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetLabels().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int DISPLAY_NAME_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object displayName_ = "";
/**
*
*
*
* Required. A user friendly display name for the processor.
*
*
* string display_name = 5 [(.google.api.field_behavior) = REQUIRED];
*
* @return The displayName.
*/
@java.lang.Override
public java.lang.String getDisplayName() {
java.lang.Object ref = displayName_;
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();
displayName_ = s;
return s;
}
}
/**
*
*
*
* Required. A user friendly display name for the processor.
*
*
* string display_name = 5 [(.google.api.field_behavior) = REQUIRED];
*
* @return The bytes for displayName.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDisplayNameBytes() {
java.lang.Object ref = displayName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
displayName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 10;
@SuppressWarnings("serial")
private volatile java.lang.Object description_ = "";
/**
*
*
*
* Illustrative sentences for describing the functionality of the processor.
*
*
* string description = 10;
*
* @return The description.
*/
@java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
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();
description_ = s;
return s;
}
}
/**
*
*
*
* Illustrative sentences for describing the functionality of the processor.
*
*
* string description = 10;
*
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PROCESSOR_TYPE_FIELD_NUMBER = 6;
private int processorType_ = 0;
/**
*
*
*
* Output only. Processor Type.
*
*
*
* .google.cloud.visionai.v1.Processor.ProcessorType processor_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The enum numeric value on the wire for processorType.
*/
@java.lang.Override
public int getProcessorTypeValue() {
return processorType_;
}
/**
*
*
*
* Output only. Processor Type.
*
*
*
* .google.cloud.visionai.v1.Processor.ProcessorType processor_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The processorType.
*/
@java.lang.Override
public com.google.cloud.visionai.v1.Processor.ProcessorType getProcessorType() {
com.google.cloud.visionai.v1.Processor.ProcessorType result =
com.google.cloud.visionai.v1.Processor.ProcessorType.forNumber(processorType_);
return result == null
? com.google.cloud.visionai.v1.Processor.ProcessorType.UNRECOGNIZED
: result;
}
public static final int MODEL_TYPE_FIELD_NUMBER = 13;
private int modelType_ = 0;
/**
*
*
*
* Model Type.
*
*
* .google.cloud.visionai.v1.ModelType model_type = 13;
*
* @return The enum numeric value on the wire for modelType.
*/
@java.lang.Override
public int getModelTypeValue() {
return modelType_;
}
/**
*
*
*
* Model Type.
*
*
* .google.cloud.visionai.v1.ModelType model_type = 13;
*
* @return The modelType.
*/
@java.lang.Override
public com.google.cloud.visionai.v1.ModelType getModelType() {
com.google.cloud.visionai.v1.ModelType result =
com.google.cloud.visionai.v1.ModelType.forNumber(modelType_);
return result == null ? com.google.cloud.visionai.v1.ModelType.UNRECOGNIZED : result;
}
public static final int CUSTOM_PROCESSOR_SOURCE_INFO_FIELD_NUMBER = 7;
private com.google.cloud.visionai.v1.CustomProcessorSourceInfo customProcessorSourceInfo_;
/**
*
*
*
* Source info for customer created processor.
*
*
* .google.cloud.visionai.v1.CustomProcessorSourceInfo custom_processor_source_info = 7;
*
*
* @return Whether the customProcessorSourceInfo field is set.
*/
@java.lang.Override
public boolean hasCustomProcessorSourceInfo() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* Source info for customer created processor.
*
*
* .google.cloud.visionai.v1.CustomProcessorSourceInfo custom_processor_source_info = 7;
*
*
* @return The customProcessorSourceInfo.
*/
@java.lang.Override
public com.google.cloud.visionai.v1.CustomProcessorSourceInfo getCustomProcessorSourceInfo() {
return customProcessorSourceInfo_ == null
? com.google.cloud.visionai.v1.CustomProcessorSourceInfo.getDefaultInstance()
: customProcessorSourceInfo_;
}
/**
*
*
*
* Source info for customer created processor.
*
*
* .google.cloud.visionai.v1.CustomProcessorSourceInfo custom_processor_source_info = 7;
*
*/
@java.lang.Override
public com.google.cloud.visionai.v1.CustomProcessorSourceInfoOrBuilder
getCustomProcessorSourceInfoOrBuilder() {
return customProcessorSourceInfo_ == null
? com.google.cloud.visionai.v1.CustomProcessorSourceInfo.getDefaultInstance()
: customProcessorSourceInfo_;
}
public static final int STATE_FIELD_NUMBER = 8;
private int state_ = 0;
/**
*
*
*
* Output only. State of the Processor.
*
*
*
* .google.cloud.visionai.v1.Processor.ProcessorState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override
public int getStateValue() {
return state_;
}
/**
*
*
*
* Output only. State of the Processor.
*
*
*
* .google.cloud.visionai.v1.Processor.ProcessorState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The state.
*/
@java.lang.Override
public com.google.cloud.visionai.v1.Processor.ProcessorState getState() {
com.google.cloud.visionai.v1.Processor.ProcessorState result =
com.google.cloud.visionai.v1.Processor.ProcessorState.forNumber(state_);
return result == null
? com.google.cloud.visionai.v1.Processor.ProcessorState.UNRECOGNIZED
: result;
}
public static final int PROCESSOR_IO_SPEC_FIELD_NUMBER = 11;
private com.google.cloud.visionai.v1.ProcessorIOSpec processorIoSpec_;
/**
*
*
*
* Output only. [Output only] The input / output specifications of a
* processor, each type of processor has fixed input / output specs which
* cannot be altered by customer.
*
*
*
* .google.cloud.visionai.v1.ProcessorIOSpec processor_io_spec = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the processorIoSpec field is set.
*/
@java.lang.Override
public boolean hasProcessorIoSpec() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*
*
* Output only. [Output only] The input / output specifications of a
* processor, each type of processor has fixed input / output specs which
* cannot be altered by customer.
*
*
*
* .google.cloud.visionai.v1.ProcessorIOSpec processor_io_spec = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The processorIoSpec.
*/
@java.lang.Override
public com.google.cloud.visionai.v1.ProcessorIOSpec getProcessorIoSpec() {
return processorIoSpec_ == null
? com.google.cloud.visionai.v1.ProcessorIOSpec.getDefaultInstance()
: processorIoSpec_;
}
/**
*
*
*
* Output only. [Output only] The input / output specifications of a
* processor, each type of processor has fixed input / output specs which
* cannot be altered by customer.
*
*
*
* .google.cloud.visionai.v1.ProcessorIOSpec processor_io_spec = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.cloud.visionai.v1.ProcessorIOSpecOrBuilder getProcessorIoSpecOrBuilder() {
return processorIoSpec_ == null
? com.google.cloud.visionai.v1.ProcessorIOSpec.getDefaultInstance()
: processorIoSpec_;
}
public static final int CONFIGURATION_TYPEURL_FIELD_NUMBER = 14;
@SuppressWarnings("serial")
private volatile java.lang.Object configurationTypeurl_ = "";
/**
*
*
*
* Output only. The corresponding configuration can be used in the Application
* to customize the behavior of the processor.
*
*
* string configuration_typeurl = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The configurationTypeurl.
*/
@java.lang.Override
public java.lang.String getConfigurationTypeurl() {
java.lang.Object ref = configurationTypeurl_;
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();
configurationTypeurl_ = s;
return s;
}
}
/**
*
*
*
* Output only. The corresponding configuration can be used in the Application
* to customize the behavior of the processor.
*
*
* string configuration_typeurl = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for configurationTypeurl.
*/
@java.lang.Override
public com.google.protobuf.ByteString getConfigurationTypeurlBytes() {
java.lang.Object ref = configurationTypeurl_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
configurationTypeurl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SUPPORTED_ANNOTATION_TYPES_FIELD_NUMBER = 15;
@SuppressWarnings("serial")
private java.util.List supportedAnnotationTypes_;
private static final com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.google.cloud.visionai.v1.StreamAnnotationType>
supportedAnnotationTypes_converter_ =
new com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.google.cloud.visionai.v1.StreamAnnotationType>() {
public com.google.cloud.visionai.v1.StreamAnnotationType convert(
java.lang.Integer from) {
com.google.cloud.visionai.v1.StreamAnnotationType result =
com.google.cloud.visionai.v1.StreamAnnotationType.forNumber(from);
return result == null
? com.google.cloud.visionai.v1.StreamAnnotationType.UNRECOGNIZED
: result;
}
};
/**
*
* repeated .google.cloud.visionai.v1.StreamAnnotationType supported_annotation_types = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return A list containing the supportedAnnotationTypes.
*/
@java.lang.Override
public java.util.List
getSupportedAnnotationTypesList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, com.google.cloud.visionai.v1.StreamAnnotationType>(
supportedAnnotationTypes_, supportedAnnotationTypes_converter_);
}
/**
*
* repeated .google.cloud.visionai.v1.StreamAnnotationType supported_annotation_types = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The count of supportedAnnotationTypes.
*/
@java.lang.Override
public int getSupportedAnnotationTypesCount() {
return supportedAnnotationTypes_.size();
}
/**
*
* repeated .google.cloud.visionai.v1.StreamAnnotationType supported_annotation_types = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param index The index of the element to return.
* @return The supportedAnnotationTypes at the given index.
*/
@java.lang.Override
public com.google.cloud.visionai.v1.StreamAnnotationType getSupportedAnnotationTypes(int index) {
return supportedAnnotationTypes_converter_.convert(supportedAnnotationTypes_.get(index));
}
/**
*
* repeated .google.cloud.visionai.v1.StreamAnnotationType supported_annotation_types = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return A list containing the enum numeric values on the wire for supportedAnnotationTypes.
*/
@java.lang.Override
public java.util.List getSupportedAnnotationTypesValueList() {
return supportedAnnotationTypes_;
}
/**
*
* repeated .google.cloud.visionai.v1.StreamAnnotationType supported_annotation_types = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param index The index of the value to return.
* @return The enum numeric value on the wire of supportedAnnotationTypes at the given index.
*/
@java.lang.Override
public int getSupportedAnnotationTypesValue(int index) {
return supportedAnnotationTypes_.get(index);
}
private int supportedAnnotationTypesMemoizedSerializedSize;
public static final int SUPPORTS_POST_PROCESSING_FIELD_NUMBER = 17;
private boolean supportsPostProcessing_ = false;
/**
*
*
*
* Indicates if the processor supports post processing.
*
*
* bool supports_post_processing = 17;
*
* @return The supportsPostProcessing.
*/
@java.lang.Override
public boolean getSupportsPostProcessing() {
return supportsPostProcessing_;
}
public static final int SUPPORTED_INSTANCE_TYPES_FIELD_NUMBER = 18;
@SuppressWarnings("serial")
private java.util.List supportedInstanceTypes_;
private static final com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.google.cloud.visionai.v1.Instance.InstanceType>
supportedInstanceTypes_converter_ =
new com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.google.cloud.visionai.v1.Instance.InstanceType>() {
public com.google.cloud.visionai.v1.Instance.InstanceType convert(
java.lang.Integer from) {
com.google.cloud.visionai.v1.Instance.InstanceType result =
com.google.cloud.visionai.v1.Instance.InstanceType.forNumber(from);
return result == null
? com.google.cloud.visionai.v1.Instance.InstanceType.UNRECOGNIZED
: result;
}
};
/**
*
*
*
* Which instance types this processor supports; if empty, this default to
* STREAMING_PREDICTION.
*
*
* repeated .google.cloud.visionai.v1.Instance.InstanceType supported_instance_types = 18;
*
*
* @return A list containing the supportedInstanceTypes.
*/
@java.lang.Override
public java.util.List
getSupportedInstanceTypesList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, com.google.cloud.visionai.v1.Instance.InstanceType>(
supportedInstanceTypes_, supportedInstanceTypes_converter_);
}
/**
*
*
*
* Which instance types this processor supports; if empty, this default to
* STREAMING_PREDICTION.
*
*
* repeated .google.cloud.visionai.v1.Instance.InstanceType supported_instance_types = 18;
*
*
* @return The count of supportedInstanceTypes.
*/
@java.lang.Override
public int getSupportedInstanceTypesCount() {
return supportedInstanceTypes_.size();
}
/**
*
*
*
* Which instance types this processor supports; if empty, this default to
* STREAMING_PREDICTION.
*
*
* repeated .google.cloud.visionai.v1.Instance.InstanceType supported_instance_types = 18;
*
*
* @param index The index of the element to return.
* @return The supportedInstanceTypes at the given index.
*/
@java.lang.Override
public com.google.cloud.visionai.v1.Instance.InstanceType getSupportedInstanceTypes(int index) {
return supportedInstanceTypes_converter_.convert(supportedInstanceTypes_.get(index));
}
/**
*
*
*
* Which instance types this processor supports; if empty, this default to
* STREAMING_PREDICTION.
*
*
* repeated .google.cloud.visionai.v1.Instance.InstanceType supported_instance_types = 18;
*
*
* @return A list containing the enum numeric values on the wire for supportedInstanceTypes.
*/
@java.lang.Override
public java.util.List getSupportedInstanceTypesValueList() {
return supportedInstanceTypes_;
}
/**
*
*
*
* Which instance types this processor supports; if empty, this default to
* STREAMING_PREDICTION.
*
*
* repeated .google.cloud.visionai.v1.Instance.InstanceType supported_instance_types = 18;
*
*
* @param index The index of the value to return.
* @return The enum numeric value on the wire of supportedInstanceTypes at the given index.
*/
@java.lang.Override
public int getSupportedInstanceTypesValue(int index) {
return supportedInstanceTypes_.get(index);
}
private int supportedInstanceTypesMemoizedSerializedSize;
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 {
getSerializedSize();
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getCreateTime());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getUpdateTime());
}
com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4);
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_);
}
if (processorType_
!= com.google.cloud.visionai.v1.Processor.ProcessorType.PROCESSOR_TYPE_UNSPECIFIED
.getNumber()) {
output.writeEnum(6, processorType_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(7, getCustomProcessorSourceInfo());
}
if (state_
!= com.google.cloud.visionai.v1.Processor.ProcessorState.PROCESSOR_STATE_UNSPECIFIED
.getNumber()) {
output.writeEnum(8, state_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, description_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(11, getProcessorIoSpec());
}
if (modelType_ != com.google.cloud.visionai.v1.ModelType.MODEL_TYPE_UNSPECIFIED.getNumber()) {
output.writeEnum(13, modelType_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(configurationTypeurl_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 14, configurationTypeurl_);
}
if (getSupportedAnnotationTypesList().size() > 0) {
output.writeUInt32NoTag(122);
output.writeUInt32NoTag(supportedAnnotationTypesMemoizedSerializedSize);
}
for (int i = 0; i < supportedAnnotationTypes_.size(); i++) {
output.writeEnumNoTag(supportedAnnotationTypes_.get(i));
}
if (supportsPostProcessing_ != false) {
output.writeBool(17, supportsPostProcessing_);
}
if (getSupportedInstanceTypesList().size() > 0) {
output.writeUInt32NoTag(146);
output.writeUInt32NoTag(supportedInstanceTypesMemoizedSerializedSize);
}
for (int i = 0; i < supportedInstanceTypes_.size(); i++) {
output.writeEnumNoTag(supportedInstanceTypes_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime());
}
for (java.util.Map.Entry entry :
internalGetLabels().getMap().entrySet()) {
com.google.protobuf.MapEntry labels__ =
LabelsDefaultEntryHolder.defaultEntry
.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_);
}
if (processorType_
!= com.google.cloud.visionai.v1.Processor.ProcessorType.PROCESSOR_TYPE_UNSPECIFIED
.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, processorType_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
7, getCustomProcessorSourceInfo());
}
if (state_
!= com.google.cloud.visionai.v1.Processor.ProcessorState.PROCESSOR_STATE_UNSPECIFIED
.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, state_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, description_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getProcessorIoSpec());
}
if (modelType_ != com.google.cloud.visionai.v1.ModelType.MODEL_TYPE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, modelType_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(configurationTypeurl_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, configurationTypeurl_);
}
{
int dataSize = 0;
for (int i = 0; i < supportedAnnotationTypes_.size(); i++) {
dataSize +=
com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(
supportedAnnotationTypes_.get(i));
}
size += dataSize;
if (!getSupportedAnnotationTypesList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize);
}
supportedAnnotationTypesMemoizedSerializedSize = dataSize;
}
if (supportsPostProcessing_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(17, supportsPostProcessing_);
}
{
int dataSize = 0;
for (int i = 0; i < supportedInstanceTypes_.size(); i++) {
dataSize +=
com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(
supportedInstanceTypes_.get(i));
}
size += dataSize;
if (!getSupportedInstanceTypesList().isEmpty()) {
size += 2;
size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize);
}
supportedInstanceTypesMemoizedSerializedSize = dataSize;
}
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.Processor)) {
return super.equals(obj);
}
com.google.cloud.visionai.v1.Processor other = (com.google.cloud.visionai.v1.Processor) obj;
if (!getName().equals(other.getName())) return false;
if (hasCreateTime() != other.hasCreateTime()) return false;
if (hasCreateTime()) {
if (!getCreateTime().equals(other.getCreateTime())) return false;
}
if (hasUpdateTime() != other.hasUpdateTime()) return false;
if (hasUpdateTime()) {
if (!getUpdateTime().equals(other.getUpdateTime())) return false;
}
if (!internalGetLabels().equals(other.internalGetLabels())) return false;
if (!getDisplayName().equals(other.getDisplayName())) return false;
if (!getDescription().equals(other.getDescription())) return false;
if (processorType_ != other.processorType_) return false;
if (modelType_ != other.modelType_) return false;
if (hasCustomProcessorSourceInfo() != other.hasCustomProcessorSourceInfo()) return false;
if (hasCustomProcessorSourceInfo()) {
if (!getCustomProcessorSourceInfo().equals(other.getCustomProcessorSourceInfo()))
return false;
}
if (state_ != other.state_) return false;
if (hasProcessorIoSpec() != other.hasProcessorIoSpec()) return false;
if (hasProcessorIoSpec()) {
if (!getProcessorIoSpec().equals(other.getProcessorIoSpec())) return false;
}
if (!getConfigurationTypeurl().equals(other.getConfigurationTypeurl())) return false;
if (!supportedAnnotationTypes_.equals(other.supportedAnnotationTypes_)) return false;
if (getSupportsPostProcessing() != other.getSupportsPostProcessing()) return false;
if (!supportedInstanceTypes_.equals(other.supportedInstanceTypes_)) 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) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (hasCreateTime()) {
hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getCreateTime().hashCode();
}
if (hasUpdateTime()) {
hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getUpdateTime().hashCode();
}
if (!internalGetLabels().getMap().isEmpty()) {
hash = (37 * hash) + LABELS_FIELD_NUMBER;
hash = (53 * hash) + internalGetLabels().hashCode();
}
hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
hash = (53 * hash) + getDisplayName().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
hash = (37 * hash) + PROCESSOR_TYPE_FIELD_NUMBER;
hash = (53 * hash) + processorType_;
hash = (37 * hash) + MODEL_TYPE_FIELD_NUMBER;
hash = (53 * hash) + modelType_;
if (hasCustomProcessorSourceInfo()) {
hash = (37 * hash) + CUSTOM_PROCESSOR_SOURCE_INFO_FIELD_NUMBER;
hash = (53 * hash) + getCustomProcessorSourceInfo().hashCode();
}
hash = (37 * hash) + STATE_FIELD_NUMBER;
hash = (53 * hash) + state_;
if (hasProcessorIoSpec()) {
hash = (37 * hash) + PROCESSOR_IO_SPEC_FIELD_NUMBER;
hash = (53 * hash) + getProcessorIoSpec().hashCode();
}
hash = (37 * hash) + CONFIGURATION_TYPEURL_FIELD_NUMBER;
hash = (53 * hash) + getConfigurationTypeurl().hashCode();
if (getSupportedAnnotationTypesCount() > 0) {
hash = (37 * hash) + SUPPORTED_ANNOTATION_TYPES_FIELD_NUMBER;
hash = (53 * hash) + supportedAnnotationTypes_.hashCode();
}
hash = (37 * hash) + SUPPORTS_POST_PROCESSING_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSupportsPostProcessing());
if (getSupportedInstanceTypesCount() > 0) {
hash = (37 * hash) + SUPPORTED_INSTANCE_TYPES_FIELD_NUMBER;
hash = (53 * hash) + supportedInstanceTypes_.hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.visionai.v1.Processor parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.Processor 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.Processor parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.Processor 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.Processor parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.Processor 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.Processor parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.Processor 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.Processor parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.Processor 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.Processor 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.Processor 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.Processor 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;
}
/**
*
*
*
* Message describing Processor object.
* Next ID: 19
*
*
* Protobuf type {@code google.cloud.visionai.v1.Processor}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.Processor)
com.google.cloud.visionai.v1.ProcessorOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_Processor_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 4:
return internalGetLabels();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
int number) {
switch (number) {
case 4:
return internalGetMutableLabels();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_Processor_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.Processor.class,
com.google.cloud.visionai.v1.Processor.Builder.class);
}
// Construct using com.google.cloud.visionai.v1.Processor.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getCreateTimeFieldBuilder();
getUpdateTimeFieldBuilder();
getCustomProcessorSourceInfoFieldBuilder();
getProcessorIoSpecFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
createTime_ = null;
if (createTimeBuilder_ != null) {
createTimeBuilder_.dispose();
createTimeBuilder_ = null;
}
updateTime_ = null;
if (updateTimeBuilder_ != null) {
updateTimeBuilder_.dispose();
updateTimeBuilder_ = null;
}
internalGetMutableLabels().clear();
displayName_ = "";
description_ = "";
processorType_ = 0;
modelType_ = 0;
customProcessorSourceInfo_ = null;
if (customProcessorSourceInfoBuilder_ != null) {
customProcessorSourceInfoBuilder_.dispose();
customProcessorSourceInfoBuilder_ = null;
}
state_ = 0;
processorIoSpec_ = null;
if (processorIoSpecBuilder_ != null) {
processorIoSpecBuilder_.dispose();
processorIoSpecBuilder_ = null;
}
configurationTypeurl_ = "";
supportedAnnotationTypes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00001000);
supportsPostProcessing_ = false;
supportedInstanceTypes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00004000);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_Processor_descriptor;
}
@java.lang.Override
public com.google.cloud.visionai.v1.Processor getDefaultInstanceForType() {
return com.google.cloud.visionai.v1.Processor.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.visionai.v1.Processor build() {
com.google.cloud.visionai.v1.Processor result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.visionai.v1.Processor buildPartial() {
com.google.cloud.visionai.v1.Processor result =
new com.google.cloud.visionai.v1.Processor(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.cloud.visionai.v1.Processor result) {
if (((bitField0_ & 0x00001000) != 0)) {
supportedAnnotationTypes_ =
java.util.Collections.unmodifiableList(supportedAnnotationTypes_);
bitField0_ = (bitField0_ & ~0x00001000);
}
result.supportedAnnotationTypes_ = supportedAnnotationTypes_;
if (((bitField0_ & 0x00004000) != 0)) {
supportedInstanceTypes_ = java.util.Collections.unmodifiableList(supportedInstanceTypes_);
bitField0_ = (bitField0_ & ~0x00004000);
}
result.supportedInstanceTypes_ = supportedInstanceTypes_;
}
private void buildPartial0(com.google.cloud.visionai.v1.Processor result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.labels_ = internalGetLabels();
result.labels_.makeImmutable();
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.displayName_ = displayName_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.description_ = description_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.processorType_ = processorType_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.modelType_ = modelType_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.customProcessorSourceInfo_ =
customProcessorSourceInfoBuilder_ == null
? customProcessorSourceInfo_
: customProcessorSourceInfoBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.state_ = state_;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.processorIoSpec_ =
processorIoSpecBuilder_ == null ? processorIoSpec_ : processorIoSpecBuilder_.build();
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.configurationTypeurl_ = configurationTypeurl_;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.supportsPostProcessing_ = supportsPostProcessing_;
}
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.Processor) {
return mergeFrom((com.google.cloud.visionai.v1.Processor) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.visionai.v1.Processor other) {
if (other == com.google.cloud.visionai.v1.Processor.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasCreateTime()) {
mergeCreateTime(other.getCreateTime());
}
if (other.hasUpdateTime()) {
mergeUpdateTime(other.getUpdateTime());
}
internalGetMutableLabels().mergeFrom(other.internalGetLabels());
bitField0_ |= 0x00000008;
if (!other.getDisplayName().isEmpty()) {
displayName_ = other.displayName_;
bitField0_ |= 0x00000010;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
bitField0_ |= 0x00000020;
onChanged();
}
if (other.processorType_ != 0) {
setProcessorTypeValue(other.getProcessorTypeValue());
}
if (other.modelType_ != 0) {
setModelTypeValue(other.getModelTypeValue());
}
if (other.hasCustomProcessorSourceInfo()) {
mergeCustomProcessorSourceInfo(other.getCustomProcessorSourceInfo());
}
if (other.state_ != 0) {
setStateValue(other.getStateValue());
}
if (other.hasProcessorIoSpec()) {
mergeProcessorIoSpec(other.getProcessorIoSpec());
}
if (!other.getConfigurationTypeurl().isEmpty()) {
configurationTypeurl_ = other.configurationTypeurl_;
bitField0_ |= 0x00000800;
onChanged();
}
if (!other.supportedAnnotationTypes_.isEmpty()) {
if (supportedAnnotationTypes_.isEmpty()) {
supportedAnnotationTypes_ = other.supportedAnnotationTypes_;
bitField0_ = (bitField0_ & ~0x00001000);
} else {
ensureSupportedAnnotationTypesIsMutable();
supportedAnnotationTypes_.addAll(other.supportedAnnotationTypes_);
}
onChanged();
}
if (other.getSupportsPostProcessing() != false) {
setSupportsPostProcessing(other.getSupportsPostProcessing());
}
if (!other.supportedInstanceTypes_.isEmpty()) {
if (supportedInstanceTypes_.isEmpty()) {
supportedInstanceTypes_ = other.supportedInstanceTypes_;
bitField0_ = (bitField0_ & ~0x00004000);
} else {
ensureSupportedInstanceTypesIsMutable();
supportedInstanceTypes_.addAll(other.supportedInstanceTypes_);
}
onChanged();
}
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:
{
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34:
{
com.google.protobuf.MapEntry labels__ =
input.readMessage(
LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
extensionRegistry);
internalGetMutableLabels()
.getMutableMap()
.put(labels__.getKey(), labels__.getValue());
bitField0_ |= 0x00000008;
break;
} // case 34
case 42:
{
displayName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
case 48:
{
processorType_ = input.readEnum();
bitField0_ |= 0x00000040;
break;
} // case 48
case 58:
{
input.readMessage(
getCustomProcessorSourceInfoFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000100;
break;
} // case 58
case 64:
{
state_ = input.readEnum();
bitField0_ |= 0x00000200;
break;
} // case 64
case 82:
{
description_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 82
case 90:
{
input.readMessage(getProcessorIoSpecFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000400;
break;
} // case 90
case 104:
{
modelType_ = input.readEnum();
bitField0_ |= 0x00000080;
break;
} // case 104
case 114:
{
configurationTypeurl_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000800;
break;
} // case 114
case 120:
{
int tmpRaw = input.readEnum();
ensureSupportedAnnotationTypesIsMutable();
supportedAnnotationTypes_.add(tmpRaw);
break;
} // case 120
case 122:
{
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while (input.getBytesUntilLimit() > 0) {
int tmpRaw = input.readEnum();
ensureSupportedAnnotationTypesIsMutable();
supportedAnnotationTypes_.add(tmpRaw);
}
input.popLimit(oldLimit);
break;
} // case 122
case 136:
{
supportsPostProcessing_ = input.readBool();
bitField0_ |= 0x00002000;
break;
} // case 136
case 144:
{
int tmpRaw = input.readEnum();
ensureSupportedInstanceTypesIsMutable();
supportedInstanceTypes_.add(tmpRaw);
break;
} // case 144
case 146:
{
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while (input.getBytesUntilLimit() > 0) {
int tmpRaw = input.readEnum();
ensureSupportedInstanceTypesIsMutable();
supportedInstanceTypes_.add(tmpRaw);
}
input.popLimit(oldLimit);
break;
} // case 146
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
*
*
*
* name of resource.
*
*
* string name = 1;
*
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* name of resource.
*
*
* string name = 1;
*
* @return The bytes for name.
*/
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* name of resource.
*
*
* string name = 1;
*
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* name of resource.
*
*
* string name = 1;
*
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* name of resource.
*
*
* string name = 1;
*
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.protobuf.Timestamp createTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
createTimeBuilder_;
/**
*
*
*
* Output only. [Output only] Create timestamp.
*
*
*
* .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the createTime field is set.
*/
public boolean hasCreateTime() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Output only. [Output only] Create timestamp.
*
*
*
* .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The createTime.
*/
public com.google.protobuf.Timestamp getCreateTime() {
if (createTimeBuilder_ == null) {
return createTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: createTime_;
} else {
return createTimeBuilder_.getMessage();
}
}
/**
*
*
*
* Output only. [Output only] Create timestamp.
*
*
*
* .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setCreateTime(com.google.protobuf.Timestamp value) {
if (createTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
createTime_ = value;
} else {
createTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Output only. [Output only] Create timestamp.
*
*
*
* .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (createTimeBuilder_ == null) {
createTime_ = builderForValue.build();
} else {
createTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Output only. [Output only] Create timestamp.
*
*
*
* .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
if (createTimeBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)
&& createTime_ != null
&& createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getCreateTimeBuilder().mergeFrom(value);
} else {
createTime_ = value;
}
} else {
createTimeBuilder_.mergeFrom(value);
}
if (createTime_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
*
*
* Output only. [Output only] Create timestamp.
*
*
*
* .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearCreateTime() {
bitField0_ = (bitField0_ & ~0x00000002);
createTime_ = null;
if (createTimeBuilder_ != null) {
createTimeBuilder_.dispose();
createTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Output only. [Output only] Create timestamp.
*
*
*
* .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getCreateTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* Output only. [Output only] Create timestamp.
*
*
*
* .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
if (createTimeBuilder_ != null) {
return createTimeBuilder_.getMessageOrBuilder();
} else {
return createTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: createTime_;
}
}
/**
*
*
*
* Output only. [Output only] Create timestamp.
*
*
*
* .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getCreateTimeFieldBuilder() {
if (createTimeBuilder_ == null) {
createTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getCreateTime(), getParentForChildren(), isClean());
createTime_ = null;
}
return createTimeBuilder_;
}
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_;
/**
*
*
*
* Output only. [Output only] Update timestamp.
*
*
*
* .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the updateTime field is set.
*/
public boolean hasUpdateTime() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* Output only. [Output only] Update timestamp.
*
*
*
* .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @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();
}
}
/**
*
*
*
* Output only. [Output only] Update timestamp.
*
*
*
* .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
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;
}
/**
*
*
*
* Output only. [Output only] Update timestamp.
*
*
*
* .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
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;
}
/**
*
*
*
* Output only. [Output only] Update timestamp.
*
*
*
* .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
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;
}
/**
*
*
*
* Output only. [Output only] Update timestamp.
*
*
*
* .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearUpdateTime() {
bitField0_ = (bitField0_ & ~0x00000004);
updateTime_ = null;
if (updateTimeBuilder_ != null) {
updateTimeBuilder_.dispose();
updateTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Output only. [Output only] Update timestamp.
*
*
*
* .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getUpdateTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* Output only. [Output only] Update timestamp.
*
*
*
* .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
if (updateTimeBuilder_ != null) {
return updateTimeBuilder_.getMessageOrBuilder();
} else {
return updateTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: updateTime_;
}
}
/**
*
*
*
* Output only. [Output only] Update timestamp.
*
*
*
* .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getUpdateTimeFieldBuilder() {
if (updateTimeBuilder_ == null) {
updateTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getUpdateTime(), getParentForChildren(), isClean());
updateTime_ = null;
}
return updateTimeBuilder_;
}
private com.google.protobuf.MapField labels_;
private com.google.protobuf.MapField internalGetLabels() {
if (labels_ == null) {
return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
}
return labels_;
}
private com.google.protobuf.MapField
internalGetMutableLabels() {
if (labels_ == null) {
labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
}
if (!labels_.isMutable()) {
labels_ = labels_.copy();
}
bitField0_ |= 0x00000008;
onChanged();
return labels_;
}
public int getLabelsCount() {
return internalGetLabels().getMap().size();
}
/**
*
*
*
* Labels as key value pairs.
*
*
* map<string, string> labels = 4;
*/
@java.lang.Override
public boolean containsLabels(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetLabels().getMap().containsKey(key);
}
/** Use {@link #getLabelsMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getLabels() {
return getLabelsMap();
}
/**
*
*
*
* Labels as key value pairs.
*
*
* map<string, string> labels = 4;
*/
@java.lang.Override
public java.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
*
*
*
* Labels as key value pairs.
*
*
* map<string, string> labels = 4;
*/
@java.lang.Override
public /* nullable */ java.lang.String getLabelsOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
*
*
* Labels as key value pairs.
*
*
* map<string, string> labels = 4;
*/
@java.lang.Override
public java.lang.String getLabelsOrThrow(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetLabels().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearLabels() {
bitField0_ = (bitField0_ & ~0x00000008);
internalGetMutableLabels().getMutableMap().clear();
return this;
}
/**
*
*
*
* Labels as key value pairs.
*
*
* map<string, string> labels = 4;
*/
public Builder removeLabels(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
internalGetMutableLabels().getMutableMap().remove(key);
return this;
}
/** Use alternate mutation accessors instead. */
@java.lang.Deprecated
public java.util.Map getMutableLabels() {
bitField0_ |= 0x00000008;
return internalGetMutableLabels().getMutableMap();
}
/**
*
*
*
* Labels as key value pairs.
*
*
* map<string, string> labels = 4;
*/
public Builder putLabels(java.lang.String key, java.lang.String value) {
if (key == null) {
throw new NullPointerException("map key");
}
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableLabels().getMutableMap().put(key, value);
bitField0_ |= 0x00000008;
return this;
}
/**
*
*
*
* Labels as key value pairs.
*
*
* map<string, string> labels = 4;
*/
public Builder putAllLabels(java.util.Map values) {
internalGetMutableLabels().getMutableMap().putAll(values);
bitField0_ |= 0x00000008;
return this;
}
private java.lang.Object displayName_ = "";
/**
*
*
*
* Required. A user friendly display name for the processor.
*
*
* string display_name = 5 [(.google.api.field_behavior) = REQUIRED];
*
* @return The displayName.
*/
public java.lang.String getDisplayName() {
java.lang.Object ref = displayName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
displayName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Required. A user friendly display name for the processor.
*
*
* string display_name = 5 [(.google.api.field_behavior) = REQUIRED];
*
* @return The bytes for displayName.
*/
public com.google.protobuf.ByteString getDisplayNameBytes() {
java.lang.Object ref = displayName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
displayName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Required. A user friendly display name for the processor.
*
*
* string display_name = 5 [(.google.api.field_behavior) = REQUIRED];
*
* @param value The displayName to set.
* @return This builder for chaining.
*/
public Builder setDisplayName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
displayName_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* Required. A user friendly display name for the processor.
*
*
* string display_name = 5 [(.google.api.field_behavior) = REQUIRED];
*
* @return This builder for chaining.
*/
public Builder clearDisplayName() {
displayName_ = getDefaultInstance().getDisplayName();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
*
*
* Required. A user friendly display name for the processor.
*
*
* string display_name = 5 [(.google.api.field_behavior) = REQUIRED];
*
* @param value The bytes for displayName to set.
* @return This builder for chaining.
*/
public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
displayName_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
*
*
* Illustrative sentences for describing the functionality of the processor.
*
*
* string description = 10;
*
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Illustrative sentences for describing the functionality of the processor.
*
*
* string description = 10;
*
* @return The bytes for description.
*/
public com.google.protobuf.ByteString getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Illustrative sentences for describing the functionality of the processor.
*
*
* string description = 10;
*
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* Illustrative sentences for describing the functionality of the processor.
*
*
* string description = 10;
*
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
*
*
*
* Illustrative sentences for describing the functionality of the processor.
*
*
* string description = 10;
*
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
private int processorType_ = 0;
/**
*
*
*
* Output only. Processor Type.
*
*
*
* .google.cloud.visionai.v1.Processor.ProcessorType processor_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The enum numeric value on the wire for processorType.
*/
@java.lang.Override
public int getProcessorTypeValue() {
return processorType_;
}
/**
*
*
*
* Output only. Processor Type.
*
*
*
* .google.cloud.visionai.v1.Processor.ProcessorType processor_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param value The enum numeric value on the wire for processorType to set.
* @return This builder for chaining.
*/
public Builder setProcessorTypeValue(int value) {
processorType_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*
*
* Output only. Processor Type.
*
*
*
* .google.cloud.visionai.v1.Processor.ProcessorType processor_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The processorType.
*/
@java.lang.Override
public com.google.cloud.visionai.v1.Processor.ProcessorType getProcessorType() {
com.google.cloud.visionai.v1.Processor.ProcessorType result =
com.google.cloud.visionai.v1.Processor.ProcessorType.forNumber(processorType_);
return result == null
? com.google.cloud.visionai.v1.Processor.ProcessorType.UNRECOGNIZED
: result;
}
/**
*
*
*
* Output only. Processor Type.
*
*
*
* .google.cloud.visionai.v1.Processor.ProcessorType processor_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param value The processorType to set.
* @return This builder for chaining.
*/
public Builder setProcessorType(com.google.cloud.visionai.v1.Processor.ProcessorType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
processorType_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* Output only. Processor Type.
*
*
*
* .google.cloud.visionai.v1.Processor.ProcessorType processor_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return This builder for chaining.
*/
public Builder clearProcessorType() {
bitField0_ = (bitField0_ & ~0x00000040);
processorType_ = 0;
onChanged();
return this;
}
private int modelType_ = 0;
/**
*
*
*
* Model Type.
*
*
* .google.cloud.visionai.v1.ModelType model_type = 13;
*
* @return The enum numeric value on the wire for modelType.
*/
@java.lang.Override
public int getModelTypeValue() {
return modelType_;
}
/**
*
*
*
* Model Type.
*
*
* .google.cloud.visionai.v1.ModelType model_type = 13;
*
* @param value The enum numeric value on the wire for modelType to set.
* @return This builder for chaining.
*/
public Builder setModelTypeValue(int value) {
modelType_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*
*
* Model Type.
*
*
* .google.cloud.visionai.v1.ModelType model_type = 13;
*
* @return The modelType.
*/
@java.lang.Override
public com.google.cloud.visionai.v1.ModelType getModelType() {
com.google.cloud.visionai.v1.ModelType result =
com.google.cloud.visionai.v1.ModelType.forNumber(modelType_);
return result == null ? com.google.cloud.visionai.v1.ModelType.UNRECOGNIZED : result;
}
/**
*
*
*
* Model Type.
*
*
* .google.cloud.visionai.v1.ModelType model_type = 13;
*
* @param value The modelType to set.
* @return This builder for chaining.
*/
public Builder setModelType(com.google.cloud.visionai.v1.ModelType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
modelType_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* Model Type.
*
*
* .google.cloud.visionai.v1.ModelType model_type = 13;
*
* @return This builder for chaining.
*/
public Builder clearModelType() {
bitField0_ = (bitField0_ & ~0x00000080);
modelType_ = 0;
onChanged();
return this;
}
private com.google.cloud.visionai.v1.CustomProcessorSourceInfo customProcessorSourceInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.CustomProcessorSourceInfo,
com.google.cloud.visionai.v1.CustomProcessorSourceInfo.Builder,
com.google.cloud.visionai.v1.CustomProcessorSourceInfoOrBuilder>
customProcessorSourceInfoBuilder_;
/**
*
*
*
* Source info for customer created processor.
*
*
* .google.cloud.visionai.v1.CustomProcessorSourceInfo custom_processor_source_info = 7;
*
*
* @return Whether the customProcessorSourceInfo field is set.
*/
public boolean hasCustomProcessorSourceInfo() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
*
*
* Source info for customer created processor.
*
*
* .google.cloud.visionai.v1.CustomProcessorSourceInfo custom_processor_source_info = 7;
*
*
* @return The customProcessorSourceInfo.
*/
public com.google.cloud.visionai.v1.CustomProcessorSourceInfo getCustomProcessorSourceInfo() {
if (customProcessorSourceInfoBuilder_ == null) {
return customProcessorSourceInfo_ == null
? com.google.cloud.visionai.v1.CustomProcessorSourceInfo.getDefaultInstance()
: customProcessorSourceInfo_;
} else {
return customProcessorSourceInfoBuilder_.getMessage();
}
}
/**
*
*
*
* Source info for customer created processor.
*
*
* .google.cloud.visionai.v1.CustomProcessorSourceInfo custom_processor_source_info = 7;
*
*/
public Builder setCustomProcessorSourceInfo(
com.google.cloud.visionai.v1.CustomProcessorSourceInfo value) {
if (customProcessorSourceInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
customProcessorSourceInfo_ = value;
} else {
customProcessorSourceInfoBuilder_.setMessage(value);
}
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
*
*
* Source info for customer created processor.
*
*
* .google.cloud.visionai.v1.CustomProcessorSourceInfo custom_processor_source_info = 7;
*
*/
public Builder setCustomProcessorSourceInfo(
com.google.cloud.visionai.v1.CustomProcessorSourceInfo.Builder builderForValue) {
if (customProcessorSourceInfoBuilder_ == null) {
customProcessorSourceInfo_ = builderForValue.build();
} else {
customProcessorSourceInfoBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
*
*
* Source info for customer created processor.
*
*
* .google.cloud.visionai.v1.CustomProcessorSourceInfo custom_processor_source_info = 7;
*
*/
public Builder mergeCustomProcessorSourceInfo(
com.google.cloud.visionai.v1.CustomProcessorSourceInfo value) {
if (customProcessorSourceInfoBuilder_ == null) {
if (((bitField0_ & 0x00000100) != 0)
&& customProcessorSourceInfo_ != null
&& customProcessorSourceInfo_
!= com.google.cloud.visionai.v1.CustomProcessorSourceInfo.getDefaultInstance()) {
getCustomProcessorSourceInfoBuilder().mergeFrom(value);
} else {
customProcessorSourceInfo_ = value;
}
} else {
customProcessorSourceInfoBuilder_.mergeFrom(value);
}
if (customProcessorSourceInfo_ != null) {
bitField0_ |= 0x00000100;
onChanged();
}
return this;
}
/**
*
*
*
* Source info for customer created processor.
*
*
* .google.cloud.visionai.v1.CustomProcessorSourceInfo custom_processor_source_info = 7;
*
*/
public Builder clearCustomProcessorSourceInfo() {
bitField0_ = (bitField0_ & ~0x00000100);
customProcessorSourceInfo_ = null;
if (customProcessorSourceInfoBuilder_ != null) {
customProcessorSourceInfoBuilder_.dispose();
customProcessorSourceInfoBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Source info for customer created processor.
*
*
* .google.cloud.visionai.v1.CustomProcessorSourceInfo custom_processor_source_info = 7;
*
*/
public com.google.cloud.visionai.v1.CustomProcessorSourceInfo.Builder
getCustomProcessorSourceInfoBuilder() {
bitField0_ |= 0x00000100;
onChanged();
return getCustomProcessorSourceInfoFieldBuilder().getBuilder();
}
/**
*
*
*
* Source info for customer created processor.
*
*
* .google.cloud.visionai.v1.CustomProcessorSourceInfo custom_processor_source_info = 7;
*
*/
public com.google.cloud.visionai.v1.CustomProcessorSourceInfoOrBuilder
getCustomProcessorSourceInfoOrBuilder() {
if (customProcessorSourceInfoBuilder_ != null) {
return customProcessorSourceInfoBuilder_.getMessageOrBuilder();
} else {
return customProcessorSourceInfo_ == null
? com.google.cloud.visionai.v1.CustomProcessorSourceInfo.getDefaultInstance()
: customProcessorSourceInfo_;
}
}
/**
*
*
*
* Source info for customer created processor.
*
*
* .google.cloud.visionai.v1.CustomProcessorSourceInfo custom_processor_source_info = 7;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.CustomProcessorSourceInfo,
com.google.cloud.visionai.v1.CustomProcessorSourceInfo.Builder,
com.google.cloud.visionai.v1.CustomProcessorSourceInfoOrBuilder>
getCustomProcessorSourceInfoFieldBuilder() {
if (customProcessorSourceInfoBuilder_ == null) {
customProcessorSourceInfoBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.CustomProcessorSourceInfo,
com.google.cloud.visionai.v1.CustomProcessorSourceInfo.Builder,
com.google.cloud.visionai.v1.CustomProcessorSourceInfoOrBuilder>(
getCustomProcessorSourceInfo(), getParentForChildren(), isClean());
customProcessorSourceInfo_ = null;
}
return customProcessorSourceInfoBuilder_;
}
private int state_ = 0;
/**
*
*
*
* Output only. State of the Processor.
*
*
*
* .google.cloud.visionai.v1.Processor.ProcessorState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override
public int getStateValue() {
return state_;
}
/**
*
*
*
* Output only. State of the Processor.
*
*
*
* .google.cloud.visionai.v1.Processor.ProcessorState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @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_ |= 0x00000200;
onChanged();
return this;
}
/**
*
*
*
* Output only. State of the Processor.
*
*
*
* .google.cloud.visionai.v1.Processor.ProcessorState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The state.
*/
@java.lang.Override
public com.google.cloud.visionai.v1.Processor.ProcessorState getState() {
com.google.cloud.visionai.v1.Processor.ProcessorState result =
com.google.cloud.visionai.v1.Processor.ProcessorState.forNumber(state_);
return result == null
? com.google.cloud.visionai.v1.Processor.ProcessorState.UNRECOGNIZED
: result;
}
/**
*
*
*
* Output only. State of the Processor.
*
*
*
* .google.cloud.visionai.v1.Processor.ProcessorState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param value The state to set.
* @return This builder for chaining.
*/
public Builder setState(com.google.cloud.visionai.v1.Processor.ProcessorState value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000200;
state_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* Output only. State of the Processor.
*
*
*
* .google.cloud.visionai.v1.Processor.ProcessorState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return This builder for chaining.
*/
public Builder clearState() {
bitField0_ = (bitField0_ & ~0x00000200);
state_ = 0;
onChanged();
return this;
}
private com.google.cloud.visionai.v1.ProcessorIOSpec processorIoSpec_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.ProcessorIOSpec,
com.google.cloud.visionai.v1.ProcessorIOSpec.Builder,
com.google.cloud.visionai.v1.ProcessorIOSpecOrBuilder>
processorIoSpecBuilder_;
/**
*
*
*
* Output only. [Output only] The input / output specifications of a
* processor, each type of processor has fixed input / output specs which
* cannot be altered by customer.
*
*
*
* .google.cloud.visionai.v1.ProcessorIOSpec processor_io_spec = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the processorIoSpec field is set.
*/
public boolean hasProcessorIoSpec() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
*
*
*
* Output only. [Output only] The input / output specifications of a
* processor, each type of processor has fixed input / output specs which
* cannot be altered by customer.
*
*
*
* .google.cloud.visionai.v1.ProcessorIOSpec processor_io_spec = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The processorIoSpec.
*/
public com.google.cloud.visionai.v1.ProcessorIOSpec getProcessorIoSpec() {
if (processorIoSpecBuilder_ == null) {
return processorIoSpec_ == null
? com.google.cloud.visionai.v1.ProcessorIOSpec.getDefaultInstance()
: processorIoSpec_;
} else {
return processorIoSpecBuilder_.getMessage();
}
}
/**
*
*
*
* Output only. [Output only] The input / output specifications of a
* processor, each type of processor has fixed input / output specs which
* cannot be altered by customer.
*
*
*
* .google.cloud.visionai.v1.ProcessorIOSpec processor_io_spec = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setProcessorIoSpec(com.google.cloud.visionai.v1.ProcessorIOSpec value) {
if (processorIoSpecBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
processorIoSpec_ = value;
} else {
processorIoSpecBuilder_.setMessage(value);
}
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
*
*
* Output only. [Output only] The input / output specifications of a
* processor, each type of processor has fixed input / output specs which
* cannot be altered by customer.
*
*
*
* .google.cloud.visionai.v1.ProcessorIOSpec processor_io_spec = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setProcessorIoSpec(
com.google.cloud.visionai.v1.ProcessorIOSpec.Builder builderForValue) {
if (processorIoSpecBuilder_ == null) {
processorIoSpec_ = builderForValue.build();
} else {
processorIoSpecBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
*
*
* Output only. [Output only] The input / output specifications of a
* processor, each type of processor has fixed input / output specs which
* cannot be altered by customer.
*
*
*
* .google.cloud.visionai.v1.ProcessorIOSpec processor_io_spec = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder mergeProcessorIoSpec(com.google.cloud.visionai.v1.ProcessorIOSpec value) {
if (processorIoSpecBuilder_ == null) {
if (((bitField0_ & 0x00000400) != 0)
&& processorIoSpec_ != null
&& processorIoSpec_
!= com.google.cloud.visionai.v1.ProcessorIOSpec.getDefaultInstance()) {
getProcessorIoSpecBuilder().mergeFrom(value);
} else {
processorIoSpec_ = value;
}
} else {
processorIoSpecBuilder_.mergeFrom(value);
}
if (processorIoSpec_ != null) {
bitField0_ |= 0x00000400;
onChanged();
}
return this;
}
/**
*
*
*
* Output only. [Output only] The input / output specifications of a
* processor, each type of processor has fixed input / output specs which
* cannot be altered by customer.
*
*
*
* .google.cloud.visionai.v1.ProcessorIOSpec processor_io_spec = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearProcessorIoSpec() {
bitField0_ = (bitField0_ & ~0x00000400);
processorIoSpec_ = null;
if (processorIoSpecBuilder_ != null) {
processorIoSpecBuilder_.dispose();
processorIoSpecBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Output only. [Output only] The input / output specifications of a
* processor, each type of processor has fixed input / output specs which
* cannot be altered by customer.
*
*
*
* .google.cloud.visionai.v1.ProcessorIOSpec processor_io_spec = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.visionai.v1.ProcessorIOSpec.Builder getProcessorIoSpecBuilder() {
bitField0_ |= 0x00000400;
onChanged();
return getProcessorIoSpecFieldBuilder().getBuilder();
}
/**
*
*
*
* Output only. [Output only] The input / output specifications of a
* processor, each type of processor has fixed input / output specs which
* cannot be altered by customer.
*
*
*
* .google.cloud.visionai.v1.ProcessorIOSpec processor_io_spec = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.visionai.v1.ProcessorIOSpecOrBuilder getProcessorIoSpecOrBuilder() {
if (processorIoSpecBuilder_ != null) {
return processorIoSpecBuilder_.getMessageOrBuilder();
} else {
return processorIoSpec_ == null
? com.google.cloud.visionai.v1.ProcessorIOSpec.getDefaultInstance()
: processorIoSpec_;
}
}
/**
*
*
*
* Output only. [Output only] The input / output specifications of a
* processor, each type of processor has fixed input / output specs which
* cannot be altered by customer.
*
*
*
* .google.cloud.visionai.v1.ProcessorIOSpec processor_io_spec = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.ProcessorIOSpec,
com.google.cloud.visionai.v1.ProcessorIOSpec.Builder,
com.google.cloud.visionai.v1.ProcessorIOSpecOrBuilder>
getProcessorIoSpecFieldBuilder() {
if (processorIoSpecBuilder_ == null) {
processorIoSpecBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.ProcessorIOSpec,
com.google.cloud.visionai.v1.ProcessorIOSpec.Builder,
com.google.cloud.visionai.v1.ProcessorIOSpecOrBuilder>(
getProcessorIoSpec(), getParentForChildren(), isClean());
processorIoSpec_ = null;
}
return processorIoSpecBuilder_;
}
private java.lang.Object configurationTypeurl_ = "";
/**
*
*
*
* Output only. The corresponding configuration can be used in the Application
* to customize the behavior of the processor.
*
*
* string configuration_typeurl = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The configurationTypeurl.
*/
public java.lang.String getConfigurationTypeurl() {
java.lang.Object ref = configurationTypeurl_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
configurationTypeurl_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Output only. The corresponding configuration can be used in the Application
* to customize the behavior of the processor.
*
*
* string configuration_typeurl = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for configurationTypeurl.
*/
public com.google.protobuf.ByteString getConfigurationTypeurlBytes() {
java.lang.Object ref = configurationTypeurl_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
configurationTypeurl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Output only. The corresponding configuration can be used in the Application
* to customize the behavior of the processor.
*
*
* string configuration_typeurl = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The configurationTypeurl to set.
* @return This builder for chaining.
*/
public Builder setConfigurationTypeurl(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
configurationTypeurl_ = value;
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
*
*
* Output only. The corresponding configuration can be used in the Application
* to customize the behavior of the processor.
*
*
* string configuration_typeurl = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
public Builder clearConfigurationTypeurl() {
configurationTypeurl_ = getDefaultInstance().getConfigurationTypeurl();
bitField0_ = (bitField0_ & ~0x00000800);
onChanged();
return this;
}
/**
*
*
*
* Output only. The corresponding configuration can be used in the Application
* to customize the behavior of the processor.
*
*
* string configuration_typeurl = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The bytes for configurationTypeurl to set.
* @return This builder for chaining.
*/
public Builder setConfigurationTypeurlBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
configurationTypeurl_ = value;
bitField0_ |= 0x00000800;
onChanged();
return this;
}
private java.util.List supportedAnnotationTypes_ =
java.util.Collections.emptyList();
private void ensureSupportedAnnotationTypesIsMutable() {
if (!((bitField0_ & 0x00001000) != 0)) {
supportedAnnotationTypes_ =
new java.util.ArrayList(supportedAnnotationTypes_);
bitField0_ |= 0x00001000;
}
}
/**
*
* repeated .google.cloud.visionai.v1.StreamAnnotationType supported_annotation_types = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return A list containing the supportedAnnotationTypes.
*/
public java.util.List
getSupportedAnnotationTypesList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, com.google.cloud.visionai.v1.StreamAnnotationType>(
supportedAnnotationTypes_, supportedAnnotationTypes_converter_);
}
/**
*
* repeated .google.cloud.visionai.v1.StreamAnnotationType supported_annotation_types = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The count of supportedAnnotationTypes.
*/
public int getSupportedAnnotationTypesCount() {
return supportedAnnotationTypes_.size();
}
/**
*
* repeated .google.cloud.visionai.v1.StreamAnnotationType supported_annotation_types = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param index The index of the element to return.
* @return The supportedAnnotationTypes at the given index.
*/
public com.google.cloud.visionai.v1.StreamAnnotationType getSupportedAnnotationTypes(
int index) {
return supportedAnnotationTypes_converter_.convert(supportedAnnotationTypes_.get(index));
}
/**
*
* repeated .google.cloud.visionai.v1.StreamAnnotationType supported_annotation_types = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param index The index to set the value at.
* @param value The supportedAnnotationTypes to set.
* @return This builder for chaining.
*/
public Builder setSupportedAnnotationTypes(
int index, com.google.cloud.visionai.v1.StreamAnnotationType value) {
if (value == null) {
throw new NullPointerException();
}
ensureSupportedAnnotationTypesIsMutable();
supportedAnnotationTypes_.set(index, value.getNumber());
onChanged();
return this;
}
/**
*
* repeated .google.cloud.visionai.v1.StreamAnnotationType supported_annotation_types = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param value The supportedAnnotationTypes to add.
* @return This builder for chaining.
*/
public Builder addSupportedAnnotationTypes(
com.google.cloud.visionai.v1.StreamAnnotationType value) {
if (value == null) {
throw new NullPointerException();
}
ensureSupportedAnnotationTypesIsMutable();
supportedAnnotationTypes_.add(value.getNumber());
onChanged();
return this;
}
/**
*
* repeated .google.cloud.visionai.v1.StreamAnnotationType supported_annotation_types = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param values The supportedAnnotationTypes to add.
* @return This builder for chaining.
*/
public Builder addAllSupportedAnnotationTypes(
java.lang.Iterable extends com.google.cloud.visionai.v1.StreamAnnotationType> values) {
ensureSupportedAnnotationTypesIsMutable();
for (com.google.cloud.visionai.v1.StreamAnnotationType value : values) {
supportedAnnotationTypes_.add(value.getNumber());
}
onChanged();
return this;
}
/**
*
* repeated .google.cloud.visionai.v1.StreamAnnotationType supported_annotation_types = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return This builder for chaining.
*/
public Builder clearSupportedAnnotationTypes() {
supportedAnnotationTypes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00001000);
onChanged();
return this;
}
/**
*
* repeated .google.cloud.visionai.v1.StreamAnnotationType supported_annotation_types = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return A list containing the enum numeric values on the wire for supportedAnnotationTypes.
*/
public java.util.List getSupportedAnnotationTypesValueList() {
return java.util.Collections.unmodifiableList(supportedAnnotationTypes_);
}
/**
*
* repeated .google.cloud.visionai.v1.StreamAnnotationType supported_annotation_types = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param index The index of the value to return.
* @return The enum numeric value on the wire of supportedAnnotationTypes at the given index.
*/
public int getSupportedAnnotationTypesValue(int index) {
return supportedAnnotationTypes_.get(index);
}
/**
*
* repeated .google.cloud.visionai.v1.StreamAnnotationType supported_annotation_types = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param index The index to set the value at.
* @param value The enum numeric value on the wire for supportedAnnotationTypes to set.
* @return This builder for chaining.
*/
public Builder setSupportedAnnotationTypesValue(int index, int value) {
ensureSupportedAnnotationTypesIsMutable();
supportedAnnotationTypes_.set(index, value);
onChanged();
return this;
}
/**
*
* repeated .google.cloud.visionai.v1.StreamAnnotationType supported_annotation_types = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param value The enum numeric value on the wire for supportedAnnotationTypes to add.
* @return This builder for chaining.
*/
public Builder addSupportedAnnotationTypesValue(int value) {
ensureSupportedAnnotationTypesIsMutable();
supportedAnnotationTypes_.add(value);
onChanged();
return this;
}
/**
*
* repeated .google.cloud.visionai.v1.StreamAnnotationType supported_annotation_types = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param values The enum numeric values on the wire for supportedAnnotationTypes to add.
* @return This builder for chaining.
*/
public Builder addAllSupportedAnnotationTypesValue(
java.lang.Iterable values) {
ensureSupportedAnnotationTypesIsMutable();
for (int value : values) {
supportedAnnotationTypes_.add(value);
}
onChanged();
return this;
}
private boolean supportsPostProcessing_;
/**
*
*
*
* Indicates if the processor supports post processing.
*
*
* bool supports_post_processing = 17;
*
* @return The supportsPostProcessing.
*/
@java.lang.Override
public boolean getSupportsPostProcessing() {
return supportsPostProcessing_;
}
/**
*
*
*
* Indicates if the processor supports post processing.
*
*
* bool supports_post_processing = 17;
*
* @param value The supportsPostProcessing to set.
* @return This builder for chaining.
*/
public Builder setSupportsPostProcessing(boolean value) {
supportsPostProcessing_ = value;
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
*
*
*
* Indicates if the processor supports post processing.
*
*
* bool supports_post_processing = 17;
*
* @return This builder for chaining.
*/
public Builder clearSupportsPostProcessing() {
bitField0_ = (bitField0_ & ~0x00002000);
supportsPostProcessing_ = false;
onChanged();
return this;
}
private java.util.List supportedInstanceTypes_ =
java.util.Collections.emptyList();
private void ensureSupportedInstanceTypesIsMutable() {
if (!((bitField0_ & 0x00004000) != 0)) {
supportedInstanceTypes_ =
new java.util.ArrayList(supportedInstanceTypes_);
bitField0_ |= 0x00004000;
}
}
/**
*
*
*
* Which instance types this processor supports; if empty, this default to
* STREAMING_PREDICTION.
*
*
* repeated .google.cloud.visionai.v1.Instance.InstanceType supported_instance_types = 18;
*
*
* @return A list containing the supportedInstanceTypes.
*/
public java.util.List
getSupportedInstanceTypesList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, com.google.cloud.visionai.v1.Instance.InstanceType>(
supportedInstanceTypes_, supportedInstanceTypes_converter_);
}
/**
*
*
*
* Which instance types this processor supports; if empty, this default to
* STREAMING_PREDICTION.
*
*
* repeated .google.cloud.visionai.v1.Instance.InstanceType supported_instance_types = 18;
*
*
* @return The count of supportedInstanceTypes.
*/
public int getSupportedInstanceTypesCount() {
return supportedInstanceTypes_.size();
}
/**
*
*
*
* Which instance types this processor supports; if empty, this default to
* STREAMING_PREDICTION.
*
*
* repeated .google.cloud.visionai.v1.Instance.InstanceType supported_instance_types = 18;
*
*
* @param index The index of the element to return.
* @return The supportedInstanceTypes at the given index.
*/
public com.google.cloud.visionai.v1.Instance.InstanceType getSupportedInstanceTypes(int index) {
return supportedInstanceTypes_converter_.convert(supportedInstanceTypes_.get(index));
}
/**
*
*
*
* Which instance types this processor supports; if empty, this default to
* STREAMING_PREDICTION.
*
*
* repeated .google.cloud.visionai.v1.Instance.InstanceType supported_instance_types = 18;
*
*
* @param index The index to set the value at.
* @param value The supportedInstanceTypes to set.
* @return This builder for chaining.
*/
public Builder setSupportedInstanceTypes(
int index, com.google.cloud.visionai.v1.Instance.InstanceType value) {
if (value == null) {
throw new NullPointerException();
}
ensureSupportedInstanceTypesIsMutable();
supportedInstanceTypes_.set(index, value.getNumber());
onChanged();
return this;
}
/**
*
*
*
* Which instance types this processor supports; if empty, this default to
* STREAMING_PREDICTION.
*
*
* repeated .google.cloud.visionai.v1.Instance.InstanceType supported_instance_types = 18;
*
*
* @param value The supportedInstanceTypes to add.
* @return This builder for chaining.
*/
public Builder addSupportedInstanceTypes(
com.google.cloud.visionai.v1.Instance.InstanceType value) {
if (value == null) {
throw new NullPointerException();
}
ensureSupportedInstanceTypesIsMutable();
supportedInstanceTypes_.add(value.getNumber());
onChanged();
return this;
}
/**
*
*
*
* Which instance types this processor supports; if empty, this default to
* STREAMING_PREDICTION.
*
*
* repeated .google.cloud.visionai.v1.Instance.InstanceType supported_instance_types = 18;
*
*
* @param values The supportedInstanceTypes to add.
* @return This builder for chaining.
*/
public Builder addAllSupportedInstanceTypes(
java.lang.Iterable extends com.google.cloud.visionai.v1.Instance.InstanceType> values) {
ensureSupportedInstanceTypesIsMutable();
for (com.google.cloud.visionai.v1.Instance.InstanceType value : values) {
supportedInstanceTypes_.add(value.getNumber());
}
onChanged();
return this;
}
/**
*
*
*
* Which instance types this processor supports; if empty, this default to
* STREAMING_PREDICTION.
*
*
* repeated .google.cloud.visionai.v1.Instance.InstanceType supported_instance_types = 18;
*
*
* @return This builder for chaining.
*/
public Builder clearSupportedInstanceTypes() {
supportedInstanceTypes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00004000);
onChanged();
return this;
}
/**
*
*
*
* Which instance types this processor supports; if empty, this default to
* STREAMING_PREDICTION.
*
*
* repeated .google.cloud.visionai.v1.Instance.InstanceType supported_instance_types = 18;
*
*
* @return A list containing the enum numeric values on the wire for supportedInstanceTypes.
*/
public java.util.List getSupportedInstanceTypesValueList() {
return java.util.Collections.unmodifiableList(supportedInstanceTypes_);
}
/**
*
*
*
* Which instance types this processor supports; if empty, this default to
* STREAMING_PREDICTION.
*
*
* repeated .google.cloud.visionai.v1.Instance.InstanceType supported_instance_types = 18;
*
*
* @param index The index of the value to return.
* @return The enum numeric value on the wire of supportedInstanceTypes at the given index.
*/
public int getSupportedInstanceTypesValue(int index) {
return supportedInstanceTypes_.get(index);
}
/**
*
*
*
* Which instance types this processor supports; if empty, this default to
* STREAMING_PREDICTION.
*
*
* repeated .google.cloud.visionai.v1.Instance.InstanceType supported_instance_types = 18;
*
*
* @param index The index to set the value at.
* @param value The enum numeric value on the wire for supportedInstanceTypes to set.
* @return This builder for chaining.
*/
public Builder setSupportedInstanceTypesValue(int index, int value) {
ensureSupportedInstanceTypesIsMutable();
supportedInstanceTypes_.set(index, value);
onChanged();
return this;
}
/**
*
*
*
* Which instance types this processor supports; if empty, this default to
* STREAMING_PREDICTION.
*
*
* repeated .google.cloud.visionai.v1.Instance.InstanceType supported_instance_types = 18;
*
*
* @param value The enum numeric value on the wire for supportedInstanceTypes to add.
* @return This builder for chaining.
*/
public Builder addSupportedInstanceTypesValue(int value) {
ensureSupportedInstanceTypesIsMutable();
supportedInstanceTypes_.add(value);
onChanged();
return this;
}
/**
*
*
*
* Which instance types this processor supports; if empty, this default to
* STREAMING_PREDICTION.
*
*
* repeated .google.cloud.visionai.v1.Instance.InstanceType supported_instance_types = 18;
*
*
* @param values The enum numeric values on the wire for supportedInstanceTypes to add.
* @return This builder for chaining.
*/
public Builder addAllSupportedInstanceTypesValue(java.lang.Iterable values) {
ensureSupportedInstanceTypesIsMutable();
for (int value : values) {
supportedInstanceTypes_.add(value);
}
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.cloud.visionai.v1.Processor)
}
// @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.Processor)
private static final com.google.cloud.visionai.v1.Processor DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.visionai.v1.Processor();
}
public static com.google.cloud.visionai.v1.Processor getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Processor 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.Processor getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy