
com.google.cloud.visionai.v1.ApplicationConfigs 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 storing the graph of the application.
*
*
* Protobuf type {@code google.cloud.visionai.v1.ApplicationConfigs}
*/
public final class ApplicationConfigs extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.ApplicationConfigs)
ApplicationConfigsOrBuilder {
private static final long serialVersionUID = 0L;
// Use ApplicationConfigs.newBuilder() to construct.
private ApplicationConfigs(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ApplicationConfigs() {
nodes_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ApplicationConfigs();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_ApplicationConfigs_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_ApplicationConfigs_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.ApplicationConfigs.class,
com.google.cloud.visionai.v1.ApplicationConfigs.Builder.class);
}
public interface EventDeliveryConfigOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* The delivery channel for the event notification, only pub/sub topic is
* supported now.
* Example channel:
* [//pubsub.googleapis.com/projects/visionai-testing-stable/topics/test-topic]
*
*
* string channel = 1;
*
* @return The channel.
*/
java.lang.String getChannel();
/**
*
*
*
* The delivery channel for the event notification, only pub/sub topic is
* supported now.
* Example channel:
* [//pubsub.googleapis.com/projects/visionai-testing-stable/topics/test-topic]
*
*
* string channel = 1;
*
* @return The bytes for channel.
*/
com.google.protobuf.ByteString getChannelBytes();
/**
*
*
*
* The expected delivery interval for the same event. The same event won't
* be notified multiple times during this internal event that it is
* happening multiple times during the period of time.The same event is
* identified by <event_id, app_platform_metadata>.
*
*
* .google.protobuf.Duration minimal_delivery_interval = 2;
*
* @return Whether the minimalDeliveryInterval field is set.
*/
boolean hasMinimalDeliveryInterval();
/**
*
*
*
* The expected delivery interval for the same event. The same event won't
* be notified multiple times during this internal event that it is
* happening multiple times during the period of time.The same event is
* identified by <event_id, app_platform_metadata>.
*
*
* .google.protobuf.Duration minimal_delivery_interval = 2;
*
* @return The minimalDeliveryInterval.
*/
com.google.protobuf.Duration getMinimalDeliveryInterval();
/**
*
*
*
* The expected delivery interval for the same event. The same event won't
* be notified multiple times during this internal event that it is
* happening multiple times during the period of time.The same event is
* identified by <event_id, app_platform_metadata>.
*
*
* .google.protobuf.Duration minimal_delivery_interval = 2;
*/
com.google.protobuf.DurationOrBuilder getMinimalDeliveryIntervalOrBuilder();
}
/**
*
*
*
* message storing the config for event delivery
*
*
* Protobuf type {@code google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig}
*/
public static final class EventDeliveryConfig extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig)
EventDeliveryConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use EventDeliveryConfig.newBuilder() to construct.
private EventDeliveryConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EventDeliveryConfig() {
channel_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new EventDeliveryConfig();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_ApplicationConfigs_EventDeliveryConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_ApplicationConfigs_EventDeliveryConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig.class,
com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig.Builder.class);
}
private int bitField0_;
public static final int CHANNEL_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object channel_ = "";
/**
*
*
*
* The delivery channel for the event notification, only pub/sub topic is
* supported now.
* Example channel:
* [//pubsub.googleapis.com/projects/visionai-testing-stable/topics/test-topic]
*
*
* string channel = 1;
*
* @return The channel.
*/
@java.lang.Override
public java.lang.String getChannel() {
java.lang.Object ref = channel_;
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();
channel_ = s;
return s;
}
}
/**
*
*
*
* The delivery channel for the event notification, only pub/sub topic is
* supported now.
* Example channel:
* [//pubsub.googleapis.com/projects/visionai-testing-stable/topics/test-topic]
*
*
* string channel = 1;
*
* @return The bytes for channel.
*/
@java.lang.Override
public com.google.protobuf.ByteString getChannelBytes() {
java.lang.Object ref = channel_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
channel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MINIMAL_DELIVERY_INTERVAL_FIELD_NUMBER = 2;
private com.google.protobuf.Duration minimalDeliveryInterval_;
/**
*
*
*
* The expected delivery interval for the same event. The same event won't
* be notified multiple times during this internal event that it is
* happening multiple times during the period of time.The same event is
* identified by <event_id, app_platform_metadata>.
*
*
* .google.protobuf.Duration minimal_delivery_interval = 2;
*
* @return Whether the minimalDeliveryInterval field is set.
*/
@java.lang.Override
public boolean hasMinimalDeliveryInterval() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* The expected delivery interval for the same event. The same event won't
* be notified multiple times during this internal event that it is
* happening multiple times during the period of time.The same event is
* identified by <event_id, app_platform_metadata>.
*
*
* .google.protobuf.Duration minimal_delivery_interval = 2;
*
* @return The minimalDeliveryInterval.
*/
@java.lang.Override
public com.google.protobuf.Duration getMinimalDeliveryInterval() {
return minimalDeliveryInterval_ == null
? com.google.protobuf.Duration.getDefaultInstance()
: minimalDeliveryInterval_;
}
/**
*
*
*
* The expected delivery interval for the same event. The same event won't
* be notified multiple times during this internal event that it is
* happening multiple times during the period of time.The same event is
* identified by <event_id, app_platform_metadata>.
*
*
* .google.protobuf.Duration minimal_delivery_interval = 2;
*/
@java.lang.Override
public com.google.protobuf.DurationOrBuilder getMinimalDeliveryIntervalOrBuilder() {
return minimalDeliveryInterval_ == null
? com.google.protobuf.Duration.getDefaultInstance()
: minimalDeliveryInterval_;
}
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(channel_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, channel_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getMinimalDeliveryInterval());
}
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(channel_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, channel_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
2, getMinimalDeliveryInterval());
}
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.ApplicationConfigs.EventDeliveryConfig)) {
return super.equals(obj);
}
com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig other =
(com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig) obj;
if (!getChannel().equals(other.getChannel())) return false;
if (hasMinimalDeliveryInterval() != other.hasMinimalDeliveryInterval()) return false;
if (hasMinimalDeliveryInterval()) {
if (!getMinimalDeliveryInterval().equals(other.getMinimalDeliveryInterval())) 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) + CHANNEL_FIELD_NUMBER;
hash = (53 * hash) + getChannel().hashCode();
if (hasMinimalDeliveryInterval()) {
hash = (37 * hash) + MINIMAL_DELIVERY_INTERVAL_FIELD_NUMBER;
hash = (53 * hash) + getMinimalDeliveryInterval().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig 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.ApplicationConfigs.EventDeliveryConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig 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.ApplicationConfigs.EventDeliveryConfig parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig 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.ApplicationConfigs.EventDeliveryConfig parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig 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.ApplicationConfigs.EventDeliveryConfig
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig
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.ApplicationConfigs.EventDeliveryConfig 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.ApplicationConfigs.EventDeliveryConfig 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.ApplicationConfigs.EventDeliveryConfig 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 storing the config for event delivery
*
*
* Protobuf type {@code google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig)
com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_ApplicationConfigs_EventDeliveryConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_ApplicationConfigs_EventDeliveryConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig.class,
com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig.Builder.class);
}
// Construct using
// com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getMinimalDeliveryIntervalFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
channel_ = "";
minimalDeliveryInterval_ = null;
if (minimalDeliveryIntervalBuilder_ != null) {
minimalDeliveryIntervalBuilder_.dispose();
minimalDeliveryIntervalBuilder_ = 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_ApplicationConfigs_EventDeliveryConfig_descriptor;
}
@java.lang.Override
public com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig
getDefaultInstanceForType() {
return com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig
.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig build() {
com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig buildPartial() {
com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig result =
new com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.channel_ = channel_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.minimalDeliveryInterval_ =
minimalDeliveryIntervalBuilder_ == null
? minimalDeliveryInterval_
: minimalDeliveryIntervalBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig) {
return mergeFrom(
(com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig other) {
if (other
== com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig
.getDefaultInstance()) return this;
if (!other.getChannel().isEmpty()) {
channel_ = other.channel_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasMinimalDeliveryInterval()) {
mergeMinimalDeliveryInterval(other.getMinimalDeliveryInterval());
}
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:
{
channel_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
input.readMessage(
getMinimalDeliveryIntervalFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object channel_ = "";
/**
*
*
*
* The delivery channel for the event notification, only pub/sub topic is
* supported now.
* Example channel:
* [//pubsub.googleapis.com/projects/visionai-testing-stable/topics/test-topic]
*
*
* string channel = 1;
*
* @return The channel.
*/
public java.lang.String getChannel() {
java.lang.Object ref = channel_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
channel_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The delivery channel for the event notification, only pub/sub topic is
* supported now.
* Example channel:
* [//pubsub.googleapis.com/projects/visionai-testing-stable/topics/test-topic]
*
*
* string channel = 1;
*
* @return The bytes for channel.
*/
public com.google.protobuf.ByteString getChannelBytes() {
java.lang.Object ref = channel_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
channel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The delivery channel for the event notification, only pub/sub topic is
* supported now.
* Example channel:
* [//pubsub.googleapis.com/projects/visionai-testing-stable/topics/test-topic]
*
*
* string channel = 1;
*
* @param value The channel to set.
* @return This builder for chaining.
*/
public Builder setChannel(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
channel_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* The delivery channel for the event notification, only pub/sub topic is
* supported now.
* Example channel:
* [//pubsub.googleapis.com/projects/visionai-testing-stable/topics/test-topic]
*
*
* string channel = 1;
*
* @return This builder for chaining.
*/
public Builder clearChannel() {
channel_ = getDefaultInstance().getChannel();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* The delivery channel for the event notification, only pub/sub topic is
* supported now.
* Example channel:
* [//pubsub.googleapis.com/projects/visionai-testing-stable/topics/test-topic]
*
*
* string channel = 1;
*
* @param value The bytes for channel to set.
* @return This builder for chaining.
*/
public Builder setChannelBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
channel_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.protobuf.Duration minimalDeliveryInterval_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration,
com.google.protobuf.Duration.Builder,
com.google.protobuf.DurationOrBuilder>
minimalDeliveryIntervalBuilder_;
/**
*
*
*
* The expected delivery interval for the same event. The same event won't
* be notified multiple times during this internal event that it is
* happening multiple times during the period of time.The same event is
* identified by <event_id, app_platform_metadata>.
*
*
* .google.protobuf.Duration minimal_delivery_interval = 2;
*
* @return Whether the minimalDeliveryInterval field is set.
*/
public boolean hasMinimalDeliveryInterval() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* The expected delivery interval for the same event. The same event won't
* be notified multiple times during this internal event that it is
* happening multiple times during the period of time.The same event is
* identified by <event_id, app_platform_metadata>.
*
*
* .google.protobuf.Duration minimal_delivery_interval = 2;
*
* @return The minimalDeliveryInterval.
*/
public com.google.protobuf.Duration getMinimalDeliveryInterval() {
if (minimalDeliveryIntervalBuilder_ == null) {
return minimalDeliveryInterval_ == null
? com.google.protobuf.Duration.getDefaultInstance()
: minimalDeliveryInterval_;
} else {
return minimalDeliveryIntervalBuilder_.getMessage();
}
}
/**
*
*
*
* The expected delivery interval for the same event. The same event won't
* be notified multiple times during this internal event that it is
* happening multiple times during the period of time.The same event is
* identified by <event_id, app_platform_metadata>.
*
*
* .google.protobuf.Duration minimal_delivery_interval = 2;
*/
public Builder setMinimalDeliveryInterval(com.google.protobuf.Duration value) {
if (minimalDeliveryIntervalBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
minimalDeliveryInterval_ = value;
} else {
minimalDeliveryIntervalBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* The expected delivery interval for the same event. The same event won't
* be notified multiple times during this internal event that it is
* happening multiple times during the period of time.The same event is
* identified by <event_id, app_platform_metadata>.
*
*
* .google.protobuf.Duration minimal_delivery_interval = 2;
*/
public Builder setMinimalDeliveryInterval(
com.google.protobuf.Duration.Builder builderForValue) {
if (minimalDeliveryIntervalBuilder_ == null) {
minimalDeliveryInterval_ = builderForValue.build();
} else {
minimalDeliveryIntervalBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* The expected delivery interval for the same event. The same event won't
* be notified multiple times during this internal event that it is
* happening multiple times during the period of time.The same event is
* identified by <event_id, app_platform_metadata>.
*
*
* .google.protobuf.Duration minimal_delivery_interval = 2;
*/
public Builder mergeMinimalDeliveryInterval(com.google.protobuf.Duration value) {
if (minimalDeliveryIntervalBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)
&& minimalDeliveryInterval_ != null
&& minimalDeliveryInterval_ != com.google.protobuf.Duration.getDefaultInstance()) {
getMinimalDeliveryIntervalBuilder().mergeFrom(value);
} else {
minimalDeliveryInterval_ = value;
}
} else {
minimalDeliveryIntervalBuilder_.mergeFrom(value);
}
if (minimalDeliveryInterval_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
*
*
* The expected delivery interval for the same event. The same event won't
* be notified multiple times during this internal event that it is
* happening multiple times during the period of time.The same event is
* identified by <event_id, app_platform_metadata>.
*
*
* .google.protobuf.Duration minimal_delivery_interval = 2;
*/
public Builder clearMinimalDeliveryInterval() {
bitField0_ = (bitField0_ & ~0x00000002);
minimalDeliveryInterval_ = null;
if (minimalDeliveryIntervalBuilder_ != null) {
minimalDeliveryIntervalBuilder_.dispose();
minimalDeliveryIntervalBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* The expected delivery interval for the same event. The same event won't
* be notified multiple times during this internal event that it is
* happening multiple times during the period of time.The same event is
* identified by <event_id, app_platform_metadata>.
*
*
* .google.protobuf.Duration minimal_delivery_interval = 2;
*/
public com.google.protobuf.Duration.Builder getMinimalDeliveryIntervalBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getMinimalDeliveryIntervalFieldBuilder().getBuilder();
}
/**
*
*
*
* The expected delivery interval for the same event. The same event won't
* be notified multiple times during this internal event that it is
* happening multiple times during the period of time.The same event is
* identified by <event_id, app_platform_metadata>.
*
*
* .google.protobuf.Duration minimal_delivery_interval = 2;
*/
public com.google.protobuf.DurationOrBuilder getMinimalDeliveryIntervalOrBuilder() {
if (minimalDeliveryIntervalBuilder_ != null) {
return minimalDeliveryIntervalBuilder_.getMessageOrBuilder();
} else {
return minimalDeliveryInterval_ == null
? com.google.protobuf.Duration.getDefaultInstance()
: minimalDeliveryInterval_;
}
}
/**
*
*
*
* The expected delivery interval for the same event. The same event won't
* be notified multiple times during this internal event that it is
* happening multiple times during the period of time.The same event is
* identified by <event_id, app_platform_metadata>.
*
*
* .google.protobuf.Duration minimal_delivery_interval = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration,
com.google.protobuf.Duration.Builder,
com.google.protobuf.DurationOrBuilder>
getMinimalDeliveryIntervalFieldBuilder() {
if (minimalDeliveryIntervalBuilder_ == null) {
minimalDeliveryIntervalBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration,
com.google.protobuf.Duration.Builder,
com.google.protobuf.DurationOrBuilder>(
getMinimalDeliveryInterval(), getParentForChildren(), isClean());
minimalDeliveryInterval_ = null;
}
return minimalDeliveryIntervalBuilder_;
}
@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.ApplicationConfigs.EventDeliveryConfig)
}
// @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig)
private static final com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig();
}
public static com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public EventDeliveryConfig 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.ApplicationConfigs.EventDeliveryConfig
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int NODES_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List nodes_;
/**
*
*
*
* A list of nodes in the application graph.
*
*
* repeated .google.cloud.visionai.v1.Node nodes = 1;
*/
@java.lang.Override
public java.util.List getNodesList() {
return nodes_;
}
/**
*
*
*
* A list of nodes in the application graph.
*
*
* repeated .google.cloud.visionai.v1.Node nodes = 1;
*/
@java.lang.Override
public java.util.List extends com.google.cloud.visionai.v1.NodeOrBuilder>
getNodesOrBuilderList() {
return nodes_;
}
/**
*
*
*
* A list of nodes in the application graph.
*
*
* repeated .google.cloud.visionai.v1.Node nodes = 1;
*/
@java.lang.Override
public int getNodesCount() {
return nodes_.size();
}
/**
*
*
*
* A list of nodes in the application graph.
*
*
* repeated .google.cloud.visionai.v1.Node nodes = 1;
*/
@java.lang.Override
public com.google.cloud.visionai.v1.Node getNodes(int index) {
return nodes_.get(index);
}
/**
*
*
*
* A list of nodes in the application graph.
*
*
* repeated .google.cloud.visionai.v1.Node nodes = 1;
*/
@java.lang.Override
public com.google.cloud.visionai.v1.NodeOrBuilder getNodesOrBuilder(int index) {
return nodes_.get(index);
}
public static final int EVENT_DELIVERY_CONFIG_FIELD_NUMBER = 3;
private com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig eventDeliveryConfig_;
/**
*
*
*
* Event-related configuration for this application.
*
*
*
* .google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig event_delivery_config = 3;
*
*
* @return Whether the eventDeliveryConfig field is set.
*/
@java.lang.Override
public boolean hasEventDeliveryConfig() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Event-related configuration for this application.
*
*
*
* .google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig event_delivery_config = 3;
*
*
* @return The eventDeliveryConfig.
*/
@java.lang.Override
public com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig
getEventDeliveryConfig() {
return eventDeliveryConfig_ == null
? com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig.getDefaultInstance()
: eventDeliveryConfig_;
}
/**
*
*
*
* Event-related configuration for this application.
*
*
*
* .google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig event_delivery_config = 3;
*
*/
@java.lang.Override
public com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfigOrBuilder
getEventDeliveryConfigOrBuilder() {
return eventDeliveryConfig_ == null
? com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig.getDefaultInstance()
: eventDeliveryConfig_;
}
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 < nodes_.size(); i++) {
output.writeMessage(1, nodes_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(3, getEventDeliveryConfig());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < nodes_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, nodes_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEventDeliveryConfig());
}
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.ApplicationConfigs)) {
return super.equals(obj);
}
com.google.cloud.visionai.v1.ApplicationConfigs other =
(com.google.cloud.visionai.v1.ApplicationConfigs) obj;
if (!getNodesList().equals(other.getNodesList())) return false;
if (hasEventDeliveryConfig() != other.hasEventDeliveryConfig()) return false;
if (hasEventDeliveryConfig()) {
if (!getEventDeliveryConfig().equals(other.getEventDeliveryConfig())) 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 (getNodesCount() > 0) {
hash = (37 * hash) + NODES_FIELD_NUMBER;
hash = (53 * hash) + getNodesList().hashCode();
}
if (hasEventDeliveryConfig()) {
hash = (37 * hash) + EVENT_DELIVERY_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getEventDeliveryConfig().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.visionai.v1.ApplicationConfigs parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.ApplicationConfigs 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.ApplicationConfigs parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.ApplicationConfigs 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.ApplicationConfigs parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.ApplicationConfigs 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.ApplicationConfigs parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.ApplicationConfigs 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.ApplicationConfigs parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.ApplicationConfigs 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.ApplicationConfigs 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.ApplicationConfigs 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.ApplicationConfigs 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 storing the graph of the application.
*
*
* Protobuf type {@code google.cloud.visionai.v1.ApplicationConfigs}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.ApplicationConfigs)
com.google.cloud.visionai.v1.ApplicationConfigsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_ApplicationConfigs_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_ApplicationConfigs_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.ApplicationConfigs.class,
com.google.cloud.visionai.v1.ApplicationConfigs.Builder.class);
}
// Construct using com.google.cloud.visionai.v1.ApplicationConfigs.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getNodesFieldBuilder();
getEventDeliveryConfigFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (nodesBuilder_ == null) {
nodes_ = java.util.Collections.emptyList();
} else {
nodes_ = null;
nodesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
eventDeliveryConfig_ = null;
if (eventDeliveryConfigBuilder_ != null) {
eventDeliveryConfigBuilder_.dispose();
eventDeliveryConfigBuilder_ = 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_ApplicationConfigs_descriptor;
}
@java.lang.Override
public com.google.cloud.visionai.v1.ApplicationConfigs getDefaultInstanceForType() {
return com.google.cloud.visionai.v1.ApplicationConfigs.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.visionai.v1.ApplicationConfigs build() {
com.google.cloud.visionai.v1.ApplicationConfigs result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.visionai.v1.ApplicationConfigs buildPartial() {
com.google.cloud.visionai.v1.ApplicationConfigs result =
new com.google.cloud.visionai.v1.ApplicationConfigs(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartialRepeatedFields(
com.google.cloud.visionai.v1.ApplicationConfigs result) {
if (nodesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
nodes_ = java.util.Collections.unmodifiableList(nodes_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.nodes_ = nodes_;
} else {
result.nodes_ = nodesBuilder_.build();
}
}
private void buildPartial0(com.google.cloud.visionai.v1.ApplicationConfigs result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.eventDeliveryConfig_ =
eventDeliveryConfigBuilder_ == null
? eventDeliveryConfig_
: eventDeliveryConfigBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.visionai.v1.ApplicationConfigs) {
return mergeFrom((com.google.cloud.visionai.v1.ApplicationConfigs) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.visionai.v1.ApplicationConfigs other) {
if (other == com.google.cloud.visionai.v1.ApplicationConfigs.getDefaultInstance())
return this;
if (nodesBuilder_ == null) {
if (!other.nodes_.isEmpty()) {
if (nodes_.isEmpty()) {
nodes_ = other.nodes_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureNodesIsMutable();
nodes_.addAll(other.nodes_);
}
onChanged();
}
} else {
if (!other.nodes_.isEmpty()) {
if (nodesBuilder_.isEmpty()) {
nodesBuilder_.dispose();
nodesBuilder_ = null;
nodes_ = other.nodes_;
bitField0_ = (bitField0_ & ~0x00000001);
nodesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getNodesFieldBuilder()
: null;
} else {
nodesBuilder_.addAllMessages(other.nodes_);
}
}
}
if (other.hasEventDeliveryConfig()) {
mergeEventDeliveryConfig(other.getEventDeliveryConfig());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
com.google.cloud.visionai.v1.Node m =
input.readMessage(
com.google.cloud.visionai.v1.Node.parser(), extensionRegistry);
if (nodesBuilder_ == null) {
ensureNodesIsMutable();
nodes_.add(m);
} else {
nodesBuilder_.addMessage(m);
}
break;
} // case 10
case 26:
{
input.readMessage(
getEventDeliveryConfigFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 26
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List nodes_ =
java.util.Collections.emptyList();
private void ensureNodesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
nodes_ = new java.util.ArrayList(nodes_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.Node,
com.google.cloud.visionai.v1.Node.Builder,
com.google.cloud.visionai.v1.NodeOrBuilder>
nodesBuilder_;
/**
*
*
*
* A list of nodes in the application graph.
*
*
* repeated .google.cloud.visionai.v1.Node nodes = 1;
*/
public java.util.List getNodesList() {
if (nodesBuilder_ == null) {
return java.util.Collections.unmodifiableList(nodes_);
} else {
return nodesBuilder_.getMessageList();
}
}
/**
*
*
*
* A list of nodes in the application graph.
*
*
* repeated .google.cloud.visionai.v1.Node nodes = 1;
*/
public int getNodesCount() {
if (nodesBuilder_ == null) {
return nodes_.size();
} else {
return nodesBuilder_.getCount();
}
}
/**
*
*
*
* A list of nodes in the application graph.
*
*
* repeated .google.cloud.visionai.v1.Node nodes = 1;
*/
public com.google.cloud.visionai.v1.Node getNodes(int index) {
if (nodesBuilder_ == null) {
return nodes_.get(index);
} else {
return nodesBuilder_.getMessage(index);
}
}
/**
*
*
*
* A list of nodes in the application graph.
*
*
* repeated .google.cloud.visionai.v1.Node nodes = 1;
*/
public Builder setNodes(int index, com.google.cloud.visionai.v1.Node value) {
if (nodesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodesIsMutable();
nodes_.set(index, value);
onChanged();
} else {
nodesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* A list of nodes in the application graph.
*
*
* repeated .google.cloud.visionai.v1.Node nodes = 1;
*/
public Builder setNodes(int index, com.google.cloud.visionai.v1.Node.Builder builderForValue) {
if (nodesBuilder_ == null) {
ensureNodesIsMutable();
nodes_.set(index, builderForValue.build());
onChanged();
} else {
nodesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* A list of nodes in the application graph.
*
*
* repeated .google.cloud.visionai.v1.Node nodes = 1;
*/
public Builder addNodes(com.google.cloud.visionai.v1.Node value) {
if (nodesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodesIsMutable();
nodes_.add(value);
onChanged();
} else {
nodesBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* A list of nodes in the application graph.
*
*
* repeated .google.cloud.visionai.v1.Node nodes = 1;
*/
public Builder addNodes(int index, com.google.cloud.visionai.v1.Node value) {
if (nodesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodesIsMutable();
nodes_.add(index, value);
onChanged();
} else {
nodesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* A list of nodes in the application graph.
*
*
* repeated .google.cloud.visionai.v1.Node nodes = 1;
*/
public Builder addNodes(com.google.cloud.visionai.v1.Node.Builder builderForValue) {
if (nodesBuilder_ == null) {
ensureNodesIsMutable();
nodes_.add(builderForValue.build());
onChanged();
} else {
nodesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* A list of nodes in the application graph.
*
*
* repeated .google.cloud.visionai.v1.Node nodes = 1;
*/
public Builder addNodes(int index, com.google.cloud.visionai.v1.Node.Builder builderForValue) {
if (nodesBuilder_ == null) {
ensureNodesIsMutable();
nodes_.add(index, builderForValue.build());
onChanged();
} else {
nodesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* A list of nodes in the application graph.
*
*
* repeated .google.cloud.visionai.v1.Node nodes = 1;
*/
public Builder addAllNodes(
java.lang.Iterable extends com.google.cloud.visionai.v1.Node> values) {
if (nodesBuilder_ == null) {
ensureNodesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodes_);
onChanged();
} else {
nodesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* A list of nodes in the application graph.
*
*
* repeated .google.cloud.visionai.v1.Node nodes = 1;
*/
public Builder clearNodes() {
if (nodesBuilder_ == null) {
nodes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
nodesBuilder_.clear();
}
return this;
}
/**
*
*
*
* A list of nodes in the application graph.
*
*
* repeated .google.cloud.visionai.v1.Node nodes = 1;
*/
public Builder removeNodes(int index) {
if (nodesBuilder_ == null) {
ensureNodesIsMutable();
nodes_.remove(index);
onChanged();
} else {
nodesBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* A list of nodes in the application graph.
*
*
* repeated .google.cloud.visionai.v1.Node nodes = 1;
*/
public com.google.cloud.visionai.v1.Node.Builder getNodesBuilder(int index) {
return getNodesFieldBuilder().getBuilder(index);
}
/**
*
*
*
* A list of nodes in the application graph.
*
*
* repeated .google.cloud.visionai.v1.Node nodes = 1;
*/
public com.google.cloud.visionai.v1.NodeOrBuilder getNodesOrBuilder(int index) {
if (nodesBuilder_ == null) {
return nodes_.get(index);
} else {
return nodesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* A list of nodes in the application graph.
*
*
* repeated .google.cloud.visionai.v1.Node nodes = 1;
*/
public java.util.List extends com.google.cloud.visionai.v1.NodeOrBuilder>
getNodesOrBuilderList() {
if (nodesBuilder_ != null) {
return nodesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(nodes_);
}
}
/**
*
*
*
* A list of nodes in the application graph.
*
*
* repeated .google.cloud.visionai.v1.Node nodes = 1;
*/
public com.google.cloud.visionai.v1.Node.Builder addNodesBuilder() {
return getNodesFieldBuilder()
.addBuilder(com.google.cloud.visionai.v1.Node.getDefaultInstance());
}
/**
*
*
*
* A list of nodes in the application graph.
*
*
* repeated .google.cloud.visionai.v1.Node nodes = 1;
*/
public com.google.cloud.visionai.v1.Node.Builder addNodesBuilder(int index) {
return getNodesFieldBuilder()
.addBuilder(index, com.google.cloud.visionai.v1.Node.getDefaultInstance());
}
/**
*
*
*
* A list of nodes in the application graph.
*
*
* repeated .google.cloud.visionai.v1.Node nodes = 1;
*/
public java.util.List getNodesBuilderList() {
return getNodesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.Node,
com.google.cloud.visionai.v1.Node.Builder,
com.google.cloud.visionai.v1.NodeOrBuilder>
getNodesFieldBuilder() {
if (nodesBuilder_ == null) {
nodesBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.Node,
com.google.cloud.visionai.v1.Node.Builder,
com.google.cloud.visionai.v1.NodeOrBuilder>(
nodes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
nodes_ = null;
}
return nodesBuilder_;
}
private com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig
eventDeliveryConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig,
com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig.Builder,
com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfigOrBuilder>
eventDeliveryConfigBuilder_;
/**
*
*
*
* Event-related configuration for this application.
*
*
*
* .google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig event_delivery_config = 3;
*
*
* @return Whether the eventDeliveryConfig field is set.
*/
public boolean hasEventDeliveryConfig() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Event-related configuration for this application.
*
*
*
* .google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig event_delivery_config = 3;
*
*
* @return The eventDeliveryConfig.
*/
public com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig
getEventDeliveryConfig() {
if (eventDeliveryConfigBuilder_ == null) {
return eventDeliveryConfig_ == null
? com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig
.getDefaultInstance()
: eventDeliveryConfig_;
} else {
return eventDeliveryConfigBuilder_.getMessage();
}
}
/**
*
*
*
* Event-related configuration for this application.
*
*
*
* .google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig event_delivery_config = 3;
*
*/
public Builder setEventDeliveryConfig(
com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig value) {
if (eventDeliveryConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
eventDeliveryConfig_ = value;
} else {
eventDeliveryConfigBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Event-related configuration for this application.
*
*
*
* .google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig event_delivery_config = 3;
*
*/
public Builder setEventDeliveryConfig(
com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig.Builder
builderForValue) {
if (eventDeliveryConfigBuilder_ == null) {
eventDeliveryConfig_ = builderForValue.build();
} else {
eventDeliveryConfigBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Event-related configuration for this application.
*
*
*
* .google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig event_delivery_config = 3;
*
*/
public Builder mergeEventDeliveryConfig(
com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig value) {
if (eventDeliveryConfigBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)
&& eventDeliveryConfig_ != null
&& eventDeliveryConfig_
!= com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig
.getDefaultInstance()) {
getEventDeliveryConfigBuilder().mergeFrom(value);
} else {
eventDeliveryConfig_ = value;
}
} else {
eventDeliveryConfigBuilder_.mergeFrom(value);
}
if (eventDeliveryConfig_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
*
*
* Event-related configuration for this application.
*
*
*
* .google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig event_delivery_config = 3;
*
*/
public Builder clearEventDeliveryConfig() {
bitField0_ = (bitField0_ & ~0x00000002);
eventDeliveryConfig_ = null;
if (eventDeliveryConfigBuilder_ != null) {
eventDeliveryConfigBuilder_.dispose();
eventDeliveryConfigBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Event-related configuration for this application.
*
*
*
* .google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig event_delivery_config = 3;
*
*/
public com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig.Builder
getEventDeliveryConfigBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getEventDeliveryConfigFieldBuilder().getBuilder();
}
/**
*
*
*
* Event-related configuration for this application.
*
*
*
* .google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig event_delivery_config = 3;
*
*/
public com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfigOrBuilder
getEventDeliveryConfigOrBuilder() {
if (eventDeliveryConfigBuilder_ != null) {
return eventDeliveryConfigBuilder_.getMessageOrBuilder();
} else {
return eventDeliveryConfig_ == null
? com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig
.getDefaultInstance()
: eventDeliveryConfig_;
}
}
/**
*
*
*
* Event-related configuration for this application.
*
*
*
* .google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig event_delivery_config = 3;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig,
com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig.Builder,
com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfigOrBuilder>
getEventDeliveryConfigFieldBuilder() {
if (eventDeliveryConfigBuilder_ == null) {
eventDeliveryConfigBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig,
com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfig.Builder,
com.google.cloud.visionai.v1.ApplicationConfigs.EventDeliveryConfigOrBuilder>(
getEventDeliveryConfig(), getParentForChildren(), isClean());
eventDeliveryConfig_ = null;
}
return eventDeliveryConfigBuilder_;
}
@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.ApplicationConfigs)
}
// @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.ApplicationConfigs)
private static final com.google.cloud.visionai.v1.ApplicationConfigs DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.visionai.v1.ApplicationConfigs();
}
public static com.google.cloud.visionai.v1.ApplicationConfigs getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ApplicationConfigs 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.ApplicationConfigs getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy