
com.google.cloud.visionai.v1.ProcessorIOSpec 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 the input / output specifications of a processor.
*
*
* Protobuf type {@code google.cloud.visionai.v1.ProcessorIOSpec}
*/
public final class ProcessorIOSpec extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.ProcessorIOSpec)
ProcessorIOSpecOrBuilder {
private static final long serialVersionUID = 0L;
// Use ProcessorIOSpec.newBuilder() to construct.
private ProcessorIOSpec(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ProcessorIOSpec() {
graphInputChannelSpecs_ = java.util.Collections.emptyList();
graphOutputChannelSpecs_ = java.util.Collections.emptyList();
instanceResourceInputBindingSpecs_ = java.util.Collections.emptyList();
instanceResourceOutputBindingSpecs_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ProcessorIOSpec();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_ProcessorIOSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_ProcessorIOSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.ProcessorIOSpec.class,
com.google.cloud.visionai.v1.ProcessorIOSpec.Builder.class);
}
public interface GraphInputChannelSpecOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* The name of the current input channel.
*
*
* string name = 1;
*
* @return The name.
*/
java.lang.String getName();
/**
*
*
*
* The name of the current input channel.
*
*
* string name = 1;
*
* @return The bytes for name.
*/
com.google.protobuf.ByteString getNameBytes();
/**
*
*
*
* The data types of the current input channel.
* When this field has more than 1 value, it means this input channel can be
* connected to either of these different data types.
*
*
* .google.cloud.visionai.v1.DataType data_type = 2;
*
* @return The enum numeric value on the wire for dataType.
*/
int getDataTypeValue();
/**
*
*
*
* The data types of the current input channel.
* When this field has more than 1 value, it means this input channel can be
* connected to either of these different data types.
*
*
* .google.cloud.visionai.v1.DataType data_type = 2;
*
* @return The dataType.
*/
com.google.cloud.visionai.v1.DataType getDataType();
/**
*
*
*
* If specified, only those detailed data types can be connected to the
* processor. For example, jpeg stream for MEDIA, or PredictionResult proto
* for PROTO type. If unspecified, then any proto is accepted.
*
*
* repeated string accepted_data_type_uris = 5;
*
* @return A list containing the acceptedDataTypeUris.
*/
java.util.List getAcceptedDataTypeUrisList();
/**
*
*
*
* If specified, only those detailed data types can be connected to the
* processor. For example, jpeg stream for MEDIA, or PredictionResult proto
* for PROTO type. If unspecified, then any proto is accepted.
*
*
* repeated string accepted_data_type_uris = 5;
*
* @return The count of acceptedDataTypeUris.
*/
int getAcceptedDataTypeUrisCount();
/**
*
*
*
* If specified, only those detailed data types can be connected to the
* processor. For example, jpeg stream for MEDIA, or PredictionResult proto
* for PROTO type. If unspecified, then any proto is accepted.
*
*
* repeated string accepted_data_type_uris = 5;
*
* @param index The index of the element to return.
* @return The acceptedDataTypeUris at the given index.
*/
java.lang.String getAcceptedDataTypeUris(int index);
/**
*
*
*
* If specified, only those detailed data types can be connected to the
* processor. For example, jpeg stream for MEDIA, or PredictionResult proto
* for PROTO type. If unspecified, then any proto is accepted.
*
*
* repeated string accepted_data_type_uris = 5;
*
* @param index The index of the value to return.
* @return The bytes of the acceptedDataTypeUris at the given index.
*/
com.google.protobuf.ByteString getAcceptedDataTypeUrisBytes(int index);
/**
*
*
*
* Whether the current input channel is required by the processor.
* For example, for a processor with required video input and optional audio
* input, if video input is missing, the application will be rejected while
* the audio input can be missing as long as the video input exists.
*
*
* bool required = 3;
*
* @return The required.
*/
boolean getRequired();
/**
*
*
*
* How many input edges can be connected to this input channel. 0 means
* unlimited.
*
*
* int64 max_connection_allowed = 4;
*
* @return The maxConnectionAllowed.
*/
long getMaxConnectionAllowed();
}
/**
*
*
*
* Message for input channel specification.
*
*
* Protobuf type {@code google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec}
*/
public static final class GraphInputChannelSpec extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec)
GraphInputChannelSpecOrBuilder {
private static final long serialVersionUID = 0L;
// Use GraphInputChannelSpec.newBuilder() to construct.
private GraphInputChannelSpec(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GraphInputChannelSpec() {
name_ = "";
dataType_ = 0;
acceptedDataTypeUris_ = com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new GraphInputChannelSpec();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_ProcessorIOSpec_GraphInputChannelSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_ProcessorIOSpec_GraphInputChannelSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec.class,
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
*
*
* The name of the current input channel.
*
*
* 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;
}
}
/**
*
*
*
* The name of the current input channel.
*
*
* 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 DATA_TYPE_FIELD_NUMBER = 2;
private int dataType_ = 0;
/**
*
*
*
* The data types of the current input channel.
* When this field has more than 1 value, it means this input channel can be
* connected to either of these different data types.
*
*
* .google.cloud.visionai.v1.DataType data_type = 2;
*
* @return The enum numeric value on the wire for dataType.
*/
@java.lang.Override
public int getDataTypeValue() {
return dataType_;
}
/**
*
*
*
* The data types of the current input channel.
* When this field has more than 1 value, it means this input channel can be
* connected to either of these different data types.
*
*
* .google.cloud.visionai.v1.DataType data_type = 2;
*
* @return The dataType.
*/
@java.lang.Override
public com.google.cloud.visionai.v1.DataType getDataType() {
com.google.cloud.visionai.v1.DataType result =
com.google.cloud.visionai.v1.DataType.forNumber(dataType_);
return result == null ? com.google.cloud.visionai.v1.DataType.UNRECOGNIZED : result;
}
public static final int ACCEPTED_DATA_TYPE_URIS_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList acceptedDataTypeUris_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
*
* If specified, only those detailed data types can be connected to the
* processor. For example, jpeg stream for MEDIA, or PredictionResult proto
* for PROTO type. If unspecified, then any proto is accepted.
*
*
* repeated string accepted_data_type_uris = 5;
*
* @return A list containing the acceptedDataTypeUris.
*/
public com.google.protobuf.ProtocolStringList getAcceptedDataTypeUrisList() {
return acceptedDataTypeUris_;
}
/**
*
*
*
* If specified, only those detailed data types can be connected to the
* processor. For example, jpeg stream for MEDIA, or PredictionResult proto
* for PROTO type. If unspecified, then any proto is accepted.
*
*
* repeated string accepted_data_type_uris = 5;
*
* @return The count of acceptedDataTypeUris.
*/
public int getAcceptedDataTypeUrisCount() {
return acceptedDataTypeUris_.size();
}
/**
*
*
*
* If specified, only those detailed data types can be connected to the
* processor. For example, jpeg stream for MEDIA, or PredictionResult proto
* for PROTO type. If unspecified, then any proto is accepted.
*
*
* repeated string accepted_data_type_uris = 5;
*
* @param index The index of the element to return.
* @return The acceptedDataTypeUris at the given index.
*/
public java.lang.String getAcceptedDataTypeUris(int index) {
return acceptedDataTypeUris_.get(index);
}
/**
*
*
*
* If specified, only those detailed data types can be connected to the
* processor. For example, jpeg stream for MEDIA, or PredictionResult proto
* for PROTO type. If unspecified, then any proto is accepted.
*
*
* repeated string accepted_data_type_uris = 5;
*
* @param index The index of the value to return.
* @return The bytes of the acceptedDataTypeUris at the given index.
*/
public com.google.protobuf.ByteString getAcceptedDataTypeUrisBytes(int index) {
return acceptedDataTypeUris_.getByteString(index);
}
public static final int REQUIRED_FIELD_NUMBER = 3;
private boolean required_ = false;
/**
*
*
*
* Whether the current input channel is required by the processor.
* For example, for a processor with required video input and optional audio
* input, if video input is missing, the application will be rejected while
* the audio input can be missing as long as the video input exists.
*
*
* bool required = 3;
*
* @return The required.
*/
@java.lang.Override
public boolean getRequired() {
return required_;
}
public static final int MAX_CONNECTION_ALLOWED_FIELD_NUMBER = 4;
private long maxConnectionAllowed_ = 0L;
/**
*
*
*
* How many input edges can be connected to this input channel. 0 means
* unlimited.
*
*
* int64 max_connection_allowed = 4;
*
* @return The maxConnectionAllowed.
*/
@java.lang.Override
public long getMaxConnectionAllowed() {
return maxConnectionAllowed_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (dataType_ != com.google.cloud.visionai.v1.DataType.DATA_TYPE_UNSPECIFIED.getNumber()) {
output.writeEnum(2, dataType_);
}
if (required_ != false) {
output.writeBool(3, required_);
}
if (maxConnectionAllowed_ != 0L) {
output.writeInt64(4, maxConnectionAllowed_);
}
for (int i = 0; i < acceptedDataTypeUris_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(
output, 5, acceptedDataTypeUris_.getRaw(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 (dataType_ != com.google.cloud.visionai.v1.DataType.DATA_TYPE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, dataType_);
}
if (required_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, required_);
}
if (maxConnectionAllowed_ != 0L) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, maxConnectionAllowed_);
}
{
int dataSize = 0;
for (int i = 0; i < acceptedDataTypeUris_.size(); i++) {
dataSize += computeStringSizeNoTag(acceptedDataTypeUris_.getRaw(i));
}
size += dataSize;
size += 1 * getAcceptedDataTypeUrisList().size();
}
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.ProcessorIOSpec.GraphInputChannelSpec)) {
return super.equals(obj);
}
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec other =
(com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec) obj;
if (!getName().equals(other.getName())) return false;
if (dataType_ != other.dataType_) return false;
if (!getAcceptedDataTypeUrisList().equals(other.getAcceptedDataTypeUrisList())) return false;
if (getRequired() != other.getRequired()) return false;
if (getMaxConnectionAllowed() != other.getMaxConnectionAllowed()) 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();
hash = (37 * hash) + DATA_TYPE_FIELD_NUMBER;
hash = (53 * hash) + dataType_;
if (getAcceptedDataTypeUrisCount() > 0) {
hash = (37 * hash) + ACCEPTED_DATA_TYPE_URIS_FIELD_NUMBER;
hash = (53 * hash) + getAcceptedDataTypeUrisList().hashCode();
}
hash = (37 * hash) + REQUIRED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequired());
hash = (37 * hash) + MAX_CONNECTION_ALLOWED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxConnectionAllowed());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec 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.ProcessorIOSpec.GraphInputChannelSpec parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec 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.ProcessorIOSpec.GraphInputChannelSpec parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec 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.ProcessorIOSpec.GraphInputChannelSpec parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec 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.ProcessorIOSpec.GraphInputChannelSpec
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec
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.ProcessorIOSpec.GraphInputChannelSpec 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.ProcessorIOSpec.GraphInputChannelSpec 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.ProcessorIOSpec.GraphInputChannelSpec 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 for input channel specification.
*
*
* Protobuf type {@code google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec)
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpecOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_ProcessorIOSpec_GraphInputChannelSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_ProcessorIOSpec_GraphInputChannelSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec.class,
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec.Builder.class);
}
// Construct using
// com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
dataType_ = 0;
acceptedDataTypeUris_ = com.google.protobuf.LazyStringArrayList.emptyList();
required_ = false;
maxConnectionAllowed_ = 0L;
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_ProcessorIOSpec_GraphInputChannelSpec_descriptor;
}
@java.lang.Override
public com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec
getDefaultInstanceForType() {
return com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec
.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec build() {
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec buildPartial() {
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec result =
new com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.dataType_ = dataType_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
acceptedDataTypeUris_.makeImmutable();
result.acceptedDataTypeUris_ = acceptedDataTypeUris_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.required_ = required_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.maxConnectionAllowed_ = maxConnectionAllowed_;
}
}
@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.ProcessorIOSpec.GraphInputChannelSpec) {
return mergeFrom(
(com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec other) {
if (other
== com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec
.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.dataType_ != 0) {
setDataTypeValue(other.getDataTypeValue());
}
if (!other.acceptedDataTypeUris_.isEmpty()) {
if (acceptedDataTypeUris_.isEmpty()) {
acceptedDataTypeUris_ = other.acceptedDataTypeUris_;
bitField0_ |= 0x00000004;
} else {
ensureAcceptedDataTypeUrisIsMutable();
acceptedDataTypeUris_.addAll(other.acceptedDataTypeUris_);
}
onChanged();
}
if (other.getRequired() != false) {
setRequired(other.getRequired());
}
if (other.getMaxConnectionAllowed() != 0L) {
setMaxConnectionAllowed(other.getMaxConnectionAllowed());
}
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 16:
{
dataType_ = input.readEnum();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24:
{
required_ = input.readBool();
bitField0_ |= 0x00000008;
break;
} // case 24
case 32:
{
maxConnectionAllowed_ = input.readInt64();
bitField0_ |= 0x00000010;
break;
} // case 32
case 42:
{
java.lang.String s = input.readStringRequireUtf8();
ensureAcceptedDataTypeUrisIsMutable();
acceptedDataTypeUris_.add(s);
break;
} // case 42
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_ = "";
/**
*
*
*
* The name of the current input channel.
*
*
* 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;
}
}
/**
*
*
*
* The name of the current input channel.
*
*
* 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;
}
}
/**
*
*
*
* The name of the current input channel.
*
*
* 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;
}
/**
*
*
*
* The name of the current input channel.
*
*
* string name = 1;
*
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* The name of the current input channel.
*
*
* 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 int dataType_ = 0;
/**
*
*
*
* The data types of the current input channel.
* When this field has more than 1 value, it means this input channel can be
* connected to either of these different data types.
*
*
* .google.cloud.visionai.v1.DataType data_type = 2;
*
* @return The enum numeric value on the wire for dataType.
*/
@java.lang.Override
public int getDataTypeValue() {
return dataType_;
}
/**
*
*
*
* The data types of the current input channel.
* When this field has more than 1 value, it means this input channel can be
* connected to either of these different data types.
*
*
* .google.cloud.visionai.v1.DataType data_type = 2;
*
* @param value The enum numeric value on the wire for dataType to set.
* @return This builder for chaining.
*/
public Builder setDataTypeValue(int value) {
dataType_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* The data types of the current input channel.
* When this field has more than 1 value, it means this input channel can be
* connected to either of these different data types.
*
*
* .google.cloud.visionai.v1.DataType data_type = 2;
*
* @return The dataType.
*/
@java.lang.Override
public com.google.cloud.visionai.v1.DataType getDataType() {
com.google.cloud.visionai.v1.DataType result =
com.google.cloud.visionai.v1.DataType.forNumber(dataType_);
return result == null ? com.google.cloud.visionai.v1.DataType.UNRECOGNIZED : result;
}
/**
*
*
*
* The data types of the current input channel.
* When this field has more than 1 value, it means this input channel can be
* connected to either of these different data types.
*
*
* .google.cloud.visionai.v1.DataType data_type = 2;
*
* @param value The dataType to set.
* @return This builder for chaining.
*/
public Builder setDataType(com.google.cloud.visionai.v1.DataType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
dataType_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* The data types of the current input channel.
* When this field has more than 1 value, it means this input channel can be
* connected to either of these different data types.
*
*
* .google.cloud.visionai.v1.DataType data_type = 2;
*
* @return This builder for chaining.
*/
public Builder clearDataType() {
bitField0_ = (bitField0_ & ~0x00000002);
dataType_ = 0;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList acceptedDataTypeUris_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureAcceptedDataTypeUrisIsMutable() {
if (!acceptedDataTypeUris_.isModifiable()) {
acceptedDataTypeUris_ =
new com.google.protobuf.LazyStringArrayList(acceptedDataTypeUris_);
}
bitField0_ |= 0x00000004;
}
/**
*
*
*
* If specified, only those detailed data types can be connected to the
* processor. For example, jpeg stream for MEDIA, or PredictionResult proto
* for PROTO type. If unspecified, then any proto is accepted.
*
*
* repeated string accepted_data_type_uris = 5;
*
* @return A list containing the acceptedDataTypeUris.
*/
public com.google.protobuf.ProtocolStringList getAcceptedDataTypeUrisList() {
acceptedDataTypeUris_.makeImmutable();
return acceptedDataTypeUris_;
}
/**
*
*
*
* If specified, only those detailed data types can be connected to the
* processor. For example, jpeg stream for MEDIA, or PredictionResult proto
* for PROTO type. If unspecified, then any proto is accepted.
*
*
* repeated string accepted_data_type_uris = 5;
*
* @return The count of acceptedDataTypeUris.
*/
public int getAcceptedDataTypeUrisCount() {
return acceptedDataTypeUris_.size();
}
/**
*
*
*
* If specified, only those detailed data types can be connected to the
* processor. For example, jpeg stream for MEDIA, or PredictionResult proto
* for PROTO type. If unspecified, then any proto is accepted.
*
*
* repeated string accepted_data_type_uris = 5;
*
* @param index The index of the element to return.
* @return The acceptedDataTypeUris at the given index.
*/
public java.lang.String getAcceptedDataTypeUris(int index) {
return acceptedDataTypeUris_.get(index);
}
/**
*
*
*
* If specified, only those detailed data types can be connected to the
* processor. For example, jpeg stream for MEDIA, or PredictionResult proto
* for PROTO type. If unspecified, then any proto is accepted.
*
*
* repeated string accepted_data_type_uris = 5;
*
* @param index The index of the value to return.
* @return The bytes of the acceptedDataTypeUris at the given index.
*/
public com.google.protobuf.ByteString getAcceptedDataTypeUrisBytes(int index) {
return acceptedDataTypeUris_.getByteString(index);
}
/**
*
*
*
* If specified, only those detailed data types can be connected to the
* processor. For example, jpeg stream for MEDIA, or PredictionResult proto
* for PROTO type. If unspecified, then any proto is accepted.
*
*
* repeated string accepted_data_type_uris = 5;
*
* @param index The index to set the value at.
* @param value The acceptedDataTypeUris to set.
* @return This builder for chaining.
*/
public Builder setAcceptedDataTypeUris(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAcceptedDataTypeUrisIsMutable();
acceptedDataTypeUris_.set(index, value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* If specified, only those detailed data types can be connected to the
* processor. For example, jpeg stream for MEDIA, or PredictionResult proto
* for PROTO type. If unspecified, then any proto is accepted.
*
*
* repeated string accepted_data_type_uris = 5;
*
* @param value The acceptedDataTypeUris to add.
* @return This builder for chaining.
*/
public Builder addAcceptedDataTypeUris(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAcceptedDataTypeUrisIsMutable();
acceptedDataTypeUris_.add(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* If specified, only those detailed data types can be connected to the
* processor. For example, jpeg stream for MEDIA, or PredictionResult proto
* for PROTO type. If unspecified, then any proto is accepted.
*
*
* repeated string accepted_data_type_uris = 5;
*
* @param values The acceptedDataTypeUris to add.
* @return This builder for chaining.
*/
public Builder addAllAcceptedDataTypeUris(java.lang.Iterable values) {
ensureAcceptedDataTypeUrisIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, acceptedDataTypeUris_);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* If specified, only those detailed data types can be connected to the
* processor. For example, jpeg stream for MEDIA, or PredictionResult proto
* for PROTO type. If unspecified, then any proto is accepted.
*
*
* repeated string accepted_data_type_uris = 5;
*
* @return This builder for chaining.
*/
public Builder clearAcceptedDataTypeUris() {
acceptedDataTypeUris_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
;
onChanged();
return this;
}
/**
*
*
*
* If specified, only those detailed data types can be connected to the
* processor. For example, jpeg stream for MEDIA, or PredictionResult proto
* for PROTO type. If unspecified, then any proto is accepted.
*
*
* repeated string accepted_data_type_uris = 5;
*
* @param value The bytes of the acceptedDataTypeUris to add.
* @return This builder for chaining.
*/
public Builder addAcceptedDataTypeUrisBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureAcceptedDataTypeUrisIsMutable();
acceptedDataTypeUris_.add(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private boolean required_;
/**
*
*
*
* Whether the current input channel is required by the processor.
* For example, for a processor with required video input and optional audio
* input, if video input is missing, the application will be rejected while
* the audio input can be missing as long as the video input exists.
*
*
* bool required = 3;
*
* @return The required.
*/
@java.lang.Override
public boolean getRequired() {
return required_;
}
/**
*
*
*
* Whether the current input channel is required by the processor.
* For example, for a processor with required video input and optional audio
* input, if video input is missing, the application will be rejected while
* the audio input can be missing as long as the video input exists.
*
*
* bool required = 3;
*
* @param value The required to set.
* @return This builder for chaining.
*/
public Builder setRequired(boolean value) {
required_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Whether the current input channel is required by the processor.
* For example, for a processor with required video input and optional audio
* input, if video input is missing, the application will be rejected while
* the audio input can be missing as long as the video input exists.
*
*
* bool required = 3;
*
* @return This builder for chaining.
*/
public Builder clearRequired() {
bitField0_ = (bitField0_ & ~0x00000008);
required_ = false;
onChanged();
return this;
}
private long maxConnectionAllowed_;
/**
*
*
*
* How many input edges can be connected to this input channel. 0 means
* unlimited.
*
*
* int64 max_connection_allowed = 4;
*
* @return The maxConnectionAllowed.
*/
@java.lang.Override
public long getMaxConnectionAllowed() {
return maxConnectionAllowed_;
}
/**
*
*
*
* How many input edges can be connected to this input channel. 0 means
* unlimited.
*
*
* int64 max_connection_allowed = 4;
*
* @param value The maxConnectionAllowed to set.
* @return This builder for chaining.
*/
public Builder setMaxConnectionAllowed(long value) {
maxConnectionAllowed_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* How many input edges can be connected to this input channel. 0 means
* unlimited.
*
*
* int64 max_connection_allowed = 4;
*
* @return This builder for chaining.
*/
public Builder clearMaxConnectionAllowed() {
bitField0_ = (bitField0_ & ~0x00000010);
maxConnectionAllowed_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec)
}
// @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec)
private static final com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec();
}
public static com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GraphInputChannelSpec 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.ProcessorIOSpec.GraphInputChannelSpec
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GraphOutputChannelSpecOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* The name of the current output channel.
*
*
* string name = 1;
*
* @return The name.
*/
java.lang.String getName();
/**
*
*
*
* The name of the current output channel.
*
*
* string name = 1;
*
* @return The bytes for name.
*/
com.google.protobuf.ByteString getNameBytes();
/**
*
*
*
* The data type of the current output channel.
*
*
* .google.cloud.visionai.v1.DataType data_type = 2;
*
* @return The enum numeric value on the wire for dataType.
*/
int getDataTypeValue();
/**
*
*
*
* The data type of the current output channel.
*
*
* .google.cloud.visionai.v1.DataType data_type = 2;
*
* @return The dataType.
*/
com.google.cloud.visionai.v1.DataType getDataType();
/**
* string data_type_uri = 3;
*
* @return The dataTypeUri.
*/
java.lang.String getDataTypeUri();
/**
* string data_type_uri = 3;
*
* @return The bytes for dataTypeUri.
*/
com.google.protobuf.ByteString getDataTypeUriBytes();
}
/**
*
*
*
* Message for output channel specification.
*
*
* Protobuf type {@code google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec}
*/
public static final class GraphOutputChannelSpec extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec)
GraphOutputChannelSpecOrBuilder {
private static final long serialVersionUID = 0L;
// Use GraphOutputChannelSpec.newBuilder() to construct.
private GraphOutputChannelSpec(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GraphOutputChannelSpec() {
name_ = "";
dataType_ = 0;
dataTypeUri_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new GraphOutputChannelSpec();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_ProcessorIOSpec_GraphOutputChannelSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_ProcessorIOSpec_GraphOutputChannelSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec.class,
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
*
*
* The name of the current output channel.
*
*
* 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;
}
}
/**
*
*
*
* The name of the current output channel.
*
*
* 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 DATA_TYPE_FIELD_NUMBER = 2;
private int dataType_ = 0;
/**
*
*
*
* The data type of the current output channel.
*
*
* .google.cloud.visionai.v1.DataType data_type = 2;
*
* @return The enum numeric value on the wire for dataType.
*/
@java.lang.Override
public int getDataTypeValue() {
return dataType_;
}
/**
*
*
*
* The data type of the current output channel.
*
*
* .google.cloud.visionai.v1.DataType data_type = 2;
*
* @return The dataType.
*/
@java.lang.Override
public com.google.cloud.visionai.v1.DataType getDataType() {
com.google.cloud.visionai.v1.DataType result =
com.google.cloud.visionai.v1.DataType.forNumber(dataType_);
return result == null ? com.google.cloud.visionai.v1.DataType.UNRECOGNIZED : result;
}
public static final int DATA_TYPE_URI_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object dataTypeUri_ = "";
/**
* string data_type_uri = 3;
*
* @return The dataTypeUri.
*/
@java.lang.Override
public java.lang.String getDataTypeUri() {
java.lang.Object ref = dataTypeUri_;
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();
dataTypeUri_ = s;
return s;
}
}
/**
* string data_type_uri = 3;
*
* @return The bytes for dataTypeUri.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDataTypeUriBytes() {
java.lang.Object ref = dataTypeUri_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
dataTypeUri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (dataType_ != com.google.cloud.visionai.v1.DataType.DATA_TYPE_UNSPECIFIED.getNumber()) {
output.writeEnum(2, dataType_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataTypeUri_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, dataTypeUri_);
}
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 (dataType_ != com.google.cloud.visionai.v1.DataType.DATA_TYPE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, dataType_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataTypeUri_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, dataTypeUri_);
}
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.ProcessorIOSpec.GraphOutputChannelSpec)) {
return super.equals(obj);
}
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec other =
(com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec) obj;
if (!getName().equals(other.getName())) return false;
if (dataType_ != other.dataType_) return false;
if (!getDataTypeUri().equals(other.getDataTypeUri())) 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();
hash = (37 * hash) + DATA_TYPE_FIELD_NUMBER;
hash = (53 * hash) + dataType_;
hash = (37 * hash) + DATA_TYPE_URI_FIELD_NUMBER;
hash = (53 * hash) + getDataTypeUri().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec 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.ProcessorIOSpec.GraphOutputChannelSpec parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec 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.ProcessorIOSpec.GraphOutputChannelSpec parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec 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.ProcessorIOSpec.GraphOutputChannelSpec parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec 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.ProcessorIOSpec.GraphOutputChannelSpec
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec
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.ProcessorIOSpec.GraphOutputChannelSpec 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.ProcessorIOSpec.GraphOutputChannelSpec 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.ProcessorIOSpec.GraphOutputChannelSpec 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 for output channel specification.
*
*
* Protobuf type {@code google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec)
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpecOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_ProcessorIOSpec_GraphOutputChannelSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_ProcessorIOSpec_GraphOutputChannelSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec.class,
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec.Builder.class);
}
// Construct using
// com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
dataType_ = 0;
dataTypeUri_ = "";
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_ProcessorIOSpec_GraphOutputChannelSpec_descriptor;
}
@java.lang.Override
public com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec
getDefaultInstanceForType() {
return com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec
.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec build() {
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec buildPartial() {
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec result =
new com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.dataType_ = dataType_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.dataTypeUri_ = dataTypeUri_;
}
}
@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.ProcessorIOSpec.GraphOutputChannelSpec) {
return mergeFrom(
(com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec other) {
if (other
== com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec
.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.dataType_ != 0) {
setDataTypeValue(other.getDataTypeValue());
}
if (!other.getDataTypeUri().isEmpty()) {
dataTypeUri_ = other.dataTypeUri_;
bitField0_ |= 0x00000004;
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 16:
{
dataType_ = input.readEnum();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26:
{
dataTypeUri_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
*
*
*
* The name of the current output channel.
*
*
* 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;
}
}
/**
*
*
*
* The name of the current output channel.
*
*
* 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;
}
}
/**
*
*
*
* The name of the current output channel.
*
*
* 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;
}
/**
*
*
*
* The name of the current output channel.
*
*
* string name = 1;
*
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* The name of the current output channel.
*
*
* 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 int dataType_ = 0;
/**
*
*
*
* The data type of the current output channel.
*
*
* .google.cloud.visionai.v1.DataType data_type = 2;
*
* @return The enum numeric value on the wire for dataType.
*/
@java.lang.Override
public int getDataTypeValue() {
return dataType_;
}
/**
*
*
*
* The data type of the current output channel.
*
*
* .google.cloud.visionai.v1.DataType data_type = 2;
*
* @param value The enum numeric value on the wire for dataType to set.
* @return This builder for chaining.
*/
public Builder setDataTypeValue(int value) {
dataType_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* The data type of the current output channel.
*
*
* .google.cloud.visionai.v1.DataType data_type = 2;
*
* @return The dataType.
*/
@java.lang.Override
public com.google.cloud.visionai.v1.DataType getDataType() {
com.google.cloud.visionai.v1.DataType result =
com.google.cloud.visionai.v1.DataType.forNumber(dataType_);
return result == null ? com.google.cloud.visionai.v1.DataType.UNRECOGNIZED : result;
}
/**
*
*
*
* The data type of the current output channel.
*
*
* .google.cloud.visionai.v1.DataType data_type = 2;
*
* @param value The dataType to set.
* @return This builder for chaining.
*/
public Builder setDataType(com.google.cloud.visionai.v1.DataType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
dataType_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* The data type of the current output channel.
*
*
* .google.cloud.visionai.v1.DataType data_type = 2;
*
* @return This builder for chaining.
*/
public Builder clearDataType() {
bitField0_ = (bitField0_ & ~0x00000002);
dataType_ = 0;
onChanged();
return this;
}
private java.lang.Object dataTypeUri_ = "";
/**
* string data_type_uri = 3;
*
* @return The dataTypeUri.
*/
public java.lang.String getDataTypeUri() {
java.lang.Object ref = dataTypeUri_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dataTypeUri_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string data_type_uri = 3;
*
* @return The bytes for dataTypeUri.
*/
public com.google.protobuf.ByteString getDataTypeUriBytes() {
java.lang.Object ref = dataTypeUri_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
dataTypeUri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string data_type_uri = 3;
*
* @param value The dataTypeUri to set.
* @return This builder for chaining.
*/
public Builder setDataTypeUri(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
dataTypeUri_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* string data_type_uri = 3;
*
* @return This builder for chaining.
*/
public Builder clearDataTypeUri() {
dataTypeUri_ = getDefaultInstance().getDataTypeUri();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* string data_type_uri = 3;
*
* @param value The bytes for dataTypeUri to set.
* @return This builder for chaining.
*/
public Builder setDataTypeUriBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
dataTypeUri_ = value;
bitField0_ |= 0x00000004;
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.ProcessorIOSpec.GraphOutputChannelSpec)
}
// @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec)
private static final com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec();
}
public static com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GraphOutputChannelSpec 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.ProcessorIOSpec.GraphOutputChannelSpec
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface InstanceResourceInputBindingSpecOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* The configuration proto that includes the Googleapis resources. I.e.
* type.googleapis.com/google.cloud.vision.v1.StreamWithAnnotation
*
*
* string config_type_uri = 2;
*
* @return Whether the configTypeUri field is set.
*/
boolean hasConfigTypeUri();
/**
*
*
*
* The configuration proto that includes the Googleapis resources. I.e.
* type.googleapis.com/google.cloud.vision.v1.StreamWithAnnotation
*
*
* string config_type_uri = 2;
*
* @return The configTypeUri.
*/
java.lang.String getConfigTypeUri();
/**
*
*
*
* The configuration proto that includes the Googleapis resources. I.e.
* type.googleapis.com/google.cloud.vision.v1.StreamWithAnnotation
*
*
* string config_type_uri = 2;
*
* @return The bytes for configTypeUri.
*/
com.google.protobuf.ByteString getConfigTypeUriBytes();
/**
*
*
*
* The direct type url of Googleapis resource. i.e.
* type.googleapis.com/google.cloud.vision.v1.Asset
*
*
* string resource_type_uri = 3;
*
* @return Whether the resourceTypeUri field is set.
*/
boolean hasResourceTypeUri();
/**
*
*
*
* The direct type url of Googleapis resource. i.e.
* type.googleapis.com/google.cloud.vision.v1.Asset
*
*
* string resource_type_uri = 3;
*
* @return The resourceTypeUri.
*/
java.lang.String getResourceTypeUri();
/**
*
*
*
* The direct type url of Googleapis resource. i.e.
* type.googleapis.com/google.cloud.vision.v1.Asset
*
*
* string resource_type_uri = 3;
*
* @return The bytes for resourceTypeUri.
*/
com.google.protobuf.ByteString getResourceTypeUriBytes();
/**
*
*
*
* Name of the input binding, unique within the processor.
*
*
* string name = 1;
*
* @return The name.
*/
java.lang.String getName();
/**
*
*
*
* Name of the input binding, unique within the processor.
*
*
* string name = 1;
*
* @return The bytes for name.
*/
com.google.protobuf.ByteString getNameBytes();
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec.ResourceTypeCase
getResourceTypeCase();
}
/**
*
*
*
* Message for instance resource channel specification.
* External resources are virtual nodes which are not expressed in the
* application graph. Each processor expresses its out-graph spec, so customer
* is able to override the external source or destinations to the
*
*
* Protobuf type {@code google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec}
*/
public static final class InstanceResourceInputBindingSpec
extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec)
InstanceResourceInputBindingSpecOrBuilder {
private static final long serialVersionUID = 0L;
// Use InstanceResourceInputBindingSpec.newBuilder() to construct.
private InstanceResourceInputBindingSpec(
com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private InstanceResourceInputBindingSpec() {
name_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new InstanceResourceInputBindingSpec();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_ProcessorIOSpec_InstanceResourceInputBindingSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_ProcessorIOSpec_InstanceResourceInputBindingSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec.class,
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec.Builder
.class);
}
private int resourceTypeCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object resourceType_;
public enum ResourceTypeCase
implements
com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
CONFIG_TYPE_URI(2),
RESOURCE_TYPE_URI(3),
RESOURCETYPE_NOT_SET(0);
private final int value;
private ResourceTypeCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ResourceTypeCase valueOf(int value) {
return forNumber(value);
}
public static ResourceTypeCase forNumber(int value) {
switch (value) {
case 2:
return CONFIG_TYPE_URI;
case 3:
return RESOURCE_TYPE_URI;
case 0:
return RESOURCETYPE_NOT_SET;
default:
return null;
}
}
public int getNumber() {
return this.value;
}
};
public ResourceTypeCase getResourceTypeCase() {
return ResourceTypeCase.forNumber(resourceTypeCase_);
}
public static final int CONFIG_TYPE_URI_FIELD_NUMBER = 2;
/**
*
*
*
* The configuration proto that includes the Googleapis resources. I.e.
* type.googleapis.com/google.cloud.vision.v1.StreamWithAnnotation
*
*
* string config_type_uri = 2;
*
* @return Whether the configTypeUri field is set.
*/
public boolean hasConfigTypeUri() {
return resourceTypeCase_ == 2;
}
/**
*
*
*
* The configuration proto that includes the Googleapis resources. I.e.
* type.googleapis.com/google.cloud.vision.v1.StreamWithAnnotation
*
*
* string config_type_uri = 2;
*
* @return The configTypeUri.
*/
public java.lang.String getConfigTypeUri() {
java.lang.Object ref = "";
if (resourceTypeCase_ == 2) {
ref = resourceType_;
}
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();
if (resourceTypeCase_ == 2) {
resourceType_ = s;
}
return s;
}
}
/**
*
*
*
* The configuration proto that includes the Googleapis resources. I.e.
* type.googleapis.com/google.cloud.vision.v1.StreamWithAnnotation
*
*
* string config_type_uri = 2;
*
* @return The bytes for configTypeUri.
*/
public com.google.protobuf.ByteString getConfigTypeUriBytes() {
java.lang.Object ref = "";
if (resourceTypeCase_ == 2) {
ref = resourceType_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
if (resourceTypeCase_ == 2) {
resourceType_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RESOURCE_TYPE_URI_FIELD_NUMBER = 3;
/**
*
*
*
* The direct type url of Googleapis resource. i.e.
* type.googleapis.com/google.cloud.vision.v1.Asset
*
*
* string resource_type_uri = 3;
*
* @return Whether the resourceTypeUri field is set.
*/
public boolean hasResourceTypeUri() {
return resourceTypeCase_ == 3;
}
/**
*
*
*
* The direct type url of Googleapis resource. i.e.
* type.googleapis.com/google.cloud.vision.v1.Asset
*
*
* string resource_type_uri = 3;
*
* @return The resourceTypeUri.
*/
public java.lang.String getResourceTypeUri() {
java.lang.Object ref = "";
if (resourceTypeCase_ == 3) {
ref = resourceType_;
}
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();
if (resourceTypeCase_ == 3) {
resourceType_ = s;
}
return s;
}
}
/**
*
*
*
* The direct type url of Googleapis resource. i.e.
* type.googleapis.com/google.cloud.vision.v1.Asset
*
*
* string resource_type_uri = 3;
*
* @return The bytes for resourceTypeUri.
*/
public com.google.protobuf.ByteString getResourceTypeUriBytes() {
java.lang.Object ref = "";
if (resourceTypeCase_ == 3) {
ref = resourceType_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
if (resourceTypeCase_ == 3) {
resourceType_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
*
*
* Name of the input binding, unique within the processor.
*
*
* 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 the input binding, unique within the processor.
*
*
* 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;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (resourceTypeCase_ == 2) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, resourceType_);
}
if (resourceTypeCase_ == 3) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, resourceType_);
}
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 (resourceTypeCase_ == 2) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, resourceType_);
}
if (resourceTypeCase_ == 3) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, resourceType_);
}
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.ProcessorIOSpec.InstanceResourceInputBindingSpec)) {
return super.equals(obj);
}
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec other =
(com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec) obj;
if (!getName().equals(other.getName())) return false;
if (!getResourceTypeCase().equals(other.getResourceTypeCase())) return false;
switch (resourceTypeCase_) {
case 2:
if (!getConfigTypeUri().equals(other.getConfigTypeUri())) return false;
break;
case 3:
if (!getResourceTypeUri().equals(other.getResourceTypeUri())) return false;
break;
case 0:
default:
}
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();
switch (resourceTypeCase_) {
case 2:
hash = (37 * hash) + CONFIG_TYPE_URI_FIELD_NUMBER;
hash = (53 * hash) + getConfigTypeUri().hashCode();
break;
case 3:
hash = (37 * hash) + RESOURCE_TYPE_URI_FIELD_NUMBER;
hash = (53 * hash) + getResourceTypeUri().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec
parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec
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.ProcessorIOSpec.InstanceResourceInputBindingSpec
parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec
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.ProcessorIOSpec.InstanceResourceInputBindingSpec
parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec
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.ProcessorIOSpec.InstanceResourceInputBindingSpec
parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec
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.ProcessorIOSpec.InstanceResourceInputBindingSpec
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec
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.ProcessorIOSpec.InstanceResourceInputBindingSpec
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.ProcessorIOSpec.InstanceResourceInputBindingSpec
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.ProcessorIOSpec.InstanceResourceInputBindingSpec 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 for instance resource channel specification.
* External resources are virtual nodes which are not expressed in the
* application graph. Each processor expresses its out-graph spec, so customer
* is able to override the external source or destinations to the
*
*
* Protobuf type {@code
* google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec)
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpecOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_ProcessorIOSpec_InstanceResourceInputBindingSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_ProcessorIOSpec_InstanceResourceInputBindingSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec.class,
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec
.Builder.class);
}
// Construct using
// com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
resourceTypeCase_ = 0;
resourceType_ = null;
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_ProcessorIOSpec_InstanceResourceInputBindingSpec_descriptor;
}
@java.lang.Override
public com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec
getDefaultInstanceForType() {
return com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec
.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec build() {
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec result =
buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec
buildPartial() {
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec result =
new com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.name_ = name_;
}
}
private void buildPartialOneofs(
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec result) {
result.resourceTypeCase_ = resourceTypeCase_;
result.resourceType_ = this.resourceType_;
}
@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.ProcessorIOSpec.InstanceResourceInputBindingSpec) {
return mergeFrom(
(com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec)
other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec other) {
if (other
== com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec
.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000004;
onChanged();
}
switch (other.getResourceTypeCase()) {
case CONFIG_TYPE_URI:
{
resourceTypeCase_ = 2;
resourceType_ = other.resourceType_;
onChanged();
break;
}
case RESOURCE_TYPE_URI:
{
resourceTypeCase_ = 3;
resourceType_ = other.resourceType_;
onChanged();
break;
}
case RESOURCETYPE_NOT_SET:
{
break;
}
}
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_ |= 0x00000004;
break;
} // case 10
case 18:
{
java.lang.String s = input.readStringRequireUtf8();
resourceTypeCase_ = 2;
resourceType_ = s;
break;
} // case 18
case 26:
{
java.lang.String s = input.readStringRequireUtf8();
resourceTypeCase_ = 3;
resourceType_ = s;
break;
} // case 26
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int resourceTypeCase_ = 0;
private java.lang.Object resourceType_;
public ResourceTypeCase getResourceTypeCase() {
return ResourceTypeCase.forNumber(resourceTypeCase_);
}
public Builder clearResourceType() {
resourceTypeCase_ = 0;
resourceType_ = null;
onChanged();
return this;
}
private int bitField0_;
/**
*
*
*
* The configuration proto that includes the Googleapis resources. I.e.
* type.googleapis.com/google.cloud.vision.v1.StreamWithAnnotation
*
*
* string config_type_uri = 2;
*
* @return Whether the configTypeUri field is set.
*/
@java.lang.Override
public boolean hasConfigTypeUri() {
return resourceTypeCase_ == 2;
}
/**
*
*
*
* The configuration proto that includes the Googleapis resources. I.e.
* type.googleapis.com/google.cloud.vision.v1.StreamWithAnnotation
*
*
* string config_type_uri = 2;
*
* @return The configTypeUri.
*/
@java.lang.Override
public java.lang.String getConfigTypeUri() {
java.lang.Object ref = "";
if (resourceTypeCase_ == 2) {
ref = resourceType_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (resourceTypeCase_ == 2) {
resourceType_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The configuration proto that includes the Googleapis resources. I.e.
* type.googleapis.com/google.cloud.vision.v1.StreamWithAnnotation
*
*
* string config_type_uri = 2;
*
* @return The bytes for configTypeUri.
*/
@java.lang.Override
public com.google.protobuf.ByteString getConfigTypeUriBytes() {
java.lang.Object ref = "";
if (resourceTypeCase_ == 2) {
ref = resourceType_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
if (resourceTypeCase_ == 2) {
resourceType_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The configuration proto that includes the Googleapis resources. I.e.
* type.googleapis.com/google.cloud.vision.v1.StreamWithAnnotation
*
*
* string config_type_uri = 2;
*
* @param value The configTypeUri to set.
* @return This builder for chaining.
*/
public Builder setConfigTypeUri(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
resourceTypeCase_ = 2;
resourceType_ = value;
onChanged();
return this;
}
/**
*
*
*
* The configuration proto that includes the Googleapis resources. I.e.
* type.googleapis.com/google.cloud.vision.v1.StreamWithAnnotation
*
*
* string config_type_uri = 2;
*
* @return This builder for chaining.
*/
public Builder clearConfigTypeUri() {
if (resourceTypeCase_ == 2) {
resourceTypeCase_ = 0;
resourceType_ = null;
onChanged();
}
return this;
}
/**
*
*
*
* The configuration proto that includes the Googleapis resources. I.e.
* type.googleapis.com/google.cloud.vision.v1.StreamWithAnnotation
*
*
* string config_type_uri = 2;
*
* @param value The bytes for configTypeUri to set.
* @return This builder for chaining.
*/
public Builder setConfigTypeUriBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
resourceTypeCase_ = 2;
resourceType_ = value;
onChanged();
return this;
}
/**
*
*
*
* The direct type url of Googleapis resource. i.e.
* type.googleapis.com/google.cloud.vision.v1.Asset
*
*
* string resource_type_uri = 3;
*
* @return Whether the resourceTypeUri field is set.
*/
@java.lang.Override
public boolean hasResourceTypeUri() {
return resourceTypeCase_ == 3;
}
/**
*
*
*
* The direct type url of Googleapis resource. i.e.
* type.googleapis.com/google.cloud.vision.v1.Asset
*
*
* string resource_type_uri = 3;
*
* @return The resourceTypeUri.
*/
@java.lang.Override
public java.lang.String getResourceTypeUri() {
java.lang.Object ref = "";
if (resourceTypeCase_ == 3) {
ref = resourceType_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (resourceTypeCase_ == 3) {
resourceType_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The direct type url of Googleapis resource. i.e.
* type.googleapis.com/google.cloud.vision.v1.Asset
*
*
* string resource_type_uri = 3;
*
* @return The bytes for resourceTypeUri.
*/
@java.lang.Override
public com.google.protobuf.ByteString getResourceTypeUriBytes() {
java.lang.Object ref = "";
if (resourceTypeCase_ == 3) {
ref = resourceType_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
if (resourceTypeCase_ == 3) {
resourceType_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The direct type url of Googleapis resource. i.e.
* type.googleapis.com/google.cloud.vision.v1.Asset
*
*
* string resource_type_uri = 3;
*
* @param value The resourceTypeUri to set.
* @return This builder for chaining.
*/
public Builder setResourceTypeUri(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
resourceTypeCase_ = 3;
resourceType_ = value;
onChanged();
return this;
}
/**
*
*
*
* The direct type url of Googleapis resource. i.e.
* type.googleapis.com/google.cloud.vision.v1.Asset
*
*
* string resource_type_uri = 3;
*
* @return This builder for chaining.
*/
public Builder clearResourceTypeUri() {
if (resourceTypeCase_ == 3) {
resourceTypeCase_ = 0;
resourceType_ = null;
onChanged();
}
return this;
}
/**
*
*
*
* The direct type url of Googleapis resource. i.e.
* type.googleapis.com/google.cloud.vision.v1.Asset
*
*
* string resource_type_uri = 3;
*
* @param value The bytes for resourceTypeUri to set.
* @return This builder for chaining.
*/
public Builder setResourceTypeUriBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
resourceTypeCase_ = 3;
resourceType_ = value;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
*
*
* Name of the input binding, unique within the processor.
*
*
* 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 the input binding, unique within the processor.
*
*
* 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 the input binding, unique within the processor.
*
*
* 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_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Name of the input binding, unique within the processor.
*
*
* string name = 1;
*
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
*
*
* Name of the input binding, unique within the processor.
*
*
* 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_ |= 0x00000004;
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.ProcessorIOSpec.InstanceResourceInputBindingSpec)
}
// @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec)
private static final com.google.cloud.visionai.v1.ProcessorIOSpec
.InstanceResourceInputBindingSpec
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
new com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec();
}
public static com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public InstanceResourceInputBindingSpec 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.ProcessorIOSpec.InstanceResourceInputBindingSpec
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface InstanceResourceOutputBindingSpecOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Name of the output binding, unique within the processor.
*
*
* string name = 1;
*
* @return The name.
*/
java.lang.String getName();
/**
*
*
*
* Name of the output binding, unique within the processor.
*
*
* string name = 1;
*
* @return The bytes for name.
*/
com.google.protobuf.ByteString getNameBytes();
/**
*
*
*
* The resource type uri of the acceptable output resource.
*
*
* string resource_type_uri = 2;
*
* @return The resourceTypeUri.
*/
java.lang.String getResourceTypeUri();
/**
*
*
*
* The resource type uri of the acceptable output resource.
*
*
* string resource_type_uri = 2;
*
* @return The bytes for resourceTypeUri.
*/
com.google.protobuf.ByteString getResourceTypeUriBytes();
/**
*
*
*
* Whether the output resource needs to be explicitly set in the instance.
* If it is false, the processor will automatically generate it if required.
*
*
* bool explicit = 3;
*
* @return The explicit.
*/
boolean getExplicit();
}
/**
* Protobuf type {@code
* google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec}
*/
public static final class InstanceResourceOutputBindingSpec
extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec)
InstanceResourceOutputBindingSpecOrBuilder {
private static final long serialVersionUID = 0L;
// Use InstanceResourceOutputBindingSpec.newBuilder() to construct.
private InstanceResourceOutputBindingSpec(
com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private InstanceResourceOutputBindingSpec() {
name_ = "";
resourceTypeUri_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new InstanceResourceOutputBindingSpec();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_ProcessorIOSpec_InstanceResourceOutputBindingSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_ProcessorIOSpec_InstanceResourceOutputBindingSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec.class,
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec.Builder
.class);
}
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
*
*
* Name of the output binding, unique within the processor.
*
*
* 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 the output binding, unique within the processor.
*
*
* 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 RESOURCE_TYPE_URI_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object resourceTypeUri_ = "";
/**
*
*
*
* The resource type uri of the acceptable output resource.
*
*
* string resource_type_uri = 2;
*
* @return The resourceTypeUri.
*/
@java.lang.Override
public java.lang.String getResourceTypeUri() {
java.lang.Object ref = resourceTypeUri_;
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();
resourceTypeUri_ = s;
return s;
}
}
/**
*
*
*
* The resource type uri of the acceptable output resource.
*
*
* string resource_type_uri = 2;
*
* @return The bytes for resourceTypeUri.
*/
@java.lang.Override
public com.google.protobuf.ByteString getResourceTypeUriBytes() {
java.lang.Object ref = resourceTypeUri_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
resourceTypeUri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EXPLICIT_FIELD_NUMBER = 3;
private boolean explicit_ = false;
/**
*
*
*
* Whether the output resource needs to be explicitly set in the instance.
* If it is false, the processor will automatically generate it if required.
*
*
* bool explicit = 3;
*
* @return The explicit.
*/
@java.lang.Override
public boolean getExplicit() {
return explicit_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceTypeUri_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, resourceTypeUri_);
}
if (explicit_ != false) {
output.writeBool(3, explicit_);
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceTypeUri_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, resourceTypeUri_);
}
if (explicit_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, explicit_);
}
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.ProcessorIOSpec.InstanceResourceOutputBindingSpec)) {
return super.equals(obj);
}
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec other =
(com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec) obj;
if (!getName().equals(other.getName())) return false;
if (!getResourceTypeUri().equals(other.getResourceTypeUri())) return false;
if (getExplicit() != other.getExplicit()) 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();
hash = (37 * hash) + RESOURCE_TYPE_URI_FIELD_NUMBER;
hash = (53 * hash) + getResourceTypeUri().hashCode();
hash = (37 * hash) + EXPLICIT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getExplicit());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec
parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec
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.ProcessorIOSpec.InstanceResourceOutputBindingSpec
parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec
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.ProcessorIOSpec.InstanceResourceOutputBindingSpec
parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec
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.ProcessorIOSpec.InstanceResourceOutputBindingSpec
parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec
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.ProcessorIOSpec.InstanceResourceOutputBindingSpec
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec
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.ProcessorIOSpec.InstanceResourceOutputBindingSpec
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.ProcessorIOSpec.InstanceResourceOutputBindingSpec
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.ProcessorIOSpec.InstanceResourceOutputBindingSpec 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;
}
/**
* Protobuf type {@code
* google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec)
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpecOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_ProcessorIOSpec_InstanceResourceOutputBindingSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_ProcessorIOSpec_InstanceResourceOutputBindingSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec
.class,
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec
.Builder.class);
}
// Construct using
// com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
resourceTypeUri_ = "";
explicit_ = false;
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_ProcessorIOSpec_InstanceResourceOutputBindingSpec_descriptor;
}
@java.lang.Override
public com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec
getDefaultInstanceForType() {
return com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec
.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec
build() {
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec result =
buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec
buildPartial() {
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec result =
new com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec(
this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.resourceTypeUri_ = resourceTypeUri_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.explicit_ = explicit_;
}
}
@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.ProcessorIOSpec.InstanceResourceOutputBindingSpec) {
return mergeFrom(
(com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec)
other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec other) {
if (other
== com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec
.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getResourceTypeUri().isEmpty()) {
resourceTypeUri_ = other.resourceTypeUri_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.getExplicit() != false) {
setExplicit(other.getExplicit());
}
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:
{
resourceTypeUri_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 24:
{
explicit_ = input.readBool();
bitField0_ |= 0x00000004;
break;
} // case 24
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 the output binding, unique within the processor.
*
*
* 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 the output binding, unique within the processor.
*
*
* 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 the output binding, unique within the processor.
*
*
* 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 the output binding, unique within the processor.
*
*
* string name = 1;
*
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* Name of the output binding, unique within the processor.
*
*
* 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 java.lang.Object resourceTypeUri_ = "";
/**
*
*
*
* The resource type uri of the acceptable output resource.
*
*
* string resource_type_uri = 2;
*
* @return The resourceTypeUri.
*/
public java.lang.String getResourceTypeUri() {
java.lang.Object ref = resourceTypeUri_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
resourceTypeUri_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The resource type uri of the acceptable output resource.
*
*
* string resource_type_uri = 2;
*
* @return The bytes for resourceTypeUri.
*/
public com.google.protobuf.ByteString getResourceTypeUriBytes() {
java.lang.Object ref = resourceTypeUri_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
resourceTypeUri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The resource type uri of the acceptable output resource.
*
*
* string resource_type_uri = 2;
*
* @param value The resourceTypeUri to set.
* @return This builder for chaining.
*/
public Builder setResourceTypeUri(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
resourceTypeUri_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* The resource type uri of the acceptable output resource.
*
*
* string resource_type_uri = 2;
*
* @return This builder for chaining.
*/
public Builder clearResourceTypeUri() {
resourceTypeUri_ = getDefaultInstance().getResourceTypeUri();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*
*
* The resource type uri of the acceptable output resource.
*
*
* string resource_type_uri = 2;
*
* @param value The bytes for resourceTypeUri to set.
* @return This builder for chaining.
*/
public Builder setResourceTypeUriBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
resourceTypeUri_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private boolean explicit_;
/**
*
*
*
* Whether the output resource needs to be explicitly set in the instance.
* If it is false, the processor will automatically generate it if required.
*
*
* bool explicit = 3;
*
* @return The explicit.
*/
@java.lang.Override
public boolean getExplicit() {
return explicit_;
}
/**
*
*
*
* Whether the output resource needs to be explicitly set in the instance.
* If it is false, the processor will automatically generate it if required.
*
*
* bool explicit = 3;
*
* @param value The explicit to set.
* @return This builder for chaining.
*/
public Builder setExplicit(boolean value) {
explicit_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Whether the output resource needs to be explicitly set in the instance.
* If it is false, the processor will automatically generate it if required.
*
*
* bool explicit = 3;
*
* @return This builder for chaining.
*/
public Builder clearExplicit() {
bitField0_ = (bitField0_ & ~0x00000004);
explicit_ = false;
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.ProcessorIOSpec.InstanceResourceOutputBindingSpec)
}
// @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec)
private static final com.google.cloud.visionai.v1.ProcessorIOSpec
.InstanceResourceOutputBindingSpec
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
new com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec();
}
public static com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public InstanceResourceOutputBindingSpec 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.ProcessorIOSpec.InstanceResourceOutputBindingSpec
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int GRAPH_INPUT_CHANNEL_SPECS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List
graphInputChannelSpecs_;
/**
*
*
*
* For processors with input_channel_specs, the processor must be explicitly
* connected to another processor.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec graph_input_channel_specs = 3;
*
*/
@java.lang.Override
public java.util.List
getGraphInputChannelSpecsList() {
return graphInputChannelSpecs_;
}
/**
*
*
*
* For processors with input_channel_specs, the processor must be explicitly
* connected to another processor.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec graph_input_channel_specs = 3;
*
*/
@java.lang.Override
public java.util.List<
? extends com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpecOrBuilder>
getGraphInputChannelSpecsOrBuilderList() {
return graphInputChannelSpecs_;
}
/**
*
*
*
* For processors with input_channel_specs, the processor must be explicitly
* connected to another processor.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec graph_input_channel_specs = 3;
*
*/
@java.lang.Override
public int getGraphInputChannelSpecsCount() {
return graphInputChannelSpecs_.size();
}
/**
*
*
*
* For processors with input_channel_specs, the processor must be explicitly
* connected to another processor.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec graph_input_channel_specs = 3;
*
*/
@java.lang.Override
public com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec
getGraphInputChannelSpecs(int index) {
return graphInputChannelSpecs_.get(index);
}
/**
*
*
*
* For processors with input_channel_specs, the processor must be explicitly
* connected to another processor.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec graph_input_channel_specs = 3;
*
*/
@java.lang.Override
public com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpecOrBuilder
getGraphInputChannelSpecsOrBuilder(int index) {
return graphInputChannelSpecs_.get(index);
}
public static final int GRAPH_OUTPUT_CHANNEL_SPECS_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private java.util.List
graphOutputChannelSpecs_;
/**
*
*
*
* The output artifact specifications for the current processor.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec graph_output_channel_specs = 4;
*
*/
@java.lang.Override
public java.util.List
getGraphOutputChannelSpecsList() {
return graphOutputChannelSpecs_;
}
/**
*
*
*
* The output artifact specifications for the current processor.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec graph_output_channel_specs = 4;
*
*/
@java.lang.Override
public java.util.List<
? extends com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpecOrBuilder>
getGraphOutputChannelSpecsOrBuilderList() {
return graphOutputChannelSpecs_;
}
/**
*
*
*
* The output artifact specifications for the current processor.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec graph_output_channel_specs = 4;
*
*/
@java.lang.Override
public int getGraphOutputChannelSpecsCount() {
return graphOutputChannelSpecs_.size();
}
/**
*
*
*
* The output artifact specifications for the current processor.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec graph_output_channel_specs = 4;
*
*/
@java.lang.Override
public com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec
getGraphOutputChannelSpecs(int index) {
return graphOutputChannelSpecs_.get(index);
}
/**
*
*
*
* The output artifact specifications for the current processor.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec graph_output_channel_specs = 4;
*
*/
@java.lang.Override
public com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpecOrBuilder
getGraphOutputChannelSpecsOrBuilder(int index) {
return graphOutputChannelSpecs_.get(index);
}
public static final int INSTANCE_RESOURCE_INPUT_BINDING_SPECS_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private java.util.List<
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec>
instanceResourceInputBindingSpecs_;
/**
*
*
*
* The input resource that needs to be fed from the application instance.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec instance_resource_input_binding_specs = 5;
*
*/
@java.lang.Override
public java.util.List<
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec>
getInstanceResourceInputBindingSpecsList() {
return instanceResourceInputBindingSpecs_;
}
/**
*
*
*
* The input resource that needs to be fed from the application instance.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec instance_resource_input_binding_specs = 5;
*
*/
@java.lang.Override
public java.util.List<
? extends
com.google.cloud.visionai.v1.ProcessorIOSpec
.InstanceResourceInputBindingSpecOrBuilder>
getInstanceResourceInputBindingSpecsOrBuilderList() {
return instanceResourceInputBindingSpecs_;
}
/**
*
*
*
* The input resource that needs to be fed from the application instance.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec instance_resource_input_binding_specs = 5;
*
*/
@java.lang.Override
public int getInstanceResourceInputBindingSpecsCount() {
return instanceResourceInputBindingSpecs_.size();
}
/**
*
*
*
* The input resource that needs to be fed from the application instance.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec instance_resource_input_binding_specs = 5;
*
*/
@java.lang.Override
public com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec
getInstanceResourceInputBindingSpecs(int index) {
return instanceResourceInputBindingSpecs_.get(index);
}
/**
*
*
*
* The input resource that needs to be fed from the application instance.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec instance_resource_input_binding_specs = 5;
*
*/
@java.lang.Override
public com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpecOrBuilder
getInstanceResourceInputBindingSpecsOrBuilder(int index) {
return instanceResourceInputBindingSpecs_.get(index);
}
public static final int INSTANCE_RESOURCE_OUTPUT_BINDING_SPECS_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private java.util.List<
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec>
instanceResourceOutputBindingSpecs_;
/**
*
*
*
* The output resource that the processor will generate per instance.
* Other than the explicitly listed output bindings here, all the processors'
* GraphOutputChannels can be binded to stream resource. The bind name then is
* the same as the GraphOutputChannel's name.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec instance_resource_output_binding_specs = 6;
*
*/
@java.lang.Override
public java.util.List<
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec>
getInstanceResourceOutputBindingSpecsList() {
return instanceResourceOutputBindingSpecs_;
}
/**
*
*
*
* The output resource that the processor will generate per instance.
* Other than the explicitly listed output bindings here, all the processors'
* GraphOutputChannels can be binded to stream resource. The bind name then is
* the same as the GraphOutputChannel's name.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec instance_resource_output_binding_specs = 6;
*
*/
@java.lang.Override
public java.util.List<
? extends
com.google.cloud.visionai.v1.ProcessorIOSpec
.InstanceResourceOutputBindingSpecOrBuilder>
getInstanceResourceOutputBindingSpecsOrBuilderList() {
return instanceResourceOutputBindingSpecs_;
}
/**
*
*
*
* The output resource that the processor will generate per instance.
* Other than the explicitly listed output bindings here, all the processors'
* GraphOutputChannels can be binded to stream resource. The bind name then is
* the same as the GraphOutputChannel's name.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec instance_resource_output_binding_specs = 6;
*
*/
@java.lang.Override
public int getInstanceResourceOutputBindingSpecsCount() {
return instanceResourceOutputBindingSpecs_.size();
}
/**
*
*
*
* The output resource that the processor will generate per instance.
* Other than the explicitly listed output bindings here, all the processors'
* GraphOutputChannels can be binded to stream resource. The bind name then is
* the same as the GraphOutputChannel's name.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec instance_resource_output_binding_specs = 6;
*
*/
@java.lang.Override
public com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec
getInstanceResourceOutputBindingSpecs(int index) {
return instanceResourceOutputBindingSpecs_.get(index);
}
/**
*
*
*
* The output resource that the processor will generate per instance.
* Other than the explicitly listed output bindings here, all the processors'
* GraphOutputChannels can be binded to stream resource. The bind name then is
* the same as the GraphOutputChannel's name.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec instance_resource_output_binding_specs = 6;
*
*/
@java.lang.Override
public com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpecOrBuilder
getInstanceResourceOutputBindingSpecsOrBuilder(int index) {
return instanceResourceOutputBindingSpecs_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
for (int i = 0; i < graphInputChannelSpecs_.size(); i++) {
output.writeMessage(3, graphInputChannelSpecs_.get(i));
}
for (int i = 0; i < graphOutputChannelSpecs_.size(); i++) {
output.writeMessage(4, graphOutputChannelSpecs_.get(i));
}
for (int i = 0; i < instanceResourceInputBindingSpecs_.size(); i++) {
output.writeMessage(5, instanceResourceInputBindingSpecs_.get(i));
}
for (int i = 0; i < instanceResourceOutputBindingSpecs_.size(); i++) {
output.writeMessage(6, instanceResourceOutputBindingSpecs_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < graphInputChannelSpecs_.size(); i++) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
3, graphInputChannelSpecs_.get(i));
}
for (int i = 0; i < graphOutputChannelSpecs_.size(); i++) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
4, graphOutputChannelSpecs_.get(i));
}
for (int i = 0; i < instanceResourceInputBindingSpecs_.size(); i++) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
5, instanceResourceInputBindingSpecs_.get(i));
}
for (int i = 0; i < instanceResourceOutputBindingSpecs_.size(); i++) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
6, instanceResourceOutputBindingSpecs_.get(i));
}
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.ProcessorIOSpec)) {
return super.equals(obj);
}
com.google.cloud.visionai.v1.ProcessorIOSpec other =
(com.google.cloud.visionai.v1.ProcessorIOSpec) obj;
if (!getGraphInputChannelSpecsList().equals(other.getGraphInputChannelSpecsList()))
return false;
if (!getGraphOutputChannelSpecsList().equals(other.getGraphOutputChannelSpecsList()))
return false;
if (!getInstanceResourceInputBindingSpecsList()
.equals(other.getInstanceResourceInputBindingSpecsList())) return false;
if (!getInstanceResourceOutputBindingSpecsList()
.equals(other.getInstanceResourceOutputBindingSpecsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getGraphInputChannelSpecsCount() > 0) {
hash = (37 * hash) + GRAPH_INPUT_CHANNEL_SPECS_FIELD_NUMBER;
hash = (53 * hash) + getGraphInputChannelSpecsList().hashCode();
}
if (getGraphOutputChannelSpecsCount() > 0) {
hash = (37 * hash) + GRAPH_OUTPUT_CHANNEL_SPECS_FIELD_NUMBER;
hash = (53 * hash) + getGraphOutputChannelSpecsList().hashCode();
}
if (getInstanceResourceInputBindingSpecsCount() > 0) {
hash = (37 * hash) + INSTANCE_RESOURCE_INPUT_BINDING_SPECS_FIELD_NUMBER;
hash = (53 * hash) + getInstanceResourceInputBindingSpecsList().hashCode();
}
if (getInstanceResourceOutputBindingSpecsCount() > 0) {
hash = (37 * hash) + INSTANCE_RESOURCE_OUTPUT_BINDING_SPECS_FIELD_NUMBER;
hash = (53 * hash) + getInstanceResourceOutputBindingSpecsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.visionai.v1.ProcessorIOSpec parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.ProcessorIOSpec 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.ProcessorIOSpec parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.ProcessorIOSpec 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.ProcessorIOSpec parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.ProcessorIOSpec 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.ProcessorIOSpec parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.ProcessorIOSpec 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.ProcessorIOSpec parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.ProcessorIOSpec 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.ProcessorIOSpec 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.ProcessorIOSpec 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.ProcessorIOSpec 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 the input / output specifications of a processor.
*
*
* Protobuf type {@code google.cloud.visionai.v1.ProcessorIOSpec}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.ProcessorIOSpec)
com.google.cloud.visionai.v1.ProcessorIOSpecOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_ProcessorIOSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_ProcessorIOSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.ProcessorIOSpec.class,
com.google.cloud.visionai.v1.ProcessorIOSpec.Builder.class);
}
// Construct using com.google.cloud.visionai.v1.ProcessorIOSpec.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (graphInputChannelSpecsBuilder_ == null) {
graphInputChannelSpecs_ = java.util.Collections.emptyList();
} else {
graphInputChannelSpecs_ = null;
graphInputChannelSpecsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (graphOutputChannelSpecsBuilder_ == null) {
graphOutputChannelSpecs_ = java.util.Collections.emptyList();
} else {
graphOutputChannelSpecs_ = null;
graphOutputChannelSpecsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (instanceResourceInputBindingSpecsBuilder_ == null) {
instanceResourceInputBindingSpecs_ = java.util.Collections.emptyList();
} else {
instanceResourceInputBindingSpecs_ = null;
instanceResourceInputBindingSpecsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
if (instanceResourceOutputBindingSpecsBuilder_ == null) {
instanceResourceOutputBindingSpecs_ = java.util.Collections.emptyList();
} else {
instanceResourceOutputBindingSpecs_ = null;
instanceResourceOutputBindingSpecsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
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_ProcessorIOSpec_descriptor;
}
@java.lang.Override
public com.google.cloud.visionai.v1.ProcessorIOSpec getDefaultInstanceForType() {
return com.google.cloud.visionai.v1.ProcessorIOSpec.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.visionai.v1.ProcessorIOSpec build() {
com.google.cloud.visionai.v1.ProcessorIOSpec result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.visionai.v1.ProcessorIOSpec buildPartial() {
com.google.cloud.visionai.v1.ProcessorIOSpec result =
new com.google.cloud.visionai.v1.ProcessorIOSpec(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.cloud.visionai.v1.ProcessorIOSpec result) {
if (graphInputChannelSpecsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
graphInputChannelSpecs_ = java.util.Collections.unmodifiableList(graphInputChannelSpecs_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.graphInputChannelSpecs_ = graphInputChannelSpecs_;
} else {
result.graphInputChannelSpecs_ = graphInputChannelSpecsBuilder_.build();
}
if (graphOutputChannelSpecsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
graphOutputChannelSpecs_ =
java.util.Collections.unmodifiableList(graphOutputChannelSpecs_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.graphOutputChannelSpecs_ = graphOutputChannelSpecs_;
} else {
result.graphOutputChannelSpecs_ = graphOutputChannelSpecsBuilder_.build();
}
if (instanceResourceInputBindingSpecsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
instanceResourceInputBindingSpecs_ =
java.util.Collections.unmodifiableList(instanceResourceInputBindingSpecs_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.instanceResourceInputBindingSpecs_ = instanceResourceInputBindingSpecs_;
} else {
result.instanceResourceInputBindingSpecs_ =
instanceResourceInputBindingSpecsBuilder_.build();
}
if (instanceResourceOutputBindingSpecsBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
instanceResourceOutputBindingSpecs_ =
java.util.Collections.unmodifiableList(instanceResourceOutputBindingSpecs_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.instanceResourceOutputBindingSpecs_ = instanceResourceOutputBindingSpecs_;
} else {
result.instanceResourceOutputBindingSpecs_ =
instanceResourceOutputBindingSpecsBuilder_.build();
}
}
private void buildPartial0(com.google.cloud.visionai.v1.ProcessorIOSpec result) {
int from_bitField0_ = 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.ProcessorIOSpec) {
return mergeFrom((com.google.cloud.visionai.v1.ProcessorIOSpec) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.visionai.v1.ProcessorIOSpec other) {
if (other == com.google.cloud.visionai.v1.ProcessorIOSpec.getDefaultInstance()) return this;
if (graphInputChannelSpecsBuilder_ == null) {
if (!other.graphInputChannelSpecs_.isEmpty()) {
if (graphInputChannelSpecs_.isEmpty()) {
graphInputChannelSpecs_ = other.graphInputChannelSpecs_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureGraphInputChannelSpecsIsMutable();
graphInputChannelSpecs_.addAll(other.graphInputChannelSpecs_);
}
onChanged();
}
} else {
if (!other.graphInputChannelSpecs_.isEmpty()) {
if (graphInputChannelSpecsBuilder_.isEmpty()) {
graphInputChannelSpecsBuilder_.dispose();
graphInputChannelSpecsBuilder_ = null;
graphInputChannelSpecs_ = other.graphInputChannelSpecs_;
bitField0_ = (bitField0_ & ~0x00000001);
graphInputChannelSpecsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getGraphInputChannelSpecsFieldBuilder()
: null;
} else {
graphInputChannelSpecsBuilder_.addAllMessages(other.graphInputChannelSpecs_);
}
}
}
if (graphOutputChannelSpecsBuilder_ == null) {
if (!other.graphOutputChannelSpecs_.isEmpty()) {
if (graphOutputChannelSpecs_.isEmpty()) {
graphOutputChannelSpecs_ = other.graphOutputChannelSpecs_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureGraphOutputChannelSpecsIsMutable();
graphOutputChannelSpecs_.addAll(other.graphOutputChannelSpecs_);
}
onChanged();
}
} else {
if (!other.graphOutputChannelSpecs_.isEmpty()) {
if (graphOutputChannelSpecsBuilder_.isEmpty()) {
graphOutputChannelSpecsBuilder_.dispose();
graphOutputChannelSpecsBuilder_ = null;
graphOutputChannelSpecs_ = other.graphOutputChannelSpecs_;
bitField0_ = (bitField0_ & ~0x00000002);
graphOutputChannelSpecsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getGraphOutputChannelSpecsFieldBuilder()
: null;
} else {
graphOutputChannelSpecsBuilder_.addAllMessages(other.graphOutputChannelSpecs_);
}
}
}
if (instanceResourceInputBindingSpecsBuilder_ == null) {
if (!other.instanceResourceInputBindingSpecs_.isEmpty()) {
if (instanceResourceInputBindingSpecs_.isEmpty()) {
instanceResourceInputBindingSpecs_ = other.instanceResourceInputBindingSpecs_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureInstanceResourceInputBindingSpecsIsMutable();
instanceResourceInputBindingSpecs_.addAll(other.instanceResourceInputBindingSpecs_);
}
onChanged();
}
} else {
if (!other.instanceResourceInputBindingSpecs_.isEmpty()) {
if (instanceResourceInputBindingSpecsBuilder_.isEmpty()) {
instanceResourceInputBindingSpecsBuilder_.dispose();
instanceResourceInputBindingSpecsBuilder_ = null;
instanceResourceInputBindingSpecs_ = other.instanceResourceInputBindingSpecs_;
bitField0_ = (bitField0_ & ~0x00000004);
instanceResourceInputBindingSpecsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getInstanceResourceInputBindingSpecsFieldBuilder()
: null;
} else {
instanceResourceInputBindingSpecsBuilder_.addAllMessages(
other.instanceResourceInputBindingSpecs_);
}
}
}
if (instanceResourceOutputBindingSpecsBuilder_ == null) {
if (!other.instanceResourceOutputBindingSpecs_.isEmpty()) {
if (instanceResourceOutputBindingSpecs_.isEmpty()) {
instanceResourceOutputBindingSpecs_ = other.instanceResourceOutputBindingSpecs_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureInstanceResourceOutputBindingSpecsIsMutable();
instanceResourceOutputBindingSpecs_.addAll(other.instanceResourceOutputBindingSpecs_);
}
onChanged();
}
} else {
if (!other.instanceResourceOutputBindingSpecs_.isEmpty()) {
if (instanceResourceOutputBindingSpecsBuilder_.isEmpty()) {
instanceResourceOutputBindingSpecsBuilder_.dispose();
instanceResourceOutputBindingSpecsBuilder_ = null;
instanceResourceOutputBindingSpecs_ = other.instanceResourceOutputBindingSpecs_;
bitField0_ = (bitField0_ & ~0x00000008);
instanceResourceOutputBindingSpecsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getInstanceResourceOutputBindingSpecsFieldBuilder()
: null;
} else {
instanceResourceOutputBindingSpecsBuilder_.addAllMessages(
other.instanceResourceOutputBindingSpecs_);
}
}
}
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 26:
{
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec m =
input.readMessage(
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec.parser(),
extensionRegistry);
if (graphInputChannelSpecsBuilder_ == null) {
ensureGraphInputChannelSpecsIsMutable();
graphInputChannelSpecs_.add(m);
} else {
graphInputChannelSpecsBuilder_.addMessage(m);
}
break;
} // case 26
case 34:
{
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec m =
input.readMessage(
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec
.parser(),
extensionRegistry);
if (graphOutputChannelSpecsBuilder_ == null) {
ensureGraphOutputChannelSpecsIsMutable();
graphOutputChannelSpecs_.add(m);
} else {
graphOutputChannelSpecsBuilder_.addMessage(m);
}
break;
} // case 34
case 42:
{
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec m =
input.readMessage(
com.google.cloud.visionai.v1.ProcessorIOSpec
.InstanceResourceInputBindingSpec.parser(),
extensionRegistry);
if (instanceResourceInputBindingSpecsBuilder_ == null) {
ensureInstanceResourceInputBindingSpecsIsMutable();
instanceResourceInputBindingSpecs_.add(m);
} else {
instanceResourceInputBindingSpecsBuilder_.addMessage(m);
}
break;
} // case 42
case 50:
{
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec m =
input.readMessage(
com.google.cloud.visionai.v1.ProcessorIOSpec
.InstanceResourceOutputBindingSpec.parser(),
extensionRegistry);
if (instanceResourceOutputBindingSpecsBuilder_ == null) {
ensureInstanceResourceOutputBindingSpecsIsMutable();
instanceResourceOutputBindingSpecs_.add(m);
} else {
instanceResourceOutputBindingSpecsBuilder_.addMessage(m);
}
break;
} // case 50
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List
graphInputChannelSpecs_ = java.util.Collections.emptyList();
private void ensureGraphInputChannelSpecsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
graphInputChannelSpecs_ =
new java.util.ArrayList<
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec>(
graphInputChannelSpecs_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec,
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec.Builder,
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpecOrBuilder>
graphInputChannelSpecsBuilder_;
/**
*
*
*
* For processors with input_channel_specs, the processor must be explicitly
* connected to another processor.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec graph_input_channel_specs = 3;
*
*/
public java.util.List
getGraphInputChannelSpecsList() {
if (graphInputChannelSpecsBuilder_ == null) {
return java.util.Collections.unmodifiableList(graphInputChannelSpecs_);
} else {
return graphInputChannelSpecsBuilder_.getMessageList();
}
}
/**
*
*
*
* For processors with input_channel_specs, the processor must be explicitly
* connected to another processor.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec graph_input_channel_specs = 3;
*
*/
public int getGraphInputChannelSpecsCount() {
if (graphInputChannelSpecsBuilder_ == null) {
return graphInputChannelSpecs_.size();
} else {
return graphInputChannelSpecsBuilder_.getCount();
}
}
/**
*
*
*
* For processors with input_channel_specs, the processor must be explicitly
* connected to another processor.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec graph_input_channel_specs = 3;
*
*/
public com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec
getGraphInputChannelSpecs(int index) {
if (graphInputChannelSpecsBuilder_ == null) {
return graphInputChannelSpecs_.get(index);
} else {
return graphInputChannelSpecsBuilder_.getMessage(index);
}
}
/**
*
*
*
* For processors with input_channel_specs, the processor must be explicitly
* connected to another processor.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec graph_input_channel_specs = 3;
*
*/
public Builder setGraphInputChannelSpecs(
int index, com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec value) {
if (graphInputChannelSpecsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGraphInputChannelSpecsIsMutable();
graphInputChannelSpecs_.set(index, value);
onChanged();
} else {
graphInputChannelSpecsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* For processors with input_channel_specs, the processor must be explicitly
* connected to another processor.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec graph_input_channel_specs = 3;
*
*/
public Builder setGraphInputChannelSpecs(
int index,
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec.Builder
builderForValue) {
if (graphInputChannelSpecsBuilder_ == null) {
ensureGraphInputChannelSpecsIsMutable();
graphInputChannelSpecs_.set(index, builderForValue.build());
onChanged();
} else {
graphInputChannelSpecsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* For processors with input_channel_specs, the processor must be explicitly
* connected to another processor.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec graph_input_channel_specs = 3;
*
*/
public Builder addGraphInputChannelSpecs(
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec value) {
if (graphInputChannelSpecsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGraphInputChannelSpecsIsMutable();
graphInputChannelSpecs_.add(value);
onChanged();
} else {
graphInputChannelSpecsBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* For processors with input_channel_specs, the processor must be explicitly
* connected to another processor.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec graph_input_channel_specs = 3;
*
*/
public Builder addGraphInputChannelSpecs(
int index, com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec value) {
if (graphInputChannelSpecsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGraphInputChannelSpecsIsMutable();
graphInputChannelSpecs_.add(index, value);
onChanged();
} else {
graphInputChannelSpecsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* For processors with input_channel_specs, the processor must be explicitly
* connected to another processor.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec graph_input_channel_specs = 3;
*
*/
public Builder addGraphInputChannelSpecs(
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec.Builder
builderForValue) {
if (graphInputChannelSpecsBuilder_ == null) {
ensureGraphInputChannelSpecsIsMutable();
graphInputChannelSpecs_.add(builderForValue.build());
onChanged();
} else {
graphInputChannelSpecsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* For processors with input_channel_specs, the processor must be explicitly
* connected to another processor.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec graph_input_channel_specs = 3;
*
*/
public Builder addGraphInputChannelSpecs(
int index,
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec.Builder
builderForValue) {
if (graphInputChannelSpecsBuilder_ == null) {
ensureGraphInputChannelSpecsIsMutable();
graphInputChannelSpecs_.add(index, builderForValue.build());
onChanged();
} else {
graphInputChannelSpecsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* For processors with input_channel_specs, the processor must be explicitly
* connected to another processor.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec graph_input_channel_specs = 3;
*
*/
public Builder addAllGraphInputChannelSpecs(
java.lang.Iterable<
? extends com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec>
values) {
if (graphInputChannelSpecsBuilder_ == null) {
ensureGraphInputChannelSpecsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, graphInputChannelSpecs_);
onChanged();
} else {
graphInputChannelSpecsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* For processors with input_channel_specs, the processor must be explicitly
* connected to another processor.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec graph_input_channel_specs = 3;
*
*/
public Builder clearGraphInputChannelSpecs() {
if (graphInputChannelSpecsBuilder_ == null) {
graphInputChannelSpecs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
graphInputChannelSpecsBuilder_.clear();
}
return this;
}
/**
*
*
*
* For processors with input_channel_specs, the processor must be explicitly
* connected to another processor.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec graph_input_channel_specs = 3;
*
*/
public Builder removeGraphInputChannelSpecs(int index) {
if (graphInputChannelSpecsBuilder_ == null) {
ensureGraphInputChannelSpecsIsMutable();
graphInputChannelSpecs_.remove(index);
onChanged();
} else {
graphInputChannelSpecsBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* For processors with input_channel_specs, the processor must be explicitly
* connected to another processor.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec graph_input_channel_specs = 3;
*
*/
public com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec.Builder
getGraphInputChannelSpecsBuilder(int index) {
return getGraphInputChannelSpecsFieldBuilder().getBuilder(index);
}
/**
*
*
*
* For processors with input_channel_specs, the processor must be explicitly
* connected to another processor.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec graph_input_channel_specs = 3;
*
*/
public com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpecOrBuilder
getGraphInputChannelSpecsOrBuilder(int index) {
if (graphInputChannelSpecsBuilder_ == null) {
return graphInputChannelSpecs_.get(index);
} else {
return graphInputChannelSpecsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* For processors with input_channel_specs, the processor must be explicitly
* connected to another processor.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec graph_input_channel_specs = 3;
*
*/
public java.util.List<
? extends com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpecOrBuilder>
getGraphInputChannelSpecsOrBuilderList() {
if (graphInputChannelSpecsBuilder_ != null) {
return graphInputChannelSpecsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(graphInputChannelSpecs_);
}
}
/**
*
*
*
* For processors with input_channel_specs, the processor must be explicitly
* connected to another processor.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec graph_input_channel_specs = 3;
*
*/
public com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec.Builder
addGraphInputChannelSpecsBuilder() {
return getGraphInputChannelSpecsFieldBuilder()
.addBuilder(
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec
.getDefaultInstance());
}
/**
*
*
*
* For processors with input_channel_specs, the processor must be explicitly
* connected to another processor.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec graph_input_channel_specs = 3;
*
*/
public com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec.Builder
addGraphInputChannelSpecsBuilder(int index) {
return getGraphInputChannelSpecsFieldBuilder()
.addBuilder(
index,
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec
.getDefaultInstance());
}
/**
*
*
*
* For processors with input_channel_specs, the processor must be explicitly
* connected to another processor.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec graph_input_channel_specs = 3;
*
*/
public java.util.List<
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec.Builder>
getGraphInputChannelSpecsBuilderList() {
return getGraphInputChannelSpecsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec,
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec.Builder,
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpecOrBuilder>
getGraphInputChannelSpecsFieldBuilder() {
if (graphInputChannelSpecsBuilder_ == null) {
graphInputChannelSpecsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec,
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec.Builder,
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpecOrBuilder>(
graphInputChannelSpecs_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
graphInputChannelSpecs_ = null;
}
return graphInputChannelSpecsBuilder_;
}
private java.util.List
graphOutputChannelSpecs_ = java.util.Collections.emptyList();
private void ensureGraphOutputChannelSpecsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
graphOutputChannelSpecs_ =
new java.util.ArrayList<
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec>(
graphOutputChannelSpecs_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec,
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec.Builder,
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpecOrBuilder>
graphOutputChannelSpecsBuilder_;
/**
*
*
*
* The output artifact specifications for the current processor.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec graph_output_channel_specs = 4;
*
*/
public java.util.List
getGraphOutputChannelSpecsList() {
if (graphOutputChannelSpecsBuilder_ == null) {
return java.util.Collections.unmodifiableList(graphOutputChannelSpecs_);
} else {
return graphOutputChannelSpecsBuilder_.getMessageList();
}
}
/**
*
*
*
* The output artifact specifications for the current processor.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec graph_output_channel_specs = 4;
*
*/
public int getGraphOutputChannelSpecsCount() {
if (graphOutputChannelSpecsBuilder_ == null) {
return graphOutputChannelSpecs_.size();
} else {
return graphOutputChannelSpecsBuilder_.getCount();
}
}
/**
*
*
*
* The output artifact specifications for the current processor.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec graph_output_channel_specs = 4;
*
*/
public com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec
getGraphOutputChannelSpecs(int index) {
if (graphOutputChannelSpecsBuilder_ == null) {
return graphOutputChannelSpecs_.get(index);
} else {
return graphOutputChannelSpecsBuilder_.getMessage(index);
}
}
/**
*
*
*
* The output artifact specifications for the current processor.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec graph_output_channel_specs = 4;
*
*/
public Builder setGraphOutputChannelSpecs(
int index, com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec value) {
if (graphOutputChannelSpecsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGraphOutputChannelSpecsIsMutable();
graphOutputChannelSpecs_.set(index, value);
onChanged();
} else {
graphOutputChannelSpecsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* The output artifact specifications for the current processor.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec graph_output_channel_specs = 4;
*
*/
public Builder setGraphOutputChannelSpecs(
int index,
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec.Builder
builderForValue) {
if (graphOutputChannelSpecsBuilder_ == null) {
ensureGraphOutputChannelSpecsIsMutable();
graphOutputChannelSpecs_.set(index, builderForValue.build());
onChanged();
} else {
graphOutputChannelSpecsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* The output artifact specifications for the current processor.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec graph_output_channel_specs = 4;
*
*/
public Builder addGraphOutputChannelSpecs(
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec value) {
if (graphOutputChannelSpecsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGraphOutputChannelSpecsIsMutable();
graphOutputChannelSpecs_.add(value);
onChanged();
} else {
graphOutputChannelSpecsBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* The output artifact specifications for the current processor.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec graph_output_channel_specs = 4;
*
*/
public Builder addGraphOutputChannelSpecs(
int index, com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec value) {
if (graphOutputChannelSpecsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGraphOutputChannelSpecsIsMutable();
graphOutputChannelSpecs_.add(index, value);
onChanged();
} else {
graphOutputChannelSpecsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* The output artifact specifications for the current processor.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec graph_output_channel_specs = 4;
*
*/
public Builder addGraphOutputChannelSpecs(
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec.Builder
builderForValue) {
if (graphOutputChannelSpecsBuilder_ == null) {
ensureGraphOutputChannelSpecsIsMutable();
graphOutputChannelSpecs_.add(builderForValue.build());
onChanged();
} else {
graphOutputChannelSpecsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* The output artifact specifications for the current processor.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec graph_output_channel_specs = 4;
*
*/
public Builder addGraphOutputChannelSpecs(
int index,
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec.Builder
builderForValue) {
if (graphOutputChannelSpecsBuilder_ == null) {
ensureGraphOutputChannelSpecsIsMutable();
graphOutputChannelSpecs_.add(index, builderForValue.build());
onChanged();
} else {
graphOutputChannelSpecsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* The output artifact specifications for the current processor.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec graph_output_channel_specs = 4;
*
*/
public Builder addAllGraphOutputChannelSpecs(
java.lang.Iterable<
? extends com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec>
values) {
if (graphOutputChannelSpecsBuilder_ == null) {
ensureGraphOutputChannelSpecsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, graphOutputChannelSpecs_);
onChanged();
} else {
graphOutputChannelSpecsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* The output artifact specifications for the current processor.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec graph_output_channel_specs = 4;
*
*/
public Builder clearGraphOutputChannelSpecs() {
if (graphOutputChannelSpecsBuilder_ == null) {
graphOutputChannelSpecs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
graphOutputChannelSpecsBuilder_.clear();
}
return this;
}
/**
*
*
*
* The output artifact specifications for the current processor.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec graph_output_channel_specs = 4;
*
*/
public Builder removeGraphOutputChannelSpecs(int index) {
if (graphOutputChannelSpecsBuilder_ == null) {
ensureGraphOutputChannelSpecsIsMutable();
graphOutputChannelSpecs_.remove(index);
onChanged();
} else {
graphOutputChannelSpecsBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* The output artifact specifications for the current processor.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec graph_output_channel_specs = 4;
*
*/
public com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec.Builder
getGraphOutputChannelSpecsBuilder(int index) {
return getGraphOutputChannelSpecsFieldBuilder().getBuilder(index);
}
/**
*
*
*
* The output artifact specifications for the current processor.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec graph_output_channel_specs = 4;
*
*/
public com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpecOrBuilder
getGraphOutputChannelSpecsOrBuilder(int index) {
if (graphOutputChannelSpecsBuilder_ == null) {
return graphOutputChannelSpecs_.get(index);
} else {
return graphOutputChannelSpecsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* The output artifact specifications for the current processor.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec graph_output_channel_specs = 4;
*
*/
public java.util.List<
? extends com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpecOrBuilder>
getGraphOutputChannelSpecsOrBuilderList() {
if (graphOutputChannelSpecsBuilder_ != null) {
return graphOutputChannelSpecsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(graphOutputChannelSpecs_);
}
}
/**
*
*
*
* The output artifact specifications for the current processor.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec graph_output_channel_specs = 4;
*
*/
public com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec.Builder
addGraphOutputChannelSpecsBuilder() {
return getGraphOutputChannelSpecsFieldBuilder()
.addBuilder(
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec
.getDefaultInstance());
}
/**
*
*
*
* The output artifact specifications for the current processor.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec graph_output_channel_specs = 4;
*
*/
public com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec.Builder
addGraphOutputChannelSpecsBuilder(int index) {
return getGraphOutputChannelSpecsFieldBuilder()
.addBuilder(
index,
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec
.getDefaultInstance());
}
/**
*
*
*
* The output artifact specifications for the current processor.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec graph_output_channel_specs = 4;
*
*/
public java.util.List<
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec.Builder>
getGraphOutputChannelSpecsBuilderList() {
return getGraphOutputChannelSpecsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec,
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec.Builder,
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpecOrBuilder>
getGraphOutputChannelSpecsFieldBuilder() {
if (graphOutputChannelSpecsBuilder_ == null) {
graphOutputChannelSpecsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec,
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpec.Builder,
com.google.cloud.visionai.v1.ProcessorIOSpec.GraphOutputChannelSpecOrBuilder>(
graphOutputChannelSpecs_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
graphOutputChannelSpecs_ = null;
}
return graphOutputChannelSpecsBuilder_;
}
private java.util.List<
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec>
instanceResourceInputBindingSpecs_ = java.util.Collections.emptyList();
private void ensureInstanceResourceInputBindingSpecsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
instanceResourceInputBindingSpecs_ =
new java.util.ArrayList<
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec>(
instanceResourceInputBindingSpecs_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec,
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec.Builder,
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpecOrBuilder>
instanceResourceInputBindingSpecsBuilder_;
/**
*
*
*
* The input resource that needs to be fed from the application instance.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec instance_resource_input_binding_specs = 5;
*
*/
public java.util.List<
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec>
getInstanceResourceInputBindingSpecsList() {
if (instanceResourceInputBindingSpecsBuilder_ == null) {
return java.util.Collections.unmodifiableList(instanceResourceInputBindingSpecs_);
} else {
return instanceResourceInputBindingSpecsBuilder_.getMessageList();
}
}
/**
*
*
*
* The input resource that needs to be fed from the application instance.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec instance_resource_input_binding_specs = 5;
*
*/
public int getInstanceResourceInputBindingSpecsCount() {
if (instanceResourceInputBindingSpecsBuilder_ == null) {
return instanceResourceInputBindingSpecs_.size();
} else {
return instanceResourceInputBindingSpecsBuilder_.getCount();
}
}
/**
*
*
*
* The input resource that needs to be fed from the application instance.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec instance_resource_input_binding_specs = 5;
*
*/
public com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec
getInstanceResourceInputBindingSpecs(int index) {
if (instanceResourceInputBindingSpecsBuilder_ == null) {
return instanceResourceInputBindingSpecs_.get(index);
} else {
return instanceResourceInputBindingSpecsBuilder_.getMessage(index);
}
}
/**
*
*
*
* The input resource that needs to be fed from the application instance.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec instance_resource_input_binding_specs = 5;
*
*/
public Builder setInstanceResourceInputBindingSpecs(
int index,
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec value) {
if (instanceResourceInputBindingSpecsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInstanceResourceInputBindingSpecsIsMutable();
instanceResourceInputBindingSpecs_.set(index, value);
onChanged();
} else {
instanceResourceInputBindingSpecsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* The input resource that needs to be fed from the application instance.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec instance_resource_input_binding_specs = 5;
*
*/
public Builder setInstanceResourceInputBindingSpecs(
int index,
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec.Builder
builderForValue) {
if (instanceResourceInputBindingSpecsBuilder_ == null) {
ensureInstanceResourceInputBindingSpecsIsMutable();
instanceResourceInputBindingSpecs_.set(index, builderForValue.build());
onChanged();
} else {
instanceResourceInputBindingSpecsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* The input resource that needs to be fed from the application instance.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec instance_resource_input_binding_specs = 5;
*
*/
public Builder addInstanceResourceInputBindingSpecs(
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec value) {
if (instanceResourceInputBindingSpecsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInstanceResourceInputBindingSpecsIsMutable();
instanceResourceInputBindingSpecs_.add(value);
onChanged();
} else {
instanceResourceInputBindingSpecsBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* The input resource that needs to be fed from the application instance.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec instance_resource_input_binding_specs = 5;
*
*/
public Builder addInstanceResourceInputBindingSpecs(
int index,
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec value) {
if (instanceResourceInputBindingSpecsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInstanceResourceInputBindingSpecsIsMutable();
instanceResourceInputBindingSpecs_.add(index, value);
onChanged();
} else {
instanceResourceInputBindingSpecsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* The input resource that needs to be fed from the application instance.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec instance_resource_input_binding_specs = 5;
*
*/
public Builder addInstanceResourceInputBindingSpecs(
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec.Builder
builderForValue) {
if (instanceResourceInputBindingSpecsBuilder_ == null) {
ensureInstanceResourceInputBindingSpecsIsMutable();
instanceResourceInputBindingSpecs_.add(builderForValue.build());
onChanged();
} else {
instanceResourceInputBindingSpecsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* The input resource that needs to be fed from the application instance.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec instance_resource_input_binding_specs = 5;
*
*/
public Builder addInstanceResourceInputBindingSpecs(
int index,
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec.Builder
builderForValue) {
if (instanceResourceInputBindingSpecsBuilder_ == null) {
ensureInstanceResourceInputBindingSpecsIsMutable();
instanceResourceInputBindingSpecs_.add(index, builderForValue.build());
onChanged();
} else {
instanceResourceInputBindingSpecsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* The input resource that needs to be fed from the application instance.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec instance_resource_input_binding_specs = 5;
*
*/
public Builder addAllInstanceResourceInputBindingSpecs(
java.lang.Iterable<
? extends
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec>
values) {
if (instanceResourceInputBindingSpecsBuilder_ == null) {
ensureInstanceResourceInputBindingSpecsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, instanceResourceInputBindingSpecs_);
onChanged();
} else {
instanceResourceInputBindingSpecsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* The input resource that needs to be fed from the application instance.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec instance_resource_input_binding_specs = 5;
*
*/
public Builder clearInstanceResourceInputBindingSpecs() {
if (instanceResourceInputBindingSpecsBuilder_ == null) {
instanceResourceInputBindingSpecs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
instanceResourceInputBindingSpecsBuilder_.clear();
}
return this;
}
/**
*
*
*
* The input resource that needs to be fed from the application instance.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec instance_resource_input_binding_specs = 5;
*
*/
public Builder removeInstanceResourceInputBindingSpecs(int index) {
if (instanceResourceInputBindingSpecsBuilder_ == null) {
ensureInstanceResourceInputBindingSpecsIsMutable();
instanceResourceInputBindingSpecs_.remove(index);
onChanged();
} else {
instanceResourceInputBindingSpecsBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* The input resource that needs to be fed from the application instance.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec instance_resource_input_binding_specs = 5;
*
*/
public com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec.Builder
getInstanceResourceInputBindingSpecsBuilder(int index) {
return getInstanceResourceInputBindingSpecsFieldBuilder().getBuilder(index);
}
/**
*
*
*
* The input resource that needs to be fed from the application instance.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec instance_resource_input_binding_specs = 5;
*
*/
public com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpecOrBuilder
getInstanceResourceInputBindingSpecsOrBuilder(int index) {
if (instanceResourceInputBindingSpecsBuilder_ == null) {
return instanceResourceInputBindingSpecs_.get(index);
} else {
return instanceResourceInputBindingSpecsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* The input resource that needs to be fed from the application instance.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec instance_resource_input_binding_specs = 5;
*
*/
public java.util.List<
? extends
com.google.cloud.visionai.v1.ProcessorIOSpec
.InstanceResourceInputBindingSpecOrBuilder>
getInstanceResourceInputBindingSpecsOrBuilderList() {
if (instanceResourceInputBindingSpecsBuilder_ != null) {
return instanceResourceInputBindingSpecsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(instanceResourceInputBindingSpecs_);
}
}
/**
*
*
*
* The input resource that needs to be fed from the application instance.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec instance_resource_input_binding_specs = 5;
*
*/
public com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec.Builder
addInstanceResourceInputBindingSpecsBuilder() {
return getInstanceResourceInputBindingSpecsFieldBuilder()
.addBuilder(
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec
.getDefaultInstance());
}
/**
*
*
*
* The input resource that needs to be fed from the application instance.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec instance_resource_input_binding_specs = 5;
*
*/
public com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec.Builder
addInstanceResourceInputBindingSpecsBuilder(int index) {
return getInstanceResourceInputBindingSpecsFieldBuilder()
.addBuilder(
index,
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec
.getDefaultInstance());
}
/**
*
*
*
* The input resource that needs to be fed from the application instance.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec instance_resource_input_binding_specs = 5;
*
*/
public java.util.List<
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec.Builder>
getInstanceResourceInputBindingSpecsBuilderList() {
return getInstanceResourceInputBindingSpecsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec,
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec.Builder,
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpecOrBuilder>
getInstanceResourceInputBindingSpecsFieldBuilder() {
if (instanceResourceInputBindingSpecsBuilder_ == null) {
instanceResourceInputBindingSpecsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec,
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceInputBindingSpec
.Builder,
com.google.cloud.visionai.v1.ProcessorIOSpec
.InstanceResourceInputBindingSpecOrBuilder>(
instanceResourceInputBindingSpecs_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
instanceResourceInputBindingSpecs_ = null;
}
return instanceResourceInputBindingSpecsBuilder_;
}
private java.util.List<
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec>
instanceResourceOutputBindingSpecs_ = java.util.Collections.emptyList();
private void ensureInstanceResourceOutputBindingSpecsIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
instanceResourceOutputBindingSpecs_ =
new java.util.ArrayList<
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec>(
instanceResourceOutputBindingSpecs_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec,
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec.Builder,
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpecOrBuilder>
instanceResourceOutputBindingSpecsBuilder_;
/**
*
*
*
* The output resource that the processor will generate per instance.
* Other than the explicitly listed output bindings here, all the processors'
* GraphOutputChannels can be binded to stream resource. The bind name then is
* the same as the GraphOutputChannel's name.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec instance_resource_output_binding_specs = 6;
*
*/
public java.util.List<
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec>
getInstanceResourceOutputBindingSpecsList() {
if (instanceResourceOutputBindingSpecsBuilder_ == null) {
return java.util.Collections.unmodifiableList(instanceResourceOutputBindingSpecs_);
} else {
return instanceResourceOutputBindingSpecsBuilder_.getMessageList();
}
}
/**
*
*
*
* The output resource that the processor will generate per instance.
* Other than the explicitly listed output bindings here, all the processors'
* GraphOutputChannels can be binded to stream resource. The bind name then is
* the same as the GraphOutputChannel's name.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec instance_resource_output_binding_specs = 6;
*
*/
public int getInstanceResourceOutputBindingSpecsCount() {
if (instanceResourceOutputBindingSpecsBuilder_ == null) {
return instanceResourceOutputBindingSpecs_.size();
} else {
return instanceResourceOutputBindingSpecsBuilder_.getCount();
}
}
/**
*
*
*
* The output resource that the processor will generate per instance.
* Other than the explicitly listed output bindings here, all the processors'
* GraphOutputChannels can be binded to stream resource. The bind name then is
* the same as the GraphOutputChannel's name.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec instance_resource_output_binding_specs = 6;
*
*/
public com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec
getInstanceResourceOutputBindingSpecs(int index) {
if (instanceResourceOutputBindingSpecsBuilder_ == null) {
return instanceResourceOutputBindingSpecs_.get(index);
} else {
return instanceResourceOutputBindingSpecsBuilder_.getMessage(index);
}
}
/**
*
*
*
* The output resource that the processor will generate per instance.
* Other than the explicitly listed output bindings here, all the processors'
* GraphOutputChannels can be binded to stream resource. The bind name then is
* the same as the GraphOutputChannel's name.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec instance_resource_output_binding_specs = 6;
*
*/
public Builder setInstanceResourceOutputBindingSpecs(
int index,
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec value) {
if (instanceResourceOutputBindingSpecsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInstanceResourceOutputBindingSpecsIsMutable();
instanceResourceOutputBindingSpecs_.set(index, value);
onChanged();
} else {
instanceResourceOutputBindingSpecsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* The output resource that the processor will generate per instance.
* Other than the explicitly listed output bindings here, all the processors'
* GraphOutputChannels can be binded to stream resource. The bind name then is
* the same as the GraphOutputChannel's name.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec instance_resource_output_binding_specs = 6;
*
*/
public Builder setInstanceResourceOutputBindingSpecs(
int index,
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec.Builder
builderForValue) {
if (instanceResourceOutputBindingSpecsBuilder_ == null) {
ensureInstanceResourceOutputBindingSpecsIsMutable();
instanceResourceOutputBindingSpecs_.set(index, builderForValue.build());
onChanged();
} else {
instanceResourceOutputBindingSpecsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* The output resource that the processor will generate per instance.
* Other than the explicitly listed output bindings here, all the processors'
* GraphOutputChannels can be binded to stream resource. The bind name then is
* the same as the GraphOutputChannel's name.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec instance_resource_output_binding_specs = 6;
*
*/
public Builder addInstanceResourceOutputBindingSpecs(
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec value) {
if (instanceResourceOutputBindingSpecsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInstanceResourceOutputBindingSpecsIsMutable();
instanceResourceOutputBindingSpecs_.add(value);
onChanged();
} else {
instanceResourceOutputBindingSpecsBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* The output resource that the processor will generate per instance.
* Other than the explicitly listed output bindings here, all the processors'
* GraphOutputChannels can be binded to stream resource. The bind name then is
* the same as the GraphOutputChannel's name.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec instance_resource_output_binding_specs = 6;
*
*/
public Builder addInstanceResourceOutputBindingSpecs(
int index,
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec value) {
if (instanceResourceOutputBindingSpecsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInstanceResourceOutputBindingSpecsIsMutable();
instanceResourceOutputBindingSpecs_.add(index, value);
onChanged();
} else {
instanceResourceOutputBindingSpecsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* The output resource that the processor will generate per instance.
* Other than the explicitly listed output bindings here, all the processors'
* GraphOutputChannels can be binded to stream resource. The bind name then is
* the same as the GraphOutputChannel's name.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec instance_resource_output_binding_specs = 6;
*
*/
public Builder addInstanceResourceOutputBindingSpecs(
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec.Builder
builderForValue) {
if (instanceResourceOutputBindingSpecsBuilder_ == null) {
ensureInstanceResourceOutputBindingSpecsIsMutable();
instanceResourceOutputBindingSpecs_.add(builderForValue.build());
onChanged();
} else {
instanceResourceOutputBindingSpecsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* The output resource that the processor will generate per instance.
* Other than the explicitly listed output bindings here, all the processors'
* GraphOutputChannels can be binded to stream resource. The bind name then is
* the same as the GraphOutputChannel's name.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec instance_resource_output_binding_specs = 6;
*
*/
public Builder addInstanceResourceOutputBindingSpecs(
int index,
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec.Builder
builderForValue) {
if (instanceResourceOutputBindingSpecsBuilder_ == null) {
ensureInstanceResourceOutputBindingSpecsIsMutable();
instanceResourceOutputBindingSpecs_.add(index, builderForValue.build());
onChanged();
} else {
instanceResourceOutputBindingSpecsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* The output resource that the processor will generate per instance.
* Other than the explicitly listed output bindings here, all the processors'
* GraphOutputChannels can be binded to stream resource. The bind name then is
* the same as the GraphOutputChannel's name.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec instance_resource_output_binding_specs = 6;
*
*/
public Builder addAllInstanceResourceOutputBindingSpecs(
java.lang.Iterable<
? extends
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec>
values) {
if (instanceResourceOutputBindingSpecsBuilder_ == null) {
ensureInstanceResourceOutputBindingSpecsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, instanceResourceOutputBindingSpecs_);
onChanged();
} else {
instanceResourceOutputBindingSpecsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* The output resource that the processor will generate per instance.
* Other than the explicitly listed output bindings here, all the processors'
* GraphOutputChannels can be binded to stream resource. The bind name then is
* the same as the GraphOutputChannel's name.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec instance_resource_output_binding_specs = 6;
*
*/
public Builder clearInstanceResourceOutputBindingSpecs() {
if (instanceResourceOutputBindingSpecsBuilder_ == null) {
instanceResourceOutputBindingSpecs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
instanceResourceOutputBindingSpecsBuilder_.clear();
}
return this;
}
/**
*
*
*
* The output resource that the processor will generate per instance.
* Other than the explicitly listed output bindings here, all the processors'
* GraphOutputChannels can be binded to stream resource. The bind name then is
* the same as the GraphOutputChannel's name.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec instance_resource_output_binding_specs = 6;
*
*/
public Builder removeInstanceResourceOutputBindingSpecs(int index) {
if (instanceResourceOutputBindingSpecsBuilder_ == null) {
ensureInstanceResourceOutputBindingSpecsIsMutable();
instanceResourceOutputBindingSpecs_.remove(index);
onChanged();
} else {
instanceResourceOutputBindingSpecsBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* The output resource that the processor will generate per instance.
* Other than the explicitly listed output bindings here, all the processors'
* GraphOutputChannels can be binded to stream resource. The bind name then is
* the same as the GraphOutputChannel's name.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec instance_resource_output_binding_specs = 6;
*
*/
public com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec.Builder
getInstanceResourceOutputBindingSpecsBuilder(int index) {
return getInstanceResourceOutputBindingSpecsFieldBuilder().getBuilder(index);
}
/**
*
*
*
* The output resource that the processor will generate per instance.
* Other than the explicitly listed output bindings here, all the processors'
* GraphOutputChannels can be binded to stream resource. The bind name then is
* the same as the GraphOutputChannel's name.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec instance_resource_output_binding_specs = 6;
*
*/
public com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpecOrBuilder
getInstanceResourceOutputBindingSpecsOrBuilder(int index) {
if (instanceResourceOutputBindingSpecsBuilder_ == null) {
return instanceResourceOutputBindingSpecs_.get(index);
} else {
return instanceResourceOutputBindingSpecsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* The output resource that the processor will generate per instance.
* Other than the explicitly listed output bindings here, all the processors'
* GraphOutputChannels can be binded to stream resource. The bind name then is
* the same as the GraphOutputChannel's name.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec instance_resource_output_binding_specs = 6;
*
*/
public java.util.List<
? extends
com.google.cloud.visionai.v1.ProcessorIOSpec
.InstanceResourceOutputBindingSpecOrBuilder>
getInstanceResourceOutputBindingSpecsOrBuilderList() {
if (instanceResourceOutputBindingSpecsBuilder_ != null) {
return instanceResourceOutputBindingSpecsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(instanceResourceOutputBindingSpecs_);
}
}
/**
*
*
*
* The output resource that the processor will generate per instance.
* Other than the explicitly listed output bindings here, all the processors'
* GraphOutputChannels can be binded to stream resource. The bind name then is
* the same as the GraphOutputChannel's name.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec instance_resource_output_binding_specs = 6;
*
*/
public com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec.Builder
addInstanceResourceOutputBindingSpecsBuilder() {
return getInstanceResourceOutputBindingSpecsFieldBuilder()
.addBuilder(
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec
.getDefaultInstance());
}
/**
*
*
*
* The output resource that the processor will generate per instance.
* Other than the explicitly listed output bindings here, all the processors'
* GraphOutputChannels can be binded to stream resource. The bind name then is
* the same as the GraphOutputChannel's name.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec instance_resource_output_binding_specs = 6;
*
*/
public com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec.Builder
addInstanceResourceOutputBindingSpecsBuilder(int index) {
return getInstanceResourceOutputBindingSpecsFieldBuilder()
.addBuilder(
index,
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec
.getDefaultInstance());
}
/**
*
*
*
* The output resource that the processor will generate per instance.
* Other than the explicitly listed output bindings here, all the processors'
* GraphOutputChannels can be binded to stream resource. The bind name then is
* the same as the GraphOutputChannel's name.
*
*
*
* repeated .google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec instance_resource_output_binding_specs = 6;
*
*/
public java.util.List<
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec.Builder>
getInstanceResourceOutputBindingSpecsBuilderList() {
return getInstanceResourceOutputBindingSpecsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec,
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec.Builder,
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpecOrBuilder>
getInstanceResourceOutputBindingSpecsFieldBuilder() {
if (instanceResourceOutputBindingSpecsBuilder_ == null) {
instanceResourceOutputBindingSpecsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec,
com.google.cloud.visionai.v1.ProcessorIOSpec.InstanceResourceOutputBindingSpec
.Builder,
com.google.cloud.visionai.v1.ProcessorIOSpec
.InstanceResourceOutputBindingSpecOrBuilder>(
instanceResourceOutputBindingSpecs_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
instanceResourceOutputBindingSpecs_ = null;
}
return instanceResourceOutputBindingSpecsBuilder_;
}
@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.ProcessorIOSpec)
}
// @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.ProcessorIOSpec)
private static final com.google.cloud.visionai.v1.ProcessorIOSpec DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.visionai.v1.ProcessorIOSpec();
}
public static com.google.cloud.visionai.v1.ProcessorIOSpec getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ProcessorIOSpec 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.ProcessorIOSpec getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy