
com.google.cloud.visionai.v1.Application 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 Application object
*
*
* Protobuf type {@code google.cloud.visionai.v1.Application}
*/
public final class Application extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.Application)
ApplicationOrBuilder {
private static final long serialVersionUID = 0L;
// Use Application.newBuilder() to construct.
private Application(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Application() {
name_ = "";
displayName_ = "";
description_ = "";
state_ = 0;
billingMode_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Application();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_Application_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 4:
return internalGetLabels();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_Application_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.Application.class,
com.google.cloud.visionai.v1.Application.Builder.class);
}
/**
*
*
*
* State of the Application
*
*
* Protobuf enum {@code google.cloud.visionai.v1.Application.State}
*/
public enum State implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*
*
* The default value. This value is used if the state is omitted.
*
*
* STATE_UNSPECIFIED = 0;
*/
STATE_UNSPECIFIED(0),
/**
*
*
*
* State CREATED.
*
*
* CREATED = 1;
*/
CREATED(1),
/**
*
*
*
* State DEPLOYING.
*
*
* DEPLOYING = 2;
*/
DEPLOYING(2),
/**
*
*
*
* State DEPLOYED.
*
*
* DEPLOYED = 3;
*/
DEPLOYED(3),
/**
*
*
*
* State UNDEPLOYING.
*
*
* UNDEPLOYING = 4;
*/
UNDEPLOYING(4),
/**
*
*
*
* State DELETED.
*
*
* DELETED = 5;
*/
DELETED(5),
/**
*
*
*
* State ERROR.
*
*
* ERROR = 6;
*/
ERROR(6),
/**
*
*
*
* State CREATING.
*
*
* CREATING = 7;
*/
CREATING(7),
/**
*
*
*
* State Updating.
*
*
* UPDATING = 8;
*/
UPDATING(8),
/**
*
*
*
* State Deleting.
*
*
* DELETING = 9;
*/
DELETING(9),
/**
*
*
*
* State Fixing.
*
*
* FIXING = 10;
*/
FIXING(10),
UNRECOGNIZED(-1),
;
/**
*
*
*
* The default value. This value is used if the state is omitted.
*
*
* STATE_UNSPECIFIED = 0;
*/
public static final int STATE_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* State CREATED.
*
*
* CREATED = 1;
*/
public static final int CREATED_VALUE = 1;
/**
*
*
*
* State DEPLOYING.
*
*
* DEPLOYING = 2;
*/
public static final int DEPLOYING_VALUE = 2;
/**
*
*
*
* State DEPLOYED.
*
*
* DEPLOYED = 3;
*/
public static final int DEPLOYED_VALUE = 3;
/**
*
*
*
* State UNDEPLOYING.
*
*
* UNDEPLOYING = 4;
*/
public static final int UNDEPLOYING_VALUE = 4;
/**
*
*
*
* State DELETED.
*
*
* DELETED = 5;
*/
public static final int DELETED_VALUE = 5;
/**
*
*
*
* State ERROR.
*
*
* ERROR = 6;
*/
public static final int ERROR_VALUE = 6;
/**
*
*
*
* State CREATING.
*
*
* CREATING = 7;
*/
public static final int CREATING_VALUE = 7;
/**
*
*
*
* State Updating.
*
*
* UPDATING = 8;
*/
public static final int UPDATING_VALUE = 8;
/**
*
*
*
* State Deleting.
*
*
* DELETING = 9;
*/
public static final int DELETING_VALUE = 9;
/**
*
*
*
* State Fixing.
*
*
* FIXING = 10;
*/
public static final int FIXING_VALUE = 10;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static State valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static State forNumber(int value) {
switch (value) {
case 0:
return STATE_UNSPECIFIED;
case 1:
return CREATED;
case 2:
return DEPLOYING;
case 3:
return DEPLOYED;
case 4:
return UNDEPLOYING;
case 5:
return DELETED;
case 6:
return ERROR;
case 7:
return CREATING;
case 8:
return UPDATING;
case 9:
return DELETING;
case 10:
return FIXING;
default:
return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public State findValueByNumber(int number) {
return State.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
return com.google.cloud.visionai.v1.Application.getDescriptor().getEnumTypes().get(0);
}
private static final State[] VALUES = values();
public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private State(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.cloud.visionai.v1.Application.State)
}
/**
*
*
*
* Billing mode of the Application
*
*
* Protobuf enum {@code google.cloud.visionai.v1.Application.BillingMode}
*/
public enum BillingMode implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*
*
* The default value.
*
*
* BILLING_MODE_UNSPECIFIED = 0;
*/
BILLING_MODE_UNSPECIFIED(0),
/**
*
*
*
* Pay as you go billing mode.
*
*
* PAYG = 1;
*/
PAYG(1),
/**
*
*
*
* Monthly billing mode.
*
*
* MONTHLY = 2;
*/
MONTHLY(2),
UNRECOGNIZED(-1),
;
/**
*
*
*
* The default value.
*
*
* BILLING_MODE_UNSPECIFIED = 0;
*/
public static final int BILLING_MODE_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* Pay as you go billing mode.
*
*
* PAYG = 1;
*/
public static final int PAYG_VALUE = 1;
/**
*
*
*
* Monthly billing mode.
*
*
* MONTHLY = 2;
*/
public static final int MONTHLY_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static BillingMode valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static BillingMode forNumber(int value) {
switch (value) {
case 0:
return BILLING_MODE_UNSPECIFIED;
case 1:
return PAYG;
case 2:
return MONTHLY;
default:
return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public BillingMode findValueByNumber(int number) {
return BillingMode.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
return com.google.cloud.visionai.v1.Application.getDescriptor().getEnumTypes().get(1);
}
private static final BillingMode[] VALUES = values();
public static BillingMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private BillingMode(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.cloud.visionai.v1.Application.BillingMode)
}
public interface ApplicationRuntimeInfoOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.visionai.v1.Application.ApplicationRuntimeInfo)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Timestamp when the engine be deployed
*
*
* .google.protobuf.Timestamp deploy_time = 1;
*
* @return Whether the deployTime field is set.
*/
boolean hasDeployTime();
/**
*
*
*
* Timestamp when the engine be deployed
*
*
* .google.protobuf.Timestamp deploy_time = 1;
*
* @return The deployTime.
*/
com.google.protobuf.Timestamp getDeployTime();
/**
*
*
*
* Timestamp when the engine be deployed
*
*
* .google.protobuf.Timestamp deploy_time = 1;
*/
com.google.protobuf.TimestampOrBuilder getDeployTimeOrBuilder();
/**
*
*
*
* Globally created resources like warehouse dataschemas.
*
*
*
* repeated .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource global_output_resources = 3;
*
*/
java.util.List<
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource>
getGlobalOutputResourcesList();
/**
*
*
*
* Globally created resources like warehouse dataschemas.
*
*
*
* repeated .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource global_output_resources = 3;
*
*/
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource
getGlobalOutputResources(int index);
/**
*
*
*
* Globally created resources like warehouse dataschemas.
*
*
*
* repeated .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource global_output_resources = 3;
*
*/
int getGlobalOutputResourcesCount();
/**
*
*
*
* Globally created resources like warehouse dataschemas.
*
*
*
* repeated .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource global_output_resources = 3;
*
*/
java.util.List<
? extends
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo
.GlobalOutputResourceOrBuilder>
getGlobalOutputResourcesOrBuilderList();
/**
*
*
*
* Globally created resources like warehouse dataschemas.
*
*
*
* repeated .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource global_output_resources = 3;
*
*/
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResourceOrBuilder
getGlobalOutputResourcesOrBuilder(int index);
/**
*
*
*
* Monitoring-related configuration for this application.
*
*
*
* .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig monitoring_config = 4;
*
*
* @return Whether the monitoringConfig field is set.
*/
boolean hasMonitoringConfig();
/**
*
*
*
* Monitoring-related configuration for this application.
*
*
*
* .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig monitoring_config = 4;
*
*
* @return The monitoringConfig.
*/
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig
getMonitoringConfig();
/**
*
*
*
* Monitoring-related configuration for this application.
*
*
*
* .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig monitoring_config = 4;
*
*/
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfigOrBuilder
getMonitoringConfigOrBuilder();
}
/**
*
*
*
* Message storing the runtime information of the application.
*
*
* Protobuf type {@code google.cloud.visionai.v1.Application.ApplicationRuntimeInfo}
*/
public static final class ApplicationRuntimeInfo extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.Application.ApplicationRuntimeInfo)
ApplicationRuntimeInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use ApplicationRuntimeInfo.newBuilder() to construct.
private ApplicationRuntimeInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ApplicationRuntimeInfo() {
globalOutputResources_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ApplicationRuntimeInfo();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_Application_ApplicationRuntimeInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_Application_ApplicationRuntimeInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.class,
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.Builder.class);
}
public interface GlobalOutputResourceOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* The full resource name of the outputted resources.
*
*
* string output_resource = 1;
*
* @return The outputResource.
*/
java.lang.String getOutputResource();
/**
*
*
*
* The full resource name of the outputted resources.
*
*
* string output_resource = 1;
*
* @return The bytes for outputResource.
*/
com.google.protobuf.ByteString getOutputResourceBytes();
/**
*
*
*
* The name of graph node who produces the output resource name.
* For example:
* output_resource:
* /projects/123/locations/us-central1/corpora/my-corpus/dataSchemas/my-schema
* producer_node: occupancy-count
*
*
* string producer_node = 2;
*
* @return The producerNode.
*/
java.lang.String getProducerNode();
/**
*
*
*
* The name of graph node who produces the output resource name.
* For example:
* output_resource:
* /projects/123/locations/us-central1/corpora/my-corpus/dataSchemas/my-schema
* producer_node: occupancy-count
*
*
* string producer_node = 2;
*
* @return The bytes for producerNode.
*/
com.google.protobuf.ByteString getProducerNodeBytes();
/**
*
*
*
* The key of the output resource, it has to be unique within the same
* producer node. One producer node can output several output resources,
* the key can be used to match corresponding output resources.
*
*
* string key = 3;
*
* @return The key.
*/
java.lang.String getKey();
/**
*
*
*
* The key of the output resource, it has to be unique within the same
* producer node. One producer node can output several output resources,
* the key can be used to match corresponding output resources.
*
*
* string key = 3;
*
* @return The bytes for key.
*/
com.google.protobuf.ByteString getKeyBytes();
}
/**
*
*
*
* Message about output resources from application.
*
*
* Protobuf type {@code
* google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource}
*/
public static final class GlobalOutputResource extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource)
GlobalOutputResourceOrBuilder {
private static final long serialVersionUID = 0L;
// Use GlobalOutputResource.newBuilder() to construct.
private GlobalOutputResource(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GlobalOutputResource() {
outputResource_ = "";
producerNode_ = "";
key_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new GlobalOutputResource();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_Application_ApplicationRuntimeInfo_GlobalOutputResource_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_Application_ApplicationRuntimeInfo_GlobalOutputResource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource
.class,
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource
.Builder.class);
}
public static final int OUTPUT_RESOURCE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object outputResource_ = "";
/**
*
*
*
* The full resource name of the outputted resources.
*
*
* string output_resource = 1;
*
* @return The outputResource.
*/
@java.lang.Override
public java.lang.String getOutputResource() {
java.lang.Object ref = outputResource_;
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();
outputResource_ = s;
return s;
}
}
/**
*
*
*
* The full resource name of the outputted resources.
*
*
* string output_resource = 1;
*
* @return The bytes for outputResource.
*/
@java.lang.Override
public com.google.protobuf.ByteString getOutputResourceBytes() {
java.lang.Object ref = outputResource_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
outputResource_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PRODUCER_NODE_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object producerNode_ = "";
/**
*
*
*
* The name of graph node who produces the output resource name.
* For example:
* output_resource:
* /projects/123/locations/us-central1/corpora/my-corpus/dataSchemas/my-schema
* producer_node: occupancy-count
*
*
* string producer_node = 2;
*
* @return The producerNode.
*/
@java.lang.Override
public java.lang.String getProducerNode() {
java.lang.Object ref = producerNode_;
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();
producerNode_ = s;
return s;
}
}
/**
*
*
*
* The name of graph node who produces the output resource name.
* For example:
* output_resource:
* /projects/123/locations/us-central1/corpora/my-corpus/dataSchemas/my-schema
* producer_node: occupancy-count
*
*
* string producer_node = 2;
*
* @return The bytes for producerNode.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProducerNodeBytes() {
java.lang.Object ref = producerNode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
producerNode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int KEY_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object key_ = "";
/**
*
*
*
* The key of the output resource, it has to be unique within the same
* producer node. One producer node can output several output resources,
* the key can be used to match corresponding output resources.
*
*
* string key = 3;
*
* @return The key.
*/
@java.lang.Override
public java.lang.String getKey() {
java.lang.Object ref = key_;
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();
key_ = s;
return s;
}
}
/**
*
*
*
* The key of the output resource, it has to be unique within the same
* producer node. One producer node can output several output resources,
* the key can be used to match corresponding output resources.
*
*
* string key = 3;
*
* @return The bytes for key.
*/
@java.lang.Override
public com.google.protobuf.ByteString getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
key_ = 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(outputResource_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputResource_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(producerNode_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, producerNode_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, key_);
}
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(outputResource_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, outputResource_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(producerNode_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, producerNode_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, key_);
}
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.Application.ApplicationRuntimeInfo.GlobalOutputResource)) {
return super.equals(obj);
}
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource other =
(com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource)
obj;
if (!getOutputResource().equals(other.getOutputResource())) return false;
if (!getProducerNode().equals(other.getProducerNode())) return false;
if (!getKey().equals(other.getKey())) 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) + OUTPUT_RESOURCE_FIELD_NUMBER;
hash = (53 * hash) + getOutputResource().hashCode();
hash = (37 * hash) + PRODUCER_NODE_FIELD_NUMBER;
hash = (53 * hash) + getProducerNode().hashCode();
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo
.GlobalOutputResource
parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo
.GlobalOutputResource
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.Application.ApplicationRuntimeInfo
.GlobalOutputResource
parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo
.GlobalOutputResource
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.Application.ApplicationRuntimeInfo
.GlobalOutputResource
parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo
.GlobalOutputResource
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.Application.ApplicationRuntimeInfo
.GlobalOutputResource
parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo
.GlobalOutputResource
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.Application.ApplicationRuntimeInfo
.GlobalOutputResource
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo
.GlobalOutputResource
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.Application.ApplicationRuntimeInfo
.GlobalOutputResource
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.Application.ApplicationRuntimeInfo
.GlobalOutputResource
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.Application.ApplicationRuntimeInfo.GlobalOutputResource
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 about output resources from application.
*
*
* Protobuf type {@code
* google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource)
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo
.GlobalOutputResourceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_Application_ApplicationRuntimeInfo_GlobalOutputResource_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_Application_ApplicationRuntimeInfo_GlobalOutputResource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo
.GlobalOutputResource.class,
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo
.GlobalOutputResource.Builder.class);
}
// Construct using
// com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
outputResource_ = "";
producerNode_ = "";
key_ = "";
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_Application_ApplicationRuntimeInfo_GlobalOutputResource_descriptor;
}
@java.lang.Override
public com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource
getDefaultInstanceForType() {
return com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo
.GlobalOutputResource.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource
build() {
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource
result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource
buildPartial() {
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource
result =
new com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo
.GlobalOutputResource(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource
result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.outputResource_ = outputResource_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.producerNode_ = producerNode_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.key_ = key_;
}
}
@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.Application.ApplicationRuntimeInfo
.GlobalOutputResource) {
return mergeFrom(
(com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo
.GlobalOutputResource)
other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource
other) {
if (other
== com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo
.GlobalOutputResource.getDefaultInstance()) return this;
if (!other.getOutputResource().isEmpty()) {
outputResource_ = other.outputResource_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getProducerNode().isEmpty()) {
producerNode_ = other.producerNode_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getKey().isEmpty()) {
key_ = other.key_;
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:
{
outputResource_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
producerNode_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
key_ = 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 outputResource_ = "";
/**
*
*
*
* The full resource name of the outputted resources.
*
*
* string output_resource = 1;
*
* @return The outputResource.
*/
public java.lang.String getOutputResource() {
java.lang.Object ref = outputResource_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
outputResource_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The full resource name of the outputted resources.
*
*
* string output_resource = 1;
*
* @return The bytes for outputResource.
*/
public com.google.protobuf.ByteString getOutputResourceBytes() {
java.lang.Object ref = outputResource_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
outputResource_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The full resource name of the outputted resources.
*
*
* string output_resource = 1;
*
* @param value The outputResource to set.
* @return This builder for chaining.
*/
public Builder setOutputResource(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
outputResource_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* The full resource name of the outputted resources.
*
*
* string output_resource = 1;
*
* @return This builder for chaining.
*/
public Builder clearOutputResource() {
outputResource_ = getDefaultInstance().getOutputResource();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* The full resource name of the outputted resources.
*
*
* string output_resource = 1;
*
* @param value The bytes for outputResource to set.
* @return This builder for chaining.
*/
public Builder setOutputResourceBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
outputResource_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object producerNode_ = "";
/**
*
*
*
* The name of graph node who produces the output resource name.
* For example:
* output_resource:
* /projects/123/locations/us-central1/corpora/my-corpus/dataSchemas/my-schema
* producer_node: occupancy-count
*
*
* string producer_node = 2;
*
* @return The producerNode.
*/
public java.lang.String getProducerNode() {
java.lang.Object ref = producerNode_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
producerNode_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The name of graph node who produces the output resource name.
* For example:
* output_resource:
* /projects/123/locations/us-central1/corpora/my-corpus/dataSchemas/my-schema
* producer_node: occupancy-count
*
*
* string producer_node = 2;
*
* @return The bytes for producerNode.
*/
public com.google.protobuf.ByteString getProducerNodeBytes() {
java.lang.Object ref = producerNode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
producerNode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The name of graph node who produces the output resource name.
* For example:
* output_resource:
* /projects/123/locations/us-central1/corpora/my-corpus/dataSchemas/my-schema
* producer_node: occupancy-count
*
*
* string producer_node = 2;
*
* @param value The producerNode to set.
* @return This builder for chaining.
*/
public Builder setProducerNode(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
producerNode_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* The name of graph node who produces the output resource name.
* For example:
* output_resource:
* /projects/123/locations/us-central1/corpora/my-corpus/dataSchemas/my-schema
* producer_node: occupancy-count
*
*
* string producer_node = 2;
*
* @return This builder for chaining.
*/
public Builder clearProducerNode() {
producerNode_ = getDefaultInstance().getProducerNode();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*
*
* The name of graph node who produces the output resource name.
* For example:
* output_resource:
* /projects/123/locations/us-central1/corpora/my-corpus/dataSchemas/my-schema
* producer_node: occupancy-count
*
*
* string producer_node = 2;
*
* @param value The bytes for producerNode to set.
* @return This builder for chaining.
*/
public Builder setProducerNodeBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
producerNode_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object key_ = "";
/**
*
*
*
* The key of the output resource, it has to be unique within the same
* producer node. One producer node can output several output resources,
* the key can be used to match corresponding output resources.
*
*
* string key = 3;
*
* @return The key.
*/
public java.lang.String getKey() {
java.lang.Object ref = key_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
key_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The key of the output resource, it has to be unique within the same
* producer node. One producer node can output several output resources,
* the key can be used to match corresponding output resources.
*
*
* string key = 3;
*
* @return The bytes for key.
*/
public com.google.protobuf.ByteString getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The key of the output resource, it has to be unique within the same
* producer node. One producer node can output several output resources,
* the key can be used to match corresponding output resources.
*
*
* string key = 3;
*
* @param value The key to set.
* @return This builder for chaining.
*/
public Builder setKey(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
key_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* The key of the output resource, it has to be unique within the same
* producer node. One producer node can output several output resources,
* the key can be used to match corresponding output resources.
*
*
* string key = 3;
*
* @return This builder for chaining.
*/
public Builder clearKey() {
key_ = getDefaultInstance().getKey();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
*
*
* The key of the output resource, it has to be unique within the same
* producer node. One producer node can output several output resources,
* the key can be used to match corresponding output resources.
*
*
* string key = 3;
*
* @param value The bytes for key to set.
* @return This builder for chaining.
*/
public Builder setKeyBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
key_ = 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.Application.ApplicationRuntimeInfo.GlobalOutputResource)
}
// @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource)
private static final com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo
.GlobalOutputResource
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
new com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo
.GlobalOutputResource();
}
public static com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo
.GlobalOutputResource
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GlobalOutputResource 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.Application.ApplicationRuntimeInfo.GlobalOutputResource
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MonitoringConfigOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Whether this application has monitoring enabled.
*
*
* bool enabled = 1;
*
* @return The enabled.
*/
boolean getEnabled();
}
/**
*
*
*
* Monitoring-related configuration for an application.
*
*
* Protobuf type {@code
* google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig}
*/
public static final class MonitoringConfig extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig)
MonitoringConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use MonitoringConfig.newBuilder() to construct.
private MonitoringConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MonitoringConfig() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new MonitoringConfig();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_Application_ApplicationRuntimeInfo_MonitoringConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_Application_ApplicationRuntimeInfo_MonitoringConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig
.class,
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig
.Builder.class);
}
public static final int ENABLED_FIELD_NUMBER = 1;
private boolean enabled_ = false;
/**
*
*
*
* Whether this application has monitoring enabled.
*
*
* bool enabled = 1;
*
* @return The enabled.
*/
@java.lang.Override
public boolean getEnabled() {
return enabled_;
}
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 (enabled_ != false) {
output.writeBool(1, enabled_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (enabled_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_);
}
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.Application.ApplicationRuntimeInfo.MonitoringConfig)) {
return super.equals(obj);
}
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig other =
(com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig) obj;
if (getEnabled() != other.getEnabled()) 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) + ENABLED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig
parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig
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.Application.ApplicationRuntimeInfo.MonitoringConfig
parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig
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.Application.ApplicationRuntimeInfo.MonitoringConfig
parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig
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.Application.ApplicationRuntimeInfo.MonitoringConfig
parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig
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.Application.ApplicationRuntimeInfo.MonitoringConfig
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig
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.Application.ApplicationRuntimeInfo.MonitoringConfig
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.Application.ApplicationRuntimeInfo.MonitoringConfig
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.Application.ApplicationRuntimeInfo.MonitoringConfig
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;
}
/**
*
*
*
* Monitoring-related configuration for an application.
*
*
* Protobuf type {@code
* google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig)
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo
.MonitoringConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_Application_ApplicationRuntimeInfo_MonitoringConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_Application_ApplicationRuntimeInfo_MonitoringConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig
.class,
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig
.Builder.class);
}
// Construct using
// com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
enabled_ = 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_Application_ApplicationRuntimeInfo_MonitoringConfig_descriptor;
}
@java.lang.Override
public com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig
getDefaultInstanceForType() {
return com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig
.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig
build() {
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig result =
buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig
buildPartial() {
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig result =
new com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig(
this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig
result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.enabled_ = enabled_;
}
}
@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.Application.ApplicationRuntimeInfo.MonitoringConfig) {
return mergeFrom(
(com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig)
other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig
other) {
if (other
== com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig
.getDefaultInstance()) return this;
if (other.getEnabled() != false) {
setEnabled(other.getEnabled());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8:
{
enabled_ = input.readBool();
bitField0_ |= 0x00000001;
break;
} // case 8
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 boolean enabled_;
/**
*
*
*
* Whether this application has monitoring enabled.
*
*
* bool enabled = 1;
*
* @return The enabled.
*/
@java.lang.Override
public boolean getEnabled() {
return enabled_;
}
/**
*
*
*
* Whether this application has monitoring enabled.
*
*
* bool enabled = 1;
*
* @param value The enabled to set.
* @return This builder for chaining.
*/
public Builder setEnabled(boolean value) {
enabled_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Whether this application has monitoring enabled.
*
*
* bool enabled = 1;
*
* @return This builder for chaining.
*/
public Builder clearEnabled() {
bitField0_ = (bitField0_ & ~0x00000001);
enabled_ = 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.Application.ApplicationRuntimeInfo.MonitoringConfig)
}
// @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig)
private static final com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo
.MonitoringConfig
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
new com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig();
}
public static com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MonitoringConfig 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.Application.ApplicationRuntimeInfo.MonitoringConfig
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int DEPLOY_TIME_FIELD_NUMBER = 1;
private com.google.protobuf.Timestamp deployTime_;
/**
*
*
*
* Timestamp when the engine be deployed
*
*
* .google.protobuf.Timestamp deploy_time = 1;
*
* @return Whether the deployTime field is set.
*/
@java.lang.Override
public boolean hasDeployTime() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Timestamp when the engine be deployed
*
*
* .google.protobuf.Timestamp deploy_time = 1;
*
* @return The deployTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getDeployTime() {
return deployTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deployTime_;
}
/**
*
*
*
* Timestamp when the engine be deployed
*
*
* .google.protobuf.Timestamp deploy_time = 1;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getDeployTimeOrBuilder() {
return deployTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deployTime_;
}
public static final int GLOBAL_OUTPUT_RESOURCES_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List<
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource>
globalOutputResources_;
/**
*
*
*
* Globally created resources like warehouse dataschemas.
*
*
*
* repeated .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource global_output_resources = 3;
*
*/
@java.lang.Override
public java.util.List<
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource>
getGlobalOutputResourcesList() {
return globalOutputResources_;
}
/**
*
*
*
* Globally created resources like warehouse dataschemas.
*
*
*
* repeated .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource global_output_resources = 3;
*
*/
@java.lang.Override
public java.util.List<
? extends
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo
.GlobalOutputResourceOrBuilder>
getGlobalOutputResourcesOrBuilderList() {
return globalOutputResources_;
}
/**
*
*
*
* Globally created resources like warehouse dataschemas.
*
*
*
* repeated .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource global_output_resources = 3;
*
*/
@java.lang.Override
public int getGlobalOutputResourcesCount() {
return globalOutputResources_.size();
}
/**
*
*
*
* Globally created resources like warehouse dataschemas.
*
*
*
* repeated .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource global_output_resources = 3;
*
*/
@java.lang.Override
public com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource
getGlobalOutputResources(int index) {
return globalOutputResources_.get(index);
}
/**
*
*
*
* Globally created resources like warehouse dataschemas.
*
*
*
* repeated .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource global_output_resources = 3;
*
*/
@java.lang.Override
public com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo
.GlobalOutputResourceOrBuilder
getGlobalOutputResourcesOrBuilder(int index) {
return globalOutputResources_.get(index);
}
public static final int MONITORING_CONFIG_FIELD_NUMBER = 4;
private com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig
monitoringConfig_;
/**
*
*
*
* Monitoring-related configuration for this application.
*
*
*
* .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig monitoring_config = 4;
*
*
* @return Whether the monitoringConfig field is set.
*/
@java.lang.Override
public boolean hasMonitoringConfig() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Monitoring-related configuration for this application.
*
*
*
* .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig monitoring_config = 4;
*
*
* @return The monitoringConfig.
*/
@java.lang.Override
public com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig
getMonitoringConfig() {
return monitoringConfig_ == null
? com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig
.getDefaultInstance()
: monitoringConfig_;
}
/**
*
*
*
* Monitoring-related configuration for this application.
*
*
*
* .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig monitoring_config = 4;
*
*/
@java.lang.Override
public com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfigOrBuilder
getMonitoringConfigOrBuilder() {
return monitoringConfig_ == null
? com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig
.getDefaultInstance()
: monitoringConfig_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getDeployTime());
}
for (int i = 0; i < globalOutputResources_.size(); i++) {
output.writeMessage(3, globalOutputResources_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(4, getMonitoringConfig());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDeployTime());
}
for (int i = 0; i < globalOutputResources_.size(); i++) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
3, globalOutputResources_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getMonitoringConfig());
}
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.Application.ApplicationRuntimeInfo)) {
return super.equals(obj);
}
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo other =
(com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo) obj;
if (hasDeployTime() != other.hasDeployTime()) return false;
if (hasDeployTime()) {
if (!getDeployTime().equals(other.getDeployTime())) return false;
}
if (!getGlobalOutputResourcesList().equals(other.getGlobalOutputResourcesList()))
return false;
if (hasMonitoringConfig() != other.hasMonitoringConfig()) return false;
if (hasMonitoringConfig()) {
if (!getMonitoringConfig().equals(other.getMonitoringConfig())) 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 (hasDeployTime()) {
hash = (37 * hash) + DEPLOY_TIME_FIELD_NUMBER;
hash = (53 * hash) + getDeployTime().hashCode();
}
if (getGlobalOutputResourcesCount() > 0) {
hash = (37 * hash) + GLOBAL_OUTPUT_RESOURCES_FIELD_NUMBER;
hash = (53 * hash) + getGlobalOutputResourcesList().hashCode();
}
if (hasMonitoringConfig()) {
hash = (37 * hash) + MONITORING_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getMonitoringConfig().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo 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.Application.ApplicationRuntimeInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo 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.Application.ApplicationRuntimeInfo parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo 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.Application.ApplicationRuntimeInfo parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo 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.Application.ApplicationRuntimeInfo
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo
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.Application.ApplicationRuntimeInfo 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.Application.ApplicationRuntimeInfo 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.Application.ApplicationRuntimeInfo 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 runtime information of the application.
*
*
* Protobuf type {@code google.cloud.visionai.v1.Application.ApplicationRuntimeInfo}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.Application.ApplicationRuntimeInfo)
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_Application_ApplicationRuntimeInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_Application_ApplicationRuntimeInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.class,
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.Builder.class);
}
// Construct using
// com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getDeployTimeFieldBuilder();
getGlobalOutputResourcesFieldBuilder();
getMonitoringConfigFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
deployTime_ = null;
if (deployTimeBuilder_ != null) {
deployTimeBuilder_.dispose();
deployTimeBuilder_ = null;
}
if (globalOutputResourcesBuilder_ == null) {
globalOutputResources_ = java.util.Collections.emptyList();
} else {
globalOutputResources_ = null;
globalOutputResourcesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
monitoringConfig_ = null;
if (monitoringConfigBuilder_ != null) {
monitoringConfigBuilder_.dispose();
monitoringConfigBuilder_ = 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_Application_ApplicationRuntimeInfo_descriptor;
}
@java.lang.Override
public com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo
getDefaultInstanceForType() {
return com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo build() {
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo buildPartial() {
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo result =
new com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartialRepeatedFields(
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo result) {
if (globalOutputResourcesBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
globalOutputResources_ = java.util.Collections.unmodifiableList(globalOutputResources_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.globalOutputResources_ = globalOutputResources_;
} else {
result.globalOutputResources_ = globalOutputResourcesBuilder_.build();
}
}
private void buildPartial0(
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.deployTime_ =
deployTimeBuilder_ == null ? deployTime_ : deployTimeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.monitoringConfig_ =
monitoringConfigBuilder_ == null
? monitoringConfig_
: monitoringConfigBuilder_.build();
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo) {
return mergeFrom((com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo other) {
if (other
== com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.getDefaultInstance())
return this;
if (other.hasDeployTime()) {
mergeDeployTime(other.getDeployTime());
}
if (globalOutputResourcesBuilder_ == null) {
if (!other.globalOutputResources_.isEmpty()) {
if (globalOutputResources_.isEmpty()) {
globalOutputResources_ = other.globalOutputResources_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureGlobalOutputResourcesIsMutable();
globalOutputResources_.addAll(other.globalOutputResources_);
}
onChanged();
}
} else {
if (!other.globalOutputResources_.isEmpty()) {
if (globalOutputResourcesBuilder_.isEmpty()) {
globalOutputResourcesBuilder_.dispose();
globalOutputResourcesBuilder_ = null;
globalOutputResources_ = other.globalOutputResources_;
bitField0_ = (bitField0_ & ~0x00000002);
globalOutputResourcesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getGlobalOutputResourcesFieldBuilder()
: null;
} else {
globalOutputResourcesBuilder_.addAllMessages(other.globalOutputResources_);
}
}
}
if (other.hasMonitoringConfig()) {
mergeMonitoringConfig(other.getMonitoringConfig());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
input.readMessage(getDeployTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 26:
{
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo
.GlobalOutputResource
m =
input.readMessage(
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo
.GlobalOutputResource.parser(),
extensionRegistry);
if (globalOutputResourcesBuilder_ == null) {
ensureGlobalOutputResourcesIsMutable();
globalOutputResources_.add(m);
} else {
globalOutputResourcesBuilder_.addMessage(m);
}
break;
} // case 26
case 34:
{
input.readMessage(
getMonitoringConfigFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 34
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.Timestamp deployTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
deployTimeBuilder_;
/**
*
*
*
* Timestamp when the engine be deployed
*
*
* .google.protobuf.Timestamp deploy_time = 1;
*
* @return Whether the deployTime field is set.
*/
public boolean hasDeployTime() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Timestamp when the engine be deployed
*
*
* .google.protobuf.Timestamp deploy_time = 1;
*
* @return The deployTime.
*/
public com.google.protobuf.Timestamp getDeployTime() {
if (deployTimeBuilder_ == null) {
return deployTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: deployTime_;
} else {
return deployTimeBuilder_.getMessage();
}
}
/**
*
*
*
* Timestamp when the engine be deployed
*
*
* .google.protobuf.Timestamp deploy_time = 1;
*/
public Builder setDeployTime(com.google.protobuf.Timestamp value) {
if (deployTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
deployTime_ = value;
} else {
deployTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Timestamp when the engine be deployed
*
*
* .google.protobuf.Timestamp deploy_time = 1;
*/
public Builder setDeployTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (deployTimeBuilder_ == null) {
deployTime_ = builderForValue.build();
} else {
deployTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Timestamp when the engine be deployed
*
*
* .google.protobuf.Timestamp deploy_time = 1;
*/
public Builder mergeDeployTime(com.google.protobuf.Timestamp value) {
if (deployTimeBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)
&& deployTime_ != null
&& deployTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getDeployTimeBuilder().mergeFrom(value);
} else {
deployTime_ = value;
}
} else {
deployTimeBuilder_.mergeFrom(value);
}
if (deployTime_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
*
*
* Timestamp when the engine be deployed
*
*
* .google.protobuf.Timestamp deploy_time = 1;
*/
public Builder clearDeployTime() {
bitField0_ = (bitField0_ & ~0x00000001);
deployTime_ = null;
if (deployTimeBuilder_ != null) {
deployTimeBuilder_.dispose();
deployTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Timestamp when the engine be deployed
*
*
* .google.protobuf.Timestamp deploy_time = 1;
*/
public com.google.protobuf.Timestamp.Builder getDeployTimeBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getDeployTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* Timestamp when the engine be deployed
*
*
* .google.protobuf.Timestamp deploy_time = 1;
*/
public com.google.protobuf.TimestampOrBuilder getDeployTimeOrBuilder() {
if (deployTimeBuilder_ != null) {
return deployTimeBuilder_.getMessageOrBuilder();
} else {
return deployTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: deployTime_;
}
}
/**
*
*
*
* Timestamp when the engine be deployed
*
*
* .google.protobuf.Timestamp deploy_time = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getDeployTimeFieldBuilder() {
if (deployTimeBuilder_ == null) {
deployTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getDeployTime(), getParentForChildren(), isClean());
deployTime_ = null;
}
return deployTimeBuilder_;
}
private java.util.List<
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource>
globalOutputResources_ = java.util.Collections.emptyList();
private void ensureGlobalOutputResourcesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
globalOutputResources_ =
new java.util.ArrayList<
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo
.GlobalOutputResource>(globalOutputResources_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource,
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource
.Builder,
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo
.GlobalOutputResourceOrBuilder>
globalOutputResourcesBuilder_;
/**
*
*
*
* Globally created resources like warehouse dataschemas.
*
*
*
* repeated .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource global_output_resources = 3;
*
*/
public java.util.List<
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource>
getGlobalOutputResourcesList() {
if (globalOutputResourcesBuilder_ == null) {
return java.util.Collections.unmodifiableList(globalOutputResources_);
} else {
return globalOutputResourcesBuilder_.getMessageList();
}
}
/**
*
*
*
* Globally created resources like warehouse dataschemas.
*
*
*
* repeated .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource global_output_resources = 3;
*
*/
public int getGlobalOutputResourcesCount() {
if (globalOutputResourcesBuilder_ == null) {
return globalOutputResources_.size();
} else {
return globalOutputResourcesBuilder_.getCount();
}
}
/**
*
*
*
* Globally created resources like warehouse dataschemas.
*
*
*
* repeated .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource global_output_resources = 3;
*
*/
public com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource
getGlobalOutputResources(int index) {
if (globalOutputResourcesBuilder_ == null) {
return globalOutputResources_.get(index);
} else {
return globalOutputResourcesBuilder_.getMessage(index);
}
}
/**
*
*
*
* Globally created resources like warehouse dataschemas.
*
*
*
* repeated .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource global_output_resources = 3;
*
*/
public Builder setGlobalOutputResources(
int index,
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource
value) {
if (globalOutputResourcesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGlobalOutputResourcesIsMutable();
globalOutputResources_.set(index, value);
onChanged();
} else {
globalOutputResourcesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* Globally created resources like warehouse dataschemas.
*
*
*
* repeated .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource global_output_resources = 3;
*
*/
public Builder setGlobalOutputResources(
int index,
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource
.Builder
builderForValue) {
if (globalOutputResourcesBuilder_ == null) {
ensureGlobalOutputResourcesIsMutable();
globalOutputResources_.set(index, builderForValue.build());
onChanged();
} else {
globalOutputResourcesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Globally created resources like warehouse dataschemas.
*
*
*
* repeated .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource global_output_resources = 3;
*
*/
public Builder addGlobalOutputResources(
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource
value) {
if (globalOutputResourcesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGlobalOutputResourcesIsMutable();
globalOutputResources_.add(value);
onChanged();
} else {
globalOutputResourcesBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* Globally created resources like warehouse dataschemas.
*
*
*
* repeated .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource global_output_resources = 3;
*
*/
public Builder addGlobalOutputResources(
int index,
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource
value) {
if (globalOutputResourcesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGlobalOutputResourcesIsMutable();
globalOutputResources_.add(index, value);
onChanged();
} else {
globalOutputResourcesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* Globally created resources like warehouse dataschemas.
*
*
*
* repeated .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource global_output_resources = 3;
*
*/
public Builder addGlobalOutputResources(
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource
.Builder
builderForValue) {
if (globalOutputResourcesBuilder_ == null) {
ensureGlobalOutputResourcesIsMutable();
globalOutputResources_.add(builderForValue.build());
onChanged();
} else {
globalOutputResourcesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* Globally created resources like warehouse dataschemas.
*
*
*
* repeated .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource global_output_resources = 3;
*
*/
public Builder addGlobalOutputResources(
int index,
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource
.Builder
builderForValue) {
if (globalOutputResourcesBuilder_ == null) {
ensureGlobalOutputResourcesIsMutable();
globalOutputResources_.add(index, builderForValue.build());
onChanged();
} else {
globalOutputResourcesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Globally created resources like warehouse dataschemas.
*
*
*
* repeated .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource global_output_resources = 3;
*
*/
public Builder addAllGlobalOutputResources(
java.lang.Iterable<
? extends
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo
.GlobalOutputResource>
values) {
if (globalOutputResourcesBuilder_ == null) {
ensureGlobalOutputResourcesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, globalOutputResources_);
onChanged();
} else {
globalOutputResourcesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* Globally created resources like warehouse dataschemas.
*
*
*
* repeated .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource global_output_resources = 3;
*
*/
public Builder clearGlobalOutputResources() {
if (globalOutputResourcesBuilder_ == null) {
globalOutputResources_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
globalOutputResourcesBuilder_.clear();
}
return this;
}
/**
*
*
*
* Globally created resources like warehouse dataschemas.
*
*
*
* repeated .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource global_output_resources = 3;
*
*/
public Builder removeGlobalOutputResources(int index) {
if (globalOutputResourcesBuilder_ == null) {
ensureGlobalOutputResourcesIsMutable();
globalOutputResources_.remove(index);
onChanged();
} else {
globalOutputResourcesBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* Globally created resources like warehouse dataschemas.
*
*
*
* repeated .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource global_output_resources = 3;
*
*/
public com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource
.Builder
getGlobalOutputResourcesBuilder(int index) {
return getGlobalOutputResourcesFieldBuilder().getBuilder(index);
}
/**
*
*
*
* Globally created resources like warehouse dataschemas.
*
*
*
* repeated .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource global_output_resources = 3;
*
*/
public com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo
.GlobalOutputResourceOrBuilder
getGlobalOutputResourcesOrBuilder(int index) {
if (globalOutputResourcesBuilder_ == null) {
return globalOutputResources_.get(index);
} else {
return globalOutputResourcesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* Globally created resources like warehouse dataschemas.
*
*
*
* repeated .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource global_output_resources = 3;
*
*/
public java.util.List<
? extends
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo
.GlobalOutputResourceOrBuilder>
getGlobalOutputResourcesOrBuilderList() {
if (globalOutputResourcesBuilder_ != null) {
return globalOutputResourcesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(globalOutputResources_);
}
}
/**
*
*
*
* Globally created resources like warehouse dataschemas.
*
*
*
* repeated .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource global_output_resources = 3;
*
*/
public com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource
.Builder
addGlobalOutputResourcesBuilder() {
return getGlobalOutputResourcesFieldBuilder()
.addBuilder(
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource
.getDefaultInstance());
}
/**
*
*
*
* Globally created resources like warehouse dataschemas.
*
*
*
* repeated .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource global_output_resources = 3;
*
*/
public com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource
.Builder
addGlobalOutputResourcesBuilder(int index) {
return getGlobalOutputResourcesFieldBuilder()
.addBuilder(
index,
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource
.getDefaultInstance());
}
/**
*
*
*
* Globally created resources like warehouse dataschemas.
*
*
*
* repeated .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource global_output_resources = 3;
*
*/
public java.util.List<
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource
.Builder>
getGlobalOutputResourcesBuilderList() {
return getGlobalOutputResourcesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource,
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.GlobalOutputResource
.Builder,
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo
.GlobalOutputResourceOrBuilder>
getGlobalOutputResourcesFieldBuilder() {
if (globalOutputResourcesBuilder_ == null) {
globalOutputResourcesBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo
.GlobalOutputResource,
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo
.GlobalOutputResource.Builder,
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo
.GlobalOutputResourceOrBuilder>(
globalOutputResources_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
globalOutputResources_ = null;
}
return globalOutputResourcesBuilder_;
}
private com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig
monitoringConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig,
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig
.Builder,
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo
.MonitoringConfigOrBuilder>
monitoringConfigBuilder_;
/**
*
*
*
* Monitoring-related configuration for this application.
*
*
*
* .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig monitoring_config = 4;
*
*
* @return Whether the monitoringConfig field is set.
*/
public boolean hasMonitoringConfig() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* Monitoring-related configuration for this application.
*
*
*
* .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig monitoring_config = 4;
*
*
* @return The monitoringConfig.
*/
public com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig
getMonitoringConfig() {
if (monitoringConfigBuilder_ == null) {
return monitoringConfig_ == null
? com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig
.getDefaultInstance()
: monitoringConfig_;
} else {
return monitoringConfigBuilder_.getMessage();
}
}
/**
*
*
*
* Monitoring-related configuration for this application.
*
*
*
* .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig monitoring_config = 4;
*
*/
public Builder setMonitoringConfig(
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig value) {
if (monitoringConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
monitoringConfig_ = value;
} else {
monitoringConfigBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Monitoring-related configuration for this application.
*
*
*
* .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig monitoring_config = 4;
*
*/
public Builder setMonitoringConfig(
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig.Builder
builderForValue) {
if (monitoringConfigBuilder_ == null) {
monitoringConfig_ = builderForValue.build();
} else {
monitoringConfigBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Monitoring-related configuration for this application.
*
*
*
* .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig monitoring_config = 4;
*
*/
public Builder mergeMonitoringConfig(
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig value) {
if (monitoringConfigBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)
&& monitoringConfig_ != null
&& monitoringConfig_
!= com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo
.MonitoringConfig.getDefaultInstance()) {
getMonitoringConfigBuilder().mergeFrom(value);
} else {
monitoringConfig_ = value;
}
} else {
monitoringConfigBuilder_.mergeFrom(value);
}
if (monitoringConfig_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
*
*
* Monitoring-related configuration for this application.
*
*
*
* .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig monitoring_config = 4;
*
*/
public Builder clearMonitoringConfig() {
bitField0_ = (bitField0_ & ~0x00000004);
monitoringConfig_ = null;
if (monitoringConfigBuilder_ != null) {
monitoringConfigBuilder_.dispose();
monitoringConfigBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Monitoring-related configuration for this application.
*
*
*
* .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig monitoring_config = 4;
*
*/
public com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig
.Builder
getMonitoringConfigBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getMonitoringConfigFieldBuilder().getBuilder();
}
/**
*
*
*
* Monitoring-related configuration for this application.
*
*
*
* .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig monitoring_config = 4;
*
*/
public com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo
.MonitoringConfigOrBuilder
getMonitoringConfigOrBuilder() {
if (monitoringConfigBuilder_ != null) {
return monitoringConfigBuilder_.getMessageOrBuilder();
} else {
return monitoringConfig_ == null
? com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig
.getDefaultInstance()
: monitoringConfig_;
}
}
/**
*
*
*
* Monitoring-related configuration for this application.
*
*
*
* .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig monitoring_config = 4;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig,
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig
.Builder,
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo
.MonitoringConfigOrBuilder>
getMonitoringConfigFieldBuilder() {
if (monitoringConfigBuilder_ == null) {
monitoringConfigBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig,
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.MonitoringConfig
.Builder,
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo
.MonitoringConfigOrBuilder>(
getMonitoringConfig(), getParentForChildren(), isClean());
monitoringConfig_ = null;
}
return monitoringConfigBuilder_;
}
@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.Application.ApplicationRuntimeInfo)
}
// @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.Application.ApplicationRuntimeInfo)
private static final com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo();
}
public static com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ApplicationRuntimeInfo 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.Application.ApplicationRuntimeInfo
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
*
*
* name of resource
*
*
* string name = 1;
*
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
*
*
* name of resource
*
*
* string name = 1;
*
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CREATE_TIME_FIELD_NUMBER = 2;
private com.google.protobuf.Timestamp createTime_;
/**
*
*
*
* Output only. [Output only] Create timestamp
*
*
* .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the createTime field is set.
*/
@java.lang.Override
public boolean hasCreateTime() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Output only. [Output only] Create timestamp
*
*
* .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The createTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getCreateTime() {
return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
}
/**
*
*
*
* Output only. [Output only] Create timestamp
*
*
* .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
}
public static final int UPDATE_TIME_FIELD_NUMBER = 3;
private com.google.protobuf.Timestamp updateTime_;
/**
*
*
*
* Output only. [Output only] Update timestamp
*
*
* .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the updateTime field is set.
*/
@java.lang.Override
public boolean hasUpdateTime() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Output only. [Output only] Update timestamp
*
*
* .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The updateTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getUpdateTime() {
return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
}
/**
*
*
*
* Output only. [Output only] Update timestamp
*
*
* .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
}
public static final int LABELS_FIELD_NUMBER = 4;
private static final class LabelsDefaultEntryHolder {
static final com.google.protobuf.MapEntry defaultEntry =
com.google.protobuf.MapEntry.newDefaultInstance(
com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_Application_LabelsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField labels_;
private com.google.protobuf.MapField internalGetLabels() {
if (labels_ == null) {
return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
}
return labels_;
}
public int getLabelsCount() {
return internalGetLabels().getMap().size();
}
/**
*
*
*
* Labels as key value pairs
*
*
* map<string, string> labels = 4;
*/
@java.lang.Override
public boolean containsLabels(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetLabels().getMap().containsKey(key);
}
/** Use {@link #getLabelsMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getLabels() {
return getLabelsMap();
}
/**
*
*
*
* Labels as key value pairs
*
*
* map<string, string> labels = 4;
*/
@java.lang.Override
public java.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
*
*
*
* Labels as key value pairs
*
*
* map<string, string> labels = 4;
*/
@java.lang.Override
public /* nullable */ java.lang.String getLabelsOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
*
*
* Labels as key value pairs
*
*
* map<string, string> labels = 4;
*/
@java.lang.Override
public java.lang.String getLabelsOrThrow(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetLabels().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int DISPLAY_NAME_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object displayName_ = "";
/**
*
*
*
* Required. A user friendly display name for the solution.
*
*
* string display_name = 5 [(.google.api.field_behavior) = REQUIRED];
*
* @return The displayName.
*/
@java.lang.Override
public java.lang.String getDisplayName() {
java.lang.Object ref = displayName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
displayName_ = s;
return s;
}
}
/**
*
*
*
* Required. A user friendly display name for the solution.
*
*
* string display_name = 5 [(.google.api.field_behavior) = REQUIRED];
*
* @return The bytes for displayName.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDisplayNameBytes() {
java.lang.Object ref = displayName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
displayName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private volatile java.lang.Object description_ = "";
/**
*
*
*
* A description for this application.
*
*
* string description = 6;
*
* @return The description.
*/
@java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
}
}
/**
*
*
*
* A description for this application.
*
*
* string description = 6;
*
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int APPLICATION_CONFIGS_FIELD_NUMBER = 7;
private com.google.cloud.visionai.v1.ApplicationConfigs applicationConfigs_;
/**
*
*
*
* Application graph configuration.
*
*
* .google.cloud.visionai.v1.ApplicationConfigs application_configs = 7;
*
* @return Whether the applicationConfigs field is set.
*/
@java.lang.Override
public boolean hasApplicationConfigs() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* Application graph configuration.
*
*
* .google.cloud.visionai.v1.ApplicationConfigs application_configs = 7;
*
* @return The applicationConfigs.
*/
@java.lang.Override
public com.google.cloud.visionai.v1.ApplicationConfigs getApplicationConfigs() {
return applicationConfigs_ == null
? com.google.cloud.visionai.v1.ApplicationConfigs.getDefaultInstance()
: applicationConfigs_;
}
/**
*
*
*
* Application graph configuration.
*
*
* .google.cloud.visionai.v1.ApplicationConfigs application_configs = 7;
*/
@java.lang.Override
public com.google.cloud.visionai.v1.ApplicationConfigsOrBuilder getApplicationConfigsOrBuilder() {
return applicationConfigs_ == null
? com.google.cloud.visionai.v1.ApplicationConfigs.getDefaultInstance()
: applicationConfigs_;
}
public static final int RUNTIME_INFO_FIELD_NUMBER = 8;
private com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo runtimeInfo_;
/**
*
*
*
* Output only. Application graph runtime info. Only exists when application
* state equals to DEPLOYED.
*
*
*
* .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the runtimeInfo field is set.
*/
@java.lang.Override
public boolean hasRuntimeInfo() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*
*
* Output only. Application graph runtime info. Only exists when application
* state equals to DEPLOYED.
*
*
*
* .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The runtimeInfo.
*/
@java.lang.Override
public com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo getRuntimeInfo() {
return runtimeInfo_ == null
? com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.getDefaultInstance()
: runtimeInfo_;
}
/**
*
*
*
* Output only. Application graph runtime info. Only exists when application
* state equals to DEPLOYED.
*
*
*
* .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfoOrBuilder
getRuntimeInfoOrBuilder() {
return runtimeInfo_ == null
? com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.getDefaultInstance()
: runtimeInfo_;
}
public static final int STATE_FIELD_NUMBER = 9;
private int state_ = 0;
/**
*
*
*
* Output only. State of the application.
*
*
*
* .google.cloud.visionai.v1.Application.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override
public int getStateValue() {
return state_;
}
/**
*
*
*
* Output only. State of the application.
*
*
*
* .google.cloud.visionai.v1.Application.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The state.
*/
@java.lang.Override
public com.google.cloud.visionai.v1.Application.State getState() {
com.google.cloud.visionai.v1.Application.State result =
com.google.cloud.visionai.v1.Application.State.forNumber(state_);
return result == null ? com.google.cloud.visionai.v1.Application.State.UNRECOGNIZED : result;
}
public static final int BILLING_MODE_FIELD_NUMBER = 12;
private int billingMode_ = 0;
/**
*
*
*
* Billing mode of the application.
*
*
* .google.cloud.visionai.v1.Application.BillingMode billing_mode = 12;
*
* @return The enum numeric value on the wire for billingMode.
*/
@java.lang.Override
public int getBillingModeValue() {
return billingMode_;
}
/**
*
*
*
* Billing mode of the application.
*
*
* .google.cloud.visionai.v1.Application.BillingMode billing_mode = 12;
*
* @return The billingMode.
*/
@java.lang.Override
public com.google.cloud.visionai.v1.Application.BillingMode getBillingMode() {
com.google.cloud.visionai.v1.Application.BillingMode result =
com.google.cloud.visionai.v1.Application.BillingMode.forNumber(billingMode_);
return result == null
? com.google.cloud.visionai.v1.Application.BillingMode.UNRECOGNIZED
: result;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getCreateTime());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getUpdateTime());
}
com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4);
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, description_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(7, getApplicationConfigs());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(8, getRuntimeInfo());
}
if (state_ != com.google.cloud.visionai.v1.Application.State.STATE_UNSPECIFIED.getNumber()) {
output.writeEnum(9, state_);
}
if (billingMode_
!= com.google.cloud.visionai.v1.Application.BillingMode.BILLING_MODE_UNSPECIFIED
.getNumber()) {
output.writeEnum(12, billingMode_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime());
}
for (java.util.Map.Entry entry :
internalGetLabels().getMap().entrySet()) {
com.google.protobuf.MapEntry labels__ =
LabelsDefaultEntryHolder.defaultEntry
.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getApplicationConfigs());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getRuntimeInfo());
}
if (state_ != com.google.cloud.visionai.v1.Application.State.STATE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, state_);
}
if (billingMode_
!= com.google.cloud.visionai.v1.Application.BillingMode.BILLING_MODE_UNSPECIFIED
.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, billingMode_);
}
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.Application)) {
return super.equals(obj);
}
com.google.cloud.visionai.v1.Application other = (com.google.cloud.visionai.v1.Application) obj;
if (!getName().equals(other.getName())) return false;
if (hasCreateTime() != other.hasCreateTime()) return false;
if (hasCreateTime()) {
if (!getCreateTime().equals(other.getCreateTime())) return false;
}
if (hasUpdateTime() != other.hasUpdateTime()) return false;
if (hasUpdateTime()) {
if (!getUpdateTime().equals(other.getUpdateTime())) return false;
}
if (!internalGetLabels().equals(other.internalGetLabels())) return false;
if (!getDisplayName().equals(other.getDisplayName())) return false;
if (!getDescription().equals(other.getDescription())) return false;
if (hasApplicationConfigs() != other.hasApplicationConfigs()) return false;
if (hasApplicationConfigs()) {
if (!getApplicationConfigs().equals(other.getApplicationConfigs())) return false;
}
if (hasRuntimeInfo() != other.hasRuntimeInfo()) return false;
if (hasRuntimeInfo()) {
if (!getRuntimeInfo().equals(other.getRuntimeInfo())) return false;
}
if (state_ != other.state_) return false;
if (billingMode_ != other.billingMode_) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (hasCreateTime()) {
hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getCreateTime().hashCode();
}
if (hasUpdateTime()) {
hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getUpdateTime().hashCode();
}
if (!internalGetLabels().getMap().isEmpty()) {
hash = (37 * hash) + LABELS_FIELD_NUMBER;
hash = (53 * hash) + internalGetLabels().hashCode();
}
hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
hash = (53 * hash) + getDisplayName().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
if (hasApplicationConfigs()) {
hash = (37 * hash) + APPLICATION_CONFIGS_FIELD_NUMBER;
hash = (53 * hash) + getApplicationConfigs().hashCode();
}
if (hasRuntimeInfo()) {
hash = (37 * hash) + RUNTIME_INFO_FIELD_NUMBER;
hash = (53 * hash) + getRuntimeInfo().hashCode();
}
hash = (37 * hash) + STATE_FIELD_NUMBER;
hash = (53 * hash) + state_;
hash = (37 * hash) + BILLING_MODE_FIELD_NUMBER;
hash = (53 * hash) + billingMode_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.visionai.v1.Application parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.Application 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.Application parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.Application 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.Application parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.visionai.v1.Application 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.Application parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.Application 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.Application parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.visionai.v1.Application 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.Application 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.Application 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.Application 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 Application object
*
*
* Protobuf type {@code google.cloud.visionai.v1.Application}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.Application)
com.google.cloud.visionai.v1.ApplicationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_Application_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 4:
return internalGetLabels();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
int number) {
switch (number) {
case 4:
return internalGetMutableLabels();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.visionai.v1.PlatformProto
.internal_static_google_cloud_visionai_v1_Application_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.visionai.v1.Application.class,
com.google.cloud.visionai.v1.Application.Builder.class);
}
// Construct using com.google.cloud.visionai.v1.Application.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getCreateTimeFieldBuilder();
getUpdateTimeFieldBuilder();
getApplicationConfigsFieldBuilder();
getRuntimeInfoFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
createTime_ = null;
if (createTimeBuilder_ != null) {
createTimeBuilder_.dispose();
createTimeBuilder_ = null;
}
updateTime_ = null;
if (updateTimeBuilder_ != null) {
updateTimeBuilder_.dispose();
updateTimeBuilder_ = null;
}
internalGetMutableLabels().clear();
displayName_ = "";
description_ = "";
applicationConfigs_ = null;
if (applicationConfigsBuilder_ != null) {
applicationConfigsBuilder_.dispose();
applicationConfigsBuilder_ = null;
}
runtimeInfo_ = null;
if (runtimeInfoBuilder_ != null) {
runtimeInfoBuilder_.dispose();
runtimeInfoBuilder_ = null;
}
state_ = 0;
billingMode_ = 0;
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_Application_descriptor;
}
@java.lang.Override
public com.google.cloud.visionai.v1.Application getDefaultInstanceForType() {
return com.google.cloud.visionai.v1.Application.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.visionai.v1.Application build() {
com.google.cloud.visionai.v1.Application result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.visionai.v1.Application buildPartial() {
com.google.cloud.visionai.v1.Application result =
new com.google.cloud.visionai.v1.Application(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.visionai.v1.Application result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.labels_ = internalGetLabels();
result.labels_.makeImmutable();
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.displayName_ = displayName_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.description_ = description_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.applicationConfigs_ =
applicationConfigsBuilder_ == null
? applicationConfigs_
: applicationConfigsBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.runtimeInfo_ =
runtimeInfoBuilder_ == null ? runtimeInfo_ : runtimeInfoBuilder_.build();
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.state_ = state_;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.billingMode_ = billingMode_;
}
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.Application) {
return mergeFrom((com.google.cloud.visionai.v1.Application) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.visionai.v1.Application other) {
if (other == com.google.cloud.visionai.v1.Application.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasCreateTime()) {
mergeCreateTime(other.getCreateTime());
}
if (other.hasUpdateTime()) {
mergeUpdateTime(other.getUpdateTime());
}
internalGetMutableLabels().mergeFrom(other.internalGetLabels());
bitField0_ |= 0x00000008;
if (!other.getDisplayName().isEmpty()) {
displayName_ = other.displayName_;
bitField0_ |= 0x00000010;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
bitField0_ |= 0x00000020;
onChanged();
}
if (other.hasApplicationConfigs()) {
mergeApplicationConfigs(other.getApplicationConfigs());
}
if (other.hasRuntimeInfo()) {
mergeRuntimeInfo(other.getRuntimeInfo());
}
if (other.state_ != 0) {
setStateValue(other.getStateValue());
}
if (other.billingMode_ != 0) {
setBillingModeValue(other.getBillingModeValue());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34:
{
com.google.protobuf.MapEntry labels__ =
input.readMessage(
LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
extensionRegistry);
internalGetMutableLabels()
.getMutableMap()
.put(labels__.getKey(), labels__.getValue());
bitField0_ |= 0x00000008;
break;
} // case 34
case 42:
{
displayName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
case 50:
{
description_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 50
case 58:
{
input.readMessage(
getApplicationConfigsFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000040;
break;
} // case 58
case 66:
{
input.readMessage(getRuntimeInfoFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000080;
break;
} // case 66
case 72:
{
state_ = input.readEnum();
bitField0_ |= 0x00000100;
break;
} // case 72
case 96:
{
billingMode_ = input.readEnum();
bitField0_ |= 0x00000200;
break;
} // case 96
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
*
*
*
* name of resource
*
*
* string name = 1;
*
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* name of resource
*
*
* string name = 1;
*
* @return The bytes for name.
*/
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* name of resource
*
*
* string name = 1;
*
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* name of resource
*
*
* string name = 1;
*
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* name of resource
*
*
* string name = 1;
*
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.protobuf.Timestamp createTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
createTimeBuilder_;
/**
*
*
*
* Output only. [Output only] Create timestamp
*
*
*
* .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the createTime field is set.
*/
public boolean hasCreateTime() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Output only. [Output only] Create timestamp
*
*
*
* .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The createTime.
*/
public com.google.protobuf.Timestamp getCreateTime() {
if (createTimeBuilder_ == null) {
return createTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: createTime_;
} else {
return createTimeBuilder_.getMessage();
}
}
/**
*
*
*
* Output only. [Output only] Create timestamp
*
*
*
* .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setCreateTime(com.google.protobuf.Timestamp value) {
if (createTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
createTime_ = value;
} else {
createTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Output only. [Output only] Create timestamp
*
*
*
* .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (createTimeBuilder_ == null) {
createTime_ = builderForValue.build();
} else {
createTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Output only. [Output only] Create timestamp
*
*
*
* .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
if (createTimeBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)
&& createTime_ != null
&& createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getCreateTimeBuilder().mergeFrom(value);
} else {
createTime_ = value;
}
} else {
createTimeBuilder_.mergeFrom(value);
}
if (createTime_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
*
*
* Output only. [Output only] Create timestamp
*
*
*
* .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearCreateTime() {
bitField0_ = (bitField0_ & ~0x00000002);
createTime_ = null;
if (createTimeBuilder_ != null) {
createTimeBuilder_.dispose();
createTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Output only. [Output only] Create timestamp
*
*
*
* .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getCreateTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* Output only. [Output only] Create timestamp
*
*
*
* .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
if (createTimeBuilder_ != null) {
return createTimeBuilder_.getMessageOrBuilder();
} else {
return createTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: createTime_;
}
}
/**
*
*
*
* Output only. [Output only] Create timestamp
*
*
*
* .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getCreateTimeFieldBuilder() {
if (createTimeBuilder_ == null) {
createTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getCreateTime(), getParentForChildren(), isClean());
createTime_ = null;
}
return createTimeBuilder_;
}
private com.google.protobuf.Timestamp updateTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
updateTimeBuilder_;
/**
*
*
*
* Output only. [Output only] Update timestamp
*
*
*
* .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the updateTime field is set.
*/
public boolean hasUpdateTime() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* Output only. [Output only] Update timestamp
*
*
*
* .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The updateTime.
*/
public com.google.protobuf.Timestamp getUpdateTime() {
if (updateTimeBuilder_ == null) {
return updateTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: updateTime_;
} else {
return updateTimeBuilder_.getMessage();
}
}
/**
*
*
*
* Output only. [Output only] Update timestamp
*
*
*
* .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
if (updateTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
updateTime_ = value;
} else {
updateTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Output only. [Output only] Update timestamp
*
*
*
* .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (updateTimeBuilder_ == null) {
updateTime_ = builderForValue.build();
} else {
updateTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Output only. [Output only] Update timestamp
*
*
*
* .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
if (updateTimeBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)
&& updateTime_ != null
&& updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getUpdateTimeBuilder().mergeFrom(value);
} else {
updateTime_ = value;
}
} else {
updateTimeBuilder_.mergeFrom(value);
}
if (updateTime_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
*
*
* Output only. [Output only] Update timestamp
*
*
*
* .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearUpdateTime() {
bitField0_ = (bitField0_ & ~0x00000004);
updateTime_ = null;
if (updateTimeBuilder_ != null) {
updateTimeBuilder_.dispose();
updateTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Output only. [Output only] Update timestamp
*
*
*
* .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getUpdateTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* Output only. [Output only] Update timestamp
*
*
*
* .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
if (updateTimeBuilder_ != null) {
return updateTimeBuilder_.getMessageOrBuilder();
} else {
return updateTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: updateTime_;
}
}
/**
*
*
*
* Output only. [Output only] Update timestamp
*
*
*
* .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getUpdateTimeFieldBuilder() {
if (updateTimeBuilder_ == null) {
updateTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getUpdateTime(), getParentForChildren(), isClean());
updateTime_ = null;
}
return updateTimeBuilder_;
}
private com.google.protobuf.MapField labels_;
private com.google.protobuf.MapField internalGetLabels() {
if (labels_ == null) {
return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
}
return labels_;
}
private com.google.protobuf.MapField
internalGetMutableLabels() {
if (labels_ == null) {
labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
}
if (!labels_.isMutable()) {
labels_ = labels_.copy();
}
bitField0_ |= 0x00000008;
onChanged();
return labels_;
}
public int getLabelsCount() {
return internalGetLabels().getMap().size();
}
/**
*
*
*
* Labels as key value pairs
*
*
* map<string, string> labels = 4;
*/
@java.lang.Override
public boolean containsLabels(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetLabels().getMap().containsKey(key);
}
/** Use {@link #getLabelsMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getLabels() {
return getLabelsMap();
}
/**
*
*
*
* Labels as key value pairs
*
*
* map<string, string> labels = 4;
*/
@java.lang.Override
public java.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
*
*
*
* Labels as key value pairs
*
*
* map<string, string> labels = 4;
*/
@java.lang.Override
public /* nullable */ java.lang.String getLabelsOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
*
*
* Labels as key value pairs
*
*
* map<string, string> labels = 4;
*/
@java.lang.Override
public java.lang.String getLabelsOrThrow(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetLabels().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearLabels() {
bitField0_ = (bitField0_ & ~0x00000008);
internalGetMutableLabels().getMutableMap().clear();
return this;
}
/**
*
*
*
* Labels as key value pairs
*
*
* map<string, string> labels = 4;
*/
public Builder removeLabels(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
internalGetMutableLabels().getMutableMap().remove(key);
return this;
}
/** Use alternate mutation accessors instead. */
@java.lang.Deprecated
public java.util.Map getMutableLabels() {
bitField0_ |= 0x00000008;
return internalGetMutableLabels().getMutableMap();
}
/**
*
*
*
* Labels as key value pairs
*
*
* map<string, string> labels = 4;
*/
public Builder putLabels(java.lang.String key, java.lang.String value) {
if (key == null) {
throw new NullPointerException("map key");
}
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableLabels().getMutableMap().put(key, value);
bitField0_ |= 0x00000008;
return this;
}
/**
*
*
*
* Labels as key value pairs
*
*
* map<string, string> labels = 4;
*/
public Builder putAllLabels(java.util.Map values) {
internalGetMutableLabels().getMutableMap().putAll(values);
bitField0_ |= 0x00000008;
return this;
}
private java.lang.Object displayName_ = "";
/**
*
*
*
* Required. A user friendly display name for the solution.
*
*
* string display_name = 5 [(.google.api.field_behavior) = REQUIRED];
*
* @return The displayName.
*/
public java.lang.String getDisplayName() {
java.lang.Object ref = displayName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
displayName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Required. A user friendly display name for the solution.
*
*
* string display_name = 5 [(.google.api.field_behavior) = REQUIRED];
*
* @return The bytes for displayName.
*/
public com.google.protobuf.ByteString getDisplayNameBytes() {
java.lang.Object ref = displayName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
displayName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Required. A user friendly display name for the solution.
*
*
* string display_name = 5 [(.google.api.field_behavior) = REQUIRED];
*
* @param value The displayName to set.
* @return This builder for chaining.
*/
public Builder setDisplayName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
displayName_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* Required. A user friendly display name for the solution.
*
*
* string display_name = 5 [(.google.api.field_behavior) = REQUIRED];
*
* @return This builder for chaining.
*/
public Builder clearDisplayName() {
displayName_ = getDefaultInstance().getDisplayName();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
*
*
* Required. A user friendly display name for the solution.
*
*
* string display_name = 5 [(.google.api.field_behavior) = REQUIRED];
*
* @param value The bytes for displayName to set.
* @return This builder for chaining.
*/
public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
displayName_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
*
*
* A description for this application.
*
*
* string description = 6;
*
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* A description for this application.
*
*
* string description = 6;
*
* @return The bytes for description.
*/
public com.google.protobuf.ByteString getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* A description for this application.
*
*
* string description = 6;
*
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* A description for this application.
*
*
* string description = 6;
*
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
*
*
*
* A description for this application.
*
*
* string description = 6;
*
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
private com.google.cloud.visionai.v1.ApplicationConfigs applicationConfigs_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.ApplicationConfigs,
com.google.cloud.visionai.v1.ApplicationConfigs.Builder,
com.google.cloud.visionai.v1.ApplicationConfigsOrBuilder>
applicationConfigsBuilder_;
/**
*
*
*
* Application graph configuration.
*
*
* .google.cloud.visionai.v1.ApplicationConfigs application_configs = 7;
*
* @return Whether the applicationConfigs field is set.
*/
public boolean hasApplicationConfigs() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
*
*
* Application graph configuration.
*
*
* .google.cloud.visionai.v1.ApplicationConfigs application_configs = 7;
*
* @return The applicationConfigs.
*/
public com.google.cloud.visionai.v1.ApplicationConfigs getApplicationConfigs() {
if (applicationConfigsBuilder_ == null) {
return applicationConfigs_ == null
? com.google.cloud.visionai.v1.ApplicationConfigs.getDefaultInstance()
: applicationConfigs_;
} else {
return applicationConfigsBuilder_.getMessage();
}
}
/**
*
*
*
* Application graph configuration.
*
*
* .google.cloud.visionai.v1.ApplicationConfigs application_configs = 7;
*/
public Builder setApplicationConfigs(com.google.cloud.visionai.v1.ApplicationConfigs value) {
if (applicationConfigsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
applicationConfigs_ = value;
} else {
applicationConfigsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*
*
* Application graph configuration.
*
*
* .google.cloud.visionai.v1.ApplicationConfigs application_configs = 7;
*/
public Builder setApplicationConfigs(
com.google.cloud.visionai.v1.ApplicationConfigs.Builder builderForValue) {
if (applicationConfigsBuilder_ == null) {
applicationConfigs_ = builderForValue.build();
} else {
applicationConfigsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*
*
* Application graph configuration.
*
*
* .google.cloud.visionai.v1.ApplicationConfigs application_configs = 7;
*/
public Builder mergeApplicationConfigs(com.google.cloud.visionai.v1.ApplicationConfigs value) {
if (applicationConfigsBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0)
&& applicationConfigs_ != null
&& applicationConfigs_
!= com.google.cloud.visionai.v1.ApplicationConfigs.getDefaultInstance()) {
getApplicationConfigsBuilder().mergeFrom(value);
} else {
applicationConfigs_ = value;
}
} else {
applicationConfigsBuilder_.mergeFrom(value);
}
if (applicationConfigs_ != null) {
bitField0_ |= 0x00000040;
onChanged();
}
return this;
}
/**
*
*
*
* Application graph configuration.
*
*
* .google.cloud.visionai.v1.ApplicationConfigs application_configs = 7;
*/
public Builder clearApplicationConfigs() {
bitField0_ = (bitField0_ & ~0x00000040);
applicationConfigs_ = null;
if (applicationConfigsBuilder_ != null) {
applicationConfigsBuilder_.dispose();
applicationConfigsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Application graph configuration.
*
*
* .google.cloud.visionai.v1.ApplicationConfigs application_configs = 7;
*/
public com.google.cloud.visionai.v1.ApplicationConfigs.Builder getApplicationConfigsBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getApplicationConfigsFieldBuilder().getBuilder();
}
/**
*
*
*
* Application graph configuration.
*
*
* .google.cloud.visionai.v1.ApplicationConfigs application_configs = 7;
*/
public com.google.cloud.visionai.v1.ApplicationConfigsOrBuilder
getApplicationConfigsOrBuilder() {
if (applicationConfigsBuilder_ != null) {
return applicationConfigsBuilder_.getMessageOrBuilder();
} else {
return applicationConfigs_ == null
? com.google.cloud.visionai.v1.ApplicationConfigs.getDefaultInstance()
: applicationConfigs_;
}
}
/**
*
*
*
* Application graph configuration.
*
*
* .google.cloud.visionai.v1.ApplicationConfigs application_configs = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.ApplicationConfigs,
com.google.cloud.visionai.v1.ApplicationConfigs.Builder,
com.google.cloud.visionai.v1.ApplicationConfigsOrBuilder>
getApplicationConfigsFieldBuilder() {
if (applicationConfigsBuilder_ == null) {
applicationConfigsBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.ApplicationConfigs,
com.google.cloud.visionai.v1.ApplicationConfigs.Builder,
com.google.cloud.visionai.v1.ApplicationConfigsOrBuilder>(
getApplicationConfigs(), getParentForChildren(), isClean());
applicationConfigs_ = null;
}
return applicationConfigsBuilder_;
}
private com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo runtimeInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo,
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.Builder,
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfoOrBuilder>
runtimeInfoBuilder_;
/**
*
*
*
* Output only. Application graph runtime info. Only exists when application
* state equals to DEPLOYED.
*
*
*
* .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the runtimeInfo field is set.
*/
public boolean hasRuntimeInfo() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
*
*
* Output only. Application graph runtime info. Only exists when application
* state equals to DEPLOYED.
*
*
*
* .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The runtimeInfo.
*/
public com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo getRuntimeInfo() {
if (runtimeInfoBuilder_ == null) {
return runtimeInfo_ == null
? com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.getDefaultInstance()
: runtimeInfo_;
} else {
return runtimeInfoBuilder_.getMessage();
}
}
/**
*
*
*
* Output only. Application graph runtime info. Only exists when application
* state equals to DEPLOYED.
*
*
*
* .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setRuntimeInfo(
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo value) {
if (runtimeInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
runtimeInfo_ = value;
} else {
runtimeInfoBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*
*
* Output only. Application graph runtime info. Only exists when application
* state equals to DEPLOYED.
*
*
*
* .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setRuntimeInfo(
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.Builder builderForValue) {
if (runtimeInfoBuilder_ == null) {
runtimeInfo_ = builderForValue.build();
} else {
runtimeInfoBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*
*
* Output only. Application graph runtime info. Only exists when application
* state equals to DEPLOYED.
*
*
*
* .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder mergeRuntimeInfo(
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo value) {
if (runtimeInfoBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0)
&& runtimeInfo_ != null
&& runtimeInfo_
!= com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo
.getDefaultInstance()) {
getRuntimeInfoBuilder().mergeFrom(value);
} else {
runtimeInfo_ = value;
}
} else {
runtimeInfoBuilder_.mergeFrom(value);
}
if (runtimeInfo_ != null) {
bitField0_ |= 0x00000080;
onChanged();
}
return this;
}
/**
*
*
*
* Output only. Application graph runtime info. Only exists when application
* state equals to DEPLOYED.
*
*
*
* .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearRuntimeInfo() {
bitField0_ = (bitField0_ & ~0x00000080);
runtimeInfo_ = null;
if (runtimeInfoBuilder_ != null) {
runtimeInfoBuilder_.dispose();
runtimeInfoBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Output only. Application graph runtime info. Only exists when application
* state equals to DEPLOYED.
*
*
*
* .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.Builder
getRuntimeInfoBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getRuntimeInfoFieldBuilder().getBuilder();
}
/**
*
*
*
* Output only. Application graph runtime info. Only exists when application
* state equals to DEPLOYED.
*
*
*
* .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfoOrBuilder
getRuntimeInfoOrBuilder() {
if (runtimeInfoBuilder_ != null) {
return runtimeInfoBuilder_.getMessageOrBuilder();
} else {
return runtimeInfo_ == null
? com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.getDefaultInstance()
: runtimeInfo_;
}
}
/**
*
*
*
* Output only. Application graph runtime info. Only exists when application
* state equals to DEPLOYED.
*
*
*
* .google.cloud.visionai.v1.Application.ApplicationRuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo,
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.Builder,
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfoOrBuilder>
getRuntimeInfoFieldBuilder() {
if (runtimeInfoBuilder_ == null) {
runtimeInfoBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo,
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfo.Builder,
com.google.cloud.visionai.v1.Application.ApplicationRuntimeInfoOrBuilder>(
getRuntimeInfo(), getParentForChildren(), isClean());
runtimeInfo_ = null;
}
return runtimeInfoBuilder_;
}
private int state_ = 0;
/**
*
*
*
* Output only. State of the application.
*
*
*
* .google.cloud.visionai.v1.Application.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override
public int getStateValue() {
return state_;
}
/**
*
*
*
* Output only. State of the application.
*
*
*
* .google.cloud.visionai.v1.Application.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param value The enum numeric value on the wire for state to set.
* @return This builder for chaining.
*/
public Builder setStateValue(int value) {
state_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
*
*
* Output only. State of the application.
*
*
*
* .google.cloud.visionai.v1.Application.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The state.
*/
@java.lang.Override
public com.google.cloud.visionai.v1.Application.State getState() {
com.google.cloud.visionai.v1.Application.State result =
com.google.cloud.visionai.v1.Application.State.forNumber(state_);
return result == null ? com.google.cloud.visionai.v1.Application.State.UNRECOGNIZED : result;
}
/**
*
*
*
* Output only. State of the application.
*
*
*
* .google.cloud.visionai.v1.Application.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param value The state to set.
* @return This builder for chaining.
*/
public Builder setState(com.google.cloud.visionai.v1.Application.State value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
state_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* Output only. State of the application.
*
*
*
* .google.cloud.visionai.v1.Application.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return This builder for chaining.
*/
public Builder clearState() {
bitField0_ = (bitField0_ & ~0x00000100);
state_ = 0;
onChanged();
return this;
}
private int billingMode_ = 0;
/**
*
*
*
* Billing mode of the application.
*
*
* .google.cloud.visionai.v1.Application.BillingMode billing_mode = 12;
*
* @return The enum numeric value on the wire for billingMode.
*/
@java.lang.Override
public int getBillingModeValue() {
return billingMode_;
}
/**
*
*
*
* Billing mode of the application.
*
*
* .google.cloud.visionai.v1.Application.BillingMode billing_mode = 12;
*
* @param value The enum numeric value on the wire for billingMode to set.
* @return This builder for chaining.
*/
public Builder setBillingModeValue(int value) {
billingMode_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
*
*
* Billing mode of the application.
*
*
* .google.cloud.visionai.v1.Application.BillingMode billing_mode = 12;
*
* @return The billingMode.
*/
@java.lang.Override
public com.google.cloud.visionai.v1.Application.BillingMode getBillingMode() {
com.google.cloud.visionai.v1.Application.BillingMode result =
com.google.cloud.visionai.v1.Application.BillingMode.forNumber(billingMode_);
return result == null
? com.google.cloud.visionai.v1.Application.BillingMode.UNRECOGNIZED
: result;
}
/**
*
*
*
* Billing mode of the application.
*
*
* .google.cloud.visionai.v1.Application.BillingMode billing_mode = 12;
*
* @param value The billingMode to set.
* @return This builder for chaining.
*/
public Builder setBillingMode(com.google.cloud.visionai.v1.Application.BillingMode value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000200;
billingMode_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* Billing mode of the application.
*
*
* .google.cloud.visionai.v1.Application.BillingMode billing_mode = 12;
*
* @return This builder for chaining.
*/
public Builder clearBillingMode() {
bitField0_ = (bitField0_ & ~0x00000200);
billingMode_ = 0;
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.Application)
}
// @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.Application)
private static final com.google.cloud.visionai.v1.Application DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.visionai.v1.Application();
}
public static com.google.cloud.visionai.v1.Application getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Application 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.Application getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy