index
int64 | repo_id
string | file_path
string | content
string |
|---|---|---|---|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/pubsub
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/pubsub/v1/NodeStatusPubSub.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/pubsub/v1/node_status.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.pubsub.v1;
/**
* <pre>
* InstanceUsage is a message that represents the usage of a single instance.
* </pre>
*
* Protobuf type {@code chalk.pubsub.v1.NodeStatusPubSub}
*/
public final class NodeStatusPubSub extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.pubsub.v1.NodeStatusPubSub)
NodeStatusPubSubOrBuilder {
private static final long serialVersionUID = 0L;
// Use NodeStatusPubSub.newBuilder() to construct.
private NodeStatusPubSub(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private NodeStatusPubSub() {
team_ = "";
name_ = "";
uid_ = "";
instanceType_ = "";
region_ = "";
zone_ = "";
machineId_ = "";
systemUuid_ = "";
bootId_ = "";
namespace_ = "";
instanceId_ = "";
cluster_ = "";
totalCpu_ = "";
totalMemory_ = "";
allocatableCpu_ = "";
allocatableMemory_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new NodeStatusPubSub();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.pubsub.v1.NodeStatusProto.internal_static_chalk_pubsub_v1_NodeStatusPubSub_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 11:
return internalGetLabels();
case 12:
return internalGetAnnotations();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.pubsub.v1.NodeStatusProto.internal_static_chalk_pubsub_v1_NodeStatusPubSub_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.pubsub.v1.NodeStatusPubSub.class, ai.chalk.protos.chalk.pubsub.v1.NodeStatusPubSub.Builder.class);
}
public static final int TEAM_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object team_ = "";
/**
* <pre>
* The Chalk team name that incurred the usage.
* </pre>
*
* <code>string team = 1 [json_name = "team"];</code>
* @return The team.
*/
@java.lang.Override
public java.lang.String getTeam() {
java.lang.Object ref = team_;
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();
team_ = s;
return s;
}
}
/**
* <pre>
* The Chalk team name that incurred the usage.
* </pre>
*
* <code>string team = 1 [json_name = "team"];</code>
* @return The bytes for team.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTeamBytes() {
java.lang.Object ref = team_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
team_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAME_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
* <pre>
* node.Name
* </pre>
*
* <code>string name = 2 [json_name = "name"];</code>
* @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;
}
}
/**
* <pre>
* node.Name
* </pre>
*
* <code>string name = 2 [json_name = "name"];</code>
* @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 UID_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object uid_ = "";
/**
* <pre>
* node.UID
* </pre>
*
* <code>string uid = 3 [json_name = "uid"];</code>
* @return The uid.
*/
@java.lang.Override
public java.lang.String getUid() {
java.lang.Object ref = uid_;
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();
uid_ = s;
return s;
}
}
/**
* <pre>
* node.UID
* </pre>
*
* <code>string uid = 3 [json_name = "uid"];</code>
* @return The bytes for uid.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUidBytes() {
java.lang.Object ref = uid_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
uid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INSTANCE_TYPE_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object instanceType_ = "";
/**
* <pre>
* node.kubernetes.io/instance-type
* </pre>
*
* <code>string instance_type = 4 [json_name = "instanceType"];</code>
* @return The instanceType.
*/
@java.lang.Override
public java.lang.String getInstanceType() {
java.lang.Object ref = instanceType_;
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();
instanceType_ = s;
return s;
}
}
/**
* <pre>
* node.kubernetes.io/instance-type
* </pre>
*
* <code>string instance_type = 4 [json_name = "instanceType"];</code>
* @return The bytes for instanceType.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstanceTypeBytes() {
java.lang.Object ref = instanceType_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REGION_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object region_ = "";
/**
* <pre>
* topology.kubernetes.io/region
* </pre>
*
* <code>string region = 5 [json_name = "region"];</code>
* @return The region.
*/
@java.lang.Override
public java.lang.String getRegion() {
java.lang.Object ref = region_;
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();
region_ = s;
return s;
}
}
/**
* <pre>
* topology.kubernetes.io/region
* </pre>
*
* <code>string region = 5 [json_name = "region"];</code>
* @return The bytes for region.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRegionBytes() {
java.lang.Object ref = region_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
region_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ZONE_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private volatile java.lang.Object zone_ = "";
/**
* <pre>
* topology.kubernetes.io/zone
* </pre>
*
* <code>string zone = 6 [json_name = "zone"];</code>
* @return The zone.
*/
@java.lang.Override
public java.lang.String getZone() {
java.lang.Object ref = zone_;
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();
zone_ = s;
return s;
}
}
/**
* <pre>
* topology.kubernetes.io/zone
* </pre>
*
* <code>string zone = 6 [json_name = "zone"];</code>
* @return The bytes for zone.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getZoneBytes() {
java.lang.Object ref = zone_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
zone_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CREATION_TIMESTAMP_FIELD_NUMBER = 8;
private long creationTimestamp_ = 0L;
/**
* <pre>
* The time that the instance was created.
* node.CreationTimestamp.Unix()
* </pre>
*
* <code>int64 creation_timestamp = 8 [json_name = "creationTimestamp", (.gen_bq_schema.bigquery) = { ... }</code>
* @return The creationTimestamp.
*/
@java.lang.Override
public long getCreationTimestamp() {
return creationTimestamp_;
}
public static final int DELETION_TIMESTAMP_FIELD_NUMBER = 9;
private long deletionTimestamp_ = 0L;
/**
* <pre>
* node.DeletionTimestamp.Unix()
* The time that the instance was deleted. May be 0 if the instance is still running.
* </pre>
*
* <code>int64 deletion_timestamp = 9 [json_name = "deletionTimestamp", (.gen_bq_schema.bigquery) = { ... }</code>
* @return The deletionTimestamp.
*/
@java.lang.Override
public long getDeletionTimestamp() {
return deletionTimestamp_;
}
public static final int OBSERVED_TIMESTAMP_FIELD_NUMBER = 10;
private long observedTimestamp_ = 0L;
/**
* <pre>
* The time that we polled the instance for usage.
* </pre>
*
* <code>int64 observed_timestamp = 10 [json_name = "observedTimestamp", (.gen_bq_schema.bigquery) = { ... }</code>
* @return The observedTimestamp.
*/
@java.lang.Override
public long getObservedTimestamp() {
return observedTimestamp_;
}
public static final int LABELS_FIELD_NUMBER = 11;
private static final class LabelsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.<java.lang.String, java.lang.String>newDefaultInstance(
ai.chalk.protos.chalk.pubsub.v1.NodeStatusProto.internal_static_chalk_pubsub_v1_NodeStatusPubSub_LabelsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> labels_;
private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetLabels() {
if (labels_ == null) {
return com.google.protobuf.MapField.emptyMapField(
LabelsDefaultEntryHolder.defaultEntry);
}
return labels_;
}
public int getLabelsCount() {
return internalGetLabels().getMap().size();
}
/**
* <pre>
* node.Labels
* </pre>
*
* <code>map<string, string> labels = 11 [json_name = "labels"];</code>
*/
@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<java.lang.String, java.lang.String> getLabels() {
return getLabelsMap();
}
/**
* <pre>
* node.Labels
* </pre>
*
* <code>map<string, string> labels = 11 [json_name = "labels"];</code>
*/
@java.lang.Override
public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {
return internalGetLabels().getMap();
}
/**
* <pre>
* node.Labels
* </pre>
*
* <code>map<string, string> labels = 11 [json_name = "labels"];</code>
*/
@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<java.lang.String, java.lang.String> map =
internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <pre>
* node.Labels
* </pre>
*
* <code>map<string, string> labels = 11 [json_name = "labels"];</code>
*/
@java.lang.Override
public java.lang.String getLabelsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetLabels().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int ANNOTATIONS_FIELD_NUMBER = 12;
private static final class AnnotationsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.<java.lang.String, java.lang.String>newDefaultInstance(
ai.chalk.protos.chalk.pubsub.v1.NodeStatusProto.internal_static_chalk_pubsub_v1_NodeStatusPubSub_AnnotationsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> annotations_;
private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetAnnotations() {
if (annotations_ == null) {
return com.google.protobuf.MapField.emptyMapField(
AnnotationsDefaultEntryHolder.defaultEntry);
}
return annotations_;
}
public int getAnnotationsCount() {
return internalGetAnnotations().getMap().size();
}
/**
* <pre>
* node.Annotations
* </pre>
*
* <code>map<string, string> annotations = 12 [json_name = "annotations"];</code>
*/
@java.lang.Override
public boolean containsAnnotations(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetAnnotations().getMap().containsKey(key);
}
/**
* Use {@link #getAnnotationsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map<java.lang.String, java.lang.String> getAnnotations() {
return getAnnotationsMap();
}
/**
* <pre>
* node.Annotations
* </pre>
*
* <code>map<string, string> annotations = 12 [json_name = "annotations"];</code>
*/
@java.lang.Override
public java.util.Map<java.lang.String, java.lang.String> getAnnotationsMap() {
return internalGetAnnotations().getMap();
}
/**
* <pre>
* node.Annotations
* </pre>
*
* <code>map<string, string> annotations = 12 [json_name = "annotations"];</code>
*/
@java.lang.Override
public /* nullable */
java.lang.String getAnnotationsOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetAnnotations().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <pre>
* node.Annotations
* </pre>
*
* <code>map<string, string> annotations = 12 [json_name = "annotations"];</code>
*/
@java.lang.Override
public java.lang.String getAnnotationsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetAnnotations().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int MACHINE_ID_FIELD_NUMBER = 13;
@SuppressWarnings("serial")
private volatile java.lang.Object machineId_ = "";
/**
* <code>string machine_id = 13 [json_name = "machineId"];</code>
* @return The machineId.
*/
@java.lang.Override
public java.lang.String getMachineId() {
java.lang.Object ref = machineId_;
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();
machineId_ = s;
return s;
}
}
/**
* <code>string machine_id = 13 [json_name = "machineId"];</code>
* @return The bytes for machineId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMachineIdBytes() {
java.lang.Object ref = machineId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
machineId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SYSTEM_UUID_FIELD_NUMBER = 14;
@SuppressWarnings("serial")
private volatile java.lang.Object systemUuid_ = "";
/**
* <code>string system_uuid = 14 [json_name = "systemUuid"];</code>
* @return The systemUuid.
*/
@java.lang.Override
public java.lang.String getSystemUuid() {
java.lang.Object ref = systemUuid_;
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();
systemUuid_ = s;
return s;
}
}
/**
* <code>string system_uuid = 14 [json_name = "systemUuid"];</code>
* @return The bytes for systemUuid.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSystemUuidBytes() {
java.lang.Object ref = systemUuid_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
systemUuid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BOOT_ID_FIELD_NUMBER = 15;
@SuppressWarnings("serial")
private volatile java.lang.Object bootId_ = "";
/**
* <code>string boot_id = 15 [json_name = "bootId"];</code>
* @return The bootId.
*/
@java.lang.Override
public java.lang.String getBootId() {
java.lang.Object ref = bootId_;
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();
bootId_ = s;
return s;
}
}
/**
* <code>string boot_id = 15 [json_name = "bootId"];</code>
* @return The bytes for bootId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBootIdBytes() {
java.lang.Object ref = bootId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
bootId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int UNSCHEDULABLE_FIELD_NUMBER = 16;
private boolean unschedulable_ = false;
/**
* <code>bool unschedulable = 16 [json_name = "unschedulable"];</code>
* @return The unschedulable.
*/
@java.lang.Override
public boolean getUnschedulable() {
return unschedulable_;
}
public static final int NAMESPACE_FIELD_NUMBER = 17;
@SuppressWarnings("serial")
private volatile java.lang.Object namespace_ = "";
/**
* <code>string namespace = 17 [json_name = "namespace"];</code>
* @return The namespace.
*/
@java.lang.Override
public java.lang.String getNamespace() {
java.lang.Object ref = namespace_;
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();
namespace_ = s;
return s;
}
}
/**
* <code>string namespace = 17 [json_name = "namespace"];</code>
* @return The bytes for namespace.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNamespaceBytes() {
java.lang.Object ref = namespace_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
namespace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INSTANCE_ID_FIELD_NUMBER = 18;
@SuppressWarnings("serial")
private volatile java.lang.Object instanceId_ = "";
/**
* <pre>
* container.googleapis.com/instance_id
* </pre>
*
* <code>string instance_id = 18 [json_name = "instanceId"];</code>
* @return The instanceId.
*/
@java.lang.Override
public java.lang.String getInstanceId() {
java.lang.Object ref = instanceId_;
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();
instanceId_ = s;
return s;
}
}
/**
* <pre>
* container.googleapis.com/instance_id
* </pre>
*
* <code>string instance_id = 18 [json_name = "instanceId"];</code>
* @return The bytes for instanceId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstanceIdBytes() {
java.lang.Object ref = instanceId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CLUSTER_FIELD_NUMBER = 19;
@SuppressWarnings("serial")
private volatile java.lang.Object cluster_ = "";
/**
* <code>string cluster = 19 [json_name = "cluster"];</code>
* @return The cluster.
*/
@java.lang.Override
public java.lang.String getCluster() {
java.lang.Object ref = cluster_;
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();
cluster_ = s;
return s;
}
}
/**
* <code>string cluster = 19 [json_name = "cluster"];</code>
* @return The bytes for cluster.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getClusterBytes() {
java.lang.Object ref = cluster_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cluster_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TOTAL_CPU_FIELD_NUMBER = 20;
@SuppressWarnings("serial")
private volatile java.lang.Object totalCpu_ = "";
/**
* <code>string total_cpu = 20 [json_name = "totalCpu"];</code>
* @return The totalCpu.
*/
@java.lang.Override
public java.lang.String getTotalCpu() {
java.lang.Object ref = totalCpu_;
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();
totalCpu_ = s;
return s;
}
}
/**
* <code>string total_cpu = 20 [json_name = "totalCpu"];</code>
* @return The bytes for totalCpu.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTotalCpuBytes() {
java.lang.Object ref = totalCpu_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
totalCpu_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TOTAL_MEMORY_FIELD_NUMBER = 21;
@SuppressWarnings("serial")
private volatile java.lang.Object totalMemory_ = "";
/**
* <code>string total_memory = 21 [json_name = "totalMemory"];</code>
* @return The totalMemory.
*/
@java.lang.Override
public java.lang.String getTotalMemory() {
java.lang.Object ref = totalMemory_;
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();
totalMemory_ = s;
return s;
}
}
/**
* <code>string total_memory = 21 [json_name = "totalMemory"];</code>
* @return The bytes for totalMemory.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTotalMemoryBytes() {
java.lang.Object ref = totalMemory_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
totalMemory_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ALLOCATABLE_CPU_FIELD_NUMBER = 22;
@SuppressWarnings("serial")
private volatile java.lang.Object allocatableCpu_ = "";
/**
* <code>string allocatable_cpu = 22 [json_name = "allocatableCpu"];</code>
* @return The allocatableCpu.
*/
@java.lang.Override
public java.lang.String getAllocatableCpu() {
java.lang.Object ref = allocatableCpu_;
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();
allocatableCpu_ = s;
return s;
}
}
/**
* <code>string allocatable_cpu = 22 [json_name = "allocatableCpu"];</code>
* @return The bytes for allocatableCpu.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAllocatableCpuBytes() {
java.lang.Object ref = allocatableCpu_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
allocatableCpu_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ALLOCATABLE_MEMORY_FIELD_NUMBER = 23;
@SuppressWarnings("serial")
private volatile java.lang.Object allocatableMemory_ = "";
/**
* <code>string allocatable_memory = 23 [json_name = "allocatableMemory"];</code>
* @return The allocatableMemory.
*/
@java.lang.Override
public java.lang.String getAllocatableMemory() {
java.lang.Object ref = allocatableMemory_;
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();
allocatableMemory_ = s;
return s;
}
}
/**
* <code>string allocatable_memory = 23 [json_name = "allocatableMemory"];</code>
* @return The bytes for allocatableMemory.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAllocatableMemoryBytes() {
java.lang.Object ref = allocatableMemory_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
allocatableMemory_ = 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(team_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, team_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, uid_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceType_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, instanceType_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, region_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, zone_);
}
if (creationTimestamp_ != 0L) {
output.writeInt64(8, creationTimestamp_);
}
if (deletionTimestamp_ != 0L) {
output.writeInt64(9, deletionTimestamp_);
}
if (observedTimestamp_ != 0L) {
output.writeInt64(10, observedTimestamp_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetLabels(),
LabelsDefaultEntryHolder.defaultEntry,
11);
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetAnnotations(),
AnnotationsDefaultEntryHolder.defaultEntry,
12);
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 13, machineId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(systemUuid_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 14, systemUuid_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bootId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 15, bootId_);
}
if (unschedulable_ != false) {
output.writeBool(16, unschedulable_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 17, namespace_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 18, instanceId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cluster_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 19, cluster_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(totalCpu_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 20, totalCpu_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(totalMemory_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 21, totalMemory_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(allocatableCpu_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 22, allocatableCpu_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(allocatableMemory_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 23, allocatableMemory_);
}
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(team_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, team_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uid_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceType_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, instanceType_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, region_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, zone_);
}
if (creationTimestamp_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(8, creationTimestamp_);
}
if (deletionTimestamp_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(9, deletionTimestamp_);
}
if (observedTimestamp_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(10, observedTimestamp_);
}
for (java.util.Map.Entry<java.lang.String, java.lang.String> entry
: internalGetLabels().getMap().entrySet()) {
com.google.protobuf.MapEntry<java.lang.String, java.lang.String>
labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, labels__);
}
for (java.util.Map.Entry<java.lang.String, java.lang.String> entry
: internalGetAnnotations().getMap().entrySet()) {
com.google.protobuf.MapEntry<java.lang.String, java.lang.String>
annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, annotations__);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, machineId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(systemUuid_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, systemUuid_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bootId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, bootId_);
}
if (unschedulable_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(16, unschedulable_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, namespace_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, instanceId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cluster_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, cluster_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(totalCpu_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, totalCpu_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(totalMemory_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, totalMemory_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(allocatableCpu_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, allocatableCpu_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(allocatableMemory_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, allocatableMemory_);
}
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 ai.chalk.protos.chalk.pubsub.v1.NodeStatusPubSub)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.pubsub.v1.NodeStatusPubSub other = (ai.chalk.protos.chalk.pubsub.v1.NodeStatusPubSub) obj;
if (!getTeam()
.equals(other.getTeam())) return false;
if (!getName()
.equals(other.getName())) return false;
if (!getUid()
.equals(other.getUid())) return false;
if (!getInstanceType()
.equals(other.getInstanceType())) return false;
if (!getRegion()
.equals(other.getRegion())) return false;
if (!getZone()
.equals(other.getZone())) return false;
if (getCreationTimestamp()
!= other.getCreationTimestamp()) return false;
if (getDeletionTimestamp()
!= other.getDeletionTimestamp()) return false;
if (getObservedTimestamp()
!= other.getObservedTimestamp()) return false;
if (!internalGetLabels().equals(
other.internalGetLabels())) return false;
if (!internalGetAnnotations().equals(
other.internalGetAnnotations())) return false;
if (!getMachineId()
.equals(other.getMachineId())) return false;
if (!getSystemUuid()
.equals(other.getSystemUuid())) return false;
if (!getBootId()
.equals(other.getBootId())) return false;
if (getUnschedulable()
!= other.getUnschedulable()) return false;
if (!getNamespace()
.equals(other.getNamespace())) return false;
if (!getInstanceId()
.equals(other.getInstanceId())) return false;
if (!getCluster()
.equals(other.getCluster())) return false;
if (!getTotalCpu()
.equals(other.getTotalCpu())) return false;
if (!getTotalMemory()
.equals(other.getTotalMemory())) return false;
if (!getAllocatableCpu()
.equals(other.getAllocatableCpu())) return false;
if (!getAllocatableMemory()
.equals(other.getAllocatableMemory())) 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) + TEAM_FIELD_NUMBER;
hash = (53 * hash) + getTeam().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + UID_FIELD_NUMBER;
hash = (53 * hash) + getUid().hashCode();
hash = (37 * hash) + INSTANCE_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getInstanceType().hashCode();
hash = (37 * hash) + REGION_FIELD_NUMBER;
hash = (53 * hash) + getRegion().hashCode();
hash = (37 * hash) + ZONE_FIELD_NUMBER;
hash = (53 * hash) + getZone().hashCode();
hash = (37 * hash) + CREATION_TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCreationTimestamp());
hash = (37 * hash) + DELETION_TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getDeletionTimestamp());
hash = (37 * hash) + OBSERVED_TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getObservedTimestamp());
if (!internalGetLabels().getMap().isEmpty()) {
hash = (37 * hash) + LABELS_FIELD_NUMBER;
hash = (53 * hash) + internalGetLabels().hashCode();
}
if (!internalGetAnnotations().getMap().isEmpty()) {
hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER;
hash = (53 * hash) + internalGetAnnotations().hashCode();
}
hash = (37 * hash) + MACHINE_ID_FIELD_NUMBER;
hash = (53 * hash) + getMachineId().hashCode();
hash = (37 * hash) + SYSTEM_UUID_FIELD_NUMBER;
hash = (53 * hash) + getSystemUuid().hashCode();
hash = (37 * hash) + BOOT_ID_FIELD_NUMBER;
hash = (53 * hash) + getBootId().hashCode();
hash = (37 * hash) + UNSCHEDULABLE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getUnschedulable());
hash = (37 * hash) + NAMESPACE_FIELD_NUMBER;
hash = (53 * hash) + getNamespace().hashCode();
hash = (37 * hash) + INSTANCE_ID_FIELD_NUMBER;
hash = (53 * hash) + getInstanceId().hashCode();
hash = (37 * hash) + CLUSTER_FIELD_NUMBER;
hash = (53 * hash) + getCluster().hashCode();
hash = (37 * hash) + TOTAL_CPU_FIELD_NUMBER;
hash = (53 * hash) + getTotalCpu().hashCode();
hash = (37 * hash) + TOTAL_MEMORY_FIELD_NUMBER;
hash = (53 * hash) + getTotalMemory().hashCode();
hash = (37 * hash) + ALLOCATABLE_CPU_FIELD_NUMBER;
hash = (53 * hash) + getAllocatableCpu().hashCode();
hash = (37 * hash) + ALLOCATABLE_MEMORY_FIELD_NUMBER;
hash = (53 * hash) + getAllocatableMemory().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.pubsub.v1.NodeStatusPubSub parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.NodeStatusPubSub parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.NodeStatusPubSub parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.NodeStatusPubSub parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.NodeStatusPubSub parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.NodeStatusPubSub parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.NodeStatusPubSub parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.NodeStatusPubSub 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 ai.chalk.protos.chalk.pubsub.v1.NodeStatusPubSub parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.NodeStatusPubSub 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 ai.chalk.protos.chalk.pubsub.v1.NodeStatusPubSub parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.NodeStatusPubSub 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(ai.chalk.protos.chalk.pubsub.v1.NodeStatusPubSub 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;
}
/**
* <pre>
* InstanceUsage is a message that represents the usage of a single instance.
* </pre>
*
* Protobuf type {@code chalk.pubsub.v1.NodeStatusPubSub}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.pubsub.v1.NodeStatusPubSub)
ai.chalk.protos.chalk.pubsub.v1.NodeStatusPubSubOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.pubsub.v1.NodeStatusProto.internal_static_chalk_pubsub_v1_NodeStatusPubSub_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 11:
return internalGetLabels();
case 12:
return internalGetAnnotations();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
int number) {
switch (number) {
case 11:
return internalGetMutableLabels();
case 12:
return internalGetMutableAnnotations();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.pubsub.v1.NodeStatusProto.internal_static_chalk_pubsub_v1_NodeStatusPubSub_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.pubsub.v1.NodeStatusPubSub.class, ai.chalk.protos.chalk.pubsub.v1.NodeStatusPubSub.Builder.class);
}
// Construct using ai.chalk.protos.chalk.pubsub.v1.NodeStatusPubSub.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
team_ = "";
name_ = "";
uid_ = "";
instanceType_ = "";
region_ = "";
zone_ = "";
creationTimestamp_ = 0L;
deletionTimestamp_ = 0L;
observedTimestamp_ = 0L;
internalGetMutableLabels().clear();
internalGetMutableAnnotations().clear();
machineId_ = "";
systemUuid_ = "";
bootId_ = "";
unschedulable_ = false;
namespace_ = "";
instanceId_ = "";
cluster_ = "";
totalCpu_ = "";
totalMemory_ = "";
allocatableCpu_ = "";
allocatableMemory_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.pubsub.v1.NodeStatusProto.internal_static_chalk_pubsub_v1_NodeStatusPubSub_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.NodeStatusPubSub getDefaultInstanceForType() {
return ai.chalk.protos.chalk.pubsub.v1.NodeStatusPubSub.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.NodeStatusPubSub build() {
ai.chalk.protos.chalk.pubsub.v1.NodeStatusPubSub result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.NodeStatusPubSub buildPartial() {
ai.chalk.protos.chalk.pubsub.v1.NodeStatusPubSub result = new ai.chalk.protos.chalk.pubsub.v1.NodeStatusPubSub(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ai.chalk.protos.chalk.pubsub.v1.NodeStatusPubSub result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.team_ = team_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.uid_ = uid_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.instanceType_ = instanceType_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.region_ = region_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.zone_ = zone_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.creationTimestamp_ = creationTimestamp_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.deletionTimestamp_ = deletionTimestamp_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.observedTimestamp_ = observedTimestamp_;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.labels_ = internalGetLabels();
result.labels_.makeImmutable();
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.annotations_ = internalGetAnnotations();
result.annotations_.makeImmutable();
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.machineId_ = machineId_;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
result.systemUuid_ = systemUuid_;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.bootId_ = bootId_;
}
if (((from_bitField0_ & 0x00004000) != 0)) {
result.unschedulable_ = unschedulable_;
}
if (((from_bitField0_ & 0x00008000) != 0)) {
result.namespace_ = namespace_;
}
if (((from_bitField0_ & 0x00010000) != 0)) {
result.instanceId_ = instanceId_;
}
if (((from_bitField0_ & 0x00020000) != 0)) {
result.cluster_ = cluster_;
}
if (((from_bitField0_ & 0x00040000) != 0)) {
result.totalCpu_ = totalCpu_;
}
if (((from_bitField0_ & 0x00080000) != 0)) {
result.totalMemory_ = totalMemory_;
}
if (((from_bitField0_ & 0x00100000) != 0)) {
result.allocatableCpu_ = allocatableCpu_;
}
if (((from_bitField0_ & 0x00200000) != 0)) {
result.allocatableMemory_ = allocatableMemory_;
}
}
@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 ai.chalk.protos.chalk.pubsub.v1.NodeStatusPubSub) {
return mergeFrom((ai.chalk.protos.chalk.pubsub.v1.NodeStatusPubSub)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.pubsub.v1.NodeStatusPubSub other) {
if (other == ai.chalk.protos.chalk.pubsub.v1.NodeStatusPubSub.getDefaultInstance()) return this;
if (!other.getTeam().isEmpty()) {
team_ = other.team_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getUid().isEmpty()) {
uid_ = other.uid_;
bitField0_ |= 0x00000004;
onChanged();
}
if (!other.getInstanceType().isEmpty()) {
instanceType_ = other.instanceType_;
bitField0_ |= 0x00000008;
onChanged();
}
if (!other.getRegion().isEmpty()) {
region_ = other.region_;
bitField0_ |= 0x00000010;
onChanged();
}
if (!other.getZone().isEmpty()) {
zone_ = other.zone_;
bitField0_ |= 0x00000020;
onChanged();
}
if (other.getCreationTimestamp() != 0L) {
setCreationTimestamp(other.getCreationTimestamp());
}
if (other.getDeletionTimestamp() != 0L) {
setDeletionTimestamp(other.getDeletionTimestamp());
}
if (other.getObservedTimestamp() != 0L) {
setObservedTimestamp(other.getObservedTimestamp());
}
internalGetMutableLabels().mergeFrom(
other.internalGetLabels());
bitField0_ |= 0x00000200;
internalGetMutableAnnotations().mergeFrom(
other.internalGetAnnotations());
bitField0_ |= 0x00000400;
if (!other.getMachineId().isEmpty()) {
machineId_ = other.machineId_;
bitField0_ |= 0x00000800;
onChanged();
}
if (!other.getSystemUuid().isEmpty()) {
systemUuid_ = other.systemUuid_;
bitField0_ |= 0x00001000;
onChanged();
}
if (!other.getBootId().isEmpty()) {
bootId_ = other.bootId_;
bitField0_ |= 0x00002000;
onChanged();
}
if (other.getUnschedulable() != false) {
setUnschedulable(other.getUnschedulable());
}
if (!other.getNamespace().isEmpty()) {
namespace_ = other.namespace_;
bitField0_ |= 0x00008000;
onChanged();
}
if (!other.getInstanceId().isEmpty()) {
instanceId_ = other.instanceId_;
bitField0_ |= 0x00010000;
onChanged();
}
if (!other.getCluster().isEmpty()) {
cluster_ = other.cluster_;
bitField0_ |= 0x00020000;
onChanged();
}
if (!other.getTotalCpu().isEmpty()) {
totalCpu_ = other.totalCpu_;
bitField0_ |= 0x00040000;
onChanged();
}
if (!other.getTotalMemory().isEmpty()) {
totalMemory_ = other.totalMemory_;
bitField0_ |= 0x00080000;
onChanged();
}
if (!other.getAllocatableCpu().isEmpty()) {
allocatableCpu_ = other.allocatableCpu_;
bitField0_ |= 0x00100000;
onChanged();
}
if (!other.getAllocatableMemory().isEmpty()) {
allocatableMemory_ = other.allocatableMemory_;
bitField0_ |= 0x00200000;
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: {
team_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
uid_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
instanceType_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
region_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
zone_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 50
case 64: {
creationTimestamp_ = input.readInt64();
bitField0_ |= 0x00000040;
break;
} // case 64
case 72: {
deletionTimestamp_ = input.readInt64();
bitField0_ |= 0x00000080;
break;
} // case 72
case 80: {
observedTimestamp_ = input.readInt64();
bitField0_ |= 0x00000100;
break;
} // case 80
case 90: {
com.google.protobuf.MapEntry<java.lang.String, java.lang.String>
labels__ = input.readMessage(
LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableLabels().getMutableMap().put(
labels__.getKey(), labels__.getValue());
bitField0_ |= 0x00000200;
break;
} // case 90
case 98: {
com.google.protobuf.MapEntry<java.lang.String, java.lang.String>
annotations__ = input.readMessage(
AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableAnnotations().getMutableMap().put(
annotations__.getKey(), annotations__.getValue());
bitField0_ |= 0x00000400;
break;
} // case 98
case 106: {
machineId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000800;
break;
} // case 106
case 114: {
systemUuid_ = input.readStringRequireUtf8();
bitField0_ |= 0x00001000;
break;
} // case 114
case 122: {
bootId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00002000;
break;
} // case 122
case 128: {
unschedulable_ = input.readBool();
bitField0_ |= 0x00004000;
break;
} // case 128
case 138: {
namespace_ = input.readStringRequireUtf8();
bitField0_ |= 0x00008000;
break;
} // case 138
case 146: {
instanceId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00010000;
break;
} // case 146
case 154: {
cluster_ = input.readStringRequireUtf8();
bitField0_ |= 0x00020000;
break;
} // case 154
case 162: {
totalCpu_ = input.readStringRequireUtf8();
bitField0_ |= 0x00040000;
break;
} // case 162
case 170: {
totalMemory_ = input.readStringRequireUtf8();
bitField0_ |= 0x00080000;
break;
} // case 170
case 178: {
allocatableCpu_ = input.readStringRequireUtf8();
bitField0_ |= 0x00100000;
break;
} // case 178
case 186: {
allocatableMemory_ = input.readStringRequireUtf8();
bitField0_ |= 0x00200000;
break;
} // case 186
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 team_ = "";
/**
* <pre>
* The Chalk team name that incurred the usage.
* </pre>
*
* <code>string team = 1 [json_name = "team"];</code>
* @return The team.
*/
public java.lang.String getTeam() {
java.lang.Object ref = team_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
team_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* The Chalk team name that incurred the usage.
* </pre>
*
* <code>string team = 1 [json_name = "team"];</code>
* @return The bytes for team.
*/
public com.google.protobuf.ByteString
getTeamBytes() {
java.lang.Object ref = team_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
team_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* The Chalk team name that incurred the usage.
* </pre>
*
* <code>string team = 1 [json_name = "team"];</code>
* @param value The team to set.
* @return This builder for chaining.
*/
public Builder setTeam(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
team_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <pre>
* The Chalk team name that incurred the usage.
* </pre>
*
* <code>string team = 1 [json_name = "team"];</code>
* @return This builder for chaining.
*/
public Builder clearTeam() {
team_ = getDefaultInstance().getTeam();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* <pre>
* The Chalk team name that incurred the usage.
* </pre>
*
* <code>string team = 1 [json_name = "team"];</code>
* @param value The bytes for team to set.
* @return This builder for chaining.
*/
public Builder setTeamBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
team_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
* <pre>
* node.Name
* </pre>
*
* <code>string name = 2 [json_name = "name"];</code>
* @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;
}
}
/**
* <pre>
* node.Name
* </pre>
*
* <code>string name = 2 [json_name = "name"];</code>
* @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;
}
}
/**
* <pre>
* node.Name
* </pre>
*
* <code>string name = 2 [json_name = "name"];</code>
* @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_ |= 0x00000002;
onChanged();
return this;
}
/**
* <pre>
* node.Name
* </pre>
*
* <code>string name = 2 [json_name = "name"];</code>
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* <pre>
* node.Name
* </pre>
*
* <code>string name = 2 [json_name = "name"];</code>
* @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_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object uid_ = "";
/**
* <pre>
* node.UID
* </pre>
*
* <code>string uid = 3 [json_name = "uid"];</code>
* @return The uid.
*/
public java.lang.String getUid() {
java.lang.Object ref = uid_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
uid_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* node.UID
* </pre>
*
* <code>string uid = 3 [json_name = "uid"];</code>
* @return The bytes for uid.
*/
public com.google.protobuf.ByteString
getUidBytes() {
java.lang.Object ref = uid_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
uid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* node.UID
* </pre>
*
* <code>string uid = 3 [json_name = "uid"];</code>
* @param value The uid to set.
* @return This builder for chaining.
*/
public Builder setUid(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
uid_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* <pre>
* node.UID
* </pre>
*
* <code>string uid = 3 [json_name = "uid"];</code>
* @return This builder for chaining.
*/
public Builder clearUid() {
uid_ = getDefaultInstance().getUid();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* <pre>
* node.UID
* </pre>
*
* <code>string uid = 3 [json_name = "uid"];</code>
* @param value The bytes for uid to set.
* @return This builder for chaining.
*/
public Builder setUidBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
uid_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object instanceType_ = "";
/**
* <pre>
* node.kubernetes.io/instance-type
* </pre>
*
* <code>string instance_type = 4 [json_name = "instanceType"];</code>
* @return The instanceType.
*/
public java.lang.String getInstanceType() {
java.lang.Object ref = instanceType_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
instanceType_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* node.kubernetes.io/instance-type
* </pre>
*
* <code>string instance_type = 4 [json_name = "instanceType"];</code>
* @return The bytes for instanceType.
*/
public com.google.protobuf.ByteString
getInstanceTypeBytes() {
java.lang.Object ref = instanceType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* node.kubernetes.io/instance-type
* </pre>
*
* <code>string instance_type = 4 [json_name = "instanceType"];</code>
* @param value The instanceType to set.
* @return This builder for chaining.
*/
public Builder setInstanceType(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
instanceType_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* <pre>
* node.kubernetes.io/instance-type
* </pre>
*
* <code>string instance_type = 4 [json_name = "instanceType"];</code>
* @return This builder for chaining.
*/
public Builder clearInstanceType() {
instanceType_ = getDefaultInstance().getInstanceType();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
* <pre>
* node.kubernetes.io/instance-type
* </pre>
*
* <code>string instance_type = 4 [json_name = "instanceType"];</code>
* @param value The bytes for instanceType to set.
* @return This builder for chaining.
*/
public Builder setInstanceTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
instanceType_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private java.lang.Object region_ = "";
/**
* <pre>
* topology.kubernetes.io/region
* </pre>
*
* <code>string region = 5 [json_name = "region"];</code>
* @return The region.
*/
public java.lang.String getRegion() {
java.lang.Object ref = region_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
region_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* topology.kubernetes.io/region
* </pre>
*
* <code>string region = 5 [json_name = "region"];</code>
* @return The bytes for region.
*/
public com.google.protobuf.ByteString
getRegionBytes() {
java.lang.Object ref = region_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
region_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* topology.kubernetes.io/region
* </pre>
*
* <code>string region = 5 [json_name = "region"];</code>
* @param value The region to set.
* @return This builder for chaining.
*/
public Builder setRegion(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
region_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* <pre>
* topology.kubernetes.io/region
* </pre>
*
* <code>string region = 5 [json_name = "region"];</code>
* @return This builder for chaining.
*/
public Builder clearRegion() {
region_ = getDefaultInstance().getRegion();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
* <pre>
* topology.kubernetes.io/region
* </pre>
*
* <code>string region = 5 [json_name = "region"];</code>
* @param value The bytes for region to set.
* @return This builder for chaining.
*/
public Builder setRegionBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
region_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private java.lang.Object zone_ = "";
/**
* <pre>
* topology.kubernetes.io/zone
* </pre>
*
* <code>string zone = 6 [json_name = "zone"];</code>
* @return The zone.
*/
public java.lang.String getZone() {
java.lang.Object ref = zone_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
zone_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* topology.kubernetes.io/zone
* </pre>
*
* <code>string zone = 6 [json_name = "zone"];</code>
* @return The bytes for zone.
*/
public com.google.protobuf.ByteString
getZoneBytes() {
java.lang.Object ref = zone_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
zone_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* topology.kubernetes.io/zone
* </pre>
*
* <code>string zone = 6 [json_name = "zone"];</code>
* @param value The zone to set.
* @return This builder for chaining.
*/
public Builder setZone(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
zone_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* <pre>
* topology.kubernetes.io/zone
* </pre>
*
* <code>string zone = 6 [json_name = "zone"];</code>
* @return This builder for chaining.
*/
public Builder clearZone() {
zone_ = getDefaultInstance().getZone();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
* <pre>
* topology.kubernetes.io/zone
* </pre>
*
* <code>string zone = 6 [json_name = "zone"];</code>
* @param value The bytes for zone to set.
* @return This builder for chaining.
*/
public Builder setZoneBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
zone_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
private long creationTimestamp_ ;
/**
* <pre>
* The time that the instance was created.
* node.CreationTimestamp.Unix()
* </pre>
*
* <code>int64 creation_timestamp = 8 [json_name = "creationTimestamp", (.gen_bq_schema.bigquery) = { ... }</code>
* @return The creationTimestamp.
*/
@java.lang.Override
public long getCreationTimestamp() {
return creationTimestamp_;
}
/**
* <pre>
* The time that the instance was created.
* node.CreationTimestamp.Unix()
* </pre>
*
* <code>int64 creation_timestamp = 8 [json_name = "creationTimestamp", (.gen_bq_schema.bigquery) = { ... }</code>
* @param value The creationTimestamp to set.
* @return This builder for chaining.
*/
public Builder setCreationTimestamp(long value) {
creationTimestamp_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* <pre>
* The time that the instance was created.
* node.CreationTimestamp.Unix()
* </pre>
*
* <code>int64 creation_timestamp = 8 [json_name = "creationTimestamp", (.gen_bq_schema.bigquery) = { ... }</code>
* @return This builder for chaining.
*/
public Builder clearCreationTimestamp() {
bitField0_ = (bitField0_ & ~0x00000040);
creationTimestamp_ = 0L;
onChanged();
return this;
}
private long deletionTimestamp_ ;
/**
* <pre>
* node.DeletionTimestamp.Unix()
* The time that the instance was deleted. May be 0 if the instance is still running.
* </pre>
*
* <code>int64 deletion_timestamp = 9 [json_name = "deletionTimestamp", (.gen_bq_schema.bigquery) = { ... }</code>
* @return The deletionTimestamp.
*/
@java.lang.Override
public long getDeletionTimestamp() {
return deletionTimestamp_;
}
/**
* <pre>
* node.DeletionTimestamp.Unix()
* The time that the instance was deleted. May be 0 if the instance is still running.
* </pre>
*
* <code>int64 deletion_timestamp = 9 [json_name = "deletionTimestamp", (.gen_bq_schema.bigquery) = { ... }</code>
* @param value The deletionTimestamp to set.
* @return This builder for chaining.
*/
public Builder setDeletionTimestamp(long value) {
deletionTimestamp_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* <pre>
* node.DeletionTimestamp.Unix()
* The time that the instance was deleted. May be 0 if the instance is still running.
* </pre>
*
* <code>int64 deletion_timestamp = 9 [json_name = "deletionTimestamp", (.gen_bq_schema.bigquery) = { ... }</code>
* @return This builder for chaining.
*/
public Builder clearDeletionTimestamp() {
bitField0_ = (bitField0_ & ~0x00000080);
deletionTimestamp_ = 0L;
onChanged();
return this;
}
private long observedTimestamp_ ;
/**
* <pre>
* The time that we polled the instance for usage.
* </pre>
*
* <code>int64 observed_timestamp = 10 [json_name = "observedTimestamp", (.gen_bq_schema.bigquery) = { ... }</code>
* @return The observedTimestamp.
*/
@java.lang.Override
public long getObservedTimestamp() {
return observedTimestamp_;
}
/**
* <pre>
* The time that we polled the instance for usage.
* </pre>
*
* <code>int64 observed_timestamp = 10 [json_name = "observedTimestamp", (.gen_bq_schema.bigquery) = { ... }</code>
* @param value The observedTimestamp to set.
* @return This builder for chaining.
*/
public Builder setObservedTimestamp(long value) {
observedTimestamp_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
* <pre>
* The time that we polled the instance for usage.
* </pre>
*
* <code>int64 observed_timestamp = 10 [json_name = "observedTimestamp", (.gen_bq_schema.bigquery) = { ... }</code>
* @return This builder for chaining.
*/
public Builder clearObservedTimestamp() {
bitField0_ = (bitField0_ & ~0x00000100);
observedTimestamp_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> labels_;
private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetLabels() {
if (labels_ == null) {
return com.google.protobuf.MapField.emptyMapField(
LabelsDefaultEntryHolder.defaultEntry);
}
return labels_;
}
private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetMutableLabels() {
if (labels_ == null) {
labels_ = com.google.protobuf.MapField.newMapField(
LabelsDefaultEntryHolder.defaultEntry);
}
if (!labels_.isMutable()) {
labels_ = labels_.copy();
}
bitField0_ |= 0x00000200;
onChanged();
return labels_;
}
public int getLabelsCount() {
return internalGetLabels().getMap().size();
}
/**
* <pre>
* node.Labels
* </pre>
*
* <code>map<string, string> labels = 11 [json_name = "labels"];</code>
*/
@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<java.lang.String, java.lang.String> getLabels() {
return getLabelsMap();
}
/**
* <pre>
* node.Labels
* </pre>
*
* <code>map<string, string> labels = 11 [json_name = "labels"];</code>
*/
@java.lang.Override
public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {
return internalGetLabels().getMap();
}
/**
* <pre>
* node.Labels
* </pre>
*
* <code>map<string, string> labels = 11 [json_name = "labels"];</code>
*/
@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<java.lang.String, java.lang.String> map =
internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <pre>
* node.Labels
* </pre>
*
* <code>map<string, string> labels = 11 [json_name = "labels"];</code>
*/
@java.lang.Override
public java.lang.String getLabelsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetLabels().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearLabels() {
bitField0_ = (bitField0_ & ~0x00000200);
internalGetMutableLabels().getMutableMap()
.clear();
return this;
}
/**
* <pre>
* node.Labels
* </pre>
*
* <code>map<string, string> labels = 11 [json_name = "labels"];</code>
*/
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<java.lang.String, java.lang.String>
getMutableLabels() {
bitField0_ |= 0x00000200;
return internalGetMutableLabels().getMutableMap();
}
/**
* <pre>
* node.Labels
* </pre>
*
* <code>map<string, string> labels = 11 [json_name = "labels"];</code>
*/
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_ |= 0x00000200;
return this;
}
/**
* <pre>
* node.Labels
* </pre>
*
* <code>map<string, string> labels = 11 [json_name = "labels"];</code>
*/
public Builder putAllLabels(
java.util.Map<java.lang.String, java.lang.String> values) {
internalGetMutableLabels().getMutableMap()
.putAll(values);
bitField0_ |= 0x00000200;
return this;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> annotations_;
private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetAnnotations() {
if (annotations_ == null) {
return com.google.protobuf.MapField.emptyMapField(
AnnotationsDefaultEntryHolder.defaultEntry);
}
return annotations_;
}
private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetMutableAnnotations() {
if (annotations_ == null) {
annotations_ = com.google.protobuf.MapField.newMapField(
AnnotationsDefaultEntryHolder.defaultEntry);
}
if (!annotations_.isMutable()) {
annotations_ = annotations_.copy();
}
bitField0_ |= 0x00000400;
onChanged();
return annotations_;
}
public int getAnnotationsCount() {
return internalGetAnnotations().getMap().size();
}
/**
* <pre>
* node.Annotations
* </pre>
*
* <code>map<string, string> annotations = 12 [json_name = "annotations"];</code>
*/
@java.lang.Override
public boolean containsAnnotations(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetAnnotations().getMap().containsKey(key);
}
/**
* Use {@link #getAnnotationsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map<java.lang.String, java.lang.String> getAnnotations() {
return getAnnotationsMap();
}
/**
* <pre>
* node.Annotations
* </pre>
*
* <code>map<string, string> annotations = 12 [json_name = "annotations"];</code>
*/
@java.lang.Override
public java.util.Map<java.lang.String, java.lang.String> getAnnotationsMap() {
return internalGetAnnotations().getMap();
}
/**
* <pre>
* node.Annotations
* </pre>
*
* <code>map<string, string> annotations = 12 [json_name = "annotations"];</code>
*/
@java.lang.Override
public /* nullable */
java.lang.String getAnnotationsOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetAnnotations().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <pre>
* node.Annotations
* </pre>
*
* <code>map<string, string> annotations = 12 [json_name = "annotations"];</code>
*/
@java.lang.Override
public java.lang.String getAnnotationsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetAnnotations().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearAnnotations() {
bitField0_ = (bitField0_ & ~0x00000400);
internalGetMutableAnnotations().getMutableMap()
.clear();
return this;
}
/**
* <pre>
* node.Annotations
* </pre>
*
* <code>map<string, string> annotations = 12 [json_name = "annotations"];</code>
*/
public Builder removeAnnotations(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableAnnotations().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map<java.lang.String, java.lang.String>
getMutableAnnotations() {
bitField0_ |= 0x00000400;
return internalGetMutableAnnotations().getMutableMap();
}
/**
* <pre>
* node.Annotations
* </pre>
*
* <code>map<string, string> annotations = 12 [json_name = "annotations"];</code>
*/
public Builder putAnnotations(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) { throw new NullPointerException("map value"); }
internalGetMutableAnnotations().getMutableMap()
.put(key, value);
bitField0_ |= 0x00000400;
return this;
}
/**
* <pre>
* node.Annotations
* </pre>
*
* <code>map<string, string> annotations = 12 [json_name = "annotations"];</code>
*/
public Builder putAllAnnotations(
java.util.Map<java.lang.String, java.lang.String> values) {
internalGetMutableAnnotations().getMutableMap()
.putAll(values);
bitField0_ |= 0x00000400;
return this;
}
private java.lang.Object machineId_ = "";
/**
* <code>string machine_id = 13 [json_name = "machineId"];</code>
* @return The machineId.
*/
public java.lang.String getMachineId() {
java.lang.Object ref = machineId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
machineId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string machine_id = 13 [json_name = "machineId"];</code>
* @return The bytes for machineId.
*/
public com.google.protobuf.ByteString
getMachineIdBytes() {
java.lang.Object ref = machineId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
machineId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string machine_id = 13 [json_name = "machineId"];</code>
* @param value The machineId to set.
* @return This builder for chaining.
*/
public Builder setMachineId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
machineId_ = value;
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
* <code>string machine_id = 13 [json_name = "machineId"];</code>
* @return This builder for chaining.
*/
public Builder clearMachineId() {
machineId_ = getDefaultInstance().getMachineId();
bitField0_ = (bitField0_ & ~0x00000800);
onChanged();
return this;
}
/**
* <code>string machine_id = 13 [json_name = "machineId"];</code>
* @param value The bytes for machineId to set.
* @return This builder for chaining.
*/
public Builder setMachineIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
machineId_ = value;
bitField0_ |= 0x00000800;
onChanged();
return this;
}
private java.lang.Object systemUuid_ = "";
/**
* <code>string system_uuid = 14 [json_name = "systemUuid"];</code>
* @return The systemUuid.
*/
public java.lang.String getSystemUuid() {
java.lang.Object ref = systemUuid_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
systemUuid_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string system_uuid = 14 [json_name = "systemUuid"];</code>
* @return The bytes for systemUuid.
*/
public com.google.protobuf.ByteString
getSystemUuidBytes() {
java.lang.Object ref = systemUuid_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
systemUuid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string system_uuid = 14 [json_name = "systemUuid"];</code>
* @param value The systemUuid to set.
* @return This builder for chaining.
*/
public Builder setSystemUuid(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
systemUuid_ = value;
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
* <code>string system_uuid = 14 [json_name = "systemUuid"];</code>
* @return This builder for chaining.
*/
public Builder clearSystemUuid() {
systemUuid_ = getDefaultInstance().getSystemUuid();
bitField0_ = (bitField0_ & ~0x00001000);
onChanged();
return this;
}
/**
* <code>string system_uuid = 14 [json_name = "systemUuid"];</code>
* @param value The bytes for systemUuid to set.
* @return This builder for chaining.
*/
public Builder setSystemUuidBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
systemUuid_ = value;
bitField0_ |= 0x00001000;
onChanged();
return this;
}
private java.lang.Object bootId_ = "";
/**
* <code>string boot_id = 15 [json_name = "bootId"];</code>
* @return The bootId.
*/
public java.lang.String getBootId() {
java.lang.Object ref = bootId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
bootId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string boot_id = 15 [json_name = "bootId"];</code>
* @return The bytes for bootId.
*/
public com.google.protobuf.ByteString
getBootIdBytes() {
java.lang.Object ref = bootId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
bootId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string boot_id = 15 [json_name = "bootId"];</code>
* @param value The bootId to set.
* @return This builder for chaining.
*/
public Builder setBootId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
bootId_ = value;
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
* <code>string boot_id = 15 [json_name = "bootId"];</code>
* @return This builder for chaining.
*/
public Builder clearBootId() {
bootId_ = getDefaultInstance().getBootId();
bitField0_ = (bitField0_ & ~0x00002000);
onChanged();
return this;
}
/**
* <code>string boot_id = 15 [json_name = "bootId"];</code>
* @param value The bytes for bootId to set.
* @return This builder for chaining.
*/
public Builder setBootIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
bootId_ = value;
bitField0_ |= 0x00002000;
onChanged();
return this;
}
private boolean unschedulable_ ;
/**
* <code>bool unschedulable = 16 [json_name = "unschedulable"];</code>
* @return The unschedulable.
*/
@java.lang.Override
public boolean getUnschedulable() {
return unschedulable_;
}
/**
* <code>bool unschedulable = 16 [json_name = "unschedulable"];</code>
* @param value The unschedulable to set.
* @return This builder for chaining.
*/
public Builder setUnschedulable(boolean value) {
unschedulable_ = value;
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
* <code>bool unschedulable = 16 [json_name = "unschedulable"];</code>
* @return This builder for chaining.
*/
public Builder clearUnschedulable() {
bitField0_ = (bitField0_ & ~0x00004000);
unschedulable_ = false;
onChanged();
return this;
}
private java.lang.Object namespace_ = "";
/**
* <code>string namespace = 17 [json_name = "namespace"];</code>
* @return The namespace.
*/
public java.lang.String getNamespace() {
java.lang.Object ref = namespace_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
namespace_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string namespace = 17 [json_name = "namespace"];</code>
* @return The bytes for namespace.
*/
public com.google.protobuf.ByteString
getNamespaceBytes() {
java.lang.Object ref = namespace_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
namespace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string namespace = 17 [json_name = "namespace"];</code>
* @param value The namespace to set.
* @return This builder for chaining.
*/
public Builder setNamespace(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
namespace_ = value;
bitField0_ |= 0x00008000;
onChanged();
return this;
}
/**
* <code>string namespace = 17 [json_name = "namespace"];</code>
* @return This builder for chaining.
*/
public Builder clearNamespace() {
namespace_ = getDefaultInstance().getNamespace();
bitField0_ = (bitField0_ & ~0x00008000);
onChanged();
return this;
}
/**
* <code>string namespace = 17 [json_name = "namespace"];</code>
* @param value The bytes for namespace to set.
* @return This builder for chaining.
*/
public Builder setNamespaceBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
namespace_ = value;
bitField0_ |= 0x00008000;
onChanged();
return this;
}
private java.lang.Object instanceId_ = "";
/**
* <pre>
* container.googleapis.com/instance_id
* </pre>
*
* <code>string instance_id = 18 [json_name = "instanceId"];</code>
* @return The instanceId.
*/
public java.lang.String getInstanceId() {
java.lang.Object ref = instanceId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
instanceId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* container.googleapis.com/instance_id
* </pre>
*
* <code>string instance_id = 18 [json_name = "instanceId"];</code>
* @return The bytes for instanceId.
*/
public com.google.protobuf.ByteString
getInstanceIdBytes() {
java.lang.Object ref = instanceId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* container.googleapis.com/instance_id
* </pre>
*
* <code>string instance_id = 18 [json_name = "instanceId"];</code>
* @param value The instanceId to set.
* @return This builder for chaining.
*/
public Builder setInstanceId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
instanceId_ = value;
bitField0_ |= 0x00010000;
onChanged();
return this;
}
/**
* <pre>
* container.googleapis.com/instance_id
* </pre>
*
* <code>string instance_id = 18 [json_name = "instanceId"];</code>
* @return This builder for chaining.
*/
public Builder clearInstanceId() {
instanceId_ = getDefaultInstance().getInstanceId();
bitField0_ = (bitField0_ & ~0x00010000);
onChanged();
return this;
}
/**
* <pre>
* container.googleapis.com/instance_id
* </pre>
*
* <code>string instance_id = 18 [json_name = "instanceId"];</code>
* @param value The bytes for instanceId to set.
* @return This builder for chaining.
*/
public Builder setInstanceIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
instanceId_ = value;
bitField0_ |= 0x00010000;
onChanged();
return this;
}
private java.lang.Object cluster_ = "";
/**
* <code>string cluster = 19 [json_name = "cluster"];</code>
* @return The cluster.
*/
public java.lang.String getCluster() {
java.lang.Object ref = cluster_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
cluster_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string cluster = 19 [json_name = "cluster"];</code>
* @return The bytes for cluster.
*/
public com.google.protobuf.ByteString
getClusterBytes() {
java.lang.Object ref = cluster_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cluster_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string cluster = 19 [json_name = "cluster"];</code>
* @param value The cluster to set.
* @return This builder for chaining.
*/
public Builder setCluster(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
cluster_ = value;
bitField0_ |= 0x00020000;
onChanged();
return this;
}
/**
* <code>string cluster = 19 [json_name = "cluster"];</code>
* @return This builder for chaining.
*/
public Builder clearCluster() {
cluster_ = getDefaultInstance().getCluster();
bitField0_ = (bitField0_ & ~0x00020000);
onChanged();
return this;
}
/**
* <code>string cluster = 19 [json_name = "cluster"];</code>
* @param value The bytes for cluster to set.
* @return This builder for chaining.
*/
public Builder setClusterBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
cluster_ = value;
bitField0_ |= 0x00020000;
onChanged();
return this;
}
private java.lang.Object totalCpu_ = "";
/**
* <code>string total_cpu = 20 [json_name = "totalCpu"];</code>
* @return The totalCpu.
*/
public java.lang.String getTotalCpu() {
java.lang.Object ref = totalCpu_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
totalCpu_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string total_cpu = 20 [json_name = "totalCpu"];</code>
* @return The bytes for totalCpu.
*/
public com.google.protobuf.ByteString
getTotalCpuBytes() {
java.lang.Object ref = totalCpu_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
totalCpu_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string total_cpu = 20 [json_name = "totalCpu"];</code>
* @param value The totalCpu to set.
* @return This builder for chaining.
*/
public Builder setTotalCpu(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
totalCpu_ = value;
bitField0_ |= 0x00040000;
onChanged();
return this;
}
/**
* <code>string total_cpu = 20 [json_name = "totalCpu"];</code>
* @return This builder for chaining.
*/
public Builder clearTotalCpu() {
totalCpu_ = getDefaultInstance().getTotalCpu();
bitField0_ = (bitField0_ & ~0x00040000);
onChanged();
return this;
}
/**
* <code>string total_cpu = 20 [json_name = "totalCpu"];</code>
* @param value The bytes for totalCpu to set.
* @return This builder for chaining.
*/
public Builder setTotalCpuBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
totalCpu_ = value;
bitField0_ |= 0x00040000;
onChanged();
return this;
}
private java.lang.Object totalMemory_ = "";
/**
* <code>string total_memory = 21 [json_name = "totalMemory"];</code>
* @return The totalMemory.
*/
public java.lang.String getTotalMemory() {
java.lang.Object ref = totalMemory_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
totalMemory_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string total_memory = 21 [json_name = "totalMemory"];</code>
* @return The bytes for totalMemory.
*/
public com.google.protobuf.ByteString
getTotalMemoryBytes() {
java.lang.Object ref = totalMemory_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
totalMemory_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string total_memory = 21 [json_name = "totalMemory"];</code>
* @param value The totalMemory to set.
* @return This builder for chaining.
*/
public Builder setTotalMemory(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
totalMemory_ = value;
bitField0_ |= 0x00080000;
onChanged();
return this;
}
/**
* <code>string total_memory = 21 [json_name = "totalMemory"];</code>
* @return This builder for chaining.
*/
public Builder clearTotalMemory() {
totalMemory_ = getDefaultInstance().getTotalMemory();
bitField0_ = (bitField0_ & ~0x00080000);
onChanged();
return this;
}
/**
* <code>string total_memory = 21 [json_name = "totalMemory"];</code>
* @param value The bytes for totalMemory to set.
* @return This builder for chaining.
*/
public Builder setTotalMemoryBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
totalMemory_ = value;
bitField0_ |= 0x00080000;
onChanged();
return this;
}
private java.lang.Object allocatableCpu_ = "";
/**
* <code>string allocatable_cpu = 22 [json_name = "allocatableCpu"];</code>
* @return The allocatableCpu.
*/
public java.lang.String getAllocatableCpu() {
java.lang.Object ref = allocatableCpu_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
allocatableCpu_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string allocatable_cpu = 22 [json_name = "allocatableCpu"];</code>
* @return The bytes for allocatableCpu.
*/
public com.google.protobuf.ByteString
getAllocatableCpuBytes() {
java.lang.Object ref = allocatableCpu_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
allocatableCpu_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string allocatable_cpu = 22 [json_name = "allocatableCpu"];</code>
* @param value The allocatableCpu to set.
* @return This builder for chaining.
*/
public Builder setAllocatableCpu(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
allocatableCpu_ = value;
bitField0_ |= 0x00100000;
onChanged();
return this;
}
/**
* <code>string allocatable_cpu = 22 [json_name = "allocatableCpu"];</code>
* @return This builder for chaining.
*/
public Builder clearAllocatableCpu() {
allocatableCpu_ = getDefaultInstance().getAllocatableCpu();
bitField0_ = (bitField0_ & ~0x00100000);
onChanged();
return this;
}
/**
* <code>string allocatable_cpu = 22 [json_name = "allocatableCpu"];</code>
* @param value The bytes for allocatableCpu to set.
* @return This builder for chaining.
*/
public Builder setAllocatableCpuBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
allocatableCpu_ = value;
bitField0_ |= 0x00100000;
onChanged();
return this;
}
private java.lang.Object allocatableMemory_ = "";
/**
* <code>string allocatable_memory = 23 [json_name = "allocatableMemory"];</code>
* @return The allocatableMemory.
*/
public java.lang.String getAllocatableMemory() {
java.lang.Object ref = allocatableMemory_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
allocatableMemory_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string allocatable_memory = 23 [json_name = "allocatableMemory"];</code>
* @return The bytes for allocatableMemory.
*/
public com.google.protobuf.ByteString
getAllocatableMemoryBytes() {
java.lang.Object ref = allocatableMemory_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
allocatableMemory_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string allocatable_memory = 23 [json_name = "allocatableMemory"];</code>
* @param value The allocatableMemory to set.
* @return This builder for chaining.
*/
public Builder setAllocatableMemory(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
allocatableMemory_ = value;
bitField0_ |= 0x00200000;
onChanged();
return this;
}
/**
* <code>string allocatable_memory = 23 [json_name = "allocatableMemory"];</code>
* @return This builder for chaining.
*/
public Builder clearAllocatableMemory() {
allocatableMemory_ = getDefaultInstance().getAllocatableMemory();
bitField0_ = (bitField0_ & ~0x00200000);
onChanged();
return this;
}
/**
* <code>string allocatable_memory = 23 [json_name = "allocatableMemory"];</code>
* @param value The bytes for allocatableMemory to set.
* @return This builder for chaining.
*/
public Builder setAllocatableMemoryBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
allocatableMemory_ = value;
bitField0_ |= 0x00200000;
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:chalk.pubsub.v1.NodeStatusPubSub)
}
// @@protoc_insertion_point(class_scope:chalk.pubsub.v1.NodeStatusPubSub)
private static final ai.chalk.protos.chalk.pubsub.v1.NodeStatusPubSub DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.pubsub.v1.NodeStatusPubSub();
}
public static ai.chalk.protos.chalk.pubsub.v1.NodeStatusPubSub getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<NodeStatusPubSub>
PARSER = new com.google.protobuf.AbstractParser<NodeStatusPubSub>() {
@java.lang.Override
public NodeStatusPubSub 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<NodeStatusPubSub> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<NodeStatusPubSub> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.NodeStatusPubSub getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/pubsub
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/pubsub/v1/NodeStatusPubSubOrBuilder.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/pubsub/v1/node_status.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.pubsub.v1;
public interface NodeStatusPubSubOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.pubsub.v1.NodeStatusPubSub)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* The Chalk team name that incurred the usage.
* </pre>
*
* <code>string team = 1 [json_name = "team"];</code>
* @return The team.
*/
java.lang.String getTeam();
/**
* <pre>
* The Chalk team name that incurred the usage.
* </pre>
*
* <code>string team = 1 [json_name = "team"];</code>
* @return The bytes for team.
*/
com.google.protobuf.ByteString
getTeamBytes();
/**
* <pre>
* node.Name
* </pre>
*
* <code>string name = 2 [json_name = "name"];</code>
* @return The name.
*/
java.lang.String getName();
/**
* <pre>
* node.Name
* </pre>
*
* <code>string name = 2 [json_name = "name"];</code>
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* <pre>
* node.UID
* </pre>
*
* <code>string uid = 3 [json_name = "uid"];</code>
* @return The uid.
*/
java.lang.String getUid();
/**
* <pre>
* node.UID
* </pre>
*
* <code>string uid = 3 [json_name = "uid"];</code>
* @return The bytes for uid.
*/
com.google.protobuf.ByteString
getUidBytes();
/**
* <pre>
* node.kubernetes.io/instance-type
* </pre>
*
* <code>string instance_type = 4 [json_name = "instanceType"];</code>
* @return The instanceType.
*/
java.lang.String getInstanceType();
/**
* <pre>
* node.kubernetes.io/instance-type
* </pre>
*
* <code>string instance_type = 4 [json_name = "instanceType"];</code>
* @return The bytes for instanceType.
*/
com.google.protobuf.ByteString
getInstanceTypeBytes();
/**
* <pre>
* topology.kubernetes.io/region
* </pre>
*
* <code>string region = 5 [json_name = "region"];</code>
* @return The region.
*/
java.lang.String getRegion();
/**
* <pre>
* topology.kubernetes.io/region
* </pre>
*
* <code>string region = 5 [json_name = "region"];</code>
* @return The bytes for region.
*/
com.google.protobuf.ByteString
getRegionBytes();
/**
* <pre>
* topology.kubernetes.io/zone
* </pre>
*
* <code>string zone = 6 [json_name = "zone"];</code>
* @return The zone.
*/
java.lang.String getZone();
/**
* <pre>
* topology.kubernetes.io/zone
* </pre>
*
* <code>string zone = 6 [json_name = "zone"];</code>
* @return The bytes for zone.
*/
com.google.protobuf.ByteString
getZoneBytes();
/**
* <pre>
* The time that the instance was created.
* node.CreationTimestamp.Unix()
* </pre>
*
* <code>int64 creation_timestamp = 8 [json_name = "creationTimestamp", (.gen_bq_schema.bigquery) = { ... }</code>
* @return The creationTimestamp.
*/
long getCreationTimestamp();
/**
* <pre>
* node.DeletionTimestamp.Unix()
* The time that the instance was deleted. May be 0 if the instance is still running.
* </pre>
*
* <code>int64 deletion_timestamp = 9 [json_name = "deletionTimestamp", (.gen_bq_schema.bigquery) = { ... }</code>
* @return The deletionTimestamp.
*/
long getDeletionTimestamp();
/**
* <pre>
* The time that we polled the instance for usage.
* </pre>
*
* <code>int64 observed_timestamp = 10 [json_name = "observedTimestamp", (.gen_bq_schema.bigquery) = { ... }</code>
* @return The observedTimestamp.
*/
long getObservedTimestamp();
/**
* <pre>
* node.Labels
* </pre>
*
* <code>map<string, string> labels = 11 [json_name = "labels"];</code>
*/
int getLabelsCount();
/**
* <pre>
* node.Labels
* </pre>
*
* <code>map<string, string> labels = 11 [json_name = "labels"];</code>
*/
boolean containsLabels(
java.lang.String key);
/**
* Use {@link #getLabelsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map<java.lang.String, java.lang.String>
getLabels();
/**
* <pre>
* node.Labels
* </pre>
*
* <code>map<string, string> labels = 11 [json_name = "labels"];</code>
*/
java.util.Map<java.lang.String, java.lang.String>
getLabelsMap();
/**
* <pre>
* node.Labels
* </pre>
*
* <code>map<string, string> labels = 11 [json_name = "labels"];</code>
*/
/* nullable */
java.lang.String getLabelsOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue);
/**
* <pre>
* node.Labels
* </pre>
*
* <code>map<string, string> labels = 11 [json_name = "labels"];</code>
*/
java.lang.String getLabelsOrThrow(
java.lang.String key);
/**
* <pre>
* node.Annotations
* </pre>
*
* <code>map<string, string> annotations = 12 [json_name = "annotations"];</code>
*/
int getAnnotationsCount();
/**
* <pre>
* node.Annotations
* </pre>
*
* <code>map<string, string> annotations = 12 [json_name = "annotations"];</code>
*/
boolean containsAnnotations(
java.lang.String key);
/**
* Use {@link #getAnnotationsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map<java.lang.String, java.lang.String>
getAnnotations();
/**
* <pre>
* node.Annotations
* </pre>
*
* <code>map<string, string> annotations = 12 [json_name = "annotations"];</code>
*/
java.util.Map<java.lang.String, java.lang.String>
getAnnotationsMap();
/**
* <pre>
* node.Annotations
* </pre>
*
* <code>map<string, string> annotations = 12 [json_name = "annotations"];</code>
*/
/* nullable */
java.lang.String getAnnotationsOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue);
/**
* <pre>
* node.Annotations
* </pre>
*
* <code>map<string, string> annotations = 12 [json_name = "annotations"];</code>
*/
java.lang.String getAnnotationsOrThrow(
java.lang.String key);
/**
* <code>string machine_id = 13 [json_name = "machineId"];</code>
* @return The machineId.
*/
java.lang.String getMachineId();
/**
* <code>string machine_id = 13 [json_name = "machineId"];</code>
* @return The bytes for machineId.
*/
com.google.protobuf.ByteString
getMachineIdBytes();
/**
* <code>string system_uuid = 14 [json_name = "systemUuid"];</code>
* @return The systemUuid.
*/
java.lang.String getSystemUuid();
/**
* <code>string system_uuid = 14 [json_name = "systemUuid"];</code>
* @return The bytes for systemUuid.
*/
com.google.protobuf.ByteString
getSystemUuidBytes();
/**
* <code>string boot_id = 15 [json_name = "bootId"];</code>
* @return The bootId.
*/
java.lang.String getBootId();
/**
* <code>string boot_id = 15 [json_name = "bootId"];</code>
* @return The bytes for bootId.
*/
com.google.protobuf.ByteString
getBootIdBytes();
/**
* <code>bool unschedulable = 16 [json_name = "unschedulable"];</code>
* @return The unschedulable.
*/
boolean getUnschedulable();
/**
* <code>string namespace = 17 [json_name = "namespace"];</code>
* @return The namespace.
*/
java.lang.String getNamespace();
/**
* <code>string namespace = 17 [json_name = "namespace"];</code>
* @return The bytes for namespace.
*/
com.google.protobuf.ByteString
getNamespaceBytes();
/**
* <pre>
* container.googleapis.com/instance_id
* </pre>
*
* <code>string instance_id = 18 [json_name = "instanceId"];</code>
* @return The instanceId.
*/
java.lang.String getInstanceId();
/**
* <pre>
* container.googleapis.com/instance_id
* </pre>
*
* <code>string instance_id = 18 [json_name = "instanceId"];</code>
* @return The bytes for instanceId.
*/
com.google.protobuf.ByteString
getInstanceIdBytes();
/**
* <code>string cluster = 19 [json_name = "cluster"];</code>
* @return The cluster.
*/
java.lang.String getCluster();
/**
* <code>string cluster = 19 [json_name = "cluster"];</code>
* @return The bytes for cluster.
*/
com.google.protobuf.ByteString
getClusterBytes();
/**
* <code>string total_cpu = 20 [json_name = "totalCpu"];</code>
* @return The totalCpu.
*/
java.lang.String getTotalCpu();
/**
* <code>string total_cpu = 20 [json_name = "totalCpu"];</code>
* @return The bytes for totalCpu.
*/
com.google.protobuf.ByteString
getTotalCpuBytes();
/**
* <code>string total_memory = 21 [json_name = "totalMemory"];</code>
* @return The totalMemory.
*/
java.lang.String getTotalMemory();
/**
* <code>string total_memory = 21 [json_name = "totalMemory"];</code>
* @return The bytes for totalMemory.
*/
com.google.protobuf.ByteString
getTotalMemoryBytes();
/**
* <code>string allocatable_cpu = 22 [json_name = "allocatableCpu"];</code>
* @return The allocatableCpu.
*/
java.lang.String getAllocatableCpu();
/**
* <code>string allocatable_cpu = 22 [json_name = "allocatableCpu"];</code>
* @return The bytes for allocatableCpu.
*/
com.google.protobuf.ByteString
getAllocatableCpuBytes();
/**
* <code>string allocatable_memory = 23 [json_name = "allocatableMemory"];</code>
* @return The allocatableMemory.
*/
java.lang.String getAllocatableMemory();
/**
* <code>string allocatable_memory = 23 [json_name = "allocatableMemory"];</code>
* @return The bytes for allocatableMemory.
*/
com.google.protobuf.ByteString
getAllocatableMemoryBytes();
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/pubsub
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/pubsub/v1/PodStatusProto.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/pubsub/v1/pod_status.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.pubsub.v1;
public final class PodStatusProto {
private PodStatusProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_pubsub_v1_PodStatusPubSub_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_pubsub_v1_PodStatusPubSub_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_pubsub_v1_PodStatusPubSub_Volume_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_pubsub_v1_PodStatusPubSub_Volume_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_pubsub_v1_PodStatusPubSub_ClaimSource_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_pubsub_v1_PodStatusPubSub_ClaimSource_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_pubsub_v1_PodStatusPubSub_PodResourceClaim_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_pubsub_v1_PodStatusPubSub_PodResourceClaim_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_pubsub_v1_PodStatusPubSub_PodSpec_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_pubsub_v1_PodStatusPubSub_PodSpec_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_pubsub_v1_PodStatusPubSub_PodSpec_NodeSelectorEntry_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_pubsub_v1_PodStatusPubSub_PodSpec_NodeSelectorEntry_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerState_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerState_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerStateRunning_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerStateRunning_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerStateTerminated_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerStateTerminated_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_pubsub_v1_PodStatusPubSub_EnvVar_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_pubsub_v1_PodStatusPubSub_EnvVar_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_pubsub_v1_PodStatusPubSub_Container_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_pubsub_v1_PodStatusPubSub_Container_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerStateWaiting_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerStateWaiting_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerStatus_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerStatus_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_pubsub_v1_PodStatusPubSub_Quantity_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_pubsub_v1_PodStatusPubSub_Quantity_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_pubsub_v1_PodStatusPubSub_ResourceRequirements_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_pubsub_v1_PodStatusPubSub_ResourceRequirements_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_pubsub_v1_PodStatusPubSub_ResourceRequirements_LimitsEntry_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_pubsub_v1_PodStatusPubSub_ResourceRequirements_LimitsEntry_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_pubsub_v1_PodStatusPubSub_ResourceRequirements_RequestsEntry_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_pubsub_v1_PodStatusPubSub_ResourceRequirements_RequestsEntry_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_pubsub_v1_PodStatusPubSub_PodCondition_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_pubsub_v1_PodStatusPubSub_PodCondition_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_pubsub_v1_PodStatusPubSub_HostIP_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_pubsub_v1_PodStatusPubSub_HostIP_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_pubsub_v1_PodStatusPubSub_PodStatus_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_pubsub_v1_PodStatusPubSub_PodStatus_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_pubsub_v1_PodStatusPubSub_LabelsEntry_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_pubsub_v1_PodStatusPubSub_LabelsEntry_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_pubsub_v1_PodStatusPubSub_AnnotationsEntry_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_pubsub_v1_PodStatusPubSub_AnnotationsEntry_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n chalk/pubsub/v1/pod_status.proto\022\017chal" +
"k.pubsub.v1\032\034gen_bq_schema/bq_field.prot" +
"o\032\034gen_bq_schema/bq_table.proto\"\2045\n\017PodS" +
"tatusPubSub\022\022\n\004team\030\001 \001(\tR\004team\022\020\n\003app\030\002" +
" \001(\tR\003app\022\034\n\tcomponent\030\003 \001(\tR\tcomponent\022" +
"\'\n\017datadog_service\030\004 \001(\tR\016datadogService" +
"\022\'\n\017datadog_version\030\005 \001(\tR\016datadogVersio" +
"n\022*\n\021pod_template_hash\030\006 \001(\tR\017podTemplat" +
"eHash\022B\n\006status\030\007 \001(\0132*.chalk.pubsub.v1." +
"PodStatusPubSub.PodStatusR\006status\022<\n\004spe" +
"c\030\010 \001(\0132(.chalk.pubsub.v1.PodStatusPubSu" +
"b.PodSpecR\004spec\022=\n\022creation_timestamp\030\022 " +
"\001(\003B\016\352?\013\022\tTIMESTAMPR\021creationTimestamp\022=" +
"\n\022deletion_timestamp\030\023 \001(\003B\016\352?\013\022\tTIMESTA" +
"MPR\021deletionTimestamp\022=\n\022observed_timest" +
"amp\030\024 \001(\003B\016\352?\013\022\tTIMESTAMPR\021observedTimes" +
"tamp\022D\n\006labels\030\025 \003(\0132,.chalk.pubsub.v1.P" +
"odStatusPubSub.LabelsEntryR\006labels\022S\n\013an" +
"notations\030\026 \003(\01321.chalk.pubsub.v1.PodSta" +
"tusPubSub.AnnotationsEntryR\013annotations\022" +
"\030\n\007cluster\030\027 \001(\tR\007cluster\022\020\n\003uid\030\030 \001(\tR\003" +
"uid\022\022\n\004name\030\031 \001(\tR\004name\022\034\n\tnamespace\030\032 \001" +
"(\tR\tnamespace\032\034\n\006Volume\022\022\n\004name\030\001 \001(\tR\004n" +
"ame\032\301\001\n\013ClaimSource\0223\n\023resource_claim_na" +
"me\030\001 \001(\tH\000R\021resourceClaimName\210\001\001\022D\n\034reso" +
"urce_claim_template_name\030\002 \001(\tH\001R\031resour" +
"ceClaimTemplateName\210\001\001B\026\n\024_resource_clai" +
"m_nameB\037\n\035_resource_claim_template_name\032" +
"|\n\020PodResourceClaim\022\022\n\004name\030\001 \001(\tR\004name\022" +
"I\n\006source\030\002 \001(\0132,.chalk.pubsub.v1.PodSta" +
"tusPubSub.ClaimSourceH\000R\006source\210\001\001B\t\n\007_s" +
"ource\032\330\r\n\007PodSpec\022A\n\007volumes\030\001 \003(\0132\'.cha" +
"lk.pubsub.v1.PodStatusPubSub.VolumeR\007vol" +
"umes\022S\n\017init_containers\030\024 \003(\0132*.chalk.pu" +
"bsub.v1.PodStatusPubSub.ContainerR\016initC" +
"ontainers\022J\n\ncontainers\030\002 \003(\0132*.chalk.pu" +
"bsub.v1.PodStatusPubSub.ContainerR\nconta" +
"iners\022*\n\016restart_policy\030\003 \001(\tH\000R\rrestart" +
"Policy\210\001\001\022L\n termination_grace_period_se" +
"conds\030\004 \001(\003H\001R\035terminationGracePeriodSec" +
"onds\210\001\001\022;\n\027active_deadline_seconds\030\005 \001(\003" +
"H\002R\025activeDeadlineSeconds\210\001\001\022\"\n\ndns_poli" +
"cy\030\006 \001(\tH\003R\tdnsPolicy\210\001\001\022_\n\rnode_selecto" +
"r\030\007 \003(\0132:.chalk.pubsub.v1.PodStatusPubSu" +
"b.PodSpec.NodeSelectorEntryR\014nodeSelecto" +
"r\0225\n\024service_account_name\030\010 \001(\tH\004R\022servi" +
"ceAccountName\210\001\001\022J\n\037automount_service_ac" +
"count_token\030\025 \001(\010H\005R\034automountServiceAcc" +
"ountToken\210\001\001\022 \n\tnode_name\030\n \001(\tH\006R\010nodeN" +
"ame\210\001\001\022!\n\014host_network\030\013 \001(\010R\013hostNetwor" +
"k\022\031\n\010host_pid\030\014 \001(\010R\007hostPid\022\031\n\010host_ipc" +
"\030\r \001(\010R\007hostIpc\0226\n\027share_process_namespa" +
"ce\030\033 \001(\010R\025shareProcessNamespace\022\037\n\010hostn" +
"ame\030\020 \001(\tH\007R\010hostname\210\001\001\022!\n\tsubdomain\030\021 " +
"\001(\tH\010R\tsubdomain\210\001\001\022*\n\016scheduler_name\030\023 " +
"\001(\tH\tR\rschedulerName\210\001\001\0223\n\023priority_clas" +
"s_name\030\030 \001(\tH\nR\021priorityClassName\210\001\001\022\037\n\010" +
"priority\030\031 \001(\005H\013R\010priority\210\001\001\0221\n\022runtime" +
"_class_name\030\035 \001(\tH\014R\020runtimeClassName\210\001\001" +
"\0225\n\024enable_service_links\030\036 \001(\010H\rR\022enable" +
"ServiceLinks\210\001\001\0220\n\021preemption_policy\030\037 \001" +
"(\tH\016R\020preemptionPolicy\210\001\001\022\"\n\nhost_users\030" +
"% \001(\010H\017R\thostUsers\210\001\001\022Z\n\017resource_claims" +
"\030\' \003(\01321.chalk.pubsub.v1.PodStatusPubSub" +
".PodResourceClaimR\016resourceClaims\032?\n\021Nod" +
"eSelectorEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005valu" +
"e\030\002 \001(\tR\005value:\0028\001B\021\n\017_restart_policyB#\n" +
"!_termination_grace_period_secondsB\032\n\030_a" +
"ctive_deadline_secondsB\r\n\013_dns_policyB\027\n" +
"\025_service_account_nameB\"\n _automount_ser" +
"vice_account_tokenB\014\n\n_node_nameB\013\n\t_hos" +
"tnameB\014\n\n_subdomainB\021\n\017_scheduler_nameB\026" +
"\n\024_priority_class_nameB\013\n\t_priorityB\025\n\023_" +
"runtime_class_nameB\027\n\025_enable_service_li" +
"nksB\024\n\022_preemption_policyB\r\n\013_host_users" +
"\032\305\002\n\016ContainerState\022U\n\007waiting\030\001 \001(\01326.c" +
"halk.pubsub.v1.PodStatusPubSub.Container" +
"StateWaitingH\000R\007waiting\210\001\001\022U\n\007running\030\002 " +
"\001(\01326.chalk.pubsub.v1.PodStatusPubSub.Co" +
"ntainerStateRunningH\001R\007running\210\001\001\022^\n\nter" +
"minated\030\003 \001(\01329.chalk.pubsub.v1.PodStatu" +
"sPubSub.ContainerStateTerminatedH\002R\nterm" +
"inated\210\001\001B\n\n\010_waitingB\n\n\010_runningB\r\n\013_te" +
"rminated\032F\n\025ContainerStateRunning\022-\n\nsta" +
"rted_at\030\001 \001(\003B\016\352?\013\022\tTIMESTAMPR\tstartedAt" +
"\032\364\002\n\030ContainerStateTerminated\022\033\n\texit_co" +
"de\030\001 \001(\005R\010exitCode\022\033\n\006signal\030\002 \001(\005H\000R\006si" +
"gnal\210\001\001\022\033\n\006reason\030\003 \001(\tH\001R\006reason\210\001\001\022\035\n\007" +
"message\030\004 \001(\tH\002R\007message\210\001\001\0222\n\nstarted_a" +
"t\030\005 \001(\003B\016\352?\013\022\tTIMESTAMPH\003R\tstartedAt\210\001\001\022" +
"4\n\013finished_at\030\006 \001(\003B\016\352?\013\022\tTIMESTAMPH\004R\n" +
"finishedAt\210\001\001\022&\n\014container_id\030\007 \001(\tH\005R\013c" +
"ontainerId\210\001\001B\t\n\007_signalB\t\n\007_reasonB\n\n\010_" +
"messageB\r\n\013_started_atB\016\n\014_finished_atB\017" +
"\n\r_container_id\0322\n\006EnvVar\022\022\n\004name\030\001 \001(\tR" +
"\004name\022\024\n\005value\030\002 \001(\tR\005value\032\326\005\n\tContaine" +
"r\022\022\n\004name\030\001 \001(\tR\004name\022\031\n\005image\030\002 \001(\tH\000R\005" +
"image\210\001\001\022\030\n\007command\030\003 \003(\tR\007command\022\022\n\004ar" +
"gs\030\004 \003(\tR\004args\022$\n\013working_dir\030\005 \001(\tH\001R\nw" +
"orkingDir\210\001\001\0229\n\003env\030\007 \003(\0132\'.chalk.pubsub" +
".v1.PodStatusPubSub.EnvVarR\003env\022X\n\tresou" +
"rces\030\010 \001(\01325.chalk.pubsub.v1.PodStatusPu" +
"bSub.ResourceRequirementsH\002R\tresources\210\001" +
"\001\022*\n\016restart_policy\030\030 \001(\tH\003R\rrestartPoli" +
"cy\210\001\001\022=\n\030termination_message_path\030\r \001(\tH" +
"\004R\026terminationMessagePath\210\001\001\022A\n\032terminat" +
"ion_message_policy\030\024 \001(\tH\005R\030terminationM" +
"essagePolicy\210\001\001\022/\n\021image_pull_policy\030\016 \001" +
"(\tH\006R\017imagePullPolicy\210\001\001\022\024\n\005stdin\030\020 \001(\010R" +
"\005stdin\022\035\n\nstdin_once\030\021 \001(\010R\tstdinOnce\022\020\n" +
"\003tty\030\022 \001(\010R\003ttyB\010\n\006_imageB\016\n\014_working_di" +
"rB\014\n\n_resourcesB\021\n\017_restart_policyB\033\n\031_t" +
"ermination_message_pathB\035\n\033_termination_" +
"message_policyB\024\n\022_image_pull_policy\032j\n\025" +
"ContainerStateWaiting\022\033\n\006reason\030\001 \001(\tH\000R" +
"\006reason\210\001\001\022\035\n\007message\030\002 \001(\tH\001R\007message\210\001" +
"\001B\t\n\007_reasonB\n\n\010_message\032\227\003\n\017ContainerSt" +
"atus\022\022\n\004name\030\001 \001(\tR\004name\022J\n\005state\030\002 \001(\0132" +
"/.chalk.pubsub.v1.PodStatusPubSub.Contai" +
"nerStateH\000R\005state\210\001\001\022S\n\nlast_state\030\003 \001(\013" +
"2/.chalk.pubsub.v1.PodStatusPubSub.Conta" +
"inerStateH\001R\tlastState\210\001\001\022\031\n\005ready\030\004 \001(\010" +
"H\002R\005ready\210\001\001\022#\n\rrestart_count\030\005 \001(\005R\014res" +
"tartCount\022\024\n\005image\030\006 \001(\tR\005image\022\031\n\010image" +
"_id\030\007 \001(\tR\007imageId\022!\n\014container_id\030\010 \001(\t" +
"R\013containerId\022\030\n\007started\030\t \001(\010R\007startedB" +
"\010\n\006_stateB\r\n\013_last_stateB\010\n\006_ready\0322\n\010Qu" +
"antity\022\033\n\006string\030\001 \001(\tH\000R\006string\210\001\001B\t\n\007_" +
"string\032\240\003\n\024ResourceRequirements\022Y\n\006limit" +
"s\030\001 \003(\0132A.chalk.pubsub.v1.PodStatusPubSu" +
"b.ResourceRequirements.LimitsEntryR\006limi" +
"ts\022_\n\010requests\030\002 \003(\0132C.chalk.pubsub.v1.P" +
"odStatusPubSub.ResourceRequirements.Requ" +
"estsEntryR\010requests\032d\n\013LimitsEntry\022\020\n\003ke" +
"y\030\001 \001(\tR\003key\022?\n\005value\030\002 \001(\0132).chalk.pubs" +
"ub.v1.PodStatusPubSub.QuantityR\005value:\0028" +
"\001\032f\n\rRequestsEntry\022\020\n\003key\030\001 \001(\tR\003key\022?\n\005" +
"value\030\002 \001(\0132).chalk.pubsub.v1.PodStatusP" +
"ubSub.QuantityR\005value:\0028\001\032\207\002\n\014PodConditi" +
"on\022\022\n\004type\030\001 \001(\tR\004type\022\026\n\006status\030\002 \001(\tR\006" +
"status\0226\n\017last_probe_time\030\003 \001(\003B\016\352?\013\022\tTI" +
"MESTAMPR\rlastProbeTime\022@\n\024last_transitio" +
"n_time\030\004 \001(\003B\016\352?\013\022\tTIMESTAMPR\022lastTransi" +
"tionTime\022\033\n\006reason\030\005 \001(\tH\000R\006reason\210\001\001\022\035\n" +
"\007message\030\006 \001(\tH\001R\007message\210\001\001B\t\n\007_reasonB" +
"\n\n\010_message\032$\n\006HostIP\022\023\n\002ip\030\001 \001(\tH\000R\002ip\210" +
"\001\001B\005\n\003_ip\032\216\007\n\tPodStatus\022\031\n\005phase\030\001 \001(\tH\000" +
"R\005phase\210\001\001\022M\n\nconditions\030\002 \003(\0132-.chalk.p" +
"ubsub.v1.PodStatusPubSub.PodConditionR\nc" +
"onditions\022\035\n\007message\030\003 \001(\tH\001R\007message\210\001\001" +
"\022\033\n\006reason\030\004 \001(\tH\002R\006reason\210\001\001\0223\n\023nominat" +
"ed_node_name\030\013 \001(\tH\003R\021nominatedNodeName\210" +
"\001\001\022\034\n\007host_ip\030\005 \001(\tH\004R\006hostIp\210\001\001\022B\n\010host" +
"_ips\030\020 \003(\0132\'.chalk.pubsub.v1.PodStatusPu" +
"bSub.HostIPR\007hostIps\022\032\n\006pod_ip\030\006 \001(\tH\005R\005" +
"podIp\210\001\001\0222\n\nstart_time\030\007 \001(\003B\016\352?\013\022\tTIMES" +
"TAMPH\006R\tstartTime\210\001\001\022h\n\027init_container_s" +
"tatuses\030\n \003(\01320.chalk.pubsub.v1.PodStatu" +
"sPubSub.ContainerStatusR\025initContainerSt" +
"atuses\022_\n\022container_statuses\030\010 \003(\01320.cha" +
"lk.pubsub.v1.PodStatusPubSub.ContainerSt" +
"atusR\021containerStatuses\022 \n\tqos_class\030\t \001" +
"(\tH\007R\010qosClass\210\001\001\022r\n\034ephemeral_container" +
"_statuses\030\r \003(\01320.chalk.pubsub.v1.PodSta" +
"tusPubSub.ContainerStatusR\032ephemeralCont" +
"ainerStatuses\022\033\n\006resize\030\016 \001(\tH\010R\006resize\210" +
"\001\001B\010\n\006_phaseB\n\n\010_messageB\t\n\007_reasonB\026\n\024_" +
"nominated_node_nameB\n\n\010_host_ipB\t\n\007_pod_" +
"ipB\r\n\013_start_timeB\014\n\n_qos_classB\t\n\007_resi" +
"ze\0329\n\013LabelsEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005v" +
"alue\030\002 \001(\tR\005value:\0028\001\032>\n\020AnnotationsEntr" +
"y\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005valu" +
"e:\0028\001:\017\352?\014\n\npod_statusB\243\001\n\037ai.chalk.prot" +
"os.chalk.pubsub.v1B\016PodStatusProtoP\001Z\022pu" +
"bsub/v1;pubsubv1\242\002\003CPX\252\002\017Chalk.Pubsub.V1" +
"\312\002\017Chalk\\Pubsub\\V1\342\002\033Chalk\\Pubsub\\V1\\GPB" +
"Metadata\352\002\021Chalk::Pubsub::V1b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
ai.chalk.protos.gen_bq_schema.BqFieldProto.getDescriptor(),
ai.chalk.protos.gen_bq_schema.BqTableProto.getDescriptor(),
});
internal_static_chalk_pubsub_v1_PodStatusPubSub_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_chalk_pubsub_v1_PodStatusPubSub_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_pubsub_v1_PodStatusPubSub_descriptor,
new java.lang.String[] { "Team", "App", "Component", "DatadogService", "DatadogVersion", "PodTemplateHash", "Status", "Spec", "CreationTimestamp", "DeletionTimestamp", "ObservedTimestamp", "Labels", "Annotations", "Cluster", "Uid", "Name", "Namespace", });
internal_static_chalk_pubsub_v1_PodStatusPubSub_Volume_descriptor =
internal_static_chalk_pubsub_v1_PodStatusPubSub_descriptor.getNestedTypes().get(0);
internal_static_chalk_pubsub_v1_PodStatusPubSub_Volume_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_pubsub_v1_PodStatusPubSub_Volume_descriptor,
new java.lang.String[] { "Name", });
internal_static_chalk_pubsub_v1_PodStatusPubSub_ClaimSource_descriptor =
internal_static_chalk_pubsub_v1_PodStatusPubSub_descriptor.getNestedTypes().get(1);
internal_static_chalk_pubsub_v1_PodStatusPubSub_ClaimSource_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_pubsub_v1_PodStatusPubSub_ClaimSource_descriptor,
new java.lang.String[] { "ResourceClaimName", "ResourceClaimTemplateName", });
internal_static_chalk_pubsub_v1_PodStatusPubSub_PodResourceClaim_descriptor =
internal_static_chalk_pubsub_v1_PodStatusPubSub_descriptor.getNestedTypes().get(2);
internal_static_chalk_pubsub_v1_PodStatusPubSub_PodResourceClaim_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_pubsub_v1_PodStatusPubSub_PodResourceClaim_descriptor,
new java.lang.String[] { "Name", "Source", });
internal_static_chalk_pubsub_v1_PodStatusPubSub_PodSpec_descriptor =
internal_static_chalk_pubsub_v1_PodStatusPubSub_descriptor.getNestedTypes().get(3);
internal_static_chalk_pubsub_v1_PodStatusPubSub_PodSpec_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_pubsub_v1_PodStatusPubSub_PodSpec_descriptor,
new java.lang.String[] { "Volumes", "InitContainers", "Containers", "RestartPolicy", "TerminationGracePeriodSeconds", "ActiveDeadlineSeconds", "DnsPolicy", "NodeSelector", "ServiceAccountName", "AutomountServiceAccountToken", "NodeName", "HostNetwork", "HostPid", "HostIpc", "ShareProcessNamespace", "Hostname", "Subdomain", "SchedulerName", "PriorityClassName", "Priority", "RuntimeClassName", "EnableServiceLinks", "PreemptionPolicy", "HostUsers", "ResourceClaims", });
internal_static_chalk_pubsub_v1_PodStatusPubSub_PodSpec_NodeSelectorEntry_descriptor =
internal_static_chalk_pubsub_v1_PodStatusPubSub_PodSpec_descriptor.getNestedTypes().get(0);
internal_static_chalk_pubsub_v1_PodStatusPubSub_PodSpec_NodeSelectorEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_pubsub_v1_PodStatusPubSub_PodSpec_NodeSelectorEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerState_descriptor =
internal_static_chalk_pubsub_v1_PodStatusPubSub_descriptor.getNestedTypes().get(4);
internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerState_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerState_descriptor,
new java.lang.String[] { "Waiting", "Running", "Terminated", });
internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerStateRunning_descriptor =
internal_static_chalk_pubsub_v1_PodStatusPubSub_descriptor.getNestedTypes().get(5);
internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerStateRunning_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerStateRunning_descriptor,
new java.lang.String[] { "StartedAt", });
internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerStateTerminated_descriptor =
internal_static_chalk_pubsub_v1_PodStatusPubSub_descriptor.getNestedTypes().get(6);
internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerStateTerminated_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerStateTerminated_descriptor,
new java.lang.String[] { "ExitCode", "Signal", "Reason", "Message", "StartedAt", "FinishedAt", "ContainerId", });
internal_static_chalk_pubsub_v1_PodStatusPubSub_EnvVar_descriptor =
internal_static_chalk_pubsub_v1_PodStatusPubSub_descriptor.getNestedTypes().get(7);
internal_static_chalk_pubsub_v1_PodStatusPubSub_EnvVar_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_pubsub_v1_PodStatusPubSub_EnvVar_descriptor,
new java.lang.String[] { "Name", "Value", });
internal_static_chalk_pubsub_v1_PodStatusPubSub_Container_descriptor =
internal_static_chalk_pubsub_v1_PodStatusPubSub_descriptor.getNestedTypes().get(8);
internal_static_chalk_pubsub_v1_PodStatusPubSub_Container_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_pubsub_v1_PodStatusPubSub_Container_descriptor,
new java.lang.String[] { "Name", "Image", "Command", "Args", "WorkingDir", "Env", "Resources", "RestartPolicy", "TerminationMessagePath", "TerminationMessagePolicy", "ImagePullPolicy", "Stdin", "StdinOnce", "Tty", });
internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerStateWaiting_descriptor =
internal_static_chalk_pubsub_v1_PodStatusPubSub_descriptor.getNestedTypes().get(9);
internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerStateWaiting_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerStateWaiting_descriptor,
new java.lang.String[] { "Reason", "Message", });
internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerStatus_descriptor =
internal_static_chalk_pubsub_v1_PodStatusPubSub_descriptor.getNestedTypes().get(10);
internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerStatus_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerStatus_descriptor,
new java.lang.String[] { "Name", "State", "LastState", "Ready", "RestartCount", "Image", "ImageId", "ContainerId", "Started", });
internal_static_chalk_pubsub_v1_PodStatusPubSub_Quantity_descriptor =
internal_static_chalk_pubsub_v1_PodStatusPubSub_descriptor.getNestedTypes().get(11);
internal_static_chalk_pubsub_v1_PodStatusPubSub_Quantity_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_pubsub_v1_PodStatusPubSub_Quantity_descriptor,
new java.lang.String[] { "String", });
internal_static_chalk_pubsub_v1_PodStatusPubSub_ResourceRequirements_descriptor =
internal_static_chalk_pubsub_v1_PodStatusPubSub_descriptor.getNestedTypes().get(12);
internal_static_chalk_pubsub_v1_PodStatusPubSub_ResourceRequirements_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_pubsub_v1_PodStatusPubSub_ResourceRequirements_descriptor,
new java.lang.String[] { "Limits", "Requests", });
internal_static_chalk_pubsub_v1_PodStatusPubSub_ResourceRequirements_LimitsEntry_descriptor =
internal_static_chalk_pubsub_v1_PodStatusPubSub_ResourceRequirements_descriptor.getNestedTypes().get(0);
internal_static_chalk_pubsub_v1_PodStatusPubSub_ResourceRequirements_LimitsEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_pubsub_v1_PodStatusPubSub_ResourceRequirements_LimitsEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_chalk_pubsub_v1_PodStatusPubSub_ResourceRequirements_RequestsEntry_descriptor =
internal_static_chalk_pubsub_v1_PodStatusPubSub_ResourceRequirements_descriptor.getNestedTypes().get(1);
internal_static_chalk_pubsub_v1_PodStatusPubSub_ResourceRequirements_RequestsEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_pubsub_v1_PodStatusPubSub_ResourceRequirements_RequestsEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_chalk_pubsub_v1_PodStatusPubSub_PodCondition_descriptor =
internal_static_chalk_pubsub_v1_PodStatusPubSub_descriptor.getNestedTypes().get(13);
internal_static_chalk_pubsub_v1_PodStatusPubSub_PodCondition_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_pubsub_v1_PodStatusPubSub_PodCondition_descriptor,
new java.lang.String[] { "Type", "Status", "LastProbeTime", "LastTransitionTime", "Reason", "Message", });
internal_static_chalk_pubsub_v1_PodStatusPubSub_HostIP_descriptor =
internal_static_chalk_pubsub_v1_PodStatusPubSub_descriptor.getNestedTypes().get(14);
internal_static_chalk_pubsub_v1_PodStatusPubSub_HostIP_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_pubsub_v1_PodStatusPubSub_HostIP_descriptor,
new java.lang.String[] { "Ip", });
internal_static_chalk_pubsub_v1_PodStatusPubSub_PodStatus_descriptor =
internal_static_chalk_pubsub_v1_PodStatusPubSub_descriptor.getNestedTypes().get(15);
internal_static_chalk_pubsub_v1_PodStatusPubSub_PodStatus_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_pubsub_v1_PodStatusPubSub_PodStatus_descriptor,
new java.lang.String[] { "Phase", "Conditions", "Message", "Reason", "NominatedNodeName", "HostIp", "HostIps", "PodIp", "StartTime", "InitContainerStatuses", "ContainerStatuses", "QosClass", "EphemeralContainerStatuses", "Resize", });
internal_static_chalk_pubsub_v1_PodStatusPubSub_LabelsEntry_descriptor =
internal_static_chalk_pubsub_v1_PodStatusPubSub_descriptor.getNestedTypes().get(16);
internal_static_chalk_pubsub_v1_PodStatusPubSub_LabelsEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_pubsub_v1_PodStatusPubSub_LabelsEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_chalk_pubsub_v1_PodStatusPubSub_AnnotationsEntry_descriptor =
internal_static_chalk_pubsub_v1_PodStatusPubSub_descriptor.getNestedTypes().get(17);
internal_static_chalk_pubsub_v1_PodStatusPubSub_AnnotationsEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_pubsub_v1_PodStatusPubSub_AnnotationsEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(ai.chalk.protos.gen_bq_schema.BqFieldProto.bigquery);
registry.add(ai.chalk.protos.gen_bq_schema.BqTableProto.bigqueryOpts);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
ai.chalk.protos.gen_bq_schema.BqFieldProto.getDescriptor();
ai.chalk.protos.gen_bq_schema.BqTableProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/pubsub
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/pubsub/v1/PodStatusPubSub.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/pubsub/v1/pod_status.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.pubsub.v1;
/**
* <pre>
* PodStatusPubSub captures the state of a kubernetes pod.
* </pre>
*
* Protobuf type {@code chalk.pubsub.v1.PodStatusPubSub}
*/
public final class PodStatusPubSub extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.pubsub.v1.PodStatusPubSub)
PodStatusPubSubOrBuilder {
private static final long serialVersionUID = 0L;
// Use PodStatusPubSub.newBuilder() to construct.
private PodStatusPubSub(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private PodStatusPubSub() {
team_ = "";
app_ = "";
component_ = "";
datadogService_ = "";
datadogVersion_ = "";
podTemplateHash_ = "";
cluster_ = "";
uid_ = "";
name_ = "";
namespace_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PodStatusPubSub();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 21:
return internalGetLabels();
case 22:
return internalGetAnnotations();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.class, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Builder.class);
}
public interface VolumeOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.pubsub.v1.PodStatusPubSub.Volume)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* name of the volume.
* Must be a DNS_LABEL and unique within the pod.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
* </pre>
*
* <code>string name = 1 [json_name = "name"];</code>
* @return The name.
*/
java.lang.String getName();
/**
* <pre>
* name of the volume.
* Must be a DNS_LABEL and unique within the pod.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
* </pre>
*
* <code>string name = 1 [json_name = "name"];</code>
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
}
/**
* <pre>
* Volume represents a named volume in a pod that may be accessed by any container in the pod.
* </pre>
*
* Protobuf type {@code chalk.pubsub.v1.PodStatusPubSub.Volume}
*/
public static final class Volume extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.pubsub.v1.PodStatusPubSub.Volume)
VolumeOrBuilder {
private static final long serialVersionUID = 0L;
// Use Volume.newBuilder() to construct.
private Volume(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private Volume() {
name_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Volume();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_Volume_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_Volume_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume.class, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
* <pre>
* name of the volume.
* Must be a DNS_LABEL and unique within the pod.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
* </pre>
*
* <code>string name = 1 [json_name = "name"];</code>
* @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;
}
}
/**
* <pre>
* name of the volume.
* Must be a DNS_LABEL and unique within the pod.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
* </pre>
*
* <code>string name = 1 [json_name = "name"];</code>
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
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_);
}
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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume other = (ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume) obj;
if (!getName()
.equals(other.getName())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume 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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume 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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume 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(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume 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;
}
/**
* <pre>
* Volume represents a named volume in a pod that may be accessed by any container in the pod.
* </pre>
*
* Protobuf type {@code chalk.pubsub.v1.PodStatusPubSub.Volume}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.pubsub.v1.PodStatusPubSub.Volume)
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.VolumeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_Volume_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_Volume_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume.class, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume.Builder.class);
}
// Construct using ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_Volume_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume getDefaultInstanceForType() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume build() {
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume buildPartial() {
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume result = new ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
}
@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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume) {
return mergeFrom((ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume other) {
if (other == ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
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_ = "";
/**
* <pre>
* name of the volume.
* Must be a DNS_LABEL and unique within the pod.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
* </pre>
*
* <code>string name = 1 [json_name = "name"];</code>
* @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;
}
}
/**
* <pre>
* name of the volume.
* Must be a DNS_LABEL and unique within the pod.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
* </pre>
*
* <code>string name = 1 [json_name = "name"];</code>
* @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;
}
}
/**
* <pre>
* name of the volume.
* Must be a DNS_LABEL and unique within the pod.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
* </pre>
*
* <code>string name = 1 [json_name = "name"];</code>
* @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;
}
/**
* <pre>
* name of the volume.
* Must be a DNS_LABEL and unique within the pod.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
* </pre>
*
* <code>string name = 1 [json_name = "name"];</code>
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* <pre>
* name of the volume.
* Must be a DNS_LABEL and unique within the pod.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
* </pre>
*
* <code>string name = 1 [json_name = "name"];</code>
* @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;
}
@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:chalk.pubsub.v1.PodStatusPubSub.Volume)
}
// @@protoc_insertion_point(class_scope:chalk.pubsub.v1.PodStatusPubSub.Volume)
private static final ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume();
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<Volume>
PARSER = new com.google.protobuf.AbstractParser<Volume>() {
@java.lang.Override
public Volume 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<Volume> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<Volume> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ClaimSourceOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.pubsub.v1.PodStatusPubSub.ClaimSource)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* ResourceClaimName is the name of a ResourceClaim object in the same
* namespace as this pod.
* </pre>
*
* <code>optional string resource_claim_name = 1 [json_name = "resourceClaimName"];</code>
* @return Whether the resourceClaimName field is set.
*/
boolean hasResourceClaimName();
/**
* <pre>
* ResourceClaimName is the name of a ResourceClaim object in the same
* namespace as this pod.
* </pre>
*
* <code>optional string resource_claim_name = 1 [json_name = "resourceClaimName"];</code>
* @return The resourceClaimName.
*/
java.lang.String getResourceClaimName();
/**
* <pre>
* ResourceClaimName is the name of a ResourceClaim object in the same
* namespace as this pod.
* </pre>
*
* <code>optional string resource_claim_name = 1 [json_name = "resourceClaimName"];</code>
* @return The bytes for resourceClaimName.
*/
com.google.protobuf.ByteString
getResourceClaimNameBytes();
/**
* <pre>
* ResourceClaimTemplateName is the name of a ResourceClaimTemplate
* object in the same namespace as this pod.
*
* The template will be used to create a new ResourceClaim, which will
* be bound to this pod. When this pod is deleted, the ResourceClaim
* will also be deleted. The pod name and resource name, along with a
* generated component, will be used to form a unique name for the
* ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses.
*
* This field is immutable and no changes will be made to the
* corresponding ResourceClaim by the control plane after creating the
* ResourceClaim.
* </pre>
*
* <code>optional string resource_claim_template_name = 2 [json_name = "resourceClaimTemplateName"];</code>
* @return Whether the resourceClaimTemplateName field is set.
*/
boolean hasResourceClaimTemplateName();
/**
* <pre>
* ResourceClaimTemplateName is the name of a ResourceClaimTemplate
* object in the same namespace as this pod.
*
* The template will be used to create a new ResourceClaim, which will
* be bound to this pod. When this pod is deleted, the ResourceClaim
* will also be deleted. The pod name and resource name, along with a
* generated component, will be used to form a unique name for the
* ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses.
*
* This field is immutable and no changes will be made to the
* corresponding ResourceClaim by the control plane after creating the
* ResourceClaim.
* </pre>
*
* <code>optional string resource_claim_template_name = 2 [json_name = "resourceClaimTemplateName"];</code>
* @return The resourceClaimTemplateName.
*/
java.lang.String getResourceClaimTemplateName();
/**
* <pre>
* ResourceClaimTemplateName is the name of a ResourceClaimTemplate
* object in the same namespace as this pod.
*
* The template will be used to create a new ResourceClaim, which will
* be bound to this pod. When this pod is deleted, the ResourceClaim
* will also be deleted. The pod name and resource name, along with a
* generated component, will be used to form a unique name for the
* ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses.
*
* This field is immutable and no changes will be made to the
* corresponding ResourceClaim by the control plane after creating the
* ResourceClaim.
* </pre>
*
* <code>optional string resource_claim_template_name = 2 [json_name = "resourceClaimTemplateName"];</code>
* @return The bytes for resourceClaimTemplateName.
*/
com.google.protobuf.ByteString
getResourceClaimTemplateNameBytes();
}
/**
* <pre>
* ClaimSource describes a reference to a ResourceClaim.
*
* Exactly one of these fields should be set. Consumers of this type must
* treat an empty object as if it has an unknown value.
* </pre>
*
* Protobuf type {@code chalk.pubsub.v1.PodStatusPubSub.ClaimSource}
*/
public static final class ClaimSource extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.pubsub.v1.PodStatusPubSub.ClaimSource)
ClaimSourceOrBuilder {
private static final long serialVersionUID = 0L;
// Use ClaimSource.newBuilder() to construct.
private ClaimSource(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ClaimSource() {
resourceClaimName_ = "";
resourceClaimTemplateName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ClaimSource();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_ClaimSource_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_ClaimSource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource.class, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource.Builder.class);
}
private int bitField0_;
public static final int RESOURCE_CLAIM_NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object resourceClaimName_ = "";
/**
* <pre>
* ResourceClaimName is the name of a ResourceClaim object in the same
* namespace as this pod.
* </pre>
*
* <code>optional string resource_claim_name = 1 [json_name = "resourceClaimName"];</code>
* @return Whether the resourceClaimName field is set.
*/
@java.lang.Override
public boolean hasResourceClaimName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <pre>
* ResourceClaimName is the name of a ResourceClaim object in the same
* namespace as this pod.
* </pre>
*
* <code>optional string resource_claim_name = 1 [json_name = "resourceClaimName"];</code>
* @return The resourceClaimName.
*/
@java.lang.Override
public java.lang.String getResourceClaimName() {
java.lang.Object ref = resourceClaimName_;
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();
resourceClaimName_ = s;
return s;
}
}
/**
* <pre>
* ResourceClaimName is the name of a ResourceClaim object in the same
* namespace as this pod.
* </pre>
*
* <code>optional string resource_claim_name = 1 [json_name = "resourceClaimName"];</code>
* @return The bytes for resourceClaimName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getResourceClaimNameBytes() {
java.lang.Object ref = resourceClaimName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceClaimName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RESOURCE_CLAIM_TEMPLATE_NAME_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object resourceClaimTemplateName_ = "";
/**
* <pre>
* ResourceClaimTemplateName is the name of a ResourceClaimTemplate
* object in the same namespace as this pod.
*
* The template will be used to create a new ResourceClaim, which will
* be bound to this pod. When this pod is deleted, the ResourceClaim
* will also be deleted. The pod name and resource name, along with a
* generated component, will be used to form a unique name for the
* ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses.
*
* This field is immutable and no changes will be made to the
* corresponding ResourceClaim by the control plane after creating the
* ResourceClaim.
* </pre>
*
* <code>optional string resource_claim_template_name = 2 [json_name = "resourceClaimTemplateName"];</code>
* @return Whether the resourceClaimTemplateName field is set.
*/
@java.lang.Override
public boolean hasResourceClaimTemplateName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* <pre>
* ResourceClaimTemplateName is the name of a ResourceClaimTemplate
* object in the same namespace as this pod.
*
* The template will be used to create a new ResourceClaim, which will
* be bound to this pod. When this pod is deleted, the ResourceClaim
* will also be deleted. The pod name and resource name, along with a
* generated component, will be used to form a unique name for the
* ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses.
*
* This field is immutable and no changes will be made to the
* corresponding ResourceClaim by the control plane after creating the
* ResourceClaim.
* </pre>
*
* <code>optional string resource_claim_template_name = 2 [json_name = "resourceClaimTemplateName"];</code>
* @return The resourceClaimTemplateName.
*/
@java.lang.Override
public java.lang.String getResourceClaimTemplateName() {
java.lang.Object ref = resourceClaimTemplateName_;
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();
resourceClaimTemplateName_ = s;
return s;
}
}
/**
* <pre>
* ResourceClaimTemplateName is the name of a ResourceClaimTemplate
* object in the same namespace as this pod.
*
* The template will be used to create a new ResourceClaim, which will
* be bound to this pod. When this pod is deleted, the ResourceClaim
* will also be deleted. The pod name and resource name, along with a
* generated component, will be used to form a unique name for the
* ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses.
*
* This field is immutable and no changes will be made to the
* corresponding ResourceClaim by the control plane after creating the
* ResourceClaim.
* </pre>
*
* <code>optional string resource_claim_template_name = 2 [json_name = "resourceClaimTemplateName"];</code>
* @return The bytes for resourceClaimTemplateName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getResourceClaimTemplateNameBytes() {
java.lang.Object ref = resourceClaimTemplateName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceClaimTemplateName_ = 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 (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceClaimName_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, resourceClaimTemplateName_);
}
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.GeneratedMessageV3.computeStringSize(1, resourceClaimName_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, resourceClaimTemplateName_);
}
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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource other = (ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource) obj;
if (hasResourceClaimName() != other.hasResourceClaimName()) return false;
if (hasResourceClaimName()) {
if (!getResourceClaimName()
.equals(other.getResourceClaimName())) return false;
}
if (hasResourceClaimTemplateName() != other.hasResourceClaimTemplateName()) return false;
if (hasResourceClaimTemplateName()) {
if (!getResourceClaimTemplateName()
.equals(other.getResourceClaimTemplateName())) 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 (hasResourceClaimName()) {
hash = (37 * hash) + RESOURCE_CLAIM_NAME_FIELD_NUMBER;
hash = (53 * hash) + getResourceClaimName().hashCode();
}
if (hasResourceClaimTemplateName()) {
hash = (37 * hash) + RESOURCE_CLAIM_TEMPLATE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getResourceClaimTemplateName().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource 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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource 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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource 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(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource 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;
}
/**
* <pre>
* ClaimSource describes a reference to a ResourceClaim.
*
* Exactly one of these fields should be set. Consumers of this type must
* treat an empty object as if it has an unknown value.
* </pre>
*
* Protobuf type {@code chalk.pubsub.v1.PodStatusPubSub.ClaimSource}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.pubsub.v1.PodStatusPubSub.ClaimSource)
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSourceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_ClaimSource_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_ClaimSource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource.class, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource.Builder.class);
}
// Construct using ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
resourceClaimName_ = "";
resourceClaimTemplateName_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_ClaimSource_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource getDefaultInstanceForType() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource build() {
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource buildPartial() {
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource result = new ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.resourceClaimName_ = resourceClaimName_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.resourceClaimTemplateName_ = resourceClaimTemplateName_;
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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource) {
return mergeFrom((ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource other) {
if (other == ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource.getDefaultInstance()) return this;
if (other.hasResourceClaimName()) {
resourceClaimName_ = other.resourceClaimName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasResourceClaimTemplateName()) {
resourceClaimTemplateName_ = other.resourceClaimTemplateName_;
bitField0_ |= 0x00000002;
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: {
resourceClaimName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
resourceClaimTemplateName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object resourceClaimName_ = "";
/**
* <pre>
* ResourceClaimName is the name of a ResourceClaim object in the same
* namespace as this pod.
* </pre>
*
* <code>optional string resource_claim_name = 1 [json_name = "resourceClaimName"];</code>
* @return Whether the resourceClaimName field is set.
*/
public boolean hasResourceClaimName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <pre>
* ResourceClaimName is the name of a ResourceClaim object in the same
* namespace as this pod.
* </pre>
*
* <code>optional string resource_claim_name = 1 [json_name = "resourceClaimName"];</code>
* @return The resourceClaimName.
*/
public java.lang.String getResourceClaimName() {
java.lang.Object ref = resourceClaimName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
resourceClaimName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* ResourceClaimName is the name of a ResourceClaim object in the same
* namespace as this pod.
* </pre>
*
* <code>optional string resource_claim_name = 1 [json_name = "resourceClaimName"];</code>
* @return The bytes for resourceClaimName.
*/
public com.google.protobuf.ByteString
getResourceClaimNameBytes() {
java.lang.Object ref = resourceClaimName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceClaimName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* ResourceClaimName is the name of a ResourceClaim object in the same
* namespace as this pod.
* </pre>
*
* <code>optional string resource_claim_name = 1 [json_name = "resourceClaimName"];</code>
* @param value The resourceClaimName to set.
* @return This builder for chaining.
*/
public Builder setResourceClaimName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
resourceClaimName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <pre>
* ResourceClaimName is the name of a ResourceClaim object in the same
* namespace as this pod.
* </pre>
*
* <code>optional string resource_claim_name = 1 [json_name = "resourceClaimName"];</code>
* @return This builder for chaining.
*/
public Builder clearResourceClaimName() {
resourceClaimName_ = getDefaultInstance().getResourceClaimName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* <pre>
* ResourceClaimName is the name of a ResourceClaim object in the same
* namespace as this pod.
* </pre>
*
* <code>optional string resource_claim_name = 1 [json_name = "resourceClaimName"];</code>
* @param value The bytes for resourceClaimName to set.
* @return This builder for chaining.
*/
public Builder setResourceClaimNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
resourceClaimName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object resourceClaimTemplateName_ = "";
/**
* <pre>
* ResourceClaimTemplateName is the name of a ResourceClaimTemplate
* object in the same namespace as this pod.
*
* The template will be used to create a new ResourceClaim, which will
* be bound to this pod. When this pod is deleted, the ResourceClaim
* will also be deleted. The pod name and resource name, along with a
* generated component, will be used to form a unique name for the
* ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses.
*
* This field is immutable and no changes will be made to the
* corresponding ResourceClaim by the control plane after creating the
* ResourceClaim.
* </pre>
*
* <code>optional string resource_claim_template_name = 2 [json_name = "resourceClaimTemplateName"];</code>
* @return Whether the resourceClaimTemplateName field is set.
*/
public boolean hasResourceClaimTemplateName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* <pre>
* ResourceClaimTemplateName is the name of a ResourceClaimTemplate
* object in the same namespace as this pod.
*
* The template will be used to create a new ResourceClaim, which will
* be bound to this pod. When this pod is deleted, the ResourceClaim
* will also be deleted. The pod name and resource name, along with a
* generated component, will be used to form a unique name for the
* ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses.
*
* This field is immutable and no changes will be made to the
* corresponding ResourceClaim by the control plane after creating the
* ResourceClaim.
* </pre>
*
* <code>optional string resource_claim_template_name = 2 [json_name = "resourceClaimTemplateName"];</code>
* @return The resourceClaimTemplateName.
*/
public java.lang.String getResourceClaimTemplateName() {
java.lang.Object ref = resourceClaimTemplateName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
resourceClaimTemplateName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* ResourceClaimTemplateName is the name of a ResourceClaimTemplate
* object in the same namespace as this pod.
*
* The template will be used to create a new ResourceClaim, which will
* be bound to this pod. When this pod is deleted, the ResourceClaim
* will also be deleted. The pod name and resource name, along with a
* generated component, will be used to form a unique name for the
* ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses.
*
* This field is immutable and no changes will be made to the
* corresponding ResourceClaim by the control plane after creating the
* ResourceClaim.
* </pre>
*
* <code>optional string resource_claim_template_name = 2 [json_name = "resourceClaimTemplateName"];</code>
* @return The bytes for resourceClaimTemplateName.
*/
public com.google.protobuf.ByteString
getResourceClaimTemplateNameBytes() {
java.lang.Object ref = resourceClaimTemplateName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceClaimTemplateName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* ResourceClaimTemplateName is the name of a ResourceClaimTemplate
* object in the same namespace as this pod.
*
* The template will be used to create a new ResourceClaim, which will
* be bound to this pod. When this pod is deleted, the ResourceClaim
* will also be deleted. The pod name and resource name, along with a
* generated component, will be used to form a unique name for the
* ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses.
*
* This field is immutable and no changes will be made to the
* corresponding ResourceClaim by the control plane after creating the
* ResourceClaim.
* </pre>
*
* <code>optional string resource_claim_template_name = 2 [json_name = "resourceClaimTemplateName"];</code>
* @param value The resourceClaimTemplateName to set.
* @return This builder for chaining.
*/
public Builder setResourceClaimTemplateName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
resourceClaimTemplateName_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <pre>
* ResourceClaimTemplateName is the name of a ResourceClaimTemplate
* object in the same namespace as this pod.
*
* The template will be used to create a new ResourceClaim, which will
* be bound to this pod. When this pod is deleted, the ResourceClaim
* will also be deleted. The pod name and resource name, along with a
* generated component, will be used to form a unique name for the
* ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses.
*
* This field is immutable and no changes will be made to the
* corresponding ResourceClaim by the control plane after creating the
* ResourceClaim.
* </pre>
*
* <code>optional string resource_claim_template_name = 2 [json_name = "resourceClaimTemplateName"];</code>
* @return This builder for chaining.
*/
public Builder clearResourceClaimTemplateName() {
resourceClaimTemplateName_ = getDefaultInstance().getResourceClaimTemplateName();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* <pre>
* ResourceClaimTemplateName is the name of a ResourceClaimTemplate
* object in the same namespace as this pod.
*
* The template will be used to create a new ResourceClaim, which will
* be bound to this pod. When this pod is deleted, the ResourceClaim
* will also be deleted. The pod name and resource name, along with a
* generated component, will be used to form a unique name for the
* ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses.
*
* This field is immutable and no changes will be made to the
* corresponding ResourceClaim by the control plane after creating the
* ResourceClaim.
* </pre>
*
* <code>optional string resource_claim_template_name = 2 [json_name = "resourceClaimTemplateName"];</code>
* @param value The bytes for resourceClaimTemplateName to set.
* @return This builder for chaining.
*/
public Builder setResourceClaimTemplateNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
resourceClaimTemplateName_ = value;
bitField0_ |= 0x00000002;
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:chalk.pubsub.v1.PodStatusPubSub.ClaimSource)
}
// @@protoc_insertion_point(class_scope:chalk.pubsub.v1.PodStatusPubSub.ClaimSource)
private static final ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource();
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<ClaimSource>
PARSER = new com.google.protobuf.AbstractParser<ClaimSource>() {
@java.lang.Override
public ClaimSource 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<ClaimSource> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<ClaimSource> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PodResourceClaimOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* Name uniquely identifies this resource claim inside the pod.
* This must be a DNS_LABEL.
* </pre>
*
* <code>string name = 1 [json_name = "name"];</code>
* @return The name.
*/
java.lang.String getName();
/**
* <pre>
* Name uniquely identifies this resource claim inside the pod.
* This must be a DNS_LABEL.
* </pre>
*
* <code>string name = 1 [json_name = "name"];</code>
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* <pre>
* Source describes where to find the ResourceClaim.
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ClaimSource source = 2 [json_name = "source"];</code>
* @return Whether the source field is set.
*/
boolean hasSource();
/**
* <pre>
* Source describes where to find the ResourceClaim.
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ClaimSource source = 2 [json_name = "source"];</code>
* @return The source.
*/
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource getSource();
/**
* <pre>
* Source describes where to find the ResourceClaim.
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ClaimSource source = 2 [json_name = "source"];</code>
*/
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSourceOrBuilder getSourceOrBuilder();
}
/**
* <pre>
* PodResourceClaim references exactly one ResourceClaim through a ClaimSource.
* It adds a name to it that uniquely identifies the ResourceClaim inside the Pod.
* Containers that need access to the ResourceClaim reference it with this name.
* </pre>
*
* Protobuf type {@code chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim}
*/
public static final class PodResourceClaim extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim)
PodResourceClaimOrBuilder {
private static final long serialVersionUID = 0L;
// Use PodResourceClaim.newBuilder() to construct.
private PodResourceClaim(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private PodResourceClaim() {
name_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PodResourceClaim();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_PodResourceClaim_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_PodResourceClaim_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim.class, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
* <pre>
* Name uniquely identifies this resource claim inside the pod.
* This must be a DNS_LABEL.
* </pre>
*
* <code>string name = 1 [json_name = "name"];</code>
* @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;
}
}
/**
* <pre>
* Name uniquely identifies this resource claim inside the pod.
* This must be a DNS_LABEL.
* </pre>
*
* <code>string name = 1 [json_name = "name"];</code>
* @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 SOURCE_FIELD_NUMBER = 2;
private ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource source_;
/**
* <pre>
* Source describes where to find the ResourceClaim.
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ClaimSource source = 2 [json_name = "source"];</code>
* @return Whether the source field is set.
*/
@java.lang.Override
public boolean hasSource() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <pre>
* Source describes where to find the ResourceClaim.
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ClaimSource source = 2 [json_name = "source"];</code>
* @return The source.
*/
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource getSource() {
return source_ == null ? ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource.getDefaultInstance() : source_;
}
/**
* <pre>
* Source describes where to find the ResourceClaim.
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ClaimSource source = 2 [json_name = "source"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSourceOrBuilder getSourceOrBuilder() {
return source_ == null ? ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource.getDefaultInstance() : source_;
}
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, getSource());
}
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, getSource());
}
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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim other = (ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim) obj;
if (!getName()
.equals(other.getName())) return false;
if (hasSource() != other.hasSource()) return false;
if (hasSource()) {
if (!getSource()
.equals(other.getSource())) 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 (hasSource()) {
hash = (37 * hash) + SOURCE_FIELD_NUMBER;
hash = (53 * hash) + getSource().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim 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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim 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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim 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(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim 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;
}
/**
* <pre>
* PodResourceClaim references exactly one ResourceClaim through a ClaimSource.
* It adds a name to it that uniquely identifies the ResourceClaim inside the Pod.
* Containers that need access to the ResourceClaim reference it with this name.
* </pre>
*
* Protobuf type {@code chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim)
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaimOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_PodResourceClaim_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_PodResourceClaim_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim.class, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim.Builder.class);
}
// Construct using ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSourceFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
source_ = null;
if (sourceBuilder_ != null) {
sourceBuilder_.dispose();
sourceBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_PodResourceClaim_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim getDefaultInstanceForType() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim build() {
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim buildPartial() {
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim result = new ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.source_ = sourceBuilder_ == null
? source_
: sourceBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim) {
return mergeFrom((ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim other) {
if (other == ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasSource()) {
mergeSource(other.getSource());
}
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(
getSourceFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
* <pre>
* Name uniquely identifies this resource claim inside the pod.
* This must be a DNS_LABEL.
* </pre>
*
* <code>string name = 1 [json_name = "name"];</code>
* @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;
}
}
/**
* <pre>
* Name uniquely identifies this resource claim inside the pod.
* This must be a DNS_LABEL.
* </pre>
*
* <code>string name = 1 [json_name = "name"];</code>
* @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;
}
}
/**
* <pre>
* Name uniquely identifies this resource claim inside the pod.
* This must be a DNS_LABEL.
* </pre>
*
* <code>string name = 1 [json_name = "name"];</code>
* @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;
}
/**
* <pre>
* Name uniquely identifies this resource claim inside the pod.
* This must be a DNS_LABEL.
* </pre>
*
* <code>string name = 1 [json_name = "name"];</code>
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* <pre>
* Name uniquely identifies this resource claim inside the pod.
* This must be a DNS_LABEL.
* </pre>
*
* <code>string name = 1 [json_name = "name"];</code>
* @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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource source_;
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSourceOrBuilder> sourceBuilder_;
/**
* <pre>
* Source describes where to find the ResourceClaim.
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ClaimSource source = 2 [json_name = "source"];</code>
* @return Whether the source field is set.
*/
public boolean hasSource() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* <pre>
* Source describes where to find the ResourceClaim.
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ClaimSource source = 2 [json_name = "source"];</code>
* @return The source.
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource getSource() {
if (sourceBuilder_ == null) {
return source_ == null ? ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource.getDefaultInstance() : source_;
} else {
return sourceBuilder_.getMessage();
}
}
/**
* <pre>
* Source describes where to find the ResourceClaim.
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ClaimSource source = 2 [json_name = "source"];</code>
*/
public Builder setSource(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource value) {
if (sourceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
source_ = value;
} else {
sourceBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <pre>
* Source describes where to find the ResourceClaim.
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ClaimSource source = 2 [json_name = "source"];</code>
*/
public Builder setSource(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource.Builder builderForValue) {
if (sourceBuilder_ == null) {
source_ = builderForValue.build();
} else {
sourceBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <pre>
* Source describes where to find the ResourceClaim.
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ClaimSource source = 2 [json_name = "source"];</code>
*/
public Builder mergeSource(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource value) {
if (sourceBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
source_ != null &&
source_ != ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource.getDefaultInstance()) {
getSourceBuilder().mergeFrom(value);
} else {
source_ = value;
}
} else {
sourceBuilder_.mergeFrom(value);
}
if (source_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
* <pre>
* Source describes where to find the ResourceClaim.
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ClaimSource source = 2 [json_name = "source"];</code>
*/
public Builder clearSource() {
bitField0_ = (bitField0_ & ~0x00000002);
source_ = null;
if (sourceBuilder_ != null) {
sourceBuilder_.dispose();
sourceBuilder_ = null;
}
onChanged();
return this;
}
/**
* <pre>
* Source describes where to find the ResourceClaim.
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ClaimSource source = 2 [json_name = "source"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource.Builder getSourceBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getSourceFieldBuilder().getBuilder();
}
/**
* <pre>
* Source describes where to find the ResourceClaim.
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ClaimSource source = 2 [json_name = "source"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSourceOrBuilder getSourceOrBuilder() {
if (sourceBuilder_ != null) {
return sourceBuilder_.getMessageOrBuilder();
} else {
return source_ == null ?
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource.getDefaultInstance() : source_;
}
}
/**
* <pre>
* Source describes where to find the ResourceClaim.
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ClaimSource source = 2 [json_name = "source"];</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSourceOrBuilder>
getSourceFieldBuilder() {
if (sourceBuilder_ == null) {
sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSource.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ClaimSourceOrBuilder>(
getSource(),
getParentForChildren(),
isClean());
source_ = null;
}
return sourceBuilder_;
}
@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:chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim)
}
// @@protoc_insertion_point(class_scope:chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim)
private static final ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim();
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<PodResourceClaim>
PARSER = new com.google.protobuf.AbstractParser<PodResourceClaim>() {
@java.lang.Override
public PodResourceClaim 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<PodResourceClaim> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<PodResourceClaim> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PodSpecOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.pubsub.v1.PodStatusPubSub.PodSpec)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* List of volumes that can be mounted by containers belonging to the pod.
* More info: https://kubernetes.io/docs/concepts/storage/volumes
* +optional
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Volume volumes = 1 [json_name = "volumes"];</code>
*/
java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume>
getVolumesList();
/**
* <pre>
* List of volumes that can be mounted by containers belonging to the pod.
* More info: https://kubernetes.io/docs/concepts/storage/volumes
* +optional
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Volume volumes = 1 [json_name = "volumes"];</code>
*/
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume getVolumes(int index);
/**
* <pre>
* List of volumes that can be mounted by containers belonging to the pod.
* More info: https://kubernetes.io/docs/concepts/storage/volumes
* +optional
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Volume volumes = 1 [json_name = "volumes"];</code>
*/
int getVolumesCount();
/**
* <pre>
* List of volumes that can be mounted by containers belonging to the pod.
* More info: https://kubernetes.io/docs/concepts/storage/volumes
* +optional
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Volume volumes = 1 [json_name = "volumes"];</code>
*/
java.util.List<? extends ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.VolumeOrBuilder>
getVolumesOrBuilderList();
/**
* <pre>
* List of volumes that can be mounted by containers belonging to the pod.
* More info: https://kubernetes.io/docs/concepts/storage/volumes
* +optional
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Volume volumes = 1 [json_name = "volumes"];</code>
*/
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.VolumeOrBuilder getVolumesOrBuilder(
int index);
/**
* <pre>
* List of initialization containers belonging to the pod.
* Init containers are executed in order prior to containers being started. If any
* init container fails, the pod is considered to have failed and is handled according
* to its restartPolicy. The name for an init container or normal container must be
* unique among all containers.
* Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
* The resourceRequirements of an init container are taken into account during scheduling
* by finding the highest request/limit for each resource type, and then using the max of
* of that value or the sum of the normal containers. Limits are applied to init containers
* in a similar fashion.
* Init containers cannot currently be added or removed.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container init_containers = 20 [json_name = "initContainers"];</code>
*/
java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container>
getInitContainersList();
/**
* <pre>
* List of initialization containers belonging to the pod.
* Init containers are executed in order prior to containers being started. If any
* init container fails, the pod is considered to have failed and is handled according
* to its restartPolicy. The name for an init container or normal container must be
* unique among all containers.
* Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
* The resourceRequirements of an init container are taken into account during scheduling
* by finding the highest request/limit for each resource type, and then using the max of
* of that value or the sum of the normal containers. Limits are applied to init containers
* in a similar fashion.
* Init containers cannot currently be added or removed.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container init_containers = 20 [json_name = "initContainers"];</code>
*/
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container getInitContainers(int index);
/**
* <pre>
* List of initialization containers belonging to the pod.
* Init containers are executed in order prior to containers being started. If any
* init container fails, the pod is considered to have failed and is handled according
* to its restartPolicy. The name for an init container or normal container must be
* unique among all containers.
* Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
* The resourceRequirements of an init container are taken into account during scheduling
* by finding the highest request/limit for each resource type, and then using the max of
* of that value or the sum of the normal containers. Limits are applied to init containers
* in a similar fashion.
* Init containers cannot currently be added or removed.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container init_containers = 20 [json_name = "initContainers"];</code>
*/
int getInitContainersCount();
/**
* <pre>
* List of initialization containers belonging to the pod.
* Init containers are executed in order prior to containers being started. If any
* init container fails, the pod is considered to have failed and is handled according
* to its restartPolicy. The name for an init container or normal container must be
* unique among all containers.
* Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
* The resourceRequirements of an init container are taken into account during scheduling
* by finding the highest request/limit for each resource type, and then using the max of
* of that value or the sum of the normal containers. Limits are applied to init containers
* in a similar fashion.
* Init containers cannot currently be added or removed.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container init_containers = 20 [json_name = "initContainers"];</code>
*/
java.util.List<? extends ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerOrBuilder>
getInitContainersOrBuilderList();
/**
* <pre>
* List of initialization containers belonging to the pod.
* Init containers are executed in order prior to containers being started. If any
* init container fails, the pod is considered to have failed and is handled according
* to its restartPolicy. The name for an init container or normal container must be
* unique among all containers.
* Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
* The resourceRequirements of an init container are taken into account during scheduling
* by finding the highest request/limit for each resource type, and then using the max of
* of that value or the sum of the normal containers. Limits are applied to init containers
* in a similar fashion.
* Init containers cannot currently be added or removed.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container init_containers = 20 [json_name = "initContainers"];</code>
*/
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerOrBuilder getInitContainersOrBuilder(
int index);
/**
* <pre>
* List of containers belonging to the pod.
* Containers cannot currently be added or removed.
* There must be at least one container in a Pod.
* Cannot be updated.
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container containers = 2 [json_name = "containers"];</code>
*/
java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container>
getContainersList();
/**
* <pre>
* List of containers belonging to the pod.
* Containers cannot currently be added or removed.
* There must be at least one container in a Pod.
* Cannot be updated.
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container containers = 2 [json_name = "containers"];</code>
*/
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container getContainers(int index);
/**
* <pre>
* List of containers belonging to the pod.
* Containers cannot currently be added or removed.
* There must be at least one container in a Pod.
* Cannot be updated.
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container containers = 2 [json_name = "containers"];</code>
*/
int getContainersCount();
/**
* <pre>
* List of containers belonging to the pod.
* Containers cannot currently be added or removed.
* There must be at least one container in a Pod.
* Cannot be updated.
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container containers = 2 [json_name = "containers"];</code>
*/
java.util.List<? extends ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerOrBuilder>
getContainersOrBuilderList();
/**
* <pre>
* List of containers belonging to the pod.
* Containers cannot currently be added or removed.
* There must be at least one container in a Pod.
* Cannot be updated.
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container containers = 2 [json_name = "containers"];</code>
*/
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerOrBuilder getContainersOrBuilder(
int index);
/**
* <pre>
* Restart policy for all containers within the pod.
* One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted.
* Default to Always.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy
* +optional
* </pre>
*
* <code>optional string restart_policy = 3 [json_name = "restartPolicy"];</code>
* @return Whether the restartPolicy field is set.
*/
boolean hasRestartPolicy();
/**
* <pre>
* Restart policy for all containers within the pod.
* One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted.
* Default to Always.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy
* +optional
* </pre>
*
* <code>optional string restart_policy = 3 [json_name = "restartPolicy"];</code>
* @return The restartPolicy.
*/
java.lang.String getRestartPolicy();
/**
* <pre>
* Restart policy for all containers within the pod.
* One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted.
* Default to Always.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy
* +optional
* </pre>
*
* <code>optional string restart_policy = 3 [json_name = "restartPolicy"];</code>
* @return The bytes for restartPolicy.
*/
com.google.protobuf.ByteString
getRestartPolicyBytes();
/**
* <pre>
* Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request.
* Value must be non-negative integer. The value zero indicates stop immediately via
* the kill signal (no opportunity to shut down).
* If this value is nil, the default grace period will be used instead.
* The grace period is the duration in seconds after the processes running in the pod are sent
* a termination signal and the time when the processes are forcibly halted with a kill signal.
* Set this value longer than the expected cleanup time for your process.
* Defaults to 30 seconds.
* +optional
* </pre>
*
* <code>optional int64 termination_grace_period_seconds = 4 [json_name = "terminationGracePeriodSeconds"];</code>
* @return Whether the terminationGracePeriodSeconds field is set.
*/
boolean hasTerminationGracePeriodSeconds();
/**
* <pre>
* Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request.
* Value must be non-negative integer. The value zero indicates stop immediately via
* the kill signal (no opportunity to shut down).
* If this value is nil, the default grace period will be used instead.
* The grace period is the duration in seconds after the processes running in the pod are sent
* a termination signal and the time when the processes are forcibly halted with a kill signal.
* Set this value longer than the expected cleanup time for your process.
* Defaults to 30 seconds.
* +optional
* </pre>
*
* <code>optional int64 termination_grace_period_seconds = 4 [json_name = "terminationGracePeriodSeconds"];</code>
* @return The terminationGracePeriodSeconds.
*/
long getTerminationGracePeriodSeconds();
/**
* <pre>
* Optional duration in seconds the pod may be active on the node relative to
* start_time before the system will actively try to mark it failed and kill associated containers.
* Value must be a positive integer.
* +optional
* </pre>
*
* <code>optional int64 active_deadline_seconds = 5 [json_name = "activeDeadlineSeconds"];</code>
* @return Whether the activeDeadlineSeconds field is set.
*/
boolean hasActiveDeadlineSeconds();
/**
* <pre>
* Optional duration in seconds the pod may be active on the node relative to
* start_time before the system will actively try to mark it failed and kill associated containers.
* Value must be a positive integer.
* +optional
* </pre>
*
* <code>optional int64 active_deadline_seconds = 5 [json_name = "activeDeadlineSeconds"];</code>
* @return The activeDeadlineSeconds.
*/
long getActiveDeadlineSeconds();
/**
* <pre>
* Set DNS policy for the pod.
* Defaults to "ClusterFirst".
* Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'.
* DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy.
* To have DNS options set along with hostNetwork, you have to specify DNS policy
* explicitly to 'ClusterFirstWithHostNet'.
* +optional
* </pre>
*
* <code>optional string dns_policy = 6 [json_name = "dnsPolicy"];</code>
* @return Whether the dnsPolicy field is set.
*/
boolean hasDnsPolicy();
/**
* <pre>
* Set DNS policy for the pod.
* Defaults to "ClusterFirst".
* Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'.
* DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy.
* To have DNS options set along with hostNetwork, you have to specify DNS policy
* explicitly to 'ClusterFirstWithHostNet'.
* +optional
* </pre>
*
* <code>optional string dns_policy = 6 [json_name = "dnsPolicy"];</code>
* @return The dnsPolicy.
*/
java.lang.String getDnsPolicy();
/**
* <pre>
* Set DNS policy for the pod.
* Defaults to "ClusterFirst".
* Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'.
* DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy.
* To have DNS options set along with hostNetwork, you have to specify DNS policy
* explicitly to 'ClusterFirstWithHostNet'.
* +optional
* </pre>
*
* <code>optional string dns_policy = 6 [json_name = "dnsPolicy"];</code>
* @return The bytes for dnsPolicy.
*/
com.google.protobuf.ByteString
getDnsPolicyBytes();
/**
* <pre>
* NodeSelector is a selector which must be true for the pod to fit on a node.
* Selector which must match a node's labels for the pod to be scheduled on that node.
* More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
* +optional
* +mapType=atomic
* </pre>
*
* <code>map<string, string> node_selector = 7 [json_name = "nodeSelector"];</code>
*/
int getNodeSelectorCount();
/**
* <pre>
* NodeSelector is a selector which must be true for the pod to fit on a node.
* Selector which must match a node's labels for the pod to be scheduled on that node.
* More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
* +optional
* +mapType=atomic
* </pre>
*
* <code>map<string, string> node_selector = 7 [json_name = "nodeSelector"];</code>
*/
boolean containsNodeSelector(
java.lang.String key);
/**
* Use {@link #getNodeSelectorMap()} instead.
*/
@java.lang.Deprecated
java.util.Map<java.lang.String, java.lang.String>
getNodeSelector();
/**
* <pre>
* NodeSelector is a selector which must be true for the pod to fit on a node.
* Selector which must match a node's labels for the pod to be scheduled on that node.
* More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
* +optional
* +mapType=atomic
* </pre>
*
* <code>map<string, string> node_selector = 7 [json_name = "nodeSelector"];</code>
*/
java.util.Map<java.lang.String, java.lang.String>
getNodeSelectorMap();
/**
* <pre>
* NodeSelector is a selector which must be true for the pod to fit on a node.
* Selector which must match a node's labels for the pod to be scheduled on that node.
* More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
* +optional
* +mapType=atomic
* </pre>
*
* <code>map<string, string> node_selector = 7 [json_name = "nodeSelector"];</code>
*/
/* nullable */
java.lang.String getNodeSelectorOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue);
/**
* <pre>
* NodeSelector is a selector which must be true for the pod to fit on a node.
* Selector which must match a node's labels for the pod to be scheduled on that node.
* More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
* +optional
* +mapType=atomic
* </pre>
*
* <code>map<string, string> node_selector = 7 [json_name = "nodeSelector"];</code>
*/
java.lang.String getNodeSelectorOrThrow(
java.lang.String key);
/**
* <pre>
* ServiceAccountName is the name of the ServiceAccount to use to run this pod.
* More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
* +optional
* </pre>
*
* <code>optional string service_account_name = 8 [json_name = "serviceAccountName"];</code>
* @return Whether the serviceAccountName field is set.
*/
boolean hasServiceAccountName();
/**
* <pre>
* ServiceAccountName is the name of the ServiceAccount to use to run this pod.
* More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
* +optional
* </pre>
*
* <code>optional string service_account_name = 8 [json_name = "serviceAccountName"];</code>
* @return The serviceAccountName.
*/
java.lang.String getServiceAccountName();
/**
* <pre>
* ServiceAccountName is the name of the ServiceAccount to use to run this pod.
* More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
* +optional
* </pre>
*
* <code>optional string service_account_name = 8 [json_name = "serviceAccountName"];</code>
* @return The bytes for serviceAccountName.
*/
com.google.protobuf.ByteString
getServiceAccountNameBytes();
/**
* <pre>
* AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.
* +optional
* </pre>
*
* <code>optional bool automount_service_account_token = 21 [json_name = "automountServiceAccountToken"];</code>
* @return Whether the automountServiceAccountToken field is set.
*/
boolean hasAutomountServiceAccountToken();
/**
* <pre>
* AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.
* +optional
* </pre>
*
* <code>optional bool automount_service_account_token = 21 [json_name = "automountServiceAccountToken"];</code>
* @return The automountServiceAccountToken.
*/
boolean getAutomountServiceAccountToken();
/**
* <pre>
* NodeName is a request to schedule this pod onto a specific node. If it is non-empty,
* the scheduler simply schedules this pod onto that node, assuming that it fits resource
* requirements.
* +optional
* </pre>
*
* <code>optional string node_name = 10 [json_name = "nodeName"];</code>
* @return Whether the nodeName field is set.
*/
boolean hasNodeName();
/**
* <pre>
* NodeName is a request to schedule this pod onto a specific node. If it is non-empty,
* the scheduler simply schedules this pod onto that node, assuming that it fits resource
* requirements.
* +optional
* </pre>
*
* <code>optional string node_name = 10 [json_name = "nodeName"];</code>
* @return The nodeName.
*/
java.lang.String getNodeName();
/**
* <pre>
* NodeName is a request to schedule this pod onto a specific node. If it is non-empty,
* the scheduler simply schedules this pod onto that node, assuming that it fits resource
* requirements.
* +optional
* </pre>
*
* <code>optional string node_name = 10 [json_name = "nodeName"];</code>
* @return The bytes for nodeName.
*/
com.google.protobuf.ByteString
getNodeNameBytes();
/**
* <pre>
* Host networking requested for this pod. Use the host's network namespace.
* If this option is set, the ports that will be used must be specified.
* Default to false.
* +k8s:conversion-gen=false
* +optional
* </pre>
*
* <code>bool host_network = 11 [json_name = "hostNetwork"];</code>
* @return The hostNetwork.
*/
boolean getHostNetwork();
/**
* <pre>
* Use the host's pid namespace.
* Optional: Default to false.
* +k8s:conversion-gen=false
* +optional
* </pre>
*
* <code>bool host_pid = 12 [json_name = "hostPid"];</code>
* @return The hostPid.
*/
boolean getHostPid();
/**
* <pre>
* Use the host's ipc namespace.
* Optional: Default to false.
* +k8s:conversion-gen=false
* +optional
* </pre>
*
* <code>bool host_ipc = 13 [json_name = "hostIpc"];</code>
* @return The hostIpc.
*/
boolean getHostIpc();
/**
* <pre>
* Share a single process namespace between all of the containers in a pod.
* When this is set containers will be able to view and signal processes from other containers
* in the same pod, and the first process in each container will not be assigned PID 1.
* HostPID and ShareProcessNamespace cannot both be set.
* Optional: Default to false.
* +k8s:conversion-gen=false
* +optional
* </pre>
*
* <code>bool share_process_namespace = 27 [json_name = "shareProcessNamespace"];</code>
* @return The shareProcessNamespace.
*/
boolean getShareProcessNamespace();
/**
* <pre>
* Specifies the hostname of the Pod
* If not specified, the pod's hostname will be set to a system-defined value.
* +optional
* </pre>
*
* <code>optional string hostname = 16 [json_name = "hostname"];</code>
* @return Whether the hostname field is set.
*/
boolean hasHostname();
/**
* <pre>
* Specifies the hostname of the Pod
* If not specified, the pod's hostname will be set to a system-defined value.
* +optional
* </pre>
*
* <code>optional string hostname = 16 [json_name = "hostname"];</code>
* @return The hostname.
*/
java.lang.String getHostname();
/**
* <pre>
* Specifies the hostname of the Pod
* If not specified, the pod's hostname will be set to a system-defined value.
* +optional
* </pre>
*
* <code>optional string hostname = 16 [json_name = "hostname"];</code>
* @return The bytes for hostname.
*/
com.google.protobuf.ByteString
getHostnameBytes();
/**
* <pre>
* If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>".
* If not specified, the pod will not have a domainname at all.
* +optional
* </pre>
*
* <code>optional string subdomain = 17 [json_name = "subdomain"];</code>
* @return Whether the subdomain field is set.
*/
boolean hasSubdomain();
/**
* <pre>
* If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>".
* If not specified, the pod will not have a domainname at all.
* +optional
* </pre>
*
* <code>optional string subdomain = 17 [json_name = "subdomain"];</code>
* @return The subdomain.
*/
java.lang.String getSubdomain();
/**
* <pre>
* If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>".
* If not specified, the pod will not have a domainname at all.
* +optional
* </pre>
*
* <code>optional string subdomain = 17 [json_name = "subdomain"];</code>
* @return The bytes for subdomain.
*/
com.google.protobuf.ByteString
getSubdomainBytes();
/**
* <pre>
* If specified, the pod will be dispatched by specified scheduler.
* If not specified, the pod will be dispatched by default scheduler.
* +optional
* </pre>
*
* <code>optional string scheduler_name = 19 [json_name = "schedulerName"];</code>
* @return Whether the schedulerName field is set.
*/
boolean hasSchedulerName();
/**
* <pre>
* If specified, the pod will be dispatched by specified scheduler.
* If not specified, the pod will be dispatched by default scheduler.
* +optional
* </pre>
*
* <code>optional string scheduler_name = 19 [json_name = "schedulerName"];</code>
* @return The schedulerName.
*/
java.lang.String getSchedulerName();
/**
* <pre>
* If specified, the pod will be dispatched by specified scheduler.
* If not specified, the pod will be dispatched by default scheduler.
* +optional
* </pre>
*
* <code>optional string scheduler_name = 19 [json_name = "schedulerName"];</code>
* @return The bytes for schedulerName.
*/
com.google.protobuf.ByteString
getSchedulerNameBytes();
/**
* <pre>
* If specified, indicates the pod's priority. "system-node-critical" and
* "system-cluster-critical" are two special keywords which indicate the
* highest priorities with the former being the highest priority. Any other
* name must be defined by creating a PriorityClass object with that name.
* If not specified, the pod priority will be default or zero if there is no
* default.
* +optional
* </pre>
*
* <code>optional string priority_class_name = 24 [json_name = "priorityClassName"];</code>
* @return Whether the priorityClassName field is set.
*/
boolean hasPriorityClassName();
/**
* <pre>
* If specified, indicates the pod's priority. "system-node-critical" and
* "system-cluster-critical" are two special keywords which indicate the
* highest priorities with the former being the highest priority. Any other
* name must be defined by creating a PriorityClass object with that name.
* If not specified, the pod priority will be default or zero if there is no
* default.
* +optional
* </pre>
*
* <code>optional string priority_class_name = 24 [json_name = "priorityClassName"];</code>
* @return The priorityClassName.
*/
java.lang.String getPriorityClassName();
/**
* <pre>
* If specified, indicates the pod's priority. "system-node-critical" and
* "system-cluster-critical" are two special keywords which indicate the
* highest priorities with the former being the highest priority. Any other
* name must be defined by creating a PriorityClass object with that name.
* If not specified, the pod priority will be default or zero if there is no
* default.
* +optional
* </pre>
*
* <code>optional string priority_class_name = 24 [json_name = "priorityClassName"];</code>
* @return The bytes for priorityClassName.
*/
com.google.protobuf.ByteString
getPriorityClassNameBytes();
/**
* <pre>
* The priority value. Various system components use this field to find the
* priority of the pod. When Priority Admission Controller is enabled, it
* prevents users from setting this field. The admission controller populates
* this field from priority_class_name.
* The higher the value, the higher the priority.
* +optional
* </pre>
*
* <code>optional int32 priority = 25 [json_name = "priority"];</code>
* @return Whether the priority field is set.
*/
boolean hasPriority();
/**
* <pre>
* The priority value. Various system components use this field to find the
* priority of the pod. When Priority Admission Controller is enabled, it
* prevents users from setting this field. The admission controller populates
* this field from priority_class_name.
* The higher the value, the higher the priority.
* +optional
* </pre>
*
* <code>optional int32 priority = 25 [json_name = "priority"];</code>
* @return The priority.
*/
int getPriority();
/**
* <pre>
* RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used
* to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run.
* If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an
* empty definition that uses the default runtime handler.
* More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class
* +optional
* </pre>
*
* <code>optional string runtime_class_name = 29 [json_name = "runtimeClassName"];</code>
* @return Whether the runtimeClassName field is set.
*/
boolean hasRuntimeClassName();
/**
* <pre>
* RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used
* to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run.
* If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an
* empty definition that uses the default runtime handler.
* More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class
* +optional
* </pre>
*
* <code>optional string runtime_class_name = 29 [json_name = "runtimeClassName"];</code>
* @return The runtimeClassName.
*/
java.lang.String getRuntimeClassName();
/**
* <pre>
* RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used
* to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run.
* If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an
* empty definition that uses the default runtime handler.
* More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class
* +optional
* </pre>
*
* <code>optional string runtime_class_name = 29 [json_name = "runtimeClassName"];</code>
* @return The bytes for runtimeClassName.
*/
com.google.protobuf.ByteString
getRuntimeClassNameBytes();
/**
* <pre>
* EnableServiceLinks indicates whether information about services should be injected into pod's
* environment variables, matching the syntax of Docker links.
* Optional: Defaults to true.
* +optional
* </pre>
*
* <code>optional bool enable_service_links = 30 [json_name = "enableServiceLinks"];</code>
* @return Whether the enableServiceLinks field is set.
*/
boolean hasEnableServiceLinks();
/**
* <pre>
* EnableServiceLinks indicates whether information about services should be injected into pod's
* environment variables, matching the syntax of Docker links.
* Optional: Defaults to true.
* +optional
* </pre>
*
* <code>optional bool enable_service_links = 30 [json_name = "enableServiceLinks"];</code>
* @return The enableServiceLinks.
*/
boolean getEnableServiceLinks();
/**
* <pre>
* PreemptionPolicy is the Policy for preempting pods with lower priority.
* One of Never, PreemptLowerPriority.
* Defaults to PreemptLowerPriority if unset.
* +optional
* </pre>
*
* <code>optional string preemption_policy = 31 [json_name = "preemptionPolicy"];</code>
* @return Whether the preemptionPolicy field is set.
*/
boolean hasPreemptionPolicy();
/**
* <pre>
* PreemptionPolicy is the Policy for preempting pods with lower priority.
* One of Never, PreemptLowerPriority.
* Defaults to PreemptLowerPriority if unset.
* +optional
* </pre>
*
* <code>optional string preemption_policy = 31 [json_name = "preemptionPolicy"];</code>
* @return The preemptionPolicy.
*/
java.lang.String getPreemptionPolicy();
/**
* <pre>
* PreemptionPolicy is the Policy for preempting pods with lower priority.
* One of Never, PreemptLowerPriority.
* Defaults to PreemptLowerPriority if unset.
* +optional
* </pre>
*
* <code>optional string preemption_policy = 31 [json_name = "preemptionPolicy"];</code>
* @return The bytes for preemptionPolicy.
*/
com.google.protobuf.ByteString
getPreemptionPolicyBytes();
/**
* <pre>
* Use the host's user namespace.
* Optional: Default to true.
* If set to true or not present, the pod will be run in the host user namespace, useful
* for when the pod needs a feature only available to the host user namespace, such as
* loading a kernel module with CAP_SYS_MODULE.
* When set to false, a new userns is created for the pod. Setting false is useful for
* mitigating container breakout vulnerabilities even allowing users to run their
* containers as root without actually having root privileges on the host.
* This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.
* +k8s:conversion-gen=false
* +optional
* </pre>
*
* <code>optional bool host_users = 37 [json_name = "hostUsers"];</code>
* @return Whether the hostUsers field is set.
*/
boolean hasHostUsers();
/**
* <pre>
* Use the host's user namespace.
* Optional: Default to true.
* If set to true or not present, the pod will be run in the host user namespace, useful
* for when the pod needs a feature only available to the host user namespace, such as
* loading a kernel module with CAP_SYS_MODULE.
* When set to false, a new userns is created for the pod. Setting false is useful for
* mitigating container breakout vulnerabilities even allowing users to run their
* containers as root without actually having root privileges on the host.
* This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.
* +k8s:conversion-gen=false
* +optional
* </pre>
*
* <code>optional bool host_users = 37 [json_name = "hostUsers"];</code>
* @return The hostUsers.
*/
boolean getHostUsers();
/**
* <pre>
* ResourceClaims defines which ResourceClaims must be allocated
* and reserved before the Pod is allowed to start. The resources
* will be made available to those containers which consume them
* by name.
*
* This is an alpha field and requires enabling the
* DynamicResourceAllocation feature gate.
*
* This field is immutable.
*
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* +featureGate=DynamicResourceAllocation
* +optional
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code>
*/
java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim>
getResourceClaimsList();
/**
* <pre>
* ResourceClaims defines which ResourceClaims must be allocated
* and reserved before the Pod is allowed to start. The resources
* will be made available to those containers which consume them
* by name.
*
* This is an alpha field and requires enabling the
* DynamicResourceAllocation feature gate.
*
* This field is immutable.
*
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* +featureGate=DynamicResourceAllocation
* +optional
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code>
*/
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim getResourceClaims(int index);
/**
* <pre>
* ResourceClaims defines which ResourceClaims must be allocated
* and reserved before the Pod is allowed to start. The resources
* will be made available to those containers which consume them
* by name.
*
* This is an alpha field and requires enabling the
* DynamicResourceAllocation feature gate.
*
* This field is immutable.
*
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* +featureGate=DynamicResourceAllocation
* +optional
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code>
*/
int getResourceClaimsCount();
/**
* <pre>
* ResourceClaims defines which ResourceClaims must be allocated
* and reserved before the Pod is allowed to start. The resources
* will be made available to those containers which consume them
* by name.
*
* This is an alpha field and requires enabling the
* DynamicResourceAllocation feature gate.
*
* This field is immutable.
*
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* +featureGate=DynamicResourceAllocation
* +optional
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code>
*/
java.util.List<? extends ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaimOrBuilder>
getResourceClaimsOrBuilderList();
/**
* <pre>
* ResourceClaims defines which ResourceClaims must be allocated
* and reserved before the Pod is allowed to start. The resources
* will be made available to those containers which consume them
* by name.
*
* This is an alpha field and requires enabling the
* DynamicResourceAllocation feature gate.
*
* This field is immutable.
*
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* +featureGate=DynamicResourceAllocation
* +optional
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code>
*/
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaimOrBuilder getResourceClaimsOrBuilder(
int index);
}
/**
* <pre>
* PodSpec is a description of a pod.
* </pre>
*
* Protobuf type {@code chalk.pubsub.v1.PodStatusPubSub.PodSpec}
*/
public static final class PodSpec extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.pubsub.v1.PodStatusPubSub.PodSpec)
PodSpecOrBuilder {
private static final long serialVersionUID = 0L;
// Use PodSpec.newBuilder() to construct.
private PodSpec(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private PodSpec() {
volumes_ = java.util.Collections.emptyList();
initContainers_ = java.util.Collections.emptyList();
containers_ = java.util.Collections.emptyList();
restartPolicy_ = "";
dnsPolicy_ = "";
serviceAccountName_ = "";
nodeName_ = "";
hostname_ = "";
subdomain_ = "";
schedulerName_ = "";
priorityClassName_ = "";
runtimeClassName_ = "";
preemptionPolicy_ = "";
resourceClaims_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PodSpec();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_PodSpec_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 7:
return internalGetNodeSelector();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_PodSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec.class, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec.Builder.class);
}
private int bitField0_;
public static final int VOLUMES_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume> volumes_;
/**
* <pre>
* List of volumes that can be mounted by containers belonging to the pod.
* More info: https://kubernetes.io/docs/concepts/storage/volumes
* +optional
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Volume volumes = 1 [json_name = "volumes"];</code>
*/
@java.lang.Override
public java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume> getVolumesList() {
return volumes_;
}
/**
* <pre>
* List of volumes that can be mounted by containers belonging to the pod.
* More info: https://kubernetes.io/docs/concepts/storage/volumes
* +optional
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Volume volumes = 1 [json_name = "volumes"];</code>
*/
@java.lang.Override
public java.util.List<? extends ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.VolumeOrBuilder>
getVolumesOrBuilderList() {
return volumes_;
}
/**
* <pre>
* List of volumes that can be mounted by containers belonging to the pod.
* More info: https://kubernetes.io/docs/concepts/storage/volumes
* +optional
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Volume volumes = 1 [json_name = "volumes"];</code>
*/
@java.lang.Override
public int getVolumesCount() {
return volumes_.size();
}
/**
* <pre>
* List of volumes that can be mounted by containers belonging to the pod.
* More info: https://kubernetes.io/docs/concepts/storage/volumes
* +optional
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Volume volumes = 1 [json_name = "volumes"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume getVolumes(int index) {
return volumes_.get(index);
}
/**
* <pre>
* List of volumes that can be mounted by containers belonging to the pod.
* More info: https://kubernetes.io/docs/concepts/storage/volumes
* +optional
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Volume volumes = 1 [json_name = "volumes"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.VolumeOrBuilder getVolumesOrBuilder(
int index) {
return volumes_.get(index);
}
public static final int INIT_CONTAINERS_FIELD_NUMBER = 20;
@SuppressWarnings("serial")
private java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container> initContainers_;
/**
* <pre>
* List of initialization containers belonging to the pod.
* Init containers are executed in order prior to containers being started. If any
* init container fails, the pod is considered to have failed and is handled according
* to its restartPolicy. The name for an init container or normal container must be
* unique among all containers.
* Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
* The resourceRequirements of an init container are taken into account during scheduling
* by finding the highest request/limit for each resource type, and then using the max of
* of that value or the sum of the normal containers. Limits are applied to init containers
* in a similar fashion.
* Init containers cannot currently be added or removed.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container init_containers = 20 [json_name = "initContainers"];</code>
*/
@java.lang.Override
public java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container> getInitContainersList() {
return initContainers_;
}
/**
* <pre>
* List of initialization containers belonging to the pod.
* Init containers are executed in order prior to containers being started. If any
* init container fails, the pod is considered to have failed and is handled according
* to its restartPolicy. The name for an init container or normal container must be
* unique among all containers.
* Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
* The resourceRequirements of an init container are taken into account during scheduling
* by finding the highest request/limit for each resource type, and then using the max of
* of that value or the sum of the normal containers. Limits are applied to init containers
* in a similar fashion.
* Init containers cannot currently be added or removed.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container init_containers = 20 [json_name = "initContainers"];</code>
*/
@java.lang.Override
public java.util.List<? extends ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerOrBuilder>
getInitContainersOrBuilderList() {
return initContainers_;
}
/**
* <pre>
* List of initialization containers belonging to the pod.
* Init containers are executed in order prior to containers being started. If any
* init container fails, the pod is considered to have failed and is handled according
* to its restartPolicy. The name for an init container or normal container must be
* unique among all containers.
* Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
* The resourceRequirements of an init container are taken into account during scheduling
* by finding the highest request/limit for each resource type, and then using the max of
* of that value or the sum of the normal containers. Limits are applied to init containers
* in a similar fashion.
* Init containers cannot currently be added or removed.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container init_containers = 20 [json_name = "initContainers"];</code>
*/
@java.lang.Override
public int getInitContainersCount() {
return initContainers_.size();
}
/**
* <pre>
* List of initialization containers belonging to the pod.
* Init containers are executed in order prior to containers being started. If any
* init container fails, the pod is considered to have failed and is handled according
* to its restartPolicy. The name for an init container or normal container must be
* unique among all containers.
* Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
* The resourceRequirements of an init container are taken into account during scheduling
* by finding the highest request/limit for each resource type, and then using the max of
* of that value or the sum of the normal containers. Limits are applied to init containers
* in a similar fashion.
* Init containers cannot currently be added or removed.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container init_containers = 20 [json_name = "initContainers"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container getInitContainers(int index) {
return initContainers_.get(index);
}
/**
* <pre>
* List of initialization containers belonging to the pod.
* Init containers are executed in order prior to containers being started. If any
* init container fails, the pod is considered to have failed and is handled according
* to its restartPolicy. The name for an init container or normal container must be
* unique among all containers.
* Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
* The resourceRequirements of an init container are taken into account during scheduling
* by finding the highest request/limit for each resource type, and then using the max of
* of that value or the sum of the normal containers. Limits are applied to init containers
* in a similar fashion.
* Init containers cannot currently be added or removed.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container init_containers = 20 [json_name = "initContainers"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerOrBuilder getInitContainersOrBuilder(
int index) {
return initContainers_.get(index);
}
public static final int CONTAINERS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container> containers_;
/**
* <pre>
* List of containers belonging to the pod.
* Containers cannot currently be added or removed.
* There must be at least one container in a Pod.
* Cannot be updated.
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container containers = 2 [json_name = "containers"];</code>
*/
@java.lang.Override
public java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container> getContainersList() {
return containers_;
}
/**
* <pre>
* List of containers belonging to the pod.
* Containers cannot currently be added or removed.
* There must be at least one container in a Pod.
* Cannot be updated.
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container containers = 2 [json_name = "containers"];</code>
*/
@java.lang.Override
public java.util.List<? extends ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerOrBuilder>
getContainersOrBuilderList() {
return containers_;
}
/**
* <pre>
* List of containers belonging to the pod.
* Containers cannot currently be added or removed.
* There must be at least one container in a Pod.
* Cannot be updated.
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container containers = 2 [json_name = "containers"];</code>
*/
@java.lang.Override
public int getContainersCount() {
return containers_.size();
}
/**
* <pre>
* List of containers belonging to the pod.
* Containers cannot currently be added or removed.
* There must be at least one container in a Pod.
* Cannot be updated.
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container containers = 2 [json_name = "containers"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container getContainers(int index) {
return containers_.get(index);
}
/**
* <pre>
* List of containers belonging to the pod.
* Containers cannot currently be added or removed.
* There must be at least one container in a Pod.
* Cannot be updated.
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container containers = 2 [json_name = "containers"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerOrBuilder getContainersOrBuilder(
int index) {
return containers_.get(index);
}
public static final int RESTART_POLICY_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object restartPolicy_ = "";
/**
* <pre>
* Restart policy for all containers within the pod.
* One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted.
* Default to Always.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy
* +optional
* </pre>
*
* <code>optional string restart_policy = 3 [json_name = "restartPolicy"];</code>
* @return Whether the restartPolicy field is set.
*/
@java.lang.Override
public boolean hasRestartPolicy() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <pre>
* Restart policy for all containers within the pod.
* One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted.
* Default to Always.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy
* +optional
* </pre>
*
* <code>optional string restart_policy = 3 [json_name = "restartPolicy"];</code>
* @return The restartPolicy.
*/
@java.lang.Override
public java.lang.String getRestartPolicy() {
java.lang.Object ref = restartPolicy_;
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();
restartPolicy_ = s;
return s;
}
}
/**
* <pre>
* Restart policy for all containers within the pod.
* One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted.
* Default to Always.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy
* +optional
* </pre>
*
* <code>optional string restart_policy = 3 [json_name = "restartPolicy"];</code>
* @return The bytes for restartPolicy.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRestartPolicyBytes() {
java.lang.Object ref = restartPolicy_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
restartPolicy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TERMINATION_GRACE_PERIOD_SECONDS_FIELD_NUMBER = 4;
private long terminationGracePeriodSeconds_ = 0L;
/**
* <pre>
* Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request.
* Value must be non-negative integer. The value zero indicates stop immediately via
* the kill signal (no opportunity to shut down).
* If this value is nil, the default grace period will be used instead.
* The grace period is the duration in seconds after the processes running in the pod are sent
* a termination signal and the time when the processes are forcibly halted with a kill signal.
* Set this value longer than the expected cleanup time for your process.
* Defaults to 30 seconds.
* +optional
* </pre>
*
* <code>optional int64 termination_grace_period_seconds = 4 [json_name = "terminationGracePeriodSeconds"];</code>
* @return Whether the terminationGracePeriodSeconds field is set.
*/
@java.lang.Override
public boolean hasTerminationGracePeriodSeconds() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* <pre>
* Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request.
* Value must be non-negative integer. The value zero indicates stop immediately via
* the kill signal (no opportunity to shut down).
* If this value is nil, the default grace period will be used instead.
* The grace period is the duration in seconds after the processes running in the pod are sent
* a termination signal and the time when the processes are forcibly halted with a kill signal.
* Set this value longer than the expected cleanup time for your process.
* Defaults to 30 seconds.
* +optional
* </pre>
*
* <code>optional int64 termination_grace_period_seconds = 4 [json_name = "terminationGracePeriodSeconds"];</code>
* @return The terminationGracePeriodSeconds.
*/
@java.lang.Override
public long getTerminationGracePeriodSeconds() {
return terminationGracePeriodSeconds_;
}
public static final int ACTIVE_DEADLINE_SECONDS_FIELD_NUMBER = 5;
private long activeDeadlineSeconds_ = 0L;
/**
* <pre>
* Optional duration in seconds the pod may be active on the node relative to
* start_time before the system will actively try to mark it failed and kill associated containers.
* Value must be a positive integer.
* +optional
* </pre>
*
* <code>optional int64 active_deadline_seconds = 5 [json_name = "activeDeadlineSeconds"];</code>
* @return Whether the activeDeadlineSeconds field is set.
*/
@java.lang.Override
public boolean hasActiveDeadlineSeconds() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* <pre>
* Optional duration in seconds the pod may be active on the node relative to
* start_time before the system will actively try to mark it failed and kill associated containers.
* Value must be a positive integer.
* +optional
* </pre>
*
* <code>optional int64 active_deadline_seconds = 5 [json_name = "activeDeadlineSeconds"];</code>
* @return The activeDeadlineSeconds.
*/
@java.lang.Override
public long getActiveDeadlineSeconds() {
return activeDeadlineSeconds_;
}
public static final int DNS_POLICY_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private volatile java.lang.Object dnsPolicy_ = "";
/**
* <pre>
* Set DNS policy for the pod.
* Defaults to "ClusterFirst".
* Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'.
* DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy.
* To have DNS options set along with hostNetwork, you have to specify DNS policy
* explicitly to 'ClusterFirstWithHostNet'.
* +optional
* </pre>
*
* <code>optional string dns_policy = 6 [json_name = "dnsPolicy"];</code>
* @return Whether the dnsPolicy field is set.
*/
@java.lang.Override
public boolean hasDnsPolicy() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* <pre>
* Set DNS policy for the pod.
* Defaults to "ClusterFirst".
* Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'.
* DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy.
* To have DNS options set along with hostNetwork, you have to specify DNS policy
* explicitly to 'ClusterFirstWithHostNet'.
* +optional
* </pre>
*
* <code>optional string dns_policy = 6 [json_name = "dnsPolicy"];</code>
* @return The dnsPolicy.
*/
@java.lang.Override
public java.lang.String getDnsPolicy() {
java.lang.Object ref = dnsPolicy_;
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();
dnsPolicy_ = s;
return s;
}
}
/**
* <pre>
* Set DNS policy for the pod.
* Defaults to "ClusterFirst".
* Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'.
* DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy.
* To have DNS options set along with hostNetwork, you have to specify DNS policy
* explicitly to 'ClusterFirstWithHostNet'.
* +optional
* </pre>
*
* <code>optional string dns_policy = 6 [json_name = "dnsPolicy"];</code>
* @return The bytes for dnsPolicy.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDnsPolicyBytes() {
java.lang.Object ref = dnsPolicy_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dnsPolicy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NODE_SELECTOR_FIELD_NUMBER = 7;
private static final class NodeSelectorDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.<java.lang.String, java.lang.String>newDefaultInstance(
ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_PodSpec_NodeSelectorEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> nodeSelector_;
private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetNodeSelector() {
if (nodeSelector_ == null) {
return com.google.protobuf.MapField.emptyMapField(
NodeSelectorDefaultEntryHolder.defaultEntry);
}
return nodeSelector_;
}
public int getNodeSelectorCount() {
return internalGetNodeSelector().getMap().size();
}
/**
* <pre>
* NodeSelector is a selector which must be true for the pod to fit on a node.
* Selector which must match a node's labels for the pod to be scheduled on that node.
* More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
* +optional
* +mapType=atomic
* </pre>
*
* <code>map<string, string> node_selector = 7 [json_name = "nodeSelector"];</code>
*/
@java.lang.Override
public boolean containsNodeSelector(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetNodeSelector().getMap().containsKey(key);
}
/**
* Use {@link #getNodeSelectorMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map<java.lang.String, java.lang.String> getNodeSelector() {
return getNodeSelectorMap();
}
/**
* <pre>
* NodeSelector is a selector which must be true for the pod to fit on a node.
* Selector which must match a node's labels for the pod to be scheduled on that node.
* More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
* +optional
* +mapType=atomic
* </pre>
*
* <code>map<string, string> node_selector = 7 [json_name = "nodeSelector"];</code>
*/
@java.lang.Override
public java.util.Map<java.lang.String, java.lang.String> getNodeSelectorMap() {
return internalGetNodeSelector().getMap();
}
/**
* <pre>
* NodeSelector is a selector which must be true for the pod to fit on a node.
* Selector which must match a node's labels for the pod to be scheduled on that node.
* More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
* +optional
* +mapType=atomic
* </pre>
*
* <code>map<string, string> node_selector = 7 [json_name = "nodeSelector"];</code>
*/
@java.lang.Override
public /* nullable */
java.lang.String getNodeSelectorOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetNodeSelector().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <pre>
* NodeSelector is a selector which must be true for the pod to fit on a node.
* Selector which must match a node's labels for the pod to be scheduled on that node.
* More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
* +optional
* +mapType=atomic
* </pre>
*
* <code>map<string, string> node_selector = 7 [json_name = "nodeSelector"];</code>
*/
@java.lang.Override
public java.lang.String getNodeSelectorOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetNodeSelector().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int SERVICE_ACCOUNT_NAME_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private volatile java.lang.Object serviceAccountName_ = "";
/**
* <pre>
* ServiceAccountName is the name of the ServiceAccount to use to run this pod.
* More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
* +optional
* </pre>
*
* <code>optional string service_account_name = 8 [json_name = "serviceAccountName"];</code>
* @return Whether the serviceAccountName field is set.
*/
@java.lang.Override
public boolean hasServiceAccountName() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* <pre>
* ServiceAccountName is the name of the ServiceAccount to use to run this pod.
* More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
* +optional
* </pre>
*
* <code>optional string service_account_name = 8 [json_name = "serviceAccountName"];</code>
* @return The serviceAccountName.
*/
@java.lang.Override
public java.lang.String getServiceAccountName() {
java.lang.Object ref = serviceAccountName_;
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();
serviceAccountName_ = s;
return s;
}
}
/**
* <pre>
* ServiceAccountName is the name of the ServiceAccount to use to run this pod.
* More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
* +optional
* </pre>
*
* <code>optional string service_account_name = 8 [json_name = "serviceAccountName"];</code>
* @return The bytes for serviceAccountName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getServiceAccountNameBytes() {
java.lang.Object ref = serviceAccountName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceAccountName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int AUTOMOUNT_SERVICE_ACCOUNT_TOKEN_FIELD_NUMBER = 21;
private boolean automountServiceAccountToken_ = false;
/**
* <pre>
* AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.
* +optional
* </pre>
*
* <code>optional bool automount_service_account_token = 21 [json_name = "automountServiceAccountToken"];</code>
* @return Whether the automountServiceAccountToken field is set.
*/
@java.lang.Override
public boolean hasAutomountServiceAccountToken() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* <pre>
* AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.
* +optional
* </pre>
*
* <code>optional bool automount_service_account_token = 21 [json_name = "automountServiceAccountToken"];</code>
* @return The automountServiceAccountToken.
*/
@java.lang.Override
public boolean getAutomountServiceAccountToken() {
return automountServiceAccountToken_;
}
public static final int NODE_NAME_FIELD_NUMBER = 10;
@SuppressWarnings("serial")
private volatile java.lang.Object nodeName_ = "";
/**
* <pre>
* NodeName is a request to schedule this pod onto a specific node. If it is non-empty,
* the scheduler simply schedules this pod onto that node, assuming that it fits resource
* requirements.
* +optional
* </pre>
*
* <code>optional string node_name = 10 [json_name = "nodeName"];</code>
* @return Whether the nodeName field is set.
*/
@java.lang.Override
public boolean hasNodeName() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* <pre>
* NodeName is a request to schedule this pod onto a specific node. If it is non-empty,
* the scheduler simply schedules this pod onto that node, assuming that it fits resource
* requirements.
* +optional
* </pre>
*
* <code>optional string node_name = 10 [json_name = "nodeName"];</code>
* @return The nodeName.
*/
@java.lang.Override
public java.lang.String getNodeName() {
java.lang.Object ref = nodeName_;
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();
nodeName_ = s;
return s;
}
}
/**
* <pre>
* NodeName is a request to schedule this pod onto a specific node. If it is non-empty,
* the scheduler simply schedules this pod onto that node, assuming that it fits resource
* requirements.
* +optional
* </pre>
*
* <code>optional string node_name = 10 [json_name = "nodeName"];</code>
* @return The bytes for nodeName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNodeNameBytes() {
java.lang.Object ref = nodeName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nodeName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int HOST_NETWORK_FIELD_NUMBER = 11;
private boolean hostNetwork_ = false;
/**
* <pre>
* Host networking requested for this pod. Use the host's network namespace.
* If this option is set, the ports that will be used must be specified.
* Default to false.
* +k8s:conversion-gen=false
* +optional
* </pre>
*
* <code>bool host_network = 11 [json_name = "hostNetwork"];</code>
* @return The hostNetwork.
*/
@java.lang.Override
public boolean getHostNetwork() {
return hostNetwork_;
}
public static final int HOST_PID_FIELD_NUMBER = 12;
private boolean hostPid_ = false;
/**
* <pre>
* Use the host's pid namespace.
* Optional: Default to false.
* +k8s:conversion-gen=false
* +optional
* </pre>
*
* <code>bool host_pid = 12 [json_name = "hostPid"];</code>
* @return The hostPid.
*/
@java.lang.Override
public boolean getHostPid() {
return hostPid_;
}
public static final int HOST_IPC_FIELD_NUMBER = 13;
private boolean hostIpc_ = false;
/**
* <pre>
* Use the host's ipc namespace.
* Optional: Default to false.
* +k8s:conversion-gen=false
* +optional
* </pre>
*
* <code>bool host_ipc = 13 [json_name = "hostIpc"];</code>
* @return The hostIpc.
*/
@java.lang.Override
public boolean getHostIpc() {
return hostIpc_;
}
public static final int SHARE_PROCESS_NAMESPACE_FIELD_NUMBER = 27;
private boolean shareProcessNamespace_ = false;
/**
* <pre>
* Share a single process namespace between all of the containers in a pod.
* When this is set containers will be able to view and signal processes from other containers
* in the same pod, and the first process in each container will not be assigned PID 1.
* HostPID and ShareProcessNamespace cannot both be set.
* Optional: Default to false.
* +k8s:conversion-gen=false
* +optional
* </pre>
*
* <code>bool share_process_namespace = 27 [json_name = "shareProcessNamespace"];</code>
* @return The shareProcessNamespace.
*/
@java.lang.Override
public boolean getShareProcessNamespace() {
return shareProcessNamespace_;
}
public static final int HOSTNAME_FIELD_NUMBER = 16;
@SuppressWarnings("serial")
private volatile java.lang.Object hostname_ = "";
/**
* <pre>
* Specifies the hostname of the Pod
* If not specified, the pod's hostname will be set to a system-defined value.
* +optional
* </pre>
*
* <code>optional string hostname = 16 [json_name = "hostname"];</code>
* @return Whether the hostname field is set.
*/
@java.lang.Override
public boolean hasHostname() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* <pre>
* Specifies the hostname of the Pod
* If not specified, the pod's hostname will be set to a system-defined value.
* +optional
* </pre>
*
* <code>optional string hostname = 16 [json_name = "hostname"];</code>
* @return The hostname.
*/
@java.lang.Override
public java.lang.String getHostname() {
java.lang.Object ref = hostname_;
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();
hostname_ = s;
return s;
}
}
/**
* <pre>
* Specifies the hostname of the Pod
* If not specified, the pod's hostname will be set to a system-defined value.
* +optional
* </pre>
*
* <code>optional string hostname = 16 [json_name = "hostname"];</code>
* @return The bytes for hostname.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHostnameBytes() {
java.lang.Object ref = hostname_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hostname_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SUBDOMAIN_FIELD_NUMBER = 17;
@SuppressWarnings("serial")
private volatile java.lang.Object subdomain_ = "";
/**
* <pre>
* If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>".
* If not specified, the pod will not have a domainname at all.
* +optional
* </pre>
*
* <code>optional string subdomain = 17 [json_name = "subdomain"];</code>
* @return Whether the subdomain field is set.
*/
@java.lang.Override
public boolean hasSubdomain() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* <pre>
* If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>".
* If not specified, the pod will not have a domainname at all.
* +optional
* </pre>
*
* <code>optional string subdomain = 17 [json_name = "subdomain"];</code>
* @return The subdomain.
*/
@java.lang.Override
public java.lang.String getSubdomain() {
java.lang.Object ref = subdomain_;
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();
subdomain_ = s;
return s;
}
}
/**
* <pre>
* If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>".
* If not specified, the pod will not have a domainname at all.
* +optional
* </pre>
*
* <code>optional string subdomain = 17 [json_name = "subdomain"];</code>
* @return The bytes for subdomain.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSubdomainBytes() {
java.lang.Object ref = subdomain_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
subdomain_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SCHEDULER_NAME_FIELD_NUMBER = 19;
@SuppressWarnings("serial")
private volatile java.lang.Object schedulerName_ = "";
/**
* <pre>
* If specified, the pod will be dispatched by specified scheduler.
* If not specified, the pod will be dispatched by default scheduler.
* +optional
* </pre>
*
* <code>optional string scheduler_name = 19 [json_name = "schedulerName"];</code>
* @return Whether the schedulerName field is set.
*/
@java.lang.Override
public boolean hasSchedulerName() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* <pre>
* If specified, the pod will be dispatched by specified scheduler.
* If not specified, the pod will be dispatched by default scheduler.
* +optional
* </pre>
*
* <code>optional string scheduler_name = 19 [json_name = "schedulerName"];</code>
* @return The schedulerName.
*/
@java.lang.Override
public java.lang.String getSchedulerName() {
java.lang.Object ref = schedulerName_;
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();
schedulerName_ = s;
return s;
}
}
/**
* <pre>
* If specified, the pod will be dispatched by specified scheduler.
* If not specified, the pod will be dispatched by default scheduler.
* +optional
* </pre>
*
* <code>optional string scheduler_name = 19 [json_name = "schedulerName"];</code>
* @return The bytes for schedulerName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSchedulerNameBytes() {
java.lang.Object ref = schedulerName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
schedulerName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PRIORITY_CLASS_NAME_FIELD_NUMBER = 24;
@SuppressWarnings("serial")
private volatile java.lang.Object priorityClassName_ = "";
/**
* <pre>
* If specified, indicates the pod's priority. "system-node-critical" and
* "system-cluster-critical" are two special keywords which indicate the
* highest priorities with the former being the highest priority. Any other
* name must be defined by creating a PriorityClass object with that name.
* If not specified, the pod priority will be default or zero if there is no
* default.
* +optional
* </pre>
*
* <code>optional string priority_class_name = 24 [json_name = "priorityClassName"];</code>
* @return Whether the priorityClassName field is set.
*/
@java.lang.Override
public boolean hasPriorityClassName() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
* <pre>
* If specified, indicates the pod's priority. "system-node-critical" and
* "system-cluster-critical" are two special keywords which indicate the
* highest priorities with the former being the highest priority. Any other
* name must be defined by creating a PriorityClass object with that name.
* If not specified, the pod priority will be default or zero if there is no
* default.
* +optional
* </pre>
*
* <code>optional string priority_class_name = 24 [json_name = "priorityClassName"];</code>
* @return The priorityClassName.
*/
@java.lang.Override
public java.lang.String getPriorityClassName() {
java.lang.Object ref = priorityClassName_;
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();
priorityClassName_ = s;
return s;
}
}
/**
* <pre>
* If specified, indicates the pod's priority. "system-node-critical" and
* "system-cluster-critical" are two special keywords which indicate the
* highest priorities with the former being the highest priority. Any other
* name must be defined by creating a PriorityClass object with that name.
* If not specified, the pod priority will be default or zero if there is no
* default.
* +optional
* </pre>
*
* <code>optional string priority_class_name = 24 [json_name = "priorityClassName"];</code>
* @return The bytes for priorityClassName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPriorityClassNameBytes() {
java.lang.Object ref = priorityClassName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
priorityClassName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PRIORITY_FIELD_NUMBER = 25;
private int priority_ = 0;
/**
* <pre>
* The priority value. Various system components use this field to find the
* priority of the pod. When Priority Admission Controller is enabled, it
* prevents users from setting this field. The admission controller populates
* this field from priority_class_name.
* The higher the value, the higher the priority.
* +optional
* </pre>
*
* <code>optional int32 priority = 25 [json_name = "priority"];</code>
* @return Whether the priority field is set.
*/
@java.lang.Override
public boolean hasPriority() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
* <pre>
* The priority value. Various system components use this field to find the
* priority of the pod. When Priority Admission Controller is enabled, it
* prevents users from setting this field. The admission controller populates
* this field from priority_class_name.
* The higher the value, the higher the priority.
* +optional
* </pre>
*
* <code>optional int32 priority = 25 [json_name = "priority"];</code>
* @return The priority.
*/
@java.lang.Override
public int getPriority() {
return priority_;
}
public static final int RUNTIME_CLASS_NAME_FIELD_NUMBER = 29;
@SuppressWarnings("serial")
private volatile java.lang.Object runtimeClassName_ = "";
/**
* <pre>
* RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used
* to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run.
* If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an
* empty definition that uses the default runtime handler.
* More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class
* +optional
* </pre>
*
* <code>optional string runtime_class_name = 29 [json_name = "runtimeClassName"];</code>
* @return Whether the runtimeClassName field is set.
*/
@java.lang.Override
public boolean hasRuntimeClassName() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
* <pre>
* RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used
* to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run.
* If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an
* empty definition that uses the default runtime handler.
* More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class
* +optional
* </pre>
*
* <code>optional string runtime_class_name = 29 [json_name = "runtimeClassName"];</code>
* @return The runtimeClassName.
*/
@java.lang.Override
public java.lang.String getRuntimeClassName() {
java.lang.Object ref = runtimeClassName_;
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();
runtimeClassName_ = s;
return s;
}
}
/**
* <pre>
* RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used
* to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run.
* If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an
* empty definition that uses the default runtime handler.
* More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class
* +optional
* </pre>
*
* <code>optional string runtime_class_name = 29 [json_name = "runtimeClassName"];</code>
* @return The bytes for runtimeClassName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRuntimeClassNameBytes() {
java.lang.Object ref = runtimeClassName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
runtimeClassName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ENABLE_SERVICE_LINKS_FIELD_NUMBER = 30;
private boolean enableServiceLinks_ = false;
/**
* <pre>
* EnableServiceLinks indicates whether information about services should be injected into pod's
* environment variables, matching the syntax of Docker links.
* Optional: Defaults to true.
* +optional
* </pre>
*
* <code>optional bool enable_service_links = 30 [json_name = "enableServiceLinks"];</code>
* @return Whether the enableServiceLinks field is set.
*/
@java.lang.Override
public boolean hasEnableServiceLinks() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
* <pre>
* EnableServiceLinks indicates whether information about services should be injected into pod's
* environment variables, matching the syntax of Docker links.
* Optional: Defaults to true.
* +optional
* </pre>
*
* <code>optional bool enable_service_links = 30 [json_name = "enableServiceLinks"];</code>
* @return The enableServiceLinks.
*/
@java.lang.Override
public boolean getEnableServiceLinks() {
return enableServiceLinks_;
}
public static final int PREEMPTION_POLICY_FIELD_NUMBER = 31;
@SuppressWarnings("serial")
private volatile java.lang.Object preemptionPolicy_ = "";
/**
* <pre>
* PreemptionPolicy is the Policy for preempting pods with lower priority.
* One of Never, PreemptLowerPriority.
* Defaults to PreemptLowerPriority if unset.
* +optional
* </pre>
*
* <code>optional string preemption_policy = 31 [json_name = "preemptionPolicy"];</code>
* @return Whether the preemptionPolicy field is set.
*/
@java.lang.Override
public boolean hasPreemptionPolicy() {
return ((bitField0_ & 0x00004000) != 0);
}
/**
* <pre>
* PreemptionPolicy is the Policy for preempting pods with lower priority.
* One of Never, PreemptLowerPriority.
* Defaults to PreemptLowerPriority if unset.
* +optional
* </pre>
*
* <code>optional string preemption_policy = 31 [json_name = "preemptionPolicy"];</code>
* @return The preemptionPolicy.
*/
@java.lang.Override
public java.lang.String getPreemptionPolicy() {
java.lang.Object ref = preemptionPolicy_;
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();
preemptionPolicy_ = s;
return s;
}
}
/**
* <pre>
* PreemptionPolicy is the Policy for preempting pods with lower priority.
* One of Never, PreemptLowerPriority.
* Defaults to PreemptLowerPriority if unset.
* +optional
* </pre>
*
* <code>optional string preemption_policy = 31 [json_name = "preemptionPolicy"];</code>
* @return The bytes for preemptionPolicy.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPreemptionPolicyBytes() {
java.lang.Object ref = preemptionPolicy_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
preemptionPolicy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int HOST_USERS_FIELD_NUMBER = 37;
private boolean hostUsers_ = false;
/**
* <pre>
* Use the host's user namespace.
* Optional: Default to true.
* If set to true or not present, the pod will be run in the host user namespace, useful
* for when the pod needs a feature only available to the host user namespace, such as
* loading a kernel module with CAP_SYS_MODULE.
* When set to false, a new userns is created for the pod. Setting false is useful for
* mitigating container breakout vulnerabilities even allowing users to run their
* containers as root without actually having root privileges on the host.
* This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.
* +k8s:conversion-gen=false
* +optional
* </pre>
*
* <code>optional bool host_users = 37 [json_name = "hostUsers"];</code>
* @return Whether the hostUsers field is set.
*/
@java.lang.Override
public boolean hasHostUsers() {
return ((bitField0_ & 0x00008000) != 0);
}
/**
* <pre>
* Use the host's user namespace.
* Optional: Default to true.
* If set to true or not present, the pod will be run in the host user namespace, useful
* for when the pod needs a feature only available to the host user namespace, such as
* loading a kernel module with CAP_SYS_MODULE.
* When set to false, a new userns is created for the pod. Setting false is useful for
* mitigating container breakout vulnerabilities even allowing users to run their
* containers as root without actually having root privileges on the host.
* This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.
* +k8s:conversion-gen=false
* +optional
* </pre>
*
* <code>optional bool host_users = 37 [json_name = "hostUsers"];</code>
* @return The hostUsers.
*/
@java.lang.Override
public boolean getHostUsers() {
return hostUsers_;
}
public static final int RESOURCE_CLAIMS_FIELD_NUMBER = 39;
@SuppressWarnings("serial")
private java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim> resourceClaims_;
/**
* <pre>
* ResourceClaims defines which ResourceClaims must be allocated
* and reserved before the Pod is allowed to start. The resources
* will be made available to those containers which consume them
* by name.
*
* This is an alpha field and requires enabling the
* DynamicResourceAllocation feature gate.
*
* This field is immutable.
*
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* +featureGate=DynamicResourceAllocation
* +optional
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code>
*/
@java.lang.Override
public java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim> getResourceClaimsList() {
return resourceClaims_;
}
/**
* <pre>
* ResourceClaims defines which ResourceClaims must be allocated
* and reserved before the Pod is allowed to start. The resources
* will be made available to those containers which consume them
* by name.
*
* This is an alpha field and requires enabling the
* DynamicResourceAllocation feature gate.
*
* This field is immutable.
*
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* +featureGate=DynamicResourceAllocation
* +optional
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code>
*/
@java.lang.Override
public java.util.List<? extends ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaimOrBuilder>
getResourceClaimsOrBuilderList() {
return resourceClaims_;
}
/**
* <pre>
* ResourceClaims defines which ResourceClaims must be allocated
* and reserved before the Pod is allowed to start. The resources
* will be made available to those containers which consume them
* by name.
*
* This is an alpha field and requires enabling the
* DynamicResourceAllocation feature gate.
*
* This field is immutable.
*
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* +featureGate=DynamicResourceAllocation
* +optional
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code>
*/
@java.lang.Override
public int getResourceClaimsCount() {
return resourceClaims_.size();
}
/**
* <pre>
* ResourceClaims defines which ResourceClaims must be allocated
* and reserved before the Pod is allowed to start. The resources
* will be made available to those containers which consume them
* by name.
*
* This is an alpha field and requires enabling the
* DynamicResourceAllocation feature gate.
*
* This field is immutable.
*
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* +featureGate=DynamicResourceAllocation
* +optional
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim getResourceClaims(int index) {
return resourceClaims_.get(index);
}
/**
* <pre>
* ResourceClaims defines which ResourceClaims must be allocated
* and reserved before the Pod is allowed to start. The resources
* will be made available to those containers which consume them
* by name.
*
* This is an alpha field and requires enabling the
* DynamicResourceAllocation feature gate.
*
* This field is immutable.
*
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* +featureGate=DynamicResourceAllocation
* +optional
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaimOrBuilder getResourceClaimsOrBuilder(
int index) {
return resourceClaims_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < volumes_.size(); i++) {
output.writeMessage(1, volumes_.get(i));
}
for (int i = 0; i < containers_.size(); i++) {
output.writeMessage(2, containers_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, restartPolicy_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt64(4, terminationGracePeriodSeconds_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeInt64(5, activeDeadlineSeconds_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, dnsPolicy_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetNodeSelector(),
NodeSelectorDefaultEntryHolder.defaultEntry,
7);
if (((bitField0_ & 0x00000010) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, serviceAccountName_);
}
if (((bitField0_ & 0x00000040) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, nodeName_);
}
if (hostNetwork_ != false) {
output.writeBool(11, hostNetwork_);
}
if (hostPid_ != false) {
output.writeBool(12, hostPid_);
}
if (hostIpc_ != false) {
output.writeBool(13, hostIpc_);
}
if (((bitField0_ & 0x00000080) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 16, hostname_);
}
if (((bitField0_ & 0x00000100) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 17, subdomain_);
}
if (((bitField0_ & 0x00000200) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 19, schedulerName_);
}
for (int i = 0; i < initContainers_.size(); i++) {
output.writeMessage(20, initContainers_.get(i));
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeBool(21, automountServiceAccountToken_);
}
if (((bitField0_ & 0x00000400) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 24, priorityClassName_);
}
if (((bitField0_ & 0x00000800) != 0)) {
output.writeInt32(25, priority_);
}
if (shareProcessNamespace_ != false) {
output.writeBool(27, shareProcessNamespace_);
}
if (((bitField0_ & 0x00001000) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 29, runtimeClassName_);
}
if (((bitField0_ & 0x00002000) != 0)) {
output.writeBool(30, enableServiceLinks_);
}
if (((bitField0_ & 0x00004000) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 31, preemptionPolicy_);
}
if (((bitField0_ & 0x00008000) != 0)) {
output.writeBool(37, hostUsers_);
}
for (int i = 0; i < resourceClaims_.size(); i++) {
output.writeMessage(39, resourceClaims_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < volumes_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, volumes_.get(i));
}
for (int i = 0; i < containers_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, containers_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, restartPolicy_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, terminationGracePeriodSeconds_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, activeDeadlineSeconds_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, dnsPolicy_);
}
for (java.util.Map.Entry<java.lang.String, java.lang.String> entry
: internalGetNodeSelector().getMap().entrySet()) {
com.google.protobuf.MapEntry<java.lang.String, java.lang.String>
nodeSelector__ = NodeSelectorDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, nodeSelector__);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, serviceAccountName_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, nodeName_);
}
if (hostNetwork_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(11, hostNetwork_);
}
if (hostPid_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(12, hostPid_);
}
if (hostIpc_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(13, hostIpc_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, hostname_);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, subdomain_);
}
if (((bitField0_ & 0x00000200) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, schedulerName_);
}
for (int i = 0; i < initContainers_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(20, initContainers_.get(i));
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(21, automountServiceAccountToken_);
}
if (((bitField0_ & 0x00000400) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(24, priorityClassName_);
}
if (((bitField0_ & 0x00000800) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(25, priority_);
}
if (shareProcessNamespace_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(27, shareProcessNamespace_);
}
if (((bitField0_ & 0x00001000) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(29, runtimeClassName_);
}
if (((bitField0_ & 0x00002000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(30, enableServiceLinks_);
}
if (((bitField0_ & 0x00004000) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(31, preemptionPolicy_);
}
if (((bitField0_ & 0x00008000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(37, hostUsers_);
}
for (int i = 0; i < resourceClaims_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(39, resourceClaims_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec other = (ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec) obj;
if (!getVolumesList()
.equals(other.getVolumesList())) return false;
if (!getInitContainersList()
.equals(other.getInitContainersList())) return false;
if (!getContainersList()
.equals(other.getContainersList())) return false;
if (hasRestartPolicy() != other.hasRestartPolicy()) return false;
if (hasRestartPolicy()) {
if (!getRestartPolicy()
.equals(other.getRestartPolicy())) return false;
}
if (hasTerminationGracePeriodSeconds() != other.hasTerminationGracePeriodSeconds()) return false;
if (hasTerminationGracePeriodSeconds()) {
if (getTerminationGracePeriodSeconds()
!= other.getTerminationGracePeriodSeconds()) return false;
}
if (hasActiveDeadlineSeconds() != other.hasActiveDeadlineSeconds()) return false;
if (hasActiveDeadlineSeconds()) {
if (getActiveDeadlineSeconds()
!= other.getActiveDeadlineSeconds()) return false;
}
if (hasDnsPolicy() != other.hasDnsPolicy()) return false;
if (hasDnsPolicy()) {
if (!getDnsPolicy()
.equals(other.getDnsPolicy())) return false;
}
if (!internalGetNodeSelector().equals(
other.internalGetNodeSelector())) return false;
if (hasServiceAccountName() != other.hasServiceAccountName()) return false;
if (hasServiceAccountName()) {
if (!getServiceAccountName()
.equals(other.getServiceAccountName())) return false;
}
if (hasAutomountServiceAccountToken() != other.hasAutomountServiceAccountToken()) return false;
if (hasAutomountServiceAccountToken()) {
if (getAutomountServiceAccountToken()
!= other.getAutomountServiceAccountToken()) return false;
}
if (hasNodeName() != other.hasNodeName()) return false;
if (hasNodeName()) {
if (!getNodeName()
.equals(other.getNodeName())) return false;
}
if (getHostNetwork()
!= other.getHostNetwork()) return false;
if (getHostPid()
!= other.getHostPid()) return false;
if (getHostIpc()
!= other.getHostIpc()) return false;
if (getShareProcessNamespace()
!= other.getShareProcessNamespace()) return false;
if (hasHostname() != other.hasHostname()) return false;
if (hasHostname()) {
if (!getHostname()
.equals(other.getHostname())) return false;
}
if (hasSubdomain() != other.hasSubdomain()) return false;
if (hasSubdomain()) {
if (!getSubdomain()
.equals(other.getSubdomain())) return false;
}
if (hasSchedulerName() != other.hasSchedulerName()) return false;
if (hasSchedulerName()) {
if (!getSchedulerName()
.equals(other.getSchedulerName())) return false;
}
if (hasPriorityClassName() != other.hasPriorityClassName()) return false;
if (hasPriorityClassName()) {
if (!getPriorityClassName()
.equals(other.getPriorityClassName())) return false;
}
if (hasPriority() != other.hasPriority()) return false;
if (hasPriority()) {
if (getPriority()
!= other.getPriority()) return false;
}
if (hasRuntimeClassName() != other.hasRuntimeClassName()) return false;
if (hasRuntimeClassName()) {
if (!getRuntimeClassName()
.equals(other.getRuntimeClassName())) return false;
}
if (hasEnableServiceLinks() != other.hasEnableServiceLinks()) return false;
if (hasEnableServiceLinks()) {
if (getEnableServiceLinks()
!= other.getEnableServiceLinks()) return false;
}
if (hasPreemptionPolicy() != other.hasPreemptionPolicy()) return false;
if (hasPreemptionPolicy()) {
if (!getPreemptionPolicy()
.equals(other.getPreemptionPolicy())) return false;
}
if (hasHostUsers() != other.hasHostUsers()) return false;
if (hasHostUsers()) {
if (getHostUsers()
!= other.getHostUsers()) return false;
}
if (!getResourceClaimsList()
.equals(other.getResourceClaimsList())) 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 (getVolumesCount() > 0) {
hash = (37 * hash) + VOLUMES_FIELD_NUMBER;
hash = (53 * hash) + getVolumesList().hashCode();
}
if (getInitContainersCount() > 0) {
hash = (37 * hash) + INIT_CONTAINERS_FIELD_NUMBER;
hash = (53 * hash) + getInitContainersList().hashCode();
}
if (getContainersCount() > 0) {
hash = (37 * hash) + CONTAINERS_FIELD_NUMBER;
hash = (53 * hash) + getContainersList().hashCode();
}
if (hasRestartPolicy()) {
hash = (37 * hash) + RESTART_POLICY_FIELD_NUMBER;
hash = (53 * hash) + getRestartPolicy().hashCode();
}
if (hasTerminationGracePeriodSeconds()) {
hash = (37 * hash) + TERMINATION_GRACE_PERIOD_SECONDS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTerminationGracePeriodSeconds());
}
if (hasActiveDeadlineSeconds()) {
hash = (37 * hash) + ACTIVE_DEADLINE_SECONDS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getActiveDeadlineSeconds());
}
if (hasDnsPolicy()) {
hash = (37 * hash) + DNS_POLICY_FIELD_NUMBER;
hash = (53 * hash) + getDnsPolicy().hashCode();
}
if (!internalGetNodeSelector().getMap().isEmpty()) {
hash = (37 * hash) + NODE_SELECTOR_FIELD_NUMBER;
hash = (53 * hash) + internalGetNodeSelector().hashCode();
}
if (hasServiceAccountName()) {
hash = (37 * hash) + SERVICE_ACCOUNT_NAME_FIELD_NUMBER;
hash = (53 * hash) + getServiceAccountName().hashCode();
}
if (hasAutomountServiceAccountToken()) {
hash = (37 * hash) + AUTOMOUNT_SERVICE_ACCOUNT_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getAutomountServiceAccountToken());
}
if (hasNodeName()) {
hash = (37 * hash) + NODE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getNodeName().hashCode();
}
hash = (37 * hash) + HOST_NETWORK_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getHostNetwork());
hash = (37 * hash) + HOST_PID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getHostPid());
hash = (37 * hash) + HOST_IPC_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getHostIpc());
hash = (37 * hash) + SHARE_PROCESS_NAMESPACE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getShareProcessNamespace());
if (hasHostname()) {
hash = (37 * hash) + HOSTNAME_FIELD_NUMBER;
hash = (53 * hash) + getHostname().hashCode();
}
if (hasSubdomain()) {
hash = (37 * hash) + SUBDOMAIN_FIELD_NUMBER;
hash = (53 * hash) + getSubdomain().hashCode();
}
if (hasSchedulerName()) {
hash = (37 * hash) + SCHEDULER_NAME_FIELD_NUMBER;
hash = (53 * hash) + getSchedulerName().hashCode();
}
if (hasPriorityClassName()) {
hash = (37 * hash) + PRIORITY_CLASS_NAME_FIELD_NUMBER;
hash = (53 * hash) + getPriorityClassName().hashCode();
}
if (hasPriority()) {
hash = (37 * hash) + PRIORITY_FIELD_NUMBER;
hash = (53 * hash) + getPriority();
}
if (hasRuntimeClassName()) {
hash = (37 * hash) + RUNTIME_CLASS_NAME_FIELD_NUMBER;
hash = (53 * hash) + getRuntimeClassName().hashCode();
}
if (hasEnableServiceLinks()) {
hash = (37 * hash) + ENABLE_SERVICE_LINKS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getEnableServiceLinks());
}
if (hasPreemptionPolicy()) {
hash = (37 * hash) + PREEMPTION_POLICY_FIELD_NUMBER;
hash = (53 * hash) + getPreemptionPolicy().hashCode();
}
if (hasHostUsers()) {
hash = (37 * hash) + HOST_USERS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getHostUsers());
}
if (getResourceClaimsCount() > 0) {
hash = (37 * hash) + RESOURCE_CLAIMS_FIELD_NUMBER;
hash = (53 * hash) + getResourceClaimsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec 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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec 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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec 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(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec 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;
}
/**
* <pre>
* PodSpec is a description of a pod.
* </pre>
*
* Protobuf type {@code chalk.pubsub.v1.PodStatusPubSub.PodSpec}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.pubsub.v1.PodStatusPubSub.PodSpec)
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpecOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_PodSpec_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 7:
return internalGetNodeSelector();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
int number) {
switch (number) {
case 7:
return internalGetMutableNodeSelector();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_PodSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec.class, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec.Builder.class);
}
// Construct using ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (volumesBuilder_ == null) {
volumes_ = java.util.Collections.emptyList();
} else {
volumes_ = null;
volumesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (initContainersBuilder_ == null) {
initContainers_ = java.util.Collections.emptyList();
} else {
initContainers_ = null;
initContainersBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (containersBuilder_ == null) {
containers_ = java.util.Collections.emptyList();
} else {
containers_ = null;
containersBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
restartPolicy_ = "";
terminationGracePeriodSeconds_ = 0L;
activeDeadlineSeconds_ = 0L;
dnsPolicy_ = "";
internalGetMutableNodeSelector().clear();
serviceAccountName_ = "";
automountServiceAccountToken_ = false;
nodeName_ = "";
hostNetwork_ = false;
hostPid_ = false;
hostIpc_ = false;
shareProcessNamespace_ = false;
hostname_ = "";
subdomain_ = "";
schedulerName_ = "";
priorityClassName_ = "";
priority_ = 0;
runtimeClassName_ = "";
enableServiceLinks_ = false;
preemptionPolicy_ = "";
hostUsers_ = false;
if (resourceClaimsBuilder_ == null) {
resourceClaims_ = java.util.Collections.emptyList();
} else {
resourceClaims_ = null;
resourceClaimsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x01000000);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_PodSpec_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec getDefaultInstanceForType() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec build() {
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec buildPartial() {
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec result = new ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec result) {
if (volumesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
volumes_ = java.util.Collections.unmodifiableList(volumes_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.volumes_ = volumes_;
} else {
result.volumes_ = volumesBuilder_.build();
}
if (initContainersBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
initContainers_ = java.util.Collections.unmodifiableList(initContainers_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.initContainers_ = initContainers_;
} else {
result.initContainers_ = initContainersBuilder_.build();
}
if (containersBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
containers_ = java.util.Collections.unmodifiableList(containers_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.containers_ = containers_;
} else {
result.containers_ = containersBuilder_.build();
}
if (resourceClaimsBuilder_ == null) {
if (((bitField0_ & 0x01000000) != 0)) {
resourceClaims_ = java.util.Collections.unmodifiableList(resourceClaims_);
bitField0_ = (bitField0_ & ~0x01000000);
}
result.resourceClaims_ = resourceClaims_;
} else {
result.resourceClaims_ = resourceClaimsBuilder_.build();
}
}
private void buildPartial0(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000008) != 0)) {
result.restartPolicy_ = restartPolicy_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.terminationGracePeriodSeconds_ = terminationGracePeriodSeconds_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.activeDeadlineSeconds_ = activeDeadlineSeconds_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.dnsPolicy_ = dnsPolicy_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.nodeSelector_ = internalGetNodeSelector();
result.nodeSelector_.makeImmutable();
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.serviceAccountName_ = serviceAccountName_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.automountServiceAccountToken_ = automountServiceAccountToken_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.nodeName_ = nodeName_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.hostNetwork_ = hostNetwork_;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
result.hostPid_ = hostPid_;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.hostIpc_ = hostIpc_;
}
if (((from_bitField0_ & 0x00004000) != 0)) {
result.shareProcessNamespace_ = shareProcessNamespace_;
}
if (((from_bitField0_ & 0x00008000) != 0)) {
result.hostname_ = hostname_;
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00010000) != 0)) {
result.subdomain_ = subdomain_;
to_bitField0_ |= 0x00000100;
}
if (((from_bitField0_ & 0x00020000) != 0)) {
result.schedulerName_ = schedulerName_;
to_bitField0_ |= 0x00000200;
}
if (((from_bitField0_ & 0x00040000) != 0)) {
result.priorityClassName_ = priorityClassName_;
to_bitField0_ |= 0x00000400;
}
if (((from_bitField0_ & 0x00080000) != 0)) {
result.priority_ = priority_;
to_bitField0_ |= 0x00000800;
}
if (((from_bitField0_ & 0x00100000) != 0)) {
result.runtimeClassName_ = runtimeClassName_;
to_bitField0_ |= 0x00001000;
}
if (((from_bitField0_ & 0x00200000) != 0)) {
result.enableServiceLinks_ = enableServiceLinks_;
to_bitField0_ |= 0x00002000;
}
if (((from_bitField0_ & 0x00400000) != 0)) {
result.preemptionPolicy_ = preemptionPolicy_;
to_bitField0_ |= 0x00004000;
}
if (((from_bitField0_ & 0x00800000) != 0)) {
result.hostUsers_ = hostUsers_;
to_bitField0_ |= 0x00008000;
}
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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec) {
return mergeFrom((ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec other) {
if (other == ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec.getDefaultInstance()) return this;
if (volumesBuilder_ == null) {
if (!other.volumes_.isEmpty()) {
if (volumes_.isEmpty()) {
volumes_ = other.volumes_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureVolumesIsMutable();
volumes_.addAll(other.volumes_);
}
onChanged();
}
} else {
if (!other.volumes_.isEmpty()) {
if (volumesBuilder_.isEmpty()) {
volumesBuilder_.dispose();
volumesBuilder_ = null;
volumes_ = other.volumes_;
bitField0_ = (bitField0_ & ~0x00000001);
volumesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getVolumesFieldBuilder() : null;
} else {
volumesBuilder_.addAllMessages(other.volumes_);
}
}
}
if (initContainersBuilder_ == null) {
if (!other.initContainers_.isEmpty()) {
if (initContainers_.isEmpty()) {
initContainers_ = other.initContainers_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureInitContainersIsMutable();
initContainers_.addAll(other.initContainers_);
}
onChanged();
}
} else {
if (!other.initContainers_.isEmpty()) {
if (initContainersBuilder_.isEmpty()) {
initContainersBuilder_.dispose();
initContainersBuilder_ = null;
initContainers_ = other.initContainers_;
bitField0_ = (bitField0_ & ~0x00000002);
initContainersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getInitContainersFieldBuilder() : null;
} else {
initContainersBuilder_.addAllMessages(other.initContainers_);
}
}
}
if (containersBuilder_ == null) {
if (!other.containers_.isEmpty()) {
if (containers_.isEmpty()) {
containers_ = other.containers_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureContainersIsMutable();
containers_.addAll(other.containers_);
}
onChanged();
}
} else {
if (!other.containers_.isEmpty()) {
if (containersBuilder_.isEmpty()) {
containersBuilder_.dispose();
containersBuilder_ = null;
containers_ = other.containers_;
bitField0_ = (bitField0_ & ~0x00000004);
containersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getContainersFieldBuilder() : null;
} else {
containersBuilder_.addAllMessages(other.containers_);
}
}
}
if (other.hasRestartPolicy()) {
restartPolicy_ = other.restartPolicy_;
bitField0_ |= 0x00000008;
onChanged();
}
if (other.hasTerminationGracePeriodSeconds()) {
setTerminationGracePeriodSeconds(other.getTerminationGracePeriodSeconds());
}
if (other.hasActiveDeadlineSeconds()) {
setActiveDeadlineSeconds(other.getActiveDeadlineSeconds());
}
if (other.hasDnsPolicy()) {
dnsPolicy_ = other.dnsPolicy_;
bitField0_ |= 0x00000040;
onChanged();
}
internalGetMutableNodeSelector().mergeFrom(
other.internalGetNodeSelector());
bitField0_ |= 0x00000080;
if (other.hasServiceAccountName()) {
serviceAccountName_ = other.serviceAccountName_;
bitField0_ |= 0x00000100;
onChanged();
}
if (other.hasAutomountServiceAccountToken()) {
setAutomountServiceAccountToken(other.getAutomountServiceAccountToken());
}
if (other.hasNodeName()) {
nodeName_ = other.nodeName_;
bitField0_ |= 0x00000400;
onChanged();
}
if (other.getHostNetwork() != false) {
setHostNetwork(other.getHostNetwork());
}
if (other.getHostPid() != false) {
setHostPid(other.getHostPid());
}
if (other.getHostIpc() != false) {
setHostIpc(other.getHostIpc());
}
if (other.getShareProcessNamespace() != false) {
setShareProcessNamespace(other.getShareProcessNamespace());
}
if (other.hasHostname()) {
hostname_ = other.hostname_;
bitField0_ |= 0x00008000;
onChanged();
}
if (other.hasSubdomain()) {
subdomain_ = other.subdomain_;
bitField0_ |= 0x00010000;
onChanged();
}
if (other.hasSchedulerName()) {
schedulerName_ = other.schedulerName_;
bitField0_ |= 0x00020000;
onChanged();
}
if (other.hasPriorityClassName()) {
priorityClassName_ = other.priorityClassName_;
bitField0_ |= 0x00040000;
onChanged();
}
if (other.hasPriority()) {
setPriority(other.getPriority());
}
if (other.hasRuntimeClassName()) {
runtimeClassName_ = other.runtimeClassName_;
bitField0_ |= 0x00100000;
onChanged();
}
if (other.hasEnableServiceLinks()) {
setEnableServiceLinks(other.getEnableServiceLinks());
}
if (other.hasPreemptionPolicy()) {
preemptionPolicy_ = other.preemptionPolicy_;
bitField0_ |= 0x00400000;
onChanged();
}
if (other.hasHostUsers()) {
setHostUsers(other.getHostUsers());
}
if (resourceClaimsBuilder_ == null) {
if (!other.resourceClaims_.isEmpty()) {
if (resourceClaims_.isEmpty()) {
resourceClaims_ = other.resourceClaims_;
bitField0_ = (bitField0_ & ~0x01000000);
} else {
ensureResourceClaimsIsMutable();
resourceClaims_.addAll(other.resourceClaims_);
}
onChanged();
}
} else {
if (!other.resourceClaims_.isEmpty()) {
if (resourceClaimsBuilder_.isEmpty()) {
resourceClaimsBuilder_.dispose();
resourceClaimsBuilder_ = null;
resourceClaims_ = other.resourceClaims_;
bitField0_ = (bitField0_ & ~0x01000000);
resourceClaimsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getResourceClaimsFieldBuilder() : null;
} else {
resourceClaimsBuilder_.addAllMessages(other.resourceClaims_);
}
}
}
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: {
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume m =
input.readMessage(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume.parser(),
extensionRegistry);
if (volumesBuilder_ == null) {
ensureVolumesIsMutable();
volumes_.add(m);
} else {
volumesBuilder_.addMessage(m);
}
break;
} // case 10
case 18: {
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container m =
input.readMessage(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container.parser(),
extensionRegistry);
if (containersBuilder_ == null) {
ensureContainersIsMutable();
containers_.add(m);
} else {
containersBuilder_.addMessage(m);
}
break;
} // case 18
case 26: {
restartPolicy_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 26
case 32: {
terminationGracePeriodSeconds_ = input.readInt64();
bitField0_ |= 0x00000010;
break;
} // case 32
case 40: {
activeDeadlineSeconds_ = input.readInt64();
bitField0_ |= 0x00000020;
break;
} // case 40
case 50: {
dnsPolicy_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000040;
break;
} // case 50
case 58: {
com.google.protobuf.MapEntry<java.lang.String, java.lang.String>
nodeSelector__ = input.readMessage(
NodeSelectorDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableNodeSelector().getMutableMap().put(
nodeSelector__.getKey(), nodeSelector__.getValue());
bitField0_ |= 0x00000080;
break;
} // case 58
case 66: {
serviceAccountName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000100;
break;
} // case 66
case 82: {
nodeName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000400;
break;
} // case 82
case 88: {
hostNetwork_ = input.readBool();
bitField0_ |= 0x00000800;
break;
} // case 88
case 96: {
hostPid_ = input.readBool();
bitField0_ |= 0x00001000;
break;
} // case 96
case 104: {
hostIpc_ = input.readBool();
bitField0_ |= 0x00002000;
break;
} // case 104
case 130: {
hostname_ = input.readStringRequireUtf8();
bitField0_ |= 0x00008000;
break;
} // case 130
case 138: {
subdomain_ = input.readStringRequireUtf8();
bitField0_ |= 0x00010000;
break;
} // case 138
case 154: {
schedulerName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00020000;
break;
} // case 154
case 162: {
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container m =
input.readMessage(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container.parser(),
extensionRegistry);
if (initContainersBuilder_ == null) {
ensureInitContainersIsMutable();
initContainers_.add(m);
} else {
initContainersBuilder_.addMessage(m);
}
break;
} // case 162
case 168: {
automountServiceAccountToken_ = input.readBool();
bitField0_ |= 0x00000200;
break;
} // case 168
case 194: {
priorityClassName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00040000;
break;
} // case 194
case 200: {
priority_ = input.readInt32();
bitField0_ |= 0x00080000;
break;
} // case 200
case 216: {
shareProcessNamespace_ = input.readBool();
bitField0_ |= 0x00004000;
break;
} // case 216
case 234: {
runtimeClassName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00100000;
break;
} // case 234
case 240: {
enableServiceLinks_ = input.readBool();
bitField0_ |= 0x00200000;
break;
} // case 240
case 250: {
preemptionPolicy_ = input.readStringRequireUtf8();
bitField0_ |= 0x00400000;
break;
} // case 250
case 296: {
hostUsers_ = input.readBool();
bitField0_ |= 0x00800000;
break;
} // case 296
case 314: {
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim m =
input.readMessage(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim.parser(),
extensionRegistry);
if (resourceClaimsBuilder_ == null) {
ensureResourceClaimsIsMutable();
resourceClaims_.add(m);
} else {
resourceClaimsBuilder_.addMessage(m);
}
break;
} // case 314
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume> volumes_ =
java.util.Collections.emptyList();
private void ensureVolumesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
volumes_ = new java.util.ArrayList<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume>(volumes_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.VolumeOrBuilder> volumesBuilder_;
/**
* <pre>
* List of volumes that can be mounted by containers belonging to the pod.
* More info: https://kubernetes.io/docs/concepts/storage/volumes
* +optional
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Volume volumes = 1 [json_name = "volumes"];</code>
*/
public java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume> getVolumesList() {
if (volumesBuilder_ == null) {
return java.util.Collections.unmodifiableList(volumes_);
} else {
return volumesBuilder_.getMessageList();
}
}
/**
* <pre>
* List of volumes that can be mounted by containers belonging to the pod.
* More info: https://kubernetes.io/docs/concepts/storage/volumes
* +optional
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Volume volumes = 1 [json_name = "volumes"];</code>
*/
public int getVolumesCount() {
if (volumesBuilder_ == null) {
return volumes_.size();
} else {
return volumesBuilder_.getCount();
}
}
/**
* <pre>
* List of volumes that can be mounted by containers belonging to the pod.
* More info: https://kubernetes.io/docs/concepts/storage/volumes
* +optional
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Volume volumes = 1 [json_name = "volumes"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume getVolumes(int index) {
if (volumesBuilder_ == null) {
return volumes_.get(index);
} else {
return volumesBuilder_.getMessage(index);
}
}
/**
* <pre>
* List of volumes that can be mounted by containers belonging to the pod.
* More info: https://kubernetes.io/docs/concepts/storage/volumes
* +optional
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Volume volumes = 1 [json_name = "volumes"];</code>
*/
public Builder setVolumes(
int index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume value) {
if (volumesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVolumesIsMutable();
volumes_.set(index, value);
onChanged();
} else {
volumesBuilder_.setMessage(index, value);
}
return this;
}
/**
* <pre>
* List of volumes that can be mounted by containers belonging to the pod.
* More info: https://kubernetes.io/docs/concepts/storage/volumes
* +optional
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Volume volumes = 1 [json_name = "volumes"];</code>
*/
public Builder setVolumes(
int index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume.Builder builderForValue) {
if (volumesBuilder_ == null) {
ensureVolumesIsMutable();
volumes_.set(index, builderForValue.build());
onChanged();
} else {
volumesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <pre>
* List of volumes that can be mounted by containers belonging to the pod.
* More info: https://kubernetes.io/docs/concepts/storage/volumes
* +optional
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Volume volumes = 1 [json_name = "volumes"];</code>
*/
public Builder addVolumes(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume value) {
if (volumesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVolumesIsMutable();
volumes_.add(value);
onChanged();
} else {
volumesBuilder_.addMessage(value);
}
return this;
}
/**
* <pre>
* List of volumes that can be mounted by containers belonging to the pod.
* More info: https://kubernetes.io/docs/concepts/storage/volumes
* +optional
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Volume volumes = 1 [json_name = "volumes"];</code>
*/
public Builder addVolumes(
int index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume value) {
if (volumesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVolumesIsMutable();
volumes_.add(index, value);
onChanged();
} else {
volumesBuilder_.addMessage(index, value);
}
return this;
}
/**
* <pre>
* List of volumes that can be mounted by containers belonging to the pod.
* More info: https://kubernetes.io/docs/concepts/storage/volumes
* +optional
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Volume volumes = 1 [json_name = "volumes"];</code>
*/
public Builder addVolumes(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume.Builder builderForValue) {
if (volumesBuilder_ == null) {
ensureVolumesIsMutable();
volumes_.add(builderForValue.build());
onChanged();
} else {
volumesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
* List of volumes that can be mounted by containers belonging to the pod.
* More info: https://kubernetes.io/docs/concepts/storage/volumes
* +optional
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Volume volumes = 1 [json_name = "volumes"];</code>
*/
public Builder addVolumes(
int index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume.Builder builderForValue) {
if (volumesBuilder_ == null) {
ensureVolumesIsMutable();
volumes_.add(index, builderForValue.build());
onChanged();
} else {
volumesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <pre>
* List of volumes that can be mounted by containers belonging to the pod.
* More info: https://kubernetes.io/docs/concepts/storage/volumes
* +optional
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Volume volumes = 1 [json_name = "volumes"];</code>
*/
public Builder addAllVolumes(
java.lang.Iterable<? extends ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume> values) {
if (volumesBuilder_ == null) {
ensureVolumesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, volumes_);
onChanged();
} else {
volumesBuilder_.addAllMessages(values);
}
return this;
}
/**
* <pre>
* List of volumes that can be mounted by containers belonging to the pod.
* More info: https://kubernetes.io/docs/concepts/storage/volumes
* +optional
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Volume volumes = 1 [json_name = "volumes"];</code>
*/
public Builder clearVolumes() {
if (volumesBuilder_ == null) {
volumes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
volumesBuilder_.clear();
}
return this;
}
/**
* <pre>
* List of volumes that can be mounted by containers belonging to the pod.
* More info: https://kubernetes.io/docs/concepts/storage/volumes
* +optional
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Volume volumes = 1 [json_name = "volumes"];</code>
*/
public Builder removeVolumes(int index) {
if (volumesBuilder_ == null) {
ensureVolumesIsMutable();
volumes_.remove(index);
onChanged();
} else {
volumesBuilder_.remove(index);
}
return this;
}
/**
* <pre>
* List of volumes that can be mounted by containers belonging to the pod.
* More info: https://kubernetes.io/docs/concepts/storage/volumes
* +optional
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Volume volumes = 1 [json_name = "volumes"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume.Builder getVolumesBuilder(
int index) {
return getVolumesFieldBuilder().getBuilder(index);
}
/**
* <pre>
* List of volumes that can be mounted by containers belonging to the pod.
* More info: https://kubernetes.io/docs/concepts/storage/volumes
* +optional
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Volume volumes = 1 [json_name = "volumes"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.VolumeOrBuilder getVolumesOrBuilder(
int index) {
if (volumesBuilder_ == null) {
return volumes_.get(index); } else {
return volumesBuilder_.getMessageOrBuilder(index);
}
}
/**
* <pre>
* List of volumes that can be mounted by containers belonging to the pod.
* More info: https://kubernetes.io/docs/concepts/storage/volumes
* +optional
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Volume volumes = 1 [json_name = "volumes"];</code>
*/
public java.util.List<? extends ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.VolumeOrBuilder>
getVolumesOrBuilderList() {
if (volumesBuilder_ != null) {
return volumesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(volumes_);
}
}
/**
* <pre>
* List of volumes that can be mounted by containers belonging to the pod.
* More info: https://kubernetes.io/docs/concepts/storage/volumes
* +optional
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Volume volumes = 1 [json_name = "volumes"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume.Builder addVolumesBuilder() {
return getVolumesFieldBuilder().addBuilder(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume.getDefaultInstance());
}
/**
* <pre>
* List of volumes that can be mounted by containers belonging to the pod.
* More info: https://kubernetes.io/docs/concepts/storage/volumes
* +optional
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Volume volumes = 1 [json_name = "volumes"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume.Builder addVolumesBuilder(
int index) {
return getVolumesFieldBuilder().addBuilder(
index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume.getDefaultInstance());
}
/**
* <pre>
* List of volumes that can be mounted by containers belonging to the pod.
* More info: https://kubernetes.io/docs/concepts/storage/volumes
* +optional
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Volume volumes = 1 [json_name = "volumes"];</code>
*/
public java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume.Builder>
getVolumesBuilderList() {
return getVolumesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.VolumeOrBuilder>
getVolumesFieldBuilder() {
if (volumesBuilder_ == null) {
volumesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Volume.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.VolumeOrBuilder>(
volumes_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
volumes_ = null;
}
return volumesBuilder_;
}
private java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container> initContainers_ =
java.util.Collections.emptyList();
private void ensureInitContainersIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
initContainers_ = new java.util.ArrayList<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container>(initContainers_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerOrBuilder> initContainersBuilder_;
/**
* <pre>
* List of initialization containers belonging to the pod.
* Init containers are executed in order prior to containers being started. If any
* init container fails, the pod is considered to have failed and is handled according
* to its restartPolicy. The name for an init container or normal container must be
* unique among all containers.
* Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
* The resourceRequirements of an init container are taken into account during scheduling
* by finding the highest request/limit for each resource type, and then using the max of
* of that value or the sum of the normal containers. Limits are applied to init containers
* in a similar fashion.
* Init containers cannot currently be added or removed.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container init_containers = 20 [json_name = "initContainers"];</code>
*/
public java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container> getInitContainersList() {
if (initContainersBuilder_ == null) {
return java.util.Collections.unmodifiableList(initContainers_);
} else {
return initContainersBuilder_.getMessageList();
}
}
/**
* <pre>
* List of initialization containers belonging to the pod.
* Init containers are executed in order prior to containers being started. If any
* init container fails, the pod is considered to have failed and is handled according
* to its restartPolicy. The name for an init container or normal container must be
* unique among all containers.
* Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
* The resourceRequirements of an init container are taken into account during scheduling
* by finding the highest request/limit for each resource type, and then using the max of
* of that value or the sum of the normal containers. Limits are applied to init containers
* in a similar fashion.
* Init containers cannot currently be added or removed.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container init_containers = 20 [json_name = "initContainers"];</code>
*/
public int getInitContainersCount() {
if (initContainersBuilder_ == null) {
return initContainers_.size();
} else {
return initContainersBuilder_.getCount();
}
}
/**
* <pre>
* List of initialization containers belonging to the pod.
* Init containers are executed in order prior to containers being started. If any
* init container fails, the pod is considered to have failed and is handled according
* to its restartPolicy. The name for an init container or normal container must be
* unique among all containers.
* Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
* The resourceRequirements of an init container are taken into account during scheduling
* by finding the highest request/limit for each resource type, and then using the max of
* of that value or the sum of the normal containers. Limits are applied to init containers
* in a similar fashion.
* Init containers cannot currently be added or removed.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container init_containers = 20 [json_name = "initContainers"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container getInitContainers(int index) {
if (initContainersBuilder_ == null) {
return initContainers_.get(index);
} else {
return initContainersBuilder_.getMessage(index);
}
}
/**
* <pre>
* List of initialization containers belonging to the pod.
* Init containers are executed in order prior to containers being started. If any
* init container fails, the pod is considered to have failed and is handled according
* to its restartPolicy. The name for an init container or normal container must be
* unique among all containers.
* Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
* The resourceRequirements of an init container are taken into account during scheduling
* by finding the highest request/limit for each resource type, and then using the max of
* of that value or the sum of the normal containers. Limits are applied to init containers
* in a similar fashion.
* Init containers cannot currently be added or removed.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container init_containers = 20 [json_name = "initContainers"];</code>
*/
public Builder setInitContainers(
int index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container value) {
if (initContainersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInitContainersIsMutable();
initContainers_.set(index, value);
onChanged();
} else {
initContainersBuilder_.setMessage(index, value);
}
return this;
}
/**
* <pre>
* List of initialization containers belonging to the pod.
* Init containers are executed in order prior to containers being started. If any
* init container fails, the pod is considered to have failed and is handled according
* to its restartPolicy. The name for an init container or normal container must be
* unique among all containers.
* Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
* The resourceRequirements of an init container are taken into account during scheduling
* by finding the highest request/limit for each resource type, and then using the max of
* of that value or the sum of the normal containers. Limits are applied to init containers
* in a similar fashion.
* Init containers cannot currently be added or removed.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container init_containers = 20 [json_name = "initContainers"];</code>
*/
public Builder setInitContainers(
int index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container.Builder builderForValue) {
if (initContainersBuilder_ == null) {
ensureInitContainersIsMutable();
initContainers_.set(index, builderForValue.build());
onChanged();
} else {
initContainersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <pre>
* List of initialization containers belonging to the pod.
* Init containers are executed in order prior to containers being started. If any
* init container fails, the pod is considered to have failed and is handled according
* to its restartPolicy. The name for an init container or normal container must be
* unique among all containers.
* Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
* The resourceRequirements of an init container are taken into account during scheduling
* by finding the highest request/limit for each resource type, and then using the max of
* of that value or the sum of the normal containers. Limits are applied to init containers
* in a similar fashion.
* Init containers cannot currently be added or removed.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container init_containers = 20 [json_name = "initContainers"];</code>
*/
public Builder addInitContainers(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container value) {
if (initContainersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInitContainersIsMutable();
initContainers_.add(value);
onChanged();
} else {
initContainersBuilder_.addMessage(value);
}
return this;
}
/**
* <pre>
* List of initialization containers belonging to the pod.
* Init containers are executed in order prior to containers being started. If any
* init container fails, the pod is considered to have failed and is handled according
* to its restartPolicy. The name for an init container or normal container must be
* unique among all containers.
* Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
* The resourceRequirements of an init container are taken into account during scheduling
* by finding the highest request/limit for each resource type, and then using the max of
* of that value or the sum of the normal containers. Limits are applied to init containers
* in a similar fashion.
* Init containers cannot currently be added or removed.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container init_containers = 20 [json_name = "initContainers"];</code>
*/
public Builder addInitContainers(
int index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container value) {
if (initContainersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInitContainersIsMutable();
initContainers_.add(index, value);
onChanged();
} else {
initContainersBuilder_.addMessage(index, value);
}
return this;
}
/**
* <pre>
* List of initialization containers belonging to the pod.
* Init containers are executed in order prior to containers being started. If any
* init container fails, the pod is considered to have failed and is handled according
* to its restartPolicy. The name for an init container or normal container must be
* unique among all containers.
* Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
* The resourceRequirements of an init container are taken into account during scheduling
* by finding the highest request/limit for each resource type, and then using the max of
* of that value or the sum of the normal containers. Limits are applied to init containers
* in a similar fashion.
* Init containers cannot currently be added or removed.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container init_containers = 20 [json_name = "initContainers"];</code>
*/
public Builder addInitContainers(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container.Builder builderForValue) {
if (initContainersBuilder_ == null) {
ensureInitContainersIsMutable();
initContainers_.add(builderForValue.build());
onChanged();
} else {
initContainersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
* List of initialization containers belonging to the pod.
* Init containers are executed in order prior to containers being started. If any
* init container fails, the pod is considered to have failed and is handled according
* to its restartPolicy. The name for an init container or normal container must be
* unique among all containers.
* Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
* The resourceRequirements of an init container are taken into account during scheduling
* by finding the highest request/limit for each resource type, and then using the max of
* of that value or the sum of the normal containers. Limits are applied to init containers
* in a similar fashion.
* Init containers cannot currently be added or removed.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container init_containers = 20 [json_name = "initContainers"];</code>
*/
public Builder addInitContainers(
int index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container.Builder builderForValue) {
if (initContainersBuilder_ == null) {
ensureInitContainersIsMutable();
initContainers_.add(index, builderForValue.build());
onChanged();
} else {
initContainersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <pre>
* List of initialization containers belonging to the pod.
* Init containers are executed in order prior to containers being started. If any
* init container fails, the pod is considered to have failed and is handled according
* to its restartPolicy. The name for an init container or normal container must be
* unique among all containers.
* Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
* The resourceRequirements of an init container are taken into account during scheduling
* by finding the highest request/limit for each resource type, and then using the max of
* of that value or the sum of the normal containers. Limits are applied to init containers
* in a similar fashion.
* Init containers cannot currently be added or removed.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container init_containers = 20 [json_name = "initContainers"];</code>
*/
public Builder addAllInitContainers(
java.lang.Iterable<? extends ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container> values) {
if (initContainersBuilder_ == null) {
ensureInitContainersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, initContainers_);
onChanged();
} else {
initContainersBuilder_.addAllMessages(values);
}
return this;
}
/**
* <pre>
* List of initialization containers belonging to the pod.
* Init containers are executed in order prior to containers being started. If any
* init container fails, the pod is considered to have failed and is handled according
* to its restartPolicy. The name for an init container or normal container must be
* unique among all containers.
* Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
* The resourceRequirements of an init container are taken into account during scheduling
* by finding the highest request/limit for each resource type, and then using the max of
* of that value or the sum of the normal containers. Limits are applied to init containers
* in a similar fashion.
* Init containers cannot currently be added or removed.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container init_containers = 20 [json_name = "initContainers"];</code>
*/
public Builder clearInitContainers() {
if (initContainersBuilder_ == null) {
initContainers_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
initContainersBuilder_.clear();
}
return this;
}
/**
* <pre>
* List of initialization containers belonging to the pod.
* Init containers are executed in order prior to containers being started. If any
* init container fails, the pod is considered to have failed and is handled according
* to its restartPolicy. The name for an init container or normal container must be
* unique among all containers.
* Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
* The resourceRequirements of an init container are taken into account during scheduling
* by finding the highest request/limit for each resource type, and then using the max of
* of that value or the sum of the normal containers. Limits are applied to init containers
* in a similar fashion.
* Init containers cannot currently be added or removed.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container init_containers = 20 [json_name = "initContainers"];</code>
*/
public Builder removeInitContainers(int index) {
if (initContainersBuilder_ == null) {
ensureInitContainersIsMutable();
initContainers_.remove(index);
onChanged();
} else {
initContainersBuilder_.remove(index);
}
return this;
}
/**
* <pre>
* List of initialization containers belonging to the pod.
* Init containers are executed in order prior to containers being started. If any
* init container fails, the pod is considered to have failed and is handled according
* to its restartPolicy. The name for an init container or normal container must be
* unique among all containers.
* Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
* The resourceRequirements of an init container are taken into account during scheduling
* by finding the highest request/limit for each resource type, and then using the max of
* of that value or the sum of the normal containers. Limits are applied to init containers
* in a similar fashion.
* Init containers cannot currently be added or removed.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container init_containers = 20 [json_name = "initContainers"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container.Builder getInitContainersBuilder(
int index) {
return getInitContainersFieldBuilder().getBuilder(index);
}
/**
* <pre>
* List of initialization containers belonging to the pod.
* Init containers are executed in order prior to containers being started. If any
* init container fails, the pod is considered to have failed and is handled according
* to its restartPolicy. The name for an init container or normal container must be
* unique among all containers.
* Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
* The resourceRequirements of an init container are taken into account during scheduling
* by finding the highest request/limit for each resource type, and then using the max of
* of that value or the sum of the normal containers. Limits are applied to init containers
* in a similar fashion.
* Init containers cannot currently be added or removed.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container init_containers = 20 [json_name = "initContainers"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerOrBuilder getInitContainersOrBuilder(
int index) {
if (initContainersBuilder_ == null) {
return initContainers_.get(index); } else {
return initContainersBuilder_.getMessageOrBuilder(index);
}
}
/**
* <pre>
* List of initialization containers belonging to the pod.
* Init containers are executed in order prior to containers being started. If any
* init container fails, the pod is considered to have failed and is handled according
* to its restartPolicy. The name for an init container or normal container must be
* unique among all containers.
* Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
* The resourceRequirements of an init container are taken into account during scheduling
* by finding the highest request/limit for each resource type, and then using the max of
* of that value or the sum of the normal containers. Limits are applied to init containers
* in a similar fashion.
* Init containers cannot currently be added or removed.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container init_containers = 20 [json_name = "initContainers"];</code>
*/
public java.util.List<? extends ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerOrBuilder>
getInitContainersOrBuilderList() {
if (initContainersBuilder_ != null) {
return initContainersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(initContainers_);
}
}
/**
* <pre>
* List of initialization containers belonging to the pod.
* Init containers are executed in order prior to containers being started. If any
* init container fails, the pod is considered to have failed and is handled according
* to its restartPolicy. The name for an init container or normal container must be
* unique among all containers.
* Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
* The resourceRequirements of an init container are taken into account during scheduling
* by finding the highest request/limit for each resource type, and then using the max of
* of that value or the sum of the normal containers. Limits are applied to init containers
* in a similar fashion.
* Init containers cannot currently be added or removed.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container init_containers = 20 [json_name = "initContainers"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container.Builder addInitContainersBuilder() {
return getInitContainersFieldBuilder().addBuilder(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container.getDefaultInstance());
}
/**
* <pre>
* List of initialization containers belonging to the pod.
* Init containers are executed in order prior to containers being started. If any
* init container fails, the pod is considered to have failed and is handled according
* to its restartPolicy. The name for an init container or normal container must be
* unique among all containers.
* Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
* The resourceRequirements of an init container are taken into account during scheduling
* by finding the highest request/limit for each resource type, and then using the max of
* of that value or the sum of the normal containers. Limits are applied to init containers
* in a similar fashion.
* Init containers cannot currently be added or removed.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container init_containers = 20 [json_name = "initContainers"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container.Builder addInitContainersBuilder(
int index) {
return getInitContainersFieldBuilder().addBuilder(
index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container.getDefaultInstance());
}
/**
* <pre>
* List of initialization containers belonging to the pod.
* Init containers are executed in order prior to containers being started. If any
* init container fails, the pod is considered to have failed and is handled according
* to its restartPolicy. The name for an init container or normal container must be
* unique among all containers.
* Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
* The resourceRequirements of an init container are taken into account during scheduling
* by finding the highest request/limit for each resource type, and then using the max of
* of that value or the sum of the normal containers. Limits are applied to init containers
* in a similar fashion.
* Init containers cannot currently be added or removed.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container init_containers = 20 [json_name = "initContainers"];</code>
*/
public java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container.Builder>
getInitContainersBuilderList() {
return getInitContainersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerOrBuilder>
getInitContainersFieldBuilder() {
if (initContainersBuilder_ == null) {
initContainersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerOrBuilder>(
initContainers_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
initContainers_ = null;
}
return initContainersBuilder_;
}
private java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container> containers_ =
java.util.Collections.emptyList();
private void ensureContainersIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
containers_ = new java.util.ArrayList<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container>(containers_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerOrBuilder> containersBuilder_;
/**
* <pre>
* List of containers belonging to the pod.
* Containers cannot currently be added or removed.
* There must be at least one container in a Pod.
* Cannot be updated.
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container containers = 2 [json_name = "containers"];</code>
*/
public java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container> getContainersList() {
if (containersBuilder_ == null) {
return java.util.Collections.unmodifiableList(containers_);
} else {
return containersBuilder_.getMessageList();
}
}
/**
* <pre>
* List of containers belonging to the pod.
* Containers cannot currently be added or removed.
* There must be at least one container in a Pod.
* Cannot be updated.
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container containers = 2 [json_name = "containers"];</code>
*/
public int getContainersCount() {
if (containersBuilder_ == null) {
return containers_.size();
} else {
return containersBuilder_.getCount();
}
}
/**
* <pre>
* List of containers belonging to the pod.
* Containers cannot currently be added or removed.
* There must be at least one container in a Pod.
* Cannot be updated.
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container containers = 2 [json_name = "containers"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container getContainers(int index) {
if (containersBuilder_ == null) {
return containers_.get(index);
} else {
return containersBuilder_.getMessage(index);
}
}
/**
* <pre>
* List of containers belonging to the pod.
* Containers cannot currently be added or removed.
* There must be at least one container in a Pod.
* Cannot be updated.
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container containers = 2 [json_name = "containers"];</code>
*/
public Builder setContainers(
int index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container value) {
if (containersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContainersIsMutable();
containers_.set(index, value);
onChanged();
} else {
containersBuilder_.setMessage(index, value);
}
return this;
}
/**
* <pre>
* List of containers belonging to the pod.
* Containers cannot currently be added or removed.
* There must be at least one container in a Pod.
* Cannot be updated.
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container containers = 2 [json_name = "containers"];</code>
*/
public Builder setContainers(
int index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container.Builder builderForValue) {
if (containersBuilder_ == null) {
ensureContainersIsMutable();
containers_.set(index, builderForValue.build());
onChanged();
} else {
containersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <pre>
* List of containers belonging to the pod.
* Containers cannot currently be added or removed.
* There must be at least one container in a Pod.
* Cannot be updated.
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container containers = 2 [json_name = "containers"];</code>
*/
public Builder addContainers(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container value) {
if (containersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContainersIsMutable();
containers_.add(value);
onChanged();
} else {
containersBuilder_.addMessage(value);
}
return this;
}
/**
* <pre>
* List of containers belonging to the pod.
* Containers cannot currently be added or removed.
* There must be at least one container in a Pod.
* Cannot be updated.
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container containers = 2 [json_name = "containers"];</code>
*/
public Builder addContainers(
int index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container value) {
if (containersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContainersIsMutable();
containers_.add(index, value);
onChanged();
} else {
containersBuilder_.addMessage(index, value);
}
return this;
}
/**
* <pre>
* List of containers belonging to the pod.
* Containers cannot currently be added or removed.
* There must be at least one container in a Pod.
* Cannot be updated.
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container containers = 2 [json_name = "containers"];</code>
*/
public Builder addContainers(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container.Builder builderForValue) {
if (containersBuilder_ == null) {
ensureContainersIsMutable();
containers_.add(builderForValue.build());
onChanged();
} else {
containersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
* List of containers belonging to the pod.
* Containers cannot currently be added or removed.
* There must be at least one container in a Pod.
* Cannot be updated.
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container containers = 2 [json_name = "containers"];</code>
*/
public Builder addContainers(
int index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container.Builder builderForValue) {
if (containersBuilder_ == null) {
ensureContainersIsMutable();
containers_.add(index, builderForValue.build());
onChanged();
} else {
containersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <pre>
* List of containers belonging to the pod.
* Containers cannot currently be added or removed.
* There must be at least one container in a Pod.
* Cannot be updated.
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container containers = 2 [json_name = "containers"];</code>
*/
public Builder addAllContainers(
java.lang.Iterable<? extends ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container> values) {
if (containersBuilder_ == null) {
ensureContainersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, containers_);
onChanged();
} else {
containersBuilder_.addAllMessages(values);
}
return this;
}
/**
* <pre>
* List of containers belonging to the pod.
* Containers cannot currently be added or removed.
* There must be at least one container in a Pod.
* Cannot be updated.
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container containers = 2 [json_name = "containers"];</code>
*/
public Builder clearContainers() {
if (containersBuilder_ == null) {
containers_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
containersBuilder_.clear();
}
return this;
}
/**
* <pre>
* List of containers belonging to the pod.
* Containers cannot currently be added or removed.
* There must be at least one container in a Pod.
* Cannot be updated.
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container containers = 2 [json_name = "containers"];</code>
*/
public Builder removeContainers(int index) {
if (containersBuilder_ == null) {
ensureContainersIsMutable();
containers_.remove(index);
onChanged();
} else {
containersBuilder_.remove(index);
}
return this;
}
/**
* <pre>
* List of containers belonging to the pod.
* Containers cannot currently be added or removed.
* There must be at least one container in a Pod.
* Cannot be updated.
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container containers = 2 [json_name = "containers"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container.Builder getContainersBuilder(
int index) {
return getContainersFieldBuilder().getBuilder(index);
}
/**
* <pre>
* List of containers belonging to the pod.
* Containers cannot currently be added or removed.
* There must be at least one container in a Pod.
* Cannot be updated.
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container containers = 2 [json_name = "containers"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerOrBuilder getContainersOrBuilder(
int index) {
if (containersBuilder_ == null) {
return containers_.get(index); } else {
return containersBuilder_.getMessageOrBuilder(index);
}
}
/**
* <pre>
* List of containers belonging to the pod.
* Containers cannot currently be added or removed.
* There must be at least one container in a Pod.
* Cannot be updated.
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container containers = 2 [json_name = "containers"];</code>
*/
public java.util.List<? extends ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerOrBuilder>
getContainersOrBuilderList() {
if (containersBuilder_ != null) {
return containersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(containers_);
}
}
/**
* <pre>
* List of containers belonging to the pod.
* Containers cannot currently be added or removed.
* There must be at least one container in a Pod.
* Cannot be updated.
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container containers = 2 [json_name = "containers"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container.Builder addContainersBuilder() {
return getContainersFieldBuilder().addBuilder(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container.getDefaultInstance());
}
/**
* <pre>
* List of containers belonging to the pod.
* Containers cannot currently be added or removed.
* There must be at least one container in a Pod.
* Cannot be updated.
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container containers = 2 [json_name = "containers"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container.Builder addContainersBuilder(
int index) {
return getContainersFieldBuilder().addBuilder(
index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container.getDefaultInstance());
}
/**
* <pre>
* List of containers belonging to the pod.
* Containers cannot currently be added or removed.
* There must be at least one container in a Pod.
* Cannot be updated.
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.Container containers = 2 [json_name = "containers"];</code>
*/
public java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container.Builder>
getContainersBuilderList() {
return getContainersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerOrBuilder>
getContainersFieldBuilder() {
if (containersBuilder_ == null) {
containersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerOrBuilder>(
containers_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
containers_ = null;
}
return containersBuilder_;
}
private java.lang.Object restartPolicy_ = "";
/**
* <pre>
* Restart policy for all containers within the pod.
* One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted.
* Default to Always.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy
* +optional
* </pre>
*
* <code>optional string restart_policy = 3 [json_name = "restartPolicy"];</code>
* @return Whether the restartPolicy field is set.
*/
public boolean hasRestartPolicy() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* <pre>
* Restart policy for all containers within the pod.
* One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted.
* Default to Always.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy
* +optional
* </pre>
*
* <code>optional string restart_policy = 3 [json_name = "restartPolicy"];</code>
* @return The restartPolicy.
*/
public java.lang.String getRestartPolicy() {
java.lang.Object ref = restartPolicy_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
restartPolicy_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* Restart policy for all containers within the pod.
* One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted.
* Default to Always.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy
* +optional
* </pre>
*
* <code>optional string restart_policy = 3 [json_name = "restartPolicy"];</code>
* @return The bytes for restartPolicy.
*/
public com.google.protobuf.ByteString
getRestartPolicyBytes() {
java.lang.Object ref = restartPolicy_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
restartPolicy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* Restart policy for all containers within the pod.
* One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted.
* Default to Always.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy
* +optional
* </pre>
*
* <code>optional string restart_policy = 3 [json_name = "restartPolicy"];</code>
* @param value The restartPolicy to set.
* @return This builder for chaining.
*/
public Builder setRestartPolicy(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
restartPolicy_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* <pre>
* Restart policy for all containers within the pod.
* One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted.
* Default to Always.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy
* +optional
* </pre>
*
* <code>optional string restart_policy = 3 [json_name = "restartPolicy"];</code>
* @return This builder for chaining.
*/
public Builder clearRestartPolicy() {
restartPolicy_ = getDefaultInstance().getRestartPolicy();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
* <pre>
* Restart policy for all containers within the pod.
* One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted.
* Default to Always.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy
* +optional
* </pre>
*
* <code>optional string restart_policy = 3 [json_name = "restartPolicy"];</code>
* @param value The bytes for restartPolicy to set.
* @return This builder for chaining.
*/
public Builder setRestartPolicyBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
restartPolicy_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private long terminationGracePeriodSeconds_ ;
/**
* <pre>
* Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request.
* Value must be non-negative integer. The value zero indicates stop immediately via
* the kill signal (no opportunity to shut down).
* If this value is nil, the default grace period will be used instead.
* The grace period is the duration in seconds after the processes running in the pod are sent
* a termination signal and the time when the processes are forcibly halted with a kill signal.
* Set this value longer than the expected cleanup time for your process.
* Defaults to 30 seconds.
* +optional
* </pre>
*
* <code>optional int64 termination_grace_period_seconds = 4 [json_name = "terminationGracePeriodSeconds"];</code>
* @return Whether the terminationGracePeriodSeconds field is set.
*/
@java.lang.Override
public boolean hasTerminationGracePeriodSeconds() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* <pre>
* Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request.
* Value must be non-negative integer. The value zero indicates stop immediately via
* the kill signal (no opportunity to shut down).
* If this value is nil, the default grace period will be used instead.
* The grace period is the duration in seconds after the processes running in the pod are sent
* a termination signal and the time when the processes are forcibly halted with a kill signal.
* Set this value longer than the expected cleanup time for your process.
* Defaults to 30 seconds.
* +optional
* </pre>
*
* <code>optional int64 termination_grace_period_seconds = 4 [json_name = "terminationGracePeriodSeconds"];</code>
* @return The terminationGracePeriodSeconds.
*/
@java.lang.Override
public long getTerminationGracePeriodSeconds() {
return terminationGracePeriodSeconds_;
}
/**
* <pre>
* Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request.
* Value must be non-negative integer. The value zero indicates stop immediately via
* the kill signal (no opportunity to shut down).
* If this value is nil, the default grace period will be used instead.
* The grace period is the duration in seconds after the processes running in the pod are sent
* a termination signal and the time when the processes are forcibly halted with a kill signal.
* Set this value longer than the expected cleanup time for your process.
* Defaults to 30 seconds.
* +optional
* </pre>
*
* <code>optional int64 termination_grace_period_seconds = 4 [json_name = "terminationGracePeriodSeconds"];</code>
* @param value The terminationGracePeriodSeconds to set.
* @return This builder for chaining.
*/
public Builder setTerminationGracePeriodSeconds(long value) {
terminationGracePeriodSeconds_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* <pre>
* Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request.
* Value must be non-negative integer. The value zero indicates stop immediately via
* the kill signal (no opportunity to shut down).
* If this value is nil, the default grace period will be used instead.
* The grace period is the duration in seconds after the processes running in the pod are sent
* a termination signal and the time when the processes are forcibly halted with a kill signal.
* Set this value longer than the expected cleanup time for your process.
* Defaults to 30 seconds.
* +optional
* </pre>
*
* <code>optional int64 termination_grace_period_seconds = 4 [json_name = "terminationGracePeriodSeconds"];</code>
* @return This builder for chaining.
*/
public Builder clearTerminationGracePeriodSeconds() {
bitField0_ = (bitField0_ & ~0x00000010);
terminationGracePeriodSeconds_ = 0L;
onChanged();
return this;
}
private long activeDeadlineSeconds_ ;
/**
* <pre>
* Optional duration in seconds the pod may be active on the node relative to
* start_time before the system will actively try to mark it failed and kill associated containers.
* Value must be a positive integer.
* +optional
* </pre>
*
* <code>optional int64 active_deadline_seconds = 5 [json_name = "activeDeadlineSeconds"];</code>
* @return Whether the activeDeadlineSeconds field is set.
*/
@java.lang.Override
public boolean hasActiveDeadlineSeconds() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* <pre>
* Optional duration in seconds the pod may be active on the node relative to
* start_time before the system will actively try to mark it failed and kill associated containers.
* Value must be a positive integer.
* +optional
* </pre>
*
* <code>optional int64 active_deadline_seconds = 5 [json_name = "activeDeadlineSeconds"];</code>
* @return The activeDeadlineSeconds.
*/
@java.lang.Override
public long getActiveDeadlineSeconds() {
return activeDeadlineSeconds_;
}
/**
* <pre>
* Optional duration in seconds the pod may be active on the node relative to
* start_time before the system will actively try to mark it failed and kill associated containers.
* Value must be a positive integer.
* +optional
* </pre>
*
* <code>optional int64 active_deadline_seconds = 5 [json_name = "activeDeadlineSeconds"];</code>
* @param value The activeDeadlineSeconds to set.
* @return This builder for chaining.
*/
public Builder setActiveDeadlineSeconds(long value) {
activeDeadlineSeconds_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* <pre>
* Optional duration in seconds the pod may be active on the node relative to
* start_time before the system will actively try to mark it failed and kill associated containers.
* Value must be a positive integer.
* +optional
* </pre>
*
* <code>optional int64 active_deadline_seconds = 5 [json_name = "activeDeadlineSeconds"];</code>
* @return This builder for chaining.
*/
public Builder clearActiveDeadlineSeconds() {
bitField0_ = (bitField0_ & ~0x00000020);
activeDeadlineSeconds_ = 0L;
onChanged();
return this;
}
private java.lang.Object dnsPolicy_ = "";
/**
* <pre>
* Set DNS policy for the pod.
* Defaults to "ClusterFirst".
* Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'.
* DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy.
* To have DNS options set along with hostNetwork, you have to specify DNS policy
* explicitly to 'ClusterFirstWithHostNet'.
* +optional
* </pre>
*
* <code>optional string dns_policy = 6 [json_name = "dnsPolicy"];</code>
* @return Whether the dnsPolicy field is set.
*/
public boolean hasDnsPolicy() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* <pre>
* Set DNS policy for the pod.
* Defaults to "ClusterFirst".
* Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'.
* DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy.
* To have DNS options set along with hostNetwork, you have to specify DNS policy
* explicitly to 'ClusterFirstWithHostNet'.
* +optional
* </pre>
*
* <code>optional string dns_policy = 6 [json_name = "dnsPolicy"];</code>
* @return The dnsPolicy.
*/
public java.lang.String getDnsPolicy() {
java.lang.Object ref = dnsPolicy_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dnsPolicy_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* Set DNS policy for the pod.
* Defaults to "ClusterFirst".
* Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'.
* DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy.
* To have DNS options set along with hostNetwork, you have to specify DNS policy
* explicitly to 'ClusterFirstWithHostNet'.
* +optional
* </pre>
*
* <code>optional string dns_policy = 6 [json_name = "dnsPolicy"];</code>
* @return The bytes for dnsPolicy.
*/
public com.google.protobuf.ByteString
getDnsPolicyBytes() {
java.lang.Object ref = dnsPolicy_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dnsPolicy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* Set DNS policy for the pod.
* Defaults to "ClusterFirst".
* Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'.
* DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy.
* To have DNS options set along with hostNetwork, you have to specify DNS policy
* explicitly to 'ClusterFirstWithHostNet'.
* +optional
* </pre>
*
* <code>optional string dns_policy = 6 [json_name = "dnsPolicy"];</code>
* @param value The dnsPolicy to set.
* @return This builder for chaining.
*/
public Builder setDnsPolicy(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
dnsPolicy_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* <pre>
* Set DNS policy for the pod.
* Defaults to "ClusterFirst".
* Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'.
* DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy.
* To have DNS options set along with hostNetwork, you have to specify DNS policy
* explicitly to 'ClusterFirstWithHostNet'.
* +optional
* </pre>
*
* <code>optional string dns_policy = 6 [json_name = "dnsPolicy"];</code>
* @return This builder for chaining.
*/
public Builder clearDnsPolicy() {
dnsPolicy_ = getDefaultInstance().getDnsPolicy();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
* <pre>
* Set DNS policy for the pod.
* Defaults to "ClusterFirst".
* Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'.
* DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy.
* To have DNS options set along with hostNetwork, you have to specify DNS policy
* explicitly to 'ClusterFirstWithHostNet'.
* +optional
* </pre>
*
* <code>optional string dns_policy = 6 [json_name = "dnsPolicy"];</code>
* @param value The bytes for dnsPolicy to set.
* @return This builder for chaining.
*/
public Builder setDnsPolicyBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
dnsPolicy_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> nodeSelector_;
private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetNodeSelector() {
if (nodeSelector_ == null) {
return com.google.protobuf.MapField.emptyMapField(
NodeSelectorDefaultEntryHolder.defaultEntry);
}
return nodeSelector_;
}
private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetMutableNodeSelector() {
if (nodeSelector_ == null) {
nodeSelector_ = com.google.protobuf.MapField.newMapField(
NodeSelectorDefaultEntryHolder.defaultEntry);
}
if (!nodeSelector_.isMutable()) {
nodeSelector_ = nodeSelector_.copy();
}
bitField0_ |= 0x00000080;
onChanged();
return nodeSelector_;
}
public int getNodeSelectorCount() {
return internalGetNodeSelector().getMap().size();
}
/**
* <pre>
* NodeSelector is a selector which must be true for the pod to fit on a node.
* Selector which must match a node's labels for the pod to be scheduled on that node.
* More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
* +optional
* +mapType=atomic
* </pre>
*
* <code>map<string, string> node_selector = 7 [json_name = "nodeSelector"];</code>
*/
@java.lang.Override
public boolean containsNodeSelector(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetNodeSelector().getMap().containsKey(key);
}
/**
* Use {@link #getNodeSelectorMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map<java.lang.String, java.lang.String> getNodeSelector() {
return getNodeSelectorMap();
}
/**
* <pre>
* NodeSelector is a selector which must be true for the pod to fit on a node.
* Selector which must match a node's labels for the pod to be scheduled on that node.
* More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
* +optional
* +mapType=atomic
* </pre>
*
* <code>map<string, string> node_selector = 7 [json_name = "nodeSelector"];</code>
*/
@java.lang.Override
public java.util.Map<java.lang.String, java.lang.String> getNodeSelectorMap() {
return internalGetNodeSelector().getMap();
}
/**
* <pre>
* NodeSelector is a selector which must be true for the pod to fit on a node.
* Selector which must match a node's labels for the pod to be scheduled on that node.
* More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
* +optional
* +mapType=atomic
* </pre>
*
* <code>map<string, string> node_selector = 7 [json_name = "nodeSelector"];</code>
*/
@java.lang.Override
public /* nullable */
java.lang.String getNodeSelectorOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetNodeSelector().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <pre>
* NodeSelector is a selector which must be true for the pod to fit on a node.
* Selector which must match a node's labels for the pod to be scheduled on that node.
* More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
* +optional
* +mapType=atomic
* </pre>
*
* <code>map<string, string> node_selector = 7 [json_name = "nodeSelector"];</code>
*/
@java.lang.Override
public java.lang.String getNodeSelectorOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetNodeSelector().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearNodeSelector() {
bitField0_ = (bitField0_ & ~0x00000080);
internalGetMutableNodeSelector().getMutableMap()
.clear();
return this;
}
/**
* <pre>
* NodeSelector is a selector which must be true for the pod to fit on a node.
* Selector which must match a node's labels for the pod to be scheduled on that node.
* More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
* +optional
* +mapType=atomic
* </pre>
*
* <code>map<string, string> node_selector = 7 [json_name = "nodeSelector"];</code>
*/
public Builder removeNodeSelector(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableNodeSelector().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map<java.lang.String, java.lang.String>
getMutableNodeSelector() {
bitField0_ |= 0x00000080;
return internalGetMutableNodeSelector().getMutableMap();
}
/**
* <pre>
* NodeSelector is a selector which must be true for the pod to fit on a node.
* Selector which must match a node's labels for the pod to be scheduled on that node.
* More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
* +optional
* +mapType=atomic
* </pre>
*
* <code>map<string, string> node_selector = 7 [json_name = "nodeSelector"];</code>
*/
public Builder putNodeSelector(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) { throw new NullPointerException("map value"); }
internalGetMutableNodeSelector().getMutableMap()
.put(key, value);
bitField0_ |= 0x00000080;
return this;
}
/**
* <pre>
* NodeSelector is a selector which must be true for the pod to fit on a node.
* Selector which must match a node's labels for the pod to be scheduled on that node.
* More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
* +optional
* +mapType=atomic
* </pre>
*
* <code>map<string, string> node_selector = 7 [json_name = "nodeSelector"];</code>
*/
public Builder putAllNodeSelector(
java.util.Map<java.lang.String, java.lang.String> values) {
internalGetMutableNodeSelector().getMutableMap()
.putAll(values);
bitField0_ |= 0x00000080;
return this;
}
private java.lang.Object serviceAccountName_ = "";
/**
* <pre>
* ServiceAccountName is the name of the ServiceAccount to use to run this pod.
* More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
* +optional
* </pre>
*
* <code>optional string service_account_name = 8 [json_name = "serviceAccountName"];</code>
* @return Whether the serviceAccountName field is set.
*/
public boolean hasServiceAccountName() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* <pre>
* ServiceAccountName is the name of the ServiceAccount to use to run this pod.
* More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
* +optional
* </pre>
*
* <code>optional string service_account_name = 8 [json_name = "serviceAccountName"];</code>
* @return The serviceAccountName.
*/
public java.lang.String getServiceAccountName() {
java.lang.Object ref = serviceAccountName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
serviceAccountName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* ServiceAccountName is the name of the ServiceAccount to use to run this pod.
* More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
* +optional
* </pre>
*
* <code>optional string service_account_name = 8 [json_name = "serviceAccountName"];</code>
* @return The bytes for serviceAccountName.
*/
public com.google.protobuf.ByteString
getServiceAccountNameBytes() {
java.lang.Object ref = serviceAccountName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceAccountName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* ServiceAccountName is the name of the ServiceAccount to use to run this pod.
* More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
* +optional
* </pre>
*
* <code>optional string service_account_name = 8 [json_name = "serviceAccountName"];</code>
* @param value The serviceAccountName to set.
* @return This builder for chaining.
*/
public Builder setServiceAccountName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
serviceAccountName_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
* <pre>
* ServiceAccountName is the name of the ServiceAccount to use to run this pod.
* More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
* +optional
* </pre>
*
* <code>optional string service_account_name = 8 [json_name = "serviceAccountName"];</code>
* @return This builder for chaining.
*/
public Builder clearServiceAccountName() {
serviceAccountName_ = getDefaultInstance().getServiceAccountName();
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
/**
* <pre>
* ServiceAccountName is the name of the ServiceAccount to use to run this pod.
* More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
* +optional
* </pre>
*
* <code>optional string service_account_name = 8 [json_name = "serviceAccountName"];</code>
* @param value The bytes for serviceAccountName to set.
* @return This builder for chaining.
*/
public Builder setServiceAccountNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
serviceAccountName_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
private boolean automountServiceAccountToken_ ;
/**
* <pre>
* AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.
* +optional
* </pre>
*
* <code>optional bool automount_service_account_token = 21 [json_name = "automountServiceAccountToken"];</code>
* @return Whether the automountServiceAccountToken field is set.
*/
@java.lang.Override
public boolean hasAutomountServiceAccountToken() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* <pre>
* AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.
* +optional
* </pre>
*
* <code>optional bool automount_service_account_token = 21 [json_name = "automountServiceAccountToken"];</code>
* @return The automountServiceAccountToken.
*/
@java.lang.Override
public boolean getAutomountServiceAccountToken() {
return automountServiceAccountToken_;
}
/**
* <pre>
* AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.
* +optional
* </pre>
*
* <code>optional bool automount_service_account_token = 21 [json_name = "automountServiceAccountToken"];</code>
* @param value The automountServiceAccountToken to set.
* @return This builder for chaining.
*/
public Builder setAutomountServiceAccountToken(boolean value) {
automountServiceAccountToken_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
* <pre>
* AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.
* +optional
* </pre>
*
* <code>optional bool automount_service_account_token = 21 [json_name = "automountServiceAccountToken"];</code>
* @return This builder for chaining.
*/
public Builder clearAutomountServiceAccountToken() {
bitField0_ = (bitField0_ & ~0x00000200);
automountServiceAccountToken_ = false;
onChanged();
return this;
}
private java.lang.Object nodeName_ = "";
/**
* <pre>
* NodeName is a request to schedule this pod onto a specific node. If it is non-empty,
* the scheduler simply schedules this pod onto that node, assuming that it fits resource
* requirements.
* +optional
* </pre>
*
* <code>optional string node_name = 10 [json_name = "nodeName"];</code>
* @return Whether the nodeName field is set.
*/
public boolean hasNodeName() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
* <pre>
* NodeName is a request to schedule this pod onto a specific node. If it is non-empty,
* the scheduler simply schedules this pod onto that node, assuming that it fits resource
* requirements.
* +optional
* </pre>
*
* <code>optional string node_name = 10 [json_name = "nodeName"];</code>
* @return The nodeName.
*/
public java.lang.String getNodeName() {
java.lang.Object ref = nodeName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nodeName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* NodeName is a request to schedule this pod onto a specific node. If it is non-empty,
* the scheduler simply schedules this pod onto that node, assuming that it fits resource
* requirements.
* +optional
* </pre>
*
* <code>optional string node_name = 10 [json_name = "nodeName"];</code>
* @return The bytes for nodeName.
*/
public com.google.protobuf.ByteString
getNodeNameBytes() {
java.lang.Object ref = nodeName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nodeName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* NodeName is a request to schedule this pod onto a specific node. If it is non-empty,
* the scheduler simply schedules this pod onto that node, assuming that it fits resource
* requirements.
* +optional
* </pre>
*
* <code>optional string node_name = 10 [json_name = "nodeName"];</code>
* @param value The nodeName to set.
* @return This builder for chaining.
*/
public Builder setNodeName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
nodeName_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
* <pre>
* NodeName is a request to schedule this pod onto a specific node. If it is non-empty,
* the scheduler simply schedules this pod onto that node, assuming that it fits resource
* requirements.
* +optional
* </pre>
*
* <code>optional string node_name = 10 [json_name = "nodeName"];</code>
* @return This builder for chaining.
*/
public Builder clearNodeName() {
nodeName_ = getDefaultInstance().getNodeName();
bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
return this;
}
/**
* <pre>
* NodeName is a request to schedule this pod onto a specific node. If it is non-empty,
* the scheduler simply schedules this pod onto that node, assuming that it fits resource
* requirements.
* +optional
* </pre>
*
* <code>optional string node_name = 10 [json_name = "nodeName"];</code>
* @param value The bytes for nodeName to set.
* @return This builder for chaining.
*/
public Builder setNodeNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
nodeName_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
private boolean hostNetwork_ ;
/**
* <pre>
* Host networking requested for this pod. Use the host's network namespace.
* If this option is set, the ports that will be used must be specified.
* Default to false.
* +k8s:conversion-gen=false
* +optional
* </pre>
*
* <code>bool host_network = 11 [json_name = "hostNetwork"];</code>
* @return The hostNetwork.
*/
@java.lang.Override
public boolean getHostNetwork() {
return hostNetwork_;
}
/**
* <pre>
* Host networking requested for this pod. Use the host's network namespace.
* If this option is set, the ports that will be used must be specified.
* Default to false.
* +k8s:conversion-gen=false
* +optional
* </pre>
*
* <code>bool host_network = 11 [json_name = "hostNetwork"];</code>
* @param value The hostNetwork to set.
* @return This builder for chaining.
*/
public Builder setHostNetwork(boolean value) {
hostNetwork_ = value;
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
* <pre>
* Host networking requested for this pod. Use the host's network namespace.
* If this option is set, the ports that will be used must be specified.
* Default to false.
* +k8s:conversion-gen=false
* +optional
* </pre>
*
* <code>bool host_network = 11 [json_name = "hostNetwork"];</code>
* @return This builder for chaining.
*/
public Builder clearHostNetwork() {
bitField0_ = (bitField0_ & ~0x00000800);
hostNetwork_ = false;
onChanged();
return this;
}
private boolean hostPid_ ;
/**
* <pre>
* Use the host's pid namespace.
* Optional: Default to false.
* +k8s:conversion-gen=false
* +optional
* </pre>
*
* <code>bool host_pid = 12 [json_name = "hostPid"];</code>
* @return The hostPid.
*/
@java.lang.Override
public boolean getHostPid() {
return hostPid_;
}
/**
* <pre>
* Use the host's pid namespace.
* Optional: Default to false.
* +k8s:conversion-gen=false
* +optional
* </pre>
*
* <code>bool host_pid = 12 [json_name = "hostPid"];</code>
* @param value The hostPid to set.
* @return This builder for chaining.
*/
public Builder setHostPid(boolean value) {
hostPid_ = value;
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
* <pre>
* Use the host's pid namespace.
* Optional: Default to false.
* +k8s:conversion-gen=false
* +optional
* </pre>
*
* <code>bool host_pid = 12 [json_name = "hostPid"];</code>
* @return This builder for chaining.
*/
public Builder clearHostPid() {
bitField0_ = (bitField0_ & ~0x00001000);
hostPid_ = false;
onChanged();
return this;
}
private boolean hostIpc_ ;
/**
* <pre>
* Use the host's ipc namespace.
* Optional: Default to false.
* +k8s:conversion-gen=false
* +optional
* </pre>
*
* <code>bool host_ipc = 13 [json_name = "hostIpc"];</code>
* @return The hostIpc.
*/
@java.lang.Override
public boolean getHostIpc() {
return hostIpc_;
}
/**
* <pre>
* Use the host's ipc namespace.
* Optional: Default to false.
* +k8s:conversion-gen=false
* +optional
* </pre>
*
* <code>bool host_ipc = 13 [json_name = "hostIpc"];</code>
* @param value The hostIpc to set.
* @return This builder for chaining.
*/
public Builder setHostIpc(boolean value) {
hostIpc_ = value;
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
* <pre>
* Use the host's ipc namespace.
* Optional: Default to false.
* +k8s:conversion-gen=false
* +optional
* </pre>
*
* <code>bool host_ipc = 13 [json_name = "hostIpc"];</code>
* @return This builder for chaining.
*/
public Builder clearHostIpc() {
bitField0_ = (bitField0_ & ~0x00002000);
hostIpc_ = false;
onChanged();
return this;
}
private boolean shareProcessNamespace_ ;
/**
* <pre>
* Share a single process namespace between all of the containers in a pod.
* When this is set containers will be able to view and signal processes from other containers
* in the same pod, and the first process in each container will not be assigned PID 1.
* HostPID and ShareProcessNamespace cannot both be set.
* Optional: Default to false.
* +k8s:conversion-gen=false
* +optional
* </pre>
*
* <code>bool share_process_namespace = 27 [json_name = "shareProcessNamespace"];</code>
* @return The shareProcessNamespace.
*/
@java.lang.Override
public boolean getShareProcessNamespace() {
return shareProcessNamespace_;
}
/**
* <pre>
* Share a single process namespace between all of the containers in a pod.
* When this is set containers will be able to view and signal processes from other containers
* in the same pod, and the first process in each container will not be assigned PID 1.
* HostPID and ShareProcessNamespace cannot both be set.
* Optional: Default to false.
* +k8s:conversion-gen=false
* +optional
* </pre>
*
* <code>bool share_process_namespace = 27 [json_name = "shareProcessNamespace"];</code>
* @param value The shareProcessNamespace to set.
* @return This builder for chaining.
*/
public Builder setShareProcessNamespace(boolean value) {
shareProcessNamespace_ = value;
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
* <pre>
* Share a single process namespace between all of the containers in a pod.
* When this is set containers will be able to view and signal processes from other containers
* in the same pod, and the first process in each container will not be assigned PID 1.
* HostPID and ShareProcessNamespace cannot both be set.
* Optional: Default to false.
* +k8s:conversion-gen=false
* +optional
* </pre>
*
* <code>bool share_process_namespace = 27 [json_name = "shareProcessNamespace"];</code>
* @return This builder for chaining.
*/
public Builder clearShareProcessNamespace() {
bitField0_ = (bitField0_ & ~0x00004000);
shareProcessNamespace_ = false;
onChanged();
return this;
}
private java.lang.Object hostname_ = "";
/**
* <pre>
* Specifies the hostname of the Pod
* If not specified, the pod's hostname will be set to a system-defined value.
* +optional
* </pre>
*
* <code>optional string hostname = 16 [json_name = "hostname"];</code>
* @return Whether the hostname field is set.
*/
public boolean hasHostname() {
return ((bitField0_ & 0x00008000) != 0);
}
/**
* <pre>
* Specifies the hostname of the Pod
* If not specified, the pod's hostname will be set to a system-defined value.
* +optional
* </pre>
*
* <code>optional string hostname = 16 [json_name = "hostname"];</code>
* @return The hostname.
*/
public java.lang.String getHostname() {
java.lang.Object ref = hostname_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hostname_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* Specifies the hostname of the Pod
* If not specified, the pod's hostname will be set to a system-defined value.
* +optional
* </pre>
*
* <code>optional string hostname = 16 [json_name = "hostname"];</code>
* @return The bytes for hostname.
*/
public com.google.protobuf.ByteString
getHostnameBytes() {
java.lang.Object ref = hostname_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hostname_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* Specifies the hostname of the Pod
* If not specified, the pod's hostname will be set to a system-defined value.
* +optional
* </pre>
*
* <code>optional string hostname = 16 [json_name = "hostname"];</code>
* @param value The hostname to set.
* @return This builder for chaining.
*/
public Builder setHostname(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
hostname_ = value;
bitField0_ |= 0x00008000;
onChanged();
return this;
}
/**
* <pre>
* Specifies the hostname of the Pod
* If not specified, the pod's hostname will be set to a system-defined value.
* +optional
* </pre>
*
* <code>optional string hostname = 16 [json_name = "hostname"];</code>
* @return This builder for chaining.
*/
public Builder clearHostname() {
hostname_ = getDefaultInstance().getHostname();
bitField0_ = (bitField0_ & ~0x00008000);
onChanged();
return this;
}
/**
* <pre>
* Specifies the hostname of the Pod
* If not specified, the pod's hostname will be set to a system-defined value.
* +optional
* </pre>
*
* <code>optional string hostname = 16 [json_name = "hostname"];</code>
* @param value The bytes for hostname to set.
* @return This builder for chaining.
*/
public Builder setHostnameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
hostname_ = value;
bitField0_ |= 0x00008000;
onChanged();
return this;
}
private java.lang.Object subdomain_ = "";
/**
* <pre>
* If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>".
* If not specified, the pod will not have a domainname at all.
* +optional
* </pre>
*
* <code>optional string subdomain = 17 [json_name = "subdomain"];</code>
* @return Whether the subdomain field is set.
*/
public boolean hasSubdomain() {
return ((bitField0_ & 0x00010000) != 0);
}
/**
* <pre>
* If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>".
* If not specified, the pod will not have a domainname at all.
* +optional
* </pre>
*
* <code>optional string subdomain = 17 [json_name = "subdomain"];</code>
* @return The subdomain.
*/
public java.lang.String getSubdomain() {
java.lang.Object ref = subdomain_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
subdomain_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>".
* If not specified, the pod will not have a domainname at all.
* +optional
* </pre>
*
* <code>optional string subdomain = 17 [json_name = "subdomain"];</code>
* @return The bytes for subdomain.
*/
public com.google.protobuf.ByteString
getSubdomainBytes() {
java.lang.Object ref = subdomain_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
subdomain_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>".
* If not specified, the pod will not have a domainname at all.
* +optional
* </pre>
*
* <code>optional string subdomain = 17 [json_name = "subdomain"];</code>
* @param value The subdomain to set.
* @return This builder for chaining.
*/
public Builder setSubdomain(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
subdomain_ = value;
bitField0_ |= 0x00010000;
onChanged();
return this;
}
/**
* <pre>
* If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>".
* If not specified, the pod will not have a domainname at all.
* +optional
* </pre>
*
* <code>optional string subdomain = 17 [json_name = "subdomain"];</code>
* @return This builder for chaining.
*/
public Builder clearSubdomain() {
subdomain_ = getDefaultInstance().getSubdomain();
bitField0_ = (bitField0_ & ~0x00010000);
onChanged();
return this;
}
/**
* <pre>
* If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>".
* If not specified, the pod will not have a domainname at all.
* +optional
* </pre>
*
* <code>optional string subdomain = 17 [json_name = "subdomain"];</code>
* @param value The bytes for subdomain to set.
* @return This builder for chaining.
*/
public Builder setSubdomainBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
subdomain_ = value;
bitField0_ |= 0x00010000;
onChanged();
return this;
}
private java.lang.Object schedulerName_ = "";
/**
* <pre>
* If specified, the pod will be dispatched by specified scheduler.
* If not specified, the pod will be dispatched by default scheduler.
* +optional
* </pre>
*
* <code>optional string scheduler_name = 19 [json_name = "schedulerName"];</code>
* @return Whether the schedulerName field is set.
*/
public boolean hasSchedulerName() {
return ((bitField0_ & 0x00020000) != 0);
}
/**
* <pre>
* If specified, the pod will be dispatched by specified scheduler.
* If not specified, the pod will be dispatched by default scheduler.
* +optional
* </pre>
*
* <code>optional string scheduler_name = 19 [json_name = "schedulerName"];</code>
* @return The schedulerName.
*/
public java.lang.String getSchedulerName() {
java.lang.Object ref = schedulerName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
schedulerName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* If specified, the pod will be dispatched by specified scheduler.
* If not specified, the pod will be dispatched by default scheduler.
* +optional
* </pre>
*
* <code>optional string scheduler_name = 19 [json_name = "schedulerName"];</code>
* @return The bytes for schedulerName.
*/
public com.google.protobuf.ByteString
getSchedulerNameBytes() {
java.lang.Object ref = schedulerName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
schedulerName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* If specified, the pod will be dispatched by specified scheduler.
* If not specified, the pod will be dispatched by default scheduler.
* +optional
* </pre>
*
* <code>optional string scheduler_name = 19 [json_name = "schedulerName"];</code>
* @param value The schedulerName to set.
* @return This builder for chaining.
*/
public Builder setSchedulerName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
schedulerName_ = value;
bitField0_ |= 0x00020000;
onChanged();
return this;
}
/**
* <pre>
* If specified, the pod will be dispatched by specified scheduler.
* If not specified, the pod will be dispatched by default scheduler.
* +optional
* </pre>
*
* <code>optional string scheduler_name = 19 [json_name = "schedulerName"];</code>
* @return This builder for chaining.
*/
public Builder clearSchedulerName() {
schedulerName_ = getDefaultInstance().getSchedulerName();
bitField0_ = (bitField0_ & ~0x00020000);
onChanged();
return this;
}
/**
* <pre>
* If specified, the pod will be dispatched by specified scheduler.
* If not specified, the pod will be dispatched by default scheduler.
* +optional
* </pre>
*
* <code>optional string scheduler_name = 19 [json_name = "schedulerName"];</code>
* @param value The bytes for schedulerName to set.
* @return This builder for chaining.
*/
public Builder setSchedulerNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
schedulerName_ = value;
bitField0_ |= 0x00020000;
onChanged();
return this;
}
private java.lang.Object priorityClassName_ = "";
/**
* <pre>
* If specified, indicates the pod's priority. "system-node-critical" and
* "system-cluster-critical" are two special keywords which indicate the
* highest priorities with the former being the highest priority. Any other
* name must be defined by creating a PriorityClass object with that name.
* If not specified, the pod priority will be default or zero if there is no
* default.
* +optional
* </pre>
*
* <code>optional string priority_class_name = 24 [json_name = "priorityClassName"];</code>
* @return Whether the priorityClassName field is set.
*/
public boolean hasPriorityClassName() {
return ((bitField0_ & 0x00040000) != 0);
}
/**
* <pre>
* If specified, indicates the pod's priority. "system-node-critical" and
* "system-cluster-critical" are two special keywords which indicate the
* highest priorities with the former being the highest priority. Any other
* name must be defined by creating a PriorityClass object with that name.
* If not specified, the pod priority will be default or zero if there is no
* default.
* +optional
* </pre>
*
* <code>optional string priority_class_name = 24 [json_name = "priorityClassName"];</code>
* @return The priorityClassName.
*/
public java.lang.String getPriorityClassName() {
java.lang.Object ref = priorityClassName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
priorityClassName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* If specified, indicates the pod's priority. "system-node-critical" and
* "system-cluster-critical" are two special keywords which indicate the
* highest priorities with the former being the highest priority. Any other
* name must be defined by creating a PriorityClass object with that name.
* If not specified, the pod priority will be default or zero if there is no
* default.
* +optional
* </pre>
*
* <code>optional string priority_class_name = 24 [json_name = "priorityClassName"];</code>
* @return The bytes for priorityClassName.
*/
public com.google.protobuf.ByteString
getPriorityClassNameBytes() {
java.lang.Object ref = priorityClassName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
priorityClassName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* If specified, indicates the pod's priority. "system-node-critical" and
* "system-cluster-critical" are two special keywords which indicate the
* highest priorities with the former being the highest priority. Any other
* name must be defined by creating a PriorityClass object with that name.
* If not specified, the pod priority will be default or zero if there is no
* default.
* +optional
* </pre>
*
* <code>optional string priority_class_name = 24 [json_name = "priorityClassName"];</code>
* @param value The priorityClassName to set.
* @return This builder for chaining.
*/
public Builder setPriorityClassName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
priorityClassName_ = value;
bitField0_ |= 0x00040000;
onChanged();
return this;
}
/**
* <pre>
* If specified, indicates the pod's priority. "system-node-critical" and
* "system-cluster-critical" are two special keywords which indicate the
* highest priorities with the former being the highest priority. Any other
* name must be defined by creating a PriorityClass object with that name.
* If not specified, the pod priority will be default or zero if there is no
* default.
* +optional
* </pre>
*
* <code>optional string priority_class_name = 24 [json_name = "priorityClassName"];</code>
* @return This builder for chaining.
*/
public Builder clearPriorityClassName() {
priorityClassName_ = getDefaultInstance().getPriorityClassName();
bitField0_ = (bitField0_ & ~0x00040000);
onChanged();
return this;
}
/**
* <pre>
* If specified, indicates the pod's priority. "system-node-critical" and
* "system-cluster-critical" are two special keywords which indicate the
* highest priorities with the former being the highest priority. Any other
* name must be defined by creating a PriorityClass object with that name.
* If not specified, the pod priority will be default or zero if there is no
* default.
* +optional
* </pre>
*
* <code>optional string priority_class_name = 24 [json_name = "priorityClassName"];</code>
* @param value The bytes for priorityClassName to set.
* @return This builder for chaining.
*/
public Builder setPriorityClassNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
priorityClassName_ = value;
bitField0_ |= 0x00040000;
onChanged();
return this;
}
private int priority_ ;
/**
* <pre>
* The priority value. Various system components use this field to find the
* priority of the pod. When Priority Admission Controller is enabled, it
* prevents users from setting this field. The admission controller populates
* this field from priority_class_name.
* The higher the value, the higher the priority.
* +optional
* </pre>
*
* <code>optional int32 priority = 25 [json_name = "priority"];</code>
* @return Whether the priority field is set.
*/
@java.lang.Override
public boolean hasPriority() {
return ((bitField0_ & 0x00080000) != 0);
}
/**
* <pre>
* The priority value. Various system components use this field to find the
* priority of the pod. When Priority Admission Controller is enabled, it
* prevents users from setting this field. The admission controller populates
* this field from priority_class_name.
* The higher the value, the higher the priority.
* +optional
* </pre>
*
* <code>optional int32 priority = 25 [json_name = "priority"];</code>
* @return The priority.
*/
@java.lang.Override
public int getPriority() {
return priority_;
}
/**
* <pre>
* The priority value. Various system components use this field to find the
* priority of the pod. When Priority Admission Controller is enabled, it
* prevents users from setting this field. The admission controller populates
* this field from priority_class_name.
* The higher the value, the higher the priority.
* +optional
* </pre>
*
* <code>optional int32 priority = 25 [json_name = "priority"];</code>
* @param value The priority to set.
* @return This builder for chaining.
*/
public Builder setPriority(int value) {
priority_ = value;
bitField0_ |= 0x00080000;
onChanged();
return this;
}
/**
* <pre>
* The priority value. Various system components use this field to find the
* priority of the pod. When Priority Admission Controller is enabled, it
* prevents users from setting this field. The admission controller populates
* this field from priority_class_name.
* The higher the value, the higher the priority.
* +optional
* </pre>
*
* <code>optional int32 priority = 25 [json_name = "priority"];</code>
* @return This builder for chaining.
*/
public Builder clearPriority() {
bitField0_ = (bitField0_ & ~0x00080000);
priority_ = 0;
onChanged();
return this;
}
private java.lang.Object runtimeClassName_ = "";
/**
* <pre>
* RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used
* to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run.
* If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an
* empty definition that uses the default runtime handler.
* More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class
* +optional
* </pre>
*
* <code>optional string runtime_class_name = 29 [json_name = "runtimeClassName"];</code>
* @return Whether the runtimeClassName field is set.
*/
public boolean hasRuntimeClassName() {
return ((bitField0_ & 0x00100000) != 0);
}
/**
* <pre>
* RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used
* to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run.
* If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an
* empty definition that uses the default runtime handler.
* More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class
* +optional
* </pre>
*
* <code>optional string runtime_class_name = 29 [json_name = "runtimeClassName"];</code>
* @return The runtimeClassName.
*/
public java.lang.String getRuntimeClassName() {
java.lang.Object ref = runtimeClassName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
runtimeClassName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used
* to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run.
* If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an
* empty definition that uses the default runtime handler.
* More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class
* +optional
* </pre>
*
* <code>optional string runtime_class_name = 29 [json_name = "runtimeClassName"];</code>
* @return The bytes for runtimeClassName.
*/
public com.google.protobuf.ByteString
getRuntimeClassNameBytes() {
java.lang.Object ref = runtimeClassName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
runtimeClassName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used
* to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run.
* If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an
* empty definition that uses the default runtime handler.
* More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class
* +optional
* </pre>
*
* <code>optional string runtime_class_name = 29 [json_name = "runtimeClassName"];</code>
* @param value The runtimeClassName to set.
* @return This builder for chaining.
*/
public Builder setRuntimeClassName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
runtimeClassName_ = value;
bitField0_ |= 0x00100000;
onChanged();
return this;
}
/**
* <pre>
* RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used
* to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run.
* If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an
* empty definition that uses the default runtime handler.
* More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class
* +optional
* </pre>
*
* <code>optional string runtime_class_name = 29 [json_name = "runtimeClassName"];</code>
* @return This builder for chaining.
*/
public Builder clearRuntimeClassName() {
runtimeClassName_ = getDefaultInstance().getRuntimeClassName();
bitField0_ = (bitField0_ & ~0x00100000);
onChanged();
return this;
}
/**
* <pre>
* RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used
* to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run.
* If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an
* empty definition that uses the default runtime handler.
* More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class
* +optional
* </pre>
*
* <code>optional string runtime_class_name = 29 [json_name = "runtimeClassName"];</code>
* @param value The bytes for runtimeClassName to set.
* @return This builder for chaining.
*/
public Builder setRuntimeClassNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
runtimeClassName_ = value;
bitField0_ |= 0x00100000;
onChanged();
return this;
}
private boolean enableServiceLinks_ ;
/**
* <pre>
* EnableServiceLinks indicates whether information about services should be injected into pod's
* environment variables, matching the syntax of Docker links.
* Optional: Defaults to true.
* +optional
* </pre>
*
* <code>optional bool enable_service_links = 30 [json_name = "enableServiceLinks"];</code>
* @return Whether the enableServiceLinks field is set.
*/
@java.lang.Override
public boolean hasEnableServiceLinks() {
return ((bitField0_ & 0x00200000) != 0);
}
/**
* <pre>
* EnableServiceLinks indicates whether information about services should be injected into pod's
* environment variables, matching the syntax of Docker links.
* Optional: Defaults to true.
* +optional
* </pre>
*
* <code>optional bool enable_service_links = 30 [json_name = "enableServiceLinks"];</code>
* @return The enableServiceLinks.
*/
@java.lang.Override
public boolean getEnableServiceLinks() {
return enableServiceLinks_;
}
/**
* <pre>
* EnableServiceLinks indicates whether information about services should be injected into pod's
* environment variables, matching the syntax of Docker links.
* Optional: Defaults to true.
* +optional
* </pre>
*
* <code>optional bool enable_service_links = 30 [json_name = "enableServiceLinks"];</code>
* @param value The enableServiceLinks to set.
* @return This builder for chaining.
*/
public Builder setEnableServiceLinks(boolean value) {
enableServiceLinks_ = value;
bitField0_ |= 0x00200000;
onChanged();
return this;
}
/**
* <pre>
* EnableServiceLinks indicates whether information about services should be injected into pod's
* environment variables, matching the syntax of Docker links.
* Optional: Defaults to true.
* +optional
* </pre>
*
* <code>optional bool enable_service_links = 30 [json_name = "enableServiceLinks"];</code>
* @return This builder for chaining.
*/
public Builder clearEnableServiceLinks() {
bitField0_ = (bitField0_ & ~0x00200000);
enableServiceLinks_ = false;
onChanged();
return this;
}
private java.lang.Object preemptionPolicy_ = "";
/**
* <pre>
* PreemptionPolicy is the Policy for preempting pods with lower priority.
* One of Never, PreemptLowerPriority.
* Defaults to PreemptLowerPriority if unset.
* +optional
* </pre>
*
* <code>optional string preemption_policy = 31 [json_name = "preemptionPolicy"];</code>
* @return Whether the preemptionPolicy field is set.
*/
public boolean hasPreemptionPolicy() {
return ((bitField0_ & 0x00400000) != 0);
}
/**
* <pre>
* PreemptionPolicy is the Policy for preempting pods with lower priority.
* One of Never, PreemptLowerPriority.
* Defaults to PreemptLowerPriority if unset.
* +optional
* </pre>
*
* <code>optional string preemption_policy = 31 [json_name = "preemptionPolicy"];</code>
* @return The preemptionPolicy.
*/
public java.lang.String getPreemptionPolicy() {
java.lang.Object ref = preemptionPolicy_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
preemptionPolicy_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* PreemptionPolicy is the Policy for preempting pods with lower priority.
* One of Never, PreemptLowerPriority.
* Defaults to PreemptLowerPriority if unset.
* +optional
* </pre>
*
* <code>optional string preemption_policy = 31 [json_name = "preemptionPolicy"];</code>
* @return The bytes for preemptionPolicy.
*/
public com.google.protobuf.ByteString
getPreemptionPolicyBytes() {
java.lang.Object ref = preemptionPolicy_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
preemptionPolicy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* PreemptionPolicy is the Policy for preempting pods with lower priority.
* One of Never, PreemptLowerPriority.
* Defaults to PreemptLowerPriority if unset.
* +optional
* </pre>
*
* <code>optional string preemption_policy = 31 [json_name = "preemptionPolicy"];</code>
* @param value The preemptionPolicy to set.
* @return This builder for chaining.
*/
public Builder setPreemptionPolicy(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
preemptionPolicy_ = value;
bitField0_ |= 0x00400000;
onChanged();
return this;
}
/**
* <pre>
* PreemptionPolicy is the Policy for preempting pods with lower priority.
* One of Never, PreemptLowerPriority.
* Defaults to PreemptLowerPriority if unset.
* +optional
* </pre>
*
* <code>optional string preemption_policy = 31 [json_name = "preemptionPolicy"];</code>
* @return This builder for chaining.
*/
public Builder clearPreemptionPolicy() {
preemptionPolicy_ = getDefaultInstance().getPreemptionPolicy();
bitField0_ = (bitField0_ & ~0x00400000);
onChanged();
return this;
}
/**
* <pre>
* PreemptionPolicy is the Policy for preempting pods with lower priority.
* One of Never, PreemptLowerPriority.
* Defaults to PreemptLowerPriority if unset.
* +optional
* </pre>
*
* <code>optional string preemption_policy = 31 [json_name = "preemptionPolicy"];</code>
* @param value The bytes for preemptionPolicy to set.
* @return This builder for chaining.
*/
public Builder setPreemptionPolicyBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
preemptionPolicy_ = value;
bitField0_ |= 0x00400000;
onChanged();
return this;
}
private boolean hostUsers_ ;
/**
* <pre>
* Use the host's user namespace.
* Optional: Default to true.
* If set to true or not present, the pod will be run in the host user namespace, useful
* for when the pod needs a feature only available to the host user namespace, such as
* loading a kernel module with CAP_SYS_MODULE.
* When set to false, a new userns is created for the pod. Setting false is useful for
* mitigating container breakout vulnerabilities even allowing users to run their
* containers as root without actually having root privileges on the host.
* This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.
* +k8s:conversion-gen=false
* +optional
* </pre>
*
* <code>optional bool host_users = 37 [json_name = "hostUsers"];</code>
* @return Whether the hostUsers field is set.
*/
@java.lang.Override
public boolean hasHostUsers() {
return ((bitField0_ & 0x00800000) != 0);
}
/**
* <pre>
* Use the host's user namespace.
* Optional: Default to true.
* If set to true or not present, the pod will be run in the host user namespace, useful
* for when the pod needs a feature only available to the host user namespace, such as
* loading a kernel module with CAP_SYS_MODULE.
* When set to false, a new userns is created for the pod. Setting false is useful for
* mitigating container breakout vulnerabilities even allowing users to run their
* containers as root without actually having root privileges on the host.
* This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.
* +k8s:conversion-gen=false
* +optional
* </pre>
*
* <code>optional bool host_users = 37 [json_name = "hostUsers"];</code>
* @return The hostUsers.
*/
@java.lang.Override
public boolean getHostUsers() {
return hostUsers_;
}
/**
* <pre>
* Use the host's user namespace.
* Optional: Default to true.
* If set to true or not present, the pod will be run in the host user namespace, useful
* for when the pod needs a feature only available to the host user namespace, such as
* loading a kernel module with CAP_SYS_MODULE.
* When set to false, a new userns is created for the pod. Setting false is useful for
* mitigating container breakout vulnerabilities even allowing users to run their
* containers as root without actually having root privileges on the host.
* This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.
* +k8s:conversion-gen=false
* +optional
* </pre>
*
* <code>optional bool host_users = 37 [json_name = "hostUsers"];</code>
* @param value The hostUsers to set.
* @return This builder for chaining.
*/
public Builder setHostUsers(boolean value) {
hostUsers_ = value;
bitField0_ |= 0x00800000;
onChanged();
return this;
}
/**
* <pre>
* Use the host's user namespace.
* Optional: Default to true.
* If set to true or not present, the pod will be run in the host user namespace, useful
* for when the pod needs a feature only available to the host user namespace, such as
* loading a kernel module with CAP_SYS_MODULE.
* When set to false, a new userns is created for the pod. Setting false is useful for
* mitigating container breakout vulnerabilities even allowing users to run their
* containers as root without actually having root privileges on the host.
* This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.
* +k8s:conversion-gen=false
* +optional
* </pre>
*
* <code>optional bool host_users = 37 [json_name = "hostUsers"];</code>
* @return This builder for chaining.
*/
public Builder clearHostUsers() {
bitField0_ = (bitField0_ & ~0x00800000);
hostUsers_ = false;
onChanged();
return this;
}
private java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim> resourceClaims_ =
java.util.Collections.emptyList();
private void ensureResourceClaimsIsMutable() {
if (!((bitField0_ & 0x01000000) != 0)) {
resourceClaims_ = new java.util.ArrayList<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim>(resourceClaims_);
bitField0_ |= 0x01000000;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaimOrBuilder> resourceClaimsBuilder_;
/**
* <pre>
* ResourceClaims defines which ResourceClaims must be allocated
* and reserved before the Pod is allowed to start. The resources
* will be made available to those containers which consume them
* by name.
*
* This is an alpha field and requires enabling the
* DynamicResourceAllocation feature gate.
*
* This field is immutable.
*
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* +featureGate=DynamicResourceAllocation
* +optional
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code>
*/
public java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim> getResourceClaimsList() {
if (resourceClaimsBuilder_ == null) {
return java.util.Collections.unmodifiableList(resourceClaims_);
} else {
return resourceClaimsBuilder_.getMessageList();
}
}
/**
* <pre>
* ResourceClaims defines which ResourceClaims must be allocated
* and reserved before the Pod is allowed to start. The resources
* will be made available to those containers which consume them
* by name.
*
* This is an alpha field and requires enabling the
* DynamicResourceAllocation feature gate.
*
* This field is immutable.
*
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* +featureGate=DynamicResourceAllocation
* +optional
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code>
*/
public int getResourceClaimsCount() {
if (resourceClaimsBuilder_ == null) {
return resourceClaims_.size();
} else {
return resourceClaimsBuilder_.getCount();
}
}
/**
* <pre>
* ResourceClaims defines which ResourceClaims must be allocated
* and reserved before the Pod is allowed to start. The resources
* will be made available to those containers which consume them
* by name.
*
* This is an alpha field and requires enabling the
* DynamicResourceAllocation feature gate.
*
* This field is immutable.
*
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* +featureGate=DynamicResourceAllocation
* +optional
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim getResourceClaims(int index) {
if (resourceClaimsBuilder_ == null) {
return resourceClaims_.get(index);
} else {
return resourceClaimsBuilder_.getMessage(index);
}
}
/**
* <pre>
* ResourceClaims defines which ResourceClaims must be allocated
* and reserved before the Pod is allowed to start. The resources
* will be made available to those containers which consume them
* by name.
*
* This is an alpha field and requires enabling the
* DynamicResourceAllocation feature gate.
*
* This field is immutable.
*
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* +featureGate=DynamicResourceAllocation
* +optional
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code>
*/
public Builder setResourceClaims(
int index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim value) {
if (resourceClaimsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResourceClaimsIsMutable();
resourceClaims_.set(index, value);
onChanged();
} else {
resourceClaimsBuilder_.setMessage(index, value);
}
return this;
}
/**
* <pre>
* ResourceClaims defines which ResourceClaims must be allocated
* and reserved before the Pod is allowed to start. The resources
* will be made available to those containers which consume them
* by name.
*
* This is an alpha field and requires enabling the
* DynamicResourceAllocation feature gate.
*
* This field is immutable.
*
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* +featureGate=DynamicResourceAllocation
* +optional
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code>
*/
public Builder setResourceClaims(
int index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim.Builder builderForValue) {
if (resourceClaimsBuilder_ == null) {
ensureResourceClaimsIsMutable();
resourceClaims_.set(index, builderForValue.build());
onChanged();
} else {
resourceClaimsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <pre>
* ResourceClaims defines which ResourceClaims must be allocated
* and reserved before the Pod is allowed to start. The resources
* will be made available to those containers which consume them
* by name.
*
* This is an alpha field and requires enabling the
* DynamicResourceAllocation feature gate.
*
* This field is immutable.
*
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* +featureGate=DynamicResourceAllocation
* +optional
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code>
*/
public Builder addResourceClaims(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim value) {
if (resourceClaimsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResourceClaimsIsMutable();
resourceClaims_.add(value);
onChanged();
} else {
resourceClaimsBuilder_.addMessage(value);
}
return this;
}
/**
* <pre>
* ResourceClaims defines which ResourceClaims must be allocated
* and reserved before the Pod is allowed to start. The resources
* will be made available to those containers which consume them
* by name.
*
* This is an alpha field and requires enabling the
* DynamicResourceAllocation feature gate.
*
* This field is immutable.
*
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* +featureGate=DynamicResourceAllocation
* +optional
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code>
*/
public Builder addResourceClaims(
int index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim value) {
if (resourceClaimsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResourceClaimsIsMutable();
resourceClaims_.add(index, value);
onChanged();
} else {
resourceClaimsBuilder_.addMessage(index, value);
}
return this;
}
/**
* <pre>
* ResourceClaims defines which ResourceClaims must be allocated
* and reserved before the Pod is allowed to start. The resources
* will be made available to those containers which consume them
* by name.
*
* This is an alpha field and requires enabling the
* DynamicResourceAllocation feature gate.
*
* This field is immutable.
*
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* +featureGate=DynamicResourceAllocation
* +optional
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code>
*/
public Builder addResourceClaims(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim.Builder builderForValue) {
if (resourceClaimsBuilder_ == null) {
ensureResourceClaimsIsMutable();
resourceClaims_.add(builderForValue.build());
onChanged();
} else {
resourceClaimsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
* ResourceClaims defines which ResourceClaims must be allocated
* and reserved before the Pod is allowed to start. The resources
* will be made available to those containers which consume them
* by name.
*
* This is an alpha field and requires enabling the
* DynamicResourceAllocation feature gate.
*
* This field is immutable.
*
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* +featureGate=DynamicResourceAllocation
* +optional
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code>
*/
public Builder addResourceClaims(
int index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim.Builder builderForValue) {
if (resourceClaimsBuilder_ == null) {
ensureResourceClaimsIsMutable();
resourceClaims_.add(index, builderForValue.build());
onChanged();
} else {
resourceClaimsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <pre>
* ResourceClaims defines which ResourceClaims must be allocated
* and reserved before the Pod is allowed to start. The resources
* will be made available to those containers which consume them
* by name.
*
* This is an alpha field and requires enabling the
* DynamicResourceAllocation feature gate.
*
* This field is immutable.
*
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* +featureGate=DynamicResourceAllocation
* +optional
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code>
*/
public Builder addAllResourceClaims(
java.lang.Iterable<? extends ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim> values) {
if (resourceClaimsBuilder_ == null) {
ensureResourceClaimsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, resourceClaims_);
onChanged();
} else {
resourceClaimsBuilder_.addAllMessages(values);
}
return this;
}
/**
* <pre>
* ResourceClaims defines which ResourceClaims must be allocated
* and reserved before the Pod is allowed to start. The resources
* will be made available to those containers which consume them
* by name.
*
* This is an alpha field and requires enabling the
* DynamicResourceAllocation feature gate.
*
* This field is immutable.
*
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* +featureGate=DynamicResourceAllocation
* +optional
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code>
*/
public Builder clearResourceClaims() {
if (resourceClaimsBuilder_ == null) {
resourceClaims_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x01000000);
onChanged();
} else {
resourceClaimsBuilder_.clear();
}
return this;
}
/**
* <pre>
* ResourceClaims defines which ResourceClaims must be allocated
* and reserved before the Pod is allowed to start. The resources
* will be made available to those containers which consume them
* by name.
*
* This is an alpha field and requires enabling the
* DynamicResourceAllocation feature gate.
*
* This field is immutable.
*
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* +featureGate=DynamicResourceAllocation
* +optional
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code>
*/
public Builder removeResourceClaims(int index) {
if (resourceClaimsBuilder_ == null) {
ensureResourceClaimsIsMutable();
resourceClaims_.remove(index);
onChanged();
} else {
resourceClaimsBuilder_.remove(index);
}
return this;
}
/**
* <pre>
* ResourceClaims defines which ResourceClaims must be allocated
* and reserved before the Pod is allowed to start. The resources
* will be made available to those containers which consume them
* by name.
*
* This is an alpha field and requires enabling the
* DynamicResourceAllocation feature gate.
*
* This field is immutable.
*
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* +featureGate=DynamicResourceAllocation
* +optional
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim.Builder getResourceClaimsBuilder(
int index) {
return getResourceClaimsFieldBuilder().getBuilder(index);
}
/**
* <pre>
* ResourceClaims defines which ResourceClaims must be allocated
* and reserved before the Pod is allowed to start. The resources
* will be made available to those containers which consume them
* by name.
*
* This is an alpha field and requires enabling the
* DynamicResourceAllocation feature gate.
*
* This field is immutable.
*
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* +featureGate=DynamicResourceAllocation
* +optional
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaimOrBuilder getResourceClaimsOrBuilder(
int index) {
if (resourceClaimsBuilder_ == null) {
return resourceClaims_.get(index); } else {
return resourceClaimsBuilder_.getMessageOrBuilder(index);
}
}
/**
* <pre>
* ResourceClaims defines which ResourceClaims must be allocated
* and reserved before the Pod is allowed to start. The resources
* will be made available to those containers which consume them
* by name.
*
* This is an alpha field and requires enabling the
* DynamicResourceAllocation feature gate.
*
* This field is immutable.
*
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* +featureGate=DynamicResourceAllocation
* +optional
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code>
*/
public java.util.List<? extends ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaimOrBuilder>
getResourceClaimsOrBuilderList() {
if (resourceClaimsBuilder_ != null) {
return resourceClaimsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(resourceClaims_);
}
}
/**
* <pre>
* ResourceClaims defines which ResourceClaims must be allocated
* and reserved before the Pod is allowed to start. The resources
* will be made available to those containers which consume them
* by name.
*
* This is an alpha field and requires enabling the
* DynamicResourceAllocation feature gate.
*
* This field is immutable.
*
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* +featureGate=DynamicResourceAllocation
* +optional
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim.Builder addResourceClaimsBuilder() {
return getResourceClaimsFieldBuilder().addBuilder(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim.getDefaultInstance());
}
/**
* <pre>
* ResourceClaims defines which ResourceClaims must be allocated
* and reserved before the Pod is allowed to start. The resources
* will be made available to those containers which consume them
* by name.
*
* This is an alpha field and requires enabling the
* DynamicResourceAllocation feature gate.
*
* This field is immutable.
*
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* +featureGate=DynamicResourceAllocation
* +optional
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim.Builder addResourceClaimsBuilder(
int index) {
return getResourceClaimsFieldBuilder().addBuilder(
index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim.getDefaultInstance());
}
/**
* <pre>
* ResourceClaims defines which ResourceClaims must be allocated
* and reserved before the Pod is allowed to start. The resources
* will be made available to those containers which consume them
* by name.
*
* This is an alpha field and requires enabling the
* DynamicResourceAllocation feature gate.
*
* This field is immutable.
*
* +patchMergeKey=name
* +patchStrategy=merge,retainKeys
* +listType=map
* +listMapKey=name
* +featureGate=DynamicResourceAllocation
* +optional
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code>
*/
public java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim.Builder>
getResourceClaimsBuilderList() {
return getResourceClaimsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaimOrBuilder>
getResourceClaimsFieldBuilder() {
if (resourceClaimsBuilder_ == null) {
resourceClaimsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaim.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodResourceClaimOrBuilder>(
resourceClaims_,
((bitField0_ & 0x01000000) != 0),
getParentForChildren(),
isClean());
resourceClaims_ = null;
}
return resourceClaimsBuilder_;
}
@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:chalk.pubsub.v1.PodStatusPubSub.PodSpec)
}
// @@protoc_insertion_point(class_scope:chalk.pubsub.v1.PodStatusPubSub.PodSpec)
private static final ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec();
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<PodSpec>
PARSER = new com.google.protobuf.AbstractParser<PodSpec>() {
@java.lang.Override
public PodSpec 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<PodSpec> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<PodSpec> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ContainerStateOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.pubsub.v1.PodStatusPubSub.ContainerState)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* Details about a waiting container
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting waiting = 1 [json_name = "waiting"];</code>
* @return Whether the waiting field is set.
*/
boolean hasWaiting();
/**
* <pre>
* Details about a waiting container
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting waiting = 1 [json_name = "waiting"];</code>
* @return The waiting.
*/
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting getWaiting();
/**
* <pre>
* Details about a waiting container
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting waiting = 1 [json_name = "waiting"];</code>
*/
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaitingOrBuilder getWaitingOrBuilder();
/**
* <pre>
* Details about a running container
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning running = 2 [json_name = "running"];</code>
* @return Whether the running field is set.
*/
boolean hasRunning();
/**
* <pre>
* Details about a running container
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning running = 2 [json_name = "running"];</code>
* @return The running.
*/
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning getRunning();
/**
* <pre>
* Details about a running container
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning running = 2 [json_name = "running"];</code>
*/
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunningOrBuilder getRunningOrBuilder();
/**
* <pre>
* Details about a terminated container
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated terminated = 3 [json_name = "terminated"];</code>
* @return Whether the terminated field is set.
*/
boolean hasTerminated();
/**
* <pre>
* Details about a terminated container
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated terminated = 3 [json_name = "terminated"];</code>
* @return The terminated.
*/
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated getTerminated();
/**
* <pre>
* Details about a terminated container
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated terminated = 3 [json_name = "terminated"];</code>
*/
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminatedOrBuilder getTerminatedOrBuilder();
}
/**
* <pre>
* ContainerState holds a possible state of container.
* Only one of its members may be specified.
* If none of them is specified, the default one is ContainerStateWaiting.
* </pre>
*
* Protobuf type {@code chalk.pubsub.v1.PodStatusPubSub.ContainerState}
*/
public static final class ContainerState extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.pubsub.v1.PodStatusPubSub.ContainerState)
ContainerStateOrBuilder {
private static final long serialVersionUID = 0L;
// Use ContainerState.newBuilder() to construct.
private ContainerState(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ContainerState() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ContainerState();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerState_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState.class, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState.Builder.class);
}
private int bitField0_;
public static final int WAITING_FIELD_NUMBER = 1;
private ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting waiting_;
/**
* <pre>
* Details about a waiting container
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting waiting = 1 [json_name = "waiting"];</code>
* @return Whether the waiting field is set.
*/
@java.lang.Override
public boolean hasWaiting() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <pre>
* Details about a waiting container
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting waiting = 1 [json_name = "waiting"];</code>
* @return The waiting.
*/
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting getWaiting() {
return waiting_ == null ? ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting.getDefaultInstance() : waiting_;
}
/**
* <pre>
* Details about a waiting container
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting waiting = 1 [json_name = "waiting"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaitingOrBuilder getWaitingOrBuilder() {
return waiting_ == null ? ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting.getDefaultInstance() : waiting_;
}
public static final int RUNNING_FIELD_NUMBER = 2;
private ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning running_;
/**
* <pre>
* Details about a running container
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning running = 2 [json_name = "running"];</code>
* @return Whether the running field is set.
*/
@java.lang.Override
public boolean hasRunning() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* <pre>
* Details about a running container
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning running = 2 [json_name = "running"];</code>
* @return The running.
*/
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning getRunning() {
return running_ == null ? ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning.getDefaultInstance() : running_;
}
/**
* <pre>
* Details about a running container
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning running = 2 [json_name = "running"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunningOrBuilder getRunningOrBuilder() {
return running_ == null ? ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning.getDefaultInstance() : running_;
}
public static final int TERMINATED_FIELD_NUMBER = 3;
private ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated terminated_;
/**
* <pre>
* Details about a terminated container
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated terminated = 3 [json_name = "terminated"];</code>
* @return Whether the terminated field is set.
*/
@java.lang.Override
public boolean hasTerminated() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* <pre>
* Details about a terminated container
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated terminated = 3 [json_name = "terminated"];</code>
* @return The terminated.
*/
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated getTerminated() {
return terminated_ == null ? ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated.getDefaultInstance() : terminated_;
}
/**
* <pre>
* Details about a terminated container
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated terminated = 3 [json_name = "terminated"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminatedOrBuilder getTerminatedOrBuilder() {
return terminated_ == null ? ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated.getDefaultInstance() : terminated_;
}
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, getWaiting());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getRunning());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(3, getTerminated());
}
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, getWaiting());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getRunning());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getTerminated());
}
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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState other = (ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState) obj;
if (hasWaiting() != other.hasWaiting()) return false;
if (hasWaiting()) {
if (!getWaiting()
.equals(other.getWaiting())) return false;
}
if (hasRunning() != other.hasRunning()) return false;
if (hasRunning()) {
if (!getRunning()
.equals(other.getRunning())) return false;
}
if (hasTerminated() != other.hasTerminated()) return false;
if (hasTerminated()) {
if (!getTerminated()
.equals(other.getTerminated())) 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 (hasWaiting()) {
hash = (37 * hash) + WAITING_FIELD_NUMBER;
hash = (53 * hash) + getWaiting().hashCode();
}
if (hasRunning()) {
hash = (37 * hash) + RUNNING_FIELD_NUMBER;
hash = (53 * hash) + getRunning().hashCode();
}
if (hasTerminated()) {
hash = (37 * hash) + TERMINATED_FIELD_NUMBER;
hash = (53 * hash) + getTerminated().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState 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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState 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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState 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(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState 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;
}
/**
* <pre>
* ContainerState holds a possible state of container.
* Only one of its members may be specified.
* If none of them is specified, the default one is ContainerStateWaiting.
* </pre>
*
* Protobuf type {@code chalk.pubsub.v1.PodStatusPubSub.ContainerState}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.pubsub.v1.PodStatusPubSub.ContainerState)
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerState_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState.class, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState.Builder.class);
}
// Construct using ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getWaitingFieldBuilder();
getRunningFieldBuilder();
getTerminatedFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
waiting_ = null;
if (waitingBuilder_ != null) {
waitingBuilder_.dispose();
waitingBuilder_ = null;
}
running_ = null;
if (runningBuilder_ != null) {
runningBuilder_.dispose();
runningBuilder_ = null;
}
terminated_ = null;
if (terminatedBuilder_ != null) {
terminatedBuilder_.dispose();
terminatedBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerState_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState getDefaultInstanceForType() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState build() {
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState buildPartial() {
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState result = new ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.waiting_ = waitingBuilder_ == null
? waiting_
: waitingBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.running_ = runningBuilder_ == null
? running_
: runningBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.terminated_ = terminatedBuilder_ == null
? terminated_
: terminatedBuilder_.build();
to_bitField0_ |= 0x00000004;
}
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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState) {
return mergeFrom((ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState other) {
if (other == ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState.getDefaultInstance()) return this;
if (other.hasWaiting()) {
mergeWaiting(other.getWaiting());
}
if (other.hasRunning()) {
mergeRunning(other.getRunning());
}
if (other.hasTerminated()) {
mergeTerminated(other.getTerminated());
}
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(
getWaitingFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getRunningFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getTerminatedFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting waiting_;
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaitingOrBuilder> waitingBuilder_;
/**
* <pre>
* Details about a waiting container
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting waiting = 1 [json_name = "waiting"];</code>
* @return Whether the waiting field is set.
*/
public boolean hasWaiting() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <pre>
* Details about a waiting container
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting waiting = 1 [json_name = "waiting"];</code>
* @return The waiting.
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting getWaiting() {
if (waitingBuilder_ == null) {
return waiting_ == null ? ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting.getDefaultInstance() : waiting_;
} else {
return waitingBuilder_.getMessage();
}
}
/**
* <pre>
* Details about a waiting container
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting waiting = 1 [json_name = "waiting"];</code>
*/
public Builder setWaiting(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting value) {
if (waitingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
waiting_ = value;
} else {
waitingBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <pre>
* Details about a waiting container
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting waiting = 1 [json_name = "waiting"];</code>
*/
public Builder setWaiting(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting.Builder builderForValue) {
if (waitingBuilder_ == null) {
waiting_ = builderForValue.build();
} else {
waitingBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <pre>
* Details about a waiting container
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting waiting = 1 [json_name = "waiting"];</code>
*/
public Builder mergeWaiting(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting value) {
if (waitingBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
waiting_ != null &&
waiting_ != ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting.getDefaultInstance()) {
getWaitingBuilder().mergeFrom(value);
} else {
waiting_ = value;
}
} else {
waitingBuilder_.mergeFrom(value);
}
if (waiting_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* <pre>
* Details about a waiting container
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting waiting = 1 [json_name = "waiting"];</code>
*/
public Builder clearWaiting() {
bitField0_ = (bitField0_ & ~0x00000001);
waiting_ = null;
if (waitingBuilder_ != null) {
waitingBuilder_.dispose();
waitingBuilder_ = null;
}
onChanged();
return this;
}
/**
* <pre>
* Details about a waiting container
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting waiting = 1 [json_name = "waiting"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting.Builder getWaitingBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getWaitingFieldBuilder().getBuilder();
}
/**
* <pre>
* Details about a waiting container
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting waiting = 1 [json_name = "waiting"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaitingOrBuilder getWaitingOrBuilder() {
if (waitingBuilder_ != null) {
return waitingBuilder_.getMessageOrBuilder();
} else {
return waiting_ == null ?
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting.getDefaultInstance() : waiting_;
}
}
/**
* <pre>
* Details about a waiting container
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting waiting = 1 [json_name = "waiting"];</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaitingOrBuilder>
getWaitingFieldBuilder() {
if (waitingBuilder_ == null) {
waitingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaitingOrBuilder>(
getWaiting(),
getParentForChildren(),
isClean());
waiting_ = null;
}
return waitingBuilder_;
}
private ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning running_;
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunningOrBuilder> runningBuilder_;
/**
* <pre>
* Details about a running container
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning running = 2 [json_name = "running"];</code>
* @return Whether the running field is set.
*/
public boolean hasRunning() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* <pre>
* Details about a running container
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning running = 2 [json_name = "running"];</code>
* @return The running.
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning getRunning() {
if (runningBuilder_ == null) {
return running_ == null ? ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning.getDefaultInstance() : running_;
} else {
return runningBuilder_.getMessage();
}
}
/**
* <pre>
* Details about a running container
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning running = 2 [json_name = "running"];</code>
*/
public Builder setRunning(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning value) {
if (runningBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
running_ = value;
} else {
runningBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <pre>
* Details about a running container
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning running = 2 [json_name = "running"];</code>
*/
public Builder setRunning(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning.Builder builderForValue) {
if (runningBuilder_ == null) {
running_ = builderForValue.build();
} else {
runningBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <pre>
* Details about a running container
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning running = 2 [json_name = "running"];</code>
*/
public Builder mergeRunning(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning value) {
if (runningBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
running_ != null &&
running_ != ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning.getDefaultInstance()) {
getRunningBuilder().mergeFrom(value);
} else {
running_ = value;
}
} else {
runningBuilder_.mergeFrom(value);
}
if (running_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
* <pre>
* Details about a running container
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning running = 2 [json_name = "running"];</code>
*/
public Builder clearRunning() {
bitField0_ = (bitField0_ & ~0x00000002);
running_ = null;
if (runningBuilder_ != null) {
runningBuilder_.dispose();
runningBuilder_ = null;
}
onChanged();
return this;
}
/**
* <pre>
* Details about a running container
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning running = 2 [json_name = "running"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning.Builder getRunningBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getRunningFieldBuilder().getBuilder();
}
/**
* <pre>
* Details about a running container
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning running = 2 [json_name = "running"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunningOrBuilder getRunningOrBuilder() {
if (runningBuilder_ != null) {
return runningBuilder_.getMessageOrBuilder();
} else {
return running_ == null ?
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning.getDefaultInstance() : running_;
}
}
/**
* <pre>
* Details about a running container
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning running = 2 [json_name = "running"];</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunningOrBuilder>
getRunningFieldBuilder() {
if (runningBuilder_ == null) {
runningBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunningOrBuilder>(
getRunning(),
getParentForChildren(),
isClean());
running_ = null;
}
return runningBuilder_;
}
private ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated terminated_;
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminatedOrBuilder> terminatedBuilder_;
/**
* <pre>
* Details about a terminated container
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated terminated = 3 [json_name = "terminated"];</code>
* @return Whether the terminated field is set.
*/
public boolean hasTerminated() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* <pre>
* Details about a terminated container
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated terminated = 3 [json_name = "terminated"];</code>
* @return The terminated.
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated getTerminated() {
if (terminatedBuilder_ == null) {
return terminated_ == null ? ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated.getDefaultInstance() : terminated_;
} else {
return terminatedBuilder_.getMessage();
}
}
/**
* <pre>
* Details about a terminated container
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated terminated = 3 [json_name = "terminated"];</code>
*/
public Builder setTerminated(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated value) {
if (terminatedBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
terminated_ = value;
} else {
terminatedBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* <pre>
* Details about a terminated container
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated terminated = 3 [json_name = "terminated"];</code>
*/
public Builder setTerminated(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated.Builder builderForValue) {
if (terminatedBuilder_ == null) {
terminated_ = builderForValue.build();
} else {
terminatedBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* <pre>
* Details about a terminated container
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated terminated = 3 [json_name = "terminated"];</code>
*/
public Builder mergeTerminated(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated value) {
if (terminatedBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
terminated_ != null &&
terminated_ != ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated.getDefaultInstance()) {
getTerminatedBuilder().mergeFrom(value);
} else {
terminated_ = value;
}
} else {
terminatedBuilder_.mergeFrom(value);
}
if (terminated_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
* <pre>
* Details about a terminated container
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated terminated = 3 [json_name = "terminated"];</code>
*/
public Builder clearTerminated() {
bitField0_ = (bitField0_ & ~0x00000004);
terminated_ = null;
if (terminatedBuilder_ != null) {
terminatedBuilder_.dispose();
terminatedBuilder_ = null;
}
onChanged();
return this;
}
/**
* <pre>
* Details about a terminated container
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated terminated = 3 [json_name = "terminated"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated.Builder getTerminatedBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getTerminatedFieldBuilder().getBuilder();
}
/**
* <pre>
* Details about a terminated container
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated terminated = 3 [json_name = "terminated"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminatedOrBuilder getTerminatedOrBuilder() {
if (terminatedBuilder_ != null) {
return terminatedBuilder_.getMessageOrBuilder();
} else {
return terminated_ == null ?
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated.getDefaultInstance() : terminated_;
}
}
/**
* <pre>
* Details about a terminated container
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated terminated = 3 [json_name = "terminated"];</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminatedOrBuilder>
getTerminatedFieldBuilder() {
if (terminatedBuilder_ == null) {
terminatedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminatedOrBuilder>(
getTerminated(),
getParentForChildren(),
isClean());
terminated_ = null;
}
return terminatedBuilder_;
}
@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:chalk.pubsub.v1.PodStatusPubSub.ContainerState)
}
// @@protoc_insertion_point(class_scope:chalk.pubsub.v1.PodStatusPubSub.ContainerState)
private static final ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState();
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<ContainerState>
PARSER = new com.google.protobuf.AbstractParser<ContainerState>() {
@java.lang.Override
public ContainerState 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<ContainerState> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<ContainerState> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ContainerStateRunningOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* Time at which the container was last (re-)started
* +optional
* </pre>
*
* <code>int64 started_at = 1 [json_name = "startedAt", (.gen_bq_schema.bigquery) = { ... }</code>
* @return The startedAt.
*/
long getStartedAt();
}
/**
* <pre>
* ContainerStateRunning is a running state of a container.
* </pre>
*
* Protobuf type {@code chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning}
*/
public static final class ContainerStateRunning extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning)
ContainerStateRunningOrBuilder {
private static final long serialVersionUID = 0L;
// Use ContainerStateRunning.newBuilder() to construct.
private ContainerStateRunning(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ContainerStateRunning() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ContainerStateRunning();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerStateRunning_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerStateRunning_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning.class, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning.Builder.class);
}
public static final int STARTED_AT_FIELD_NUMBER = 1;
private long startedAt_ = 0L;
/**
* <pre>
* Time at which the container was last (re-)started
* +optional
* </pre>
*
* <code>int64 started_at = 1 [json_name = "startedAt", (.gen_bq_schema.bigquery) = { ... }</code>
* @return The startedAt.
*/
@java.lang.Override
public long getStartedAt() {
return startedAt_;
}
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 (startedAt_ != 0L) {
output.writeInt64(1, startedAt_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (startedAt_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, startedAt_);
}
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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning other = (ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning) obj;
if (getStartedAt()
!= other.getStartedAt()) 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) + STARTED_AT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStartedAt());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning 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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning 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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning 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(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning 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;
}
/**
* <pre>
* ContainerStateRunning is a running state of a container.
* </pre>
*
* Protobuf type {@code chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning)
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunningOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerStateRunning_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerStateRunning_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning.class, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning.Builder.class);
}
// Construct using ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
startedAt_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerStateRunning_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning getDefaultInstanceForType() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning build() {
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning buildPartial() {
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning result = new ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.startedAt_ = startedAt_;
}
}
@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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning) {
return mergeFrom((ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning other) {
if (other == ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning.getDefaultInstance()) return this;
if (other.getStartedAt() != 0L) {
setStartedAt(other.getStartedAt());
}
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: {
startedAt_ = input.readInt64();
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 long startedAt_ ;
/**
* <pre>
* Time at which the container was last (re-)started
* +optional
* </pre>
*
* <code>int64 started_at = 1 [json_name = "startedAt", (.gen_bq_schema.bigquery) = { ... }</code>
* @return The startedAt.
*/
@java.lang.Override
public long getStartedAt() {
return startedAt_;
}
/**
* <pre>
* Time at which the container was last (re-)started
* +optional
* </pre>
*
* <code>int64 started_at = 1 [json_name = "startedAt", (.gen_bq_schema.bigquery) = { ... }</code>
* @param value The startedAt to set.
* @return This builder for chaining.
*/
public Builder setStartedAt(long value) {
startedAt_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <pre>
* Time at which the container was last (re-)started
* +optional
* </pre>
*
* <code>int64 started_at = 1 [json_name = "startedAt", (.gen_bq_schema.bigquery) = { ... }</code>
* @return This builder for chaining.
*/
public Builder clearStartedAt() {
bitField0_ = (bitField0_ & ~0x00000001);
startedAt_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning)
}
// @@protoc_insertion_point(class_scope:chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning)
private static final ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning();
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<ContainerStateRunning>
PARSER = new com.google.protobuf.AbstractParser<ContainerStateRunning>() {
@java.lang.Override
public ContainerStateRunning 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<ContainerStateRunning> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<ContainerStateRunning> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateRunning getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ContainerStateTerminatedOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* Exit status from the last termination of the container
* </pre>
*
* <code>int32 exit_code = 1 [json_name = "exitCode"];</code>
* @return The exitCode.
*/
int getExitCode();
/**
* <pre>
* Signal from the last termination of the container
* +optional
* </pre>
*
* <code>optional int32 signal = 2 [json_name = "signal"];</code>
* @return Whether the signal field is set.
*/
boolean hasSignal();
/**
* <pre>
* Signal from the last termination of the container
* +optional
* </pre>
*
* <code>optional int32 signal = 2 [json_name = "signal"];</code>
* @return The signal.
*/
int getSignal();
/**
* <pre>
* (brief) reason from the last termination of the container
* +optional
* </pre>
*
* <code>optional string reason = 3 [json_name = "reason"];</code>
* @return Whether the reason field is set.
*/
boolean hasReason();
/**
* <pre>
* (brief) reason from the last termination of the container
* +optional
* </pre>
*
* <code>optional string reason = 3 [json_name = "reason"];</code>
* @return The reason.
*/
java.lang.String getReason();
/**
* <pre>
* (brief) reason from the last termination of the container
* +optional
* </pre>
*
* <code>optional string reason = 3 [json_name = "reason"];</code>
* @return The bytes for reason.
*/
com.google.protobuf.ByteString
getReasonBytes();
/**
* <pre>
* Message regarding the last termination of the container
* +optional
* </pre>
*
* <code>optional string message = 4 [json_name = "message"];</code>
* @return Whether the message field is set.
*/
boolean hasMessage();
/**
* <pre>
* Message regarding the last termination of the container
* +optional
* </pre>
*
* <code>optional string message = 4 [json_name = "message"];</code>
* @return The message.
*/
java.lang.String getMessage();
/**
* <pre>
* Message regarding the last termination of the container
* +optional
* </pre>
*
* <code>optional string message = 4 [json_name = "message"];</code>
* @return The bytes for message.
*/
com.google.protobuf.ByteString
getMessageBytes();
/**
* <pre>
* Time at which previous execution of the container started
* +optional
* </pre>
*
* <code>optional int64 started_at = 5 [json_name = "startedAt", (.gen_bq_schema.bigquery) = { ... }</code>
* @return Whether the startedAt field is set.
*/
boolean hasStartedAt();
/**
* <pre>
* Time at which previous execution of the container started
* +optional
* </pre>
*
* <code>optional int64 started_at = 5 [json_name = "startedAt", (.gen_bq_schema.bigquery) = { ... }</code>
* @return The startedAt.
*/
long getStartedAt();
/**
* <pre>
* Time at which the container last terminated
* +optional
* </pre>
*
* <code>optional int64 finished_at = 6 [json_name = "finishedAt", (.gen_bq_schema.bigquery) = { ... }</code>
* @return Whether the finishedAt field is set.
*/
boolean hasFinishedAt();
/**
* <pre>
* Time at which the container last terminated
* +optional
* </pre>
*
* <code>optional int64 finished_at = 6 [json_name = "finishedAt", (.gen_bq_schema.bigquery) = { ... }</code>
* @return The finishedAt.
*/
long getFinishedAt();
/**
* <pre>
* Container's ID in the format '<type>://<container_id>'
* +optional
* </pre>
*
* <code>optional string container_id = 7 [json_name = "containerId"];</code>
* @return Whether the containerId field is set.
*/
boolean hasContainerId();
/**
* <pre>
* Container's ID in the format '<type>://<container_id>'
* +optional
* </pre>
*
* <code>optional string container_id = 7 [json_name = "containerId"];</code>
* @return The containerId.
*/
java.lang.String getContainerId();
/**
* <pre>
* Container's ID in the format '<type>://<container_id>'
* +optional
* </pre>
*
* <code>optional string container_id = 7 [json_name = "containerId"];</code>
* @return The bytes for containerId.
*/
com.google.protobuf.ByteString
getContainerIdBytes();
}
/**
* <pre>
* ContainerStateTerminated is a terminated state of a container.
* </pre>
*
* Protobuf type {@code chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated}
*/
public static final class ContainerStateTerminated extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated)
ContainerStateTerminatedOrBuilder {
private static final long serialVersionUID = 0L;
// Use ContainerStateTerminated.newBuilder() to construct.
private ContainerStateTerminated(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ContainerStateTerminated() {
reason_ = "";
message_ = "";
containerId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ContainerStateTerminated();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerStateTerminated_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerStateTerminated_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated.class, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated.Builder.class);
}
private int bitField0_;
public static final int EXIT_CODE_FIELD_NUMBER = 1;
private int exitCode_ = 0;
/**
* <pre>
* Exit status from the last termination of the container
* </pre>
*
* <code>int32 exit_code = 1 [json_name = "exitCode"];</code>
* @return The exitCode.
*/
@java.lang.Override
public int getExitCode() {
return exitCode_;
}
public static final int SIGNAL_FIELD_NUMBER = 2;
private int signal_ = 0;
/**
* <pre>
* Signal from the last termination of the container
* +optional
* </pre>
*
* <code>optional int32 signal = 2 [json_name = "signal"];</code>
* @return Whether the signal field is set.
*/
@java.lang.Override
public boolean hasSignal() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <pre>
* Signal from the last termination of the container
* +optional
* </pre>
*
* <code>optional int32 signal = 2 [json_name = "signal"];</code>
* @return The signal.
*/
@java.lang.Override
public int getSignal() {
return signal_;
}
public static final int REASON_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object reason_ = "";
/**
* <pre>
* (brief) reason from the last termination of the container
* +optional
* </pre>
*
* <code>optional string reason = 3 [json_name = "reason"];</code>
* @return Whether the reason field is set.
*/
@java.lang.Override
public boolean hasReason() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* <pre>
* (brief) reason from the last termination of the container
* +optional
* </pre>
*
* <code>optional string reason = 3 [json_name = "reason"];</code>
* @return The reason.
*/
@java.lang.Override
public java.lang.String getReason() {
java.lang.Object ref = reason_;
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();
reason_ = s;
return s;
}
}
/**
* <pre>
* (brief) reason from the last termination of the container
* +optional
* </pre>
*
* <code>optional string reason = 3 [json_name = "reason"];</code>
* @return The bytes for reason.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getReasonBytes() {
java.lang.Object ref = reason_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
reason_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MESSAGE_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object message_ = "";
/**
* <pre>
* Message regarding the last termination of the container
* +optional
* </pre>
*
* <code>optional string message = 4 [json_name = "message"];</code>
* @return Whether the message field is set.
*/
@java.lang.Override
public boolean hasMessage() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* <pre>
* Message regarding the last termination of the container
* +optional
* </pre>
*
* <code>optional string message = 4 [json_name = "message"];</code>
* @return The message.
*/
@java.lang.Override
public java.lang.String getMessage() {
java.lang.Object ref = message_;
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();
message_ = s;
return s;
}
}
/**
* <pre>
* Message regarding the last termination of the container
* +optional
* </pre>
*
* <code>optional string message = 4 [json_name = "message"];</code>
* @return The bytes for message.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STARTED_AT_FIELD_NUMBER = 5;
private long startedAt_ = 0L;
/**
* <pre>
* Time at which previous execution of the container started
* +optional
* </pre>
*
* <code>optional int64 started_at = 5 [json_name = "startedAt", (.gen_bq_schema.bigquery) = { ... }</code>
* @return Whether the startedAt field is set.
*/
@java.lang.Override
public boolean hasStartedAt() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* <pre>
* Time at which previous execution of the container started
* +optional
* </pre>
*
* <code>optional int64 started_at = 5 [json_name = "startedAt", (.gen_bq_schema.bigquery) = { ... }</code>
* @return The startedAt.
*/
@java.lang.Override
public long getStartedAt() {
return startedAt_;
}
public static final int FINISHED_AT_FIELD_NUMBER = 6;
private long finishedAt_ = 0L;
/**
* <pre>
* Time at which the container last terminated
* +optional
* </pre>
*
* <code>optional int64 finished_at = 6 [json_name = "finishedAt", (.gen_bq_schema.bigquery) = { ... }</code>
* @return Whether the finishedAt field is set.
*/
@java.lang.Override
public boolean hasFinishedAt() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* <pre>
* Time at which the container last terminated
* +optional
* </pre>
*
* <code>optional int64 finished_at = 6 [json_name = "finishedAt", (.gen_bq_schema.bigquery) = { ... }</code>
* @return The finishedAt.
*/
@java.lang.Override
public long getFinishedAt() {
return finishedAt_;
}
public static final int CONTAINER_ID_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private volatile java.lang.Object containerId_ = "";
/**
* <pre>
* Container's ID in the format '<type>://<container_id>'
* +optional
* </pre>
*
* <code>optional string container_id = 7 [json_name = "containerId"];</code>
* @return Whether the containerId field is set.
*/
@java.lang.Override
public boolean hasContainerId() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* <pre>
* Container's ID in the format '<type>://<container_id>'
* +optional
* </pre>
*
* <code>optional string container_id = 7 [json_name = "containerId"];</code>
* @return The containerId.
*/
@java.lang.Override
public java.lang.String getContainerId() {
java.lang.Object ref = containerId_;
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();
containerId_ = s;
return s;
}
}
/**
* <pre>
* Container's ID in the format '<type>://<container_id>'
* +optional
* </pre>
*
* <code>optional string container_id = 7 [json_name = "containerId"];</code>
* @return The bytes for containerId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getContainerIdBytes() {
java.lang.Object ref = containerId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
containerId_ = 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 (exitCode_ != 0) {
output.writeInt32(1, exitCode_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt32(2, signal_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, reason_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, message_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeInt64(5, startedAt_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeInt64(6, finishedAt_);
}
if (((bitField0_ & 0x00000020) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, containerId_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (exitCode_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, exitCode_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, signal_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, reason_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, message_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, startedAt_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, finishedAt_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, containerId_);
}
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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated other = (ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated) obj;
if (getExitCode()
!= other.getExitCode()) return false;
if (hasSignal() != other.hasSignal()) return false;
if (hasSignal()) {
if (getSignal()
!= other.getSignal()) return false;
}
if (hasReason() != other.hasReason()) return false;
if (hasReason()) {
if (!getReason()
.equals(other.getReason())) return false;
}
if (hasMessage() != other.hasMessage()) return false;
if (hasMessage()) {
if (!getMessage()
.equals(other.getMessage())) return false;
}
if (hasStartedAt() != other.hasStartedAt()) return false;
if (hasStartedAt()) {
if (getStartedAt()
!= other.getStartedAt()) return false;
}
if (hasFinishedAt() != other.hasFinishedAt()) return false;
if (hasFinishedAt()) {
if (getFinishedAt()
!= other.getFinishedAt()) return false;
}
if (hasContainerId() != other.hasContainerId()) return false;
if (hasContainerId()) {
if (!getContainerId()
.equals(other.getContainerId())) 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) + EXIT_CODE_FIELD_NUMBER;
hash = (53 * hash) + getExitCode();
if (hasSignal()) {
hash = (37 * hash) + SIGNAL_FIELD_NUMBER;
hash = (53 * hash) + getSignal();
}
if (hasReason()) {
hash = (37 * hash) + REASON_FIELD_NUMBER;
hash = (53 * hash) + getReason().hashCode();
}
if (hasMessage()) {
hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getMessage().hashCode();
}
if (hasStartedAt()) {
hash = (37 * hash) + STARTED_AT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStartedAt());
}
if (hasFinishedAt()) {
hash = (37 * hash) + FINISHED_AT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getFinishedAt());
}
if (hasContainerId()) {
hash = (37 * hash) + CONTAINER_ID_FIELD_NUMBER;
hash = (53 * hash) + getContainerId().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated 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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated 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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated 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(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated 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;
}
/**
* <pre>
* ContainerStateTerminated is a terminated state of a container.
* </pre>
*
* Protobuf type {@code chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated)
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminatedOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerStateTerminated_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerStateTerminated_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated.class, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated.Builder.class);
}
// Construct using ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
exitCode_ = 0;
signal_ = 0;
reason_ = "";
message_ = "";
startedAt_ = 0L;
finishedAt_ = 0L;
containerId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerStateTerminated_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated getDefaultInstanceForType() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated build() {
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated buildPartial() {
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated result = new ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.exitCode_ = exitCode_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.signal_ = signal_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.reason_ = reason_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.message_ = message_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.startedAt_ = startedAt_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.finishedAt_ = finishedAt_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.containerId_ = containerId_;
to_bitField0_ |= 0x00000020;
}
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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated) {
return mergeFrom((ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated other) {
if (other == ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated.getDefaultInstance()) return this;
if (other.getExitCode() != 0) {
setExitCode(other.getExitCode());
}
if (other.hasSignal()) {
setSignal(other.getSignal());
}
if (other.hasReason()) {
reason_ = other.reason_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasMessage()) {
message_ = other.message_;
bitField0_ |= 0x00000008;
onChanged();
}
if (other.hasStartedAt()) {
setStartedAt(other.getStartedAt());
}
if (other.hasFinishedAt()) {
setFinishedAt(other.getFinishedAt());
}
if (other.hasContainerId()) {
containerId_ = other.containerId_;
bitField0_ |= 0x00000040;
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 8: {
exitCode_ = input.readInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
signal_ = input.readInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
reason_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
message_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
case 40: {
startedAt_ = input.readInt64();
bitField0_ |= 0x00000010;
break;
} // case 40
case 48: {
finishedAt_ = input.readInt64();
bitField0_ |= 0x00000020;
break;
} // case 48
case 58: {
containerId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000040;
break;
} // case 58
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int exitCode_ ;
/**
* <pre>
* Exit status from the last termination of the container
* </pre>
*
* <code>int32 exit_code = 1 [json_name = "exitCode"];</code>
* @return The exitCode.
*/
@java.lang.Override
public int getExitCode() {
return exitCode_;
}
/**
* <pre>
* Exit status from the last termination of the container
* </pre>
*
* <code>int32 exit_code = 1 [json_name = "exitCode"];</code>
* @param value The exitCode to set.
* @return This builder for chaining.
*/
public Builder setExitCode(int value) {
exitCode_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <pre>
* Exit status from the last termination of the container
* </pre>
*
* <code>int32 exit_code = 1 [json_name = "exitCode"];</code>
* @return This builder for chaining.
*/
public Builder clearExitCode() {
bitField0_ = (bitField0_ & ~0x00000001);
exitCode_ = 0;
onChanged();
return this;
}
private int signal_ ;
/**
* <pre>
* Signal from the last termination of the container
* +optional
* </pre>
*
* <code>optional int32 signal = 2 [json_name = "signal"];</code>
* @return Whether the signal field is set.
*/
@java.lang.Override
public boolean hasSignal() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* <pre>
* Signal from the last termination of the container
* +optional
* </pre>
*
* <code>optional int32 signal = 2 [json_name = "signal"];</code>
* @return The signal.
*/
@java.lang.Override
public int getSignal() {
return signal_;
}
/**
* <pre>
* Signal from the last termination of the container
* +optional
* </pre>
*
* <code>optional int32 signal = 2 [json_name = "signal"];</code>
* @param value The signal to set.
* @return This builder for chaining.
*/
public Builder setSignal(int value) {
signal_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <pre>
* Signal from the last termination of the container
* +optional
* </pre>
*
* <code>optional int32 signal = 2 [json_name = "signal"];</code>
* @return This builder for chaining.
*/
public Builder clearSignal() {
bitField0_ = (bitField0_ & ~0x00000002);
signal_ = 0;
onChanged();
return this;
}
private java.lang.Object reason_ = "";
/**
* <pre>
* (brief) reason from the last termination of the container
* +optional
* </pre>
*
* <code>optional string reason = 3 [json_name = "reason"];</code>
* @return Whether the reason field is set.
*/
public boolean hasReason() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* <pre>
* (brief) reason from the last termination of the container
* +optional
* </pre>
*
* <code>optional string reason = 3 [json_name = "reason"];</code>
* @return The reason.
*/
public java.lang.String getReason() {
java.lang.Object ref = reason_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
reason_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* (brief) reason from the last termination of the container
* +optional
* </pre>
*
* <code>optional string reason = 3 [json_name = "reason"];</code>
* @return The bytes for reason.
*/
public com.google.protobuf.ByteString
getReasonBytes() {
java.lang.Object ref = reason_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
reason_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* (brief) reason from the last termination of the container
* +optional
* </pre>
*
* <code>optional string reason = 3 [json_name = "reason"];</code>
* @param value The reason to set.
* @return This builder for chaining.
*/
public Builder setReason(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
reason_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* <pre>
* (brief) reason from the last termination of the container
* +optional
* </pre>
*
* <code>optional string reason = 3 [json_name = "reason"];</code>
* @return This builder for chaining.
*/
public Builder clearReason() {
reason_ = getDefaultInstance().getReason();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* <pre>
* (brief) reason from the last termination of the container
* +optional
* </pre>
*
* <code>optional string reason = 3 [json_name = "reason"];</code>
* @param value The bytes for reason to set.
* @return This builder for chaining.
*/
public Builder setReasonBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
reason_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object message_ = "";
/**
* <pre>
* Message regarding the last termination of the container
* +optional
* </pre>
*
* <code>optional string message = 4 [json_name = "message"];</code>
* @return Whether the message field is set.
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* <pre>
* Message regarding the last termination of the container
* +optional
* </pre>
*
* <code>optional string message = 4 [json_name = "message"];</code>
* @return The message.
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
message_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* Message regarding the last termination of the container
* +optional
* </pre>
*
* <code>optional string message = 4 [json_name = "message"];</code>
* @return The bytes for message.
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* Message regarding the last termination of the container
* +optional
* </pre>
*
* <code>optional string message = 4 [json_name = "message"];</code>
* @param value The message to set.
* @return This builder for chaining.
*/
public Builder setMessage(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
message_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* <pre>
* Message regarding the last termination of the container
* +optional
* </pre>
*
* <code>optional string message = 4 [json_name = "message"];</code>
* @return This builder for chaining.
*/
public Builder clearMessage() {
message_ = getDefaultInstance().getMessage();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
* <pre>
* Message regarding the last termination of the container
* +optional
* </pre>
*
* <code>optional string message = 4 [json_name = "message"];</code>
* @param value The bytes for message to set.
* @return This builder for chaining.
*/
public Builder setMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
message_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private long startedAt_ ;
/**
* <pre>
* Time at which previous execution of the container started
* +optional
* </pre>
*
* <code>optional int64 started_at = 5 [json_name = "startedAt", (.gen_bq_schema.bigquery) = { ... }</code>
* @return Whether the startedAt field is set.
*/
@java.lang.Override
public boolean hasStartedAt() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* <pre>
* Time at which previous execution of the container started
* +optional
* </pre>
*
* <code>optional int64 started_at = 5 [json_name = "startedAt", (.gen_bq_schema.bigquery) = { ... }</code>
* @return The startedAt.
*/
@java.lang.Override
public long getStartedAt() {
return startedAt_;
}
/**
* <pre>
* Time at which previous execution of the container started
* +optional
* </pre>
*
* <code>optional int64 started_at = 5 [json_name = "startedAt", (.gen_bq_schema.bigquery) = { ... }</code>
* @param value The startedAt to set.
* @return This builder for chaining.
*/
public Builder setStartedAt(long value) {
startedAt_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* <pre>
* Time at which previous execution of the container started
* +optional
* </pre>
*
* <code>optional int64 started_at = 5 [json_name = "startedAt", (.gen_bq_schema.bigquery) = { ... }</code>
* @return This builder for chaining.
*/
public Builder clearStartedAt() {
bitField0_ = (bitField0_ & ~0x00000010);
startedAt_ = 0L;
onChanged();
return this;
}
private long finishedAt_ ;
/**
* <pre>
* Time at which the container last terminated
* +optional
* </pre>
*
* <code>optional int64 finished_at = 6 [json_name = "finishedAt", (.gen_bq_schema.bigquery) = { ... }</code>
* @return Whether the finishedAt field is set.
*/
@java.lang.Override
public boolean hasFinishedAt() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* <pre>
* Time at which the container last terminated
* +optional
* </pre>
*
* <code>optional int64 finished_at = 6 [json_name = "finishedAt", (.gen_bq_schema.bigquery) = { ... }</code>
* @return The finishedAt.
*/
@java.lang.Override
public long getFinishedAt() {
return finishedAt_;
}
/**
* <pre>
* Time at which the container last terminated
* +optional
* </pre>
*
* <code>optional int64 finished_at = 6 [json_name = "finishedAt", (.gen_bq_schema.bigquery) = { ... }</code>
* @param value The finishedAt to set.
* @return This builder for chaining.
*/
public Builder setFinishedAt(long value) {
finishedAt_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* <pre>
* Time at which the container last terminated
* +optional
* </pre>
*
* <code>optional int64 finished_at = 6 [json_name = "finishedAt", (.gen_bq_schema.bigquery) = { ... }</code>
* @return This builder for chaining.
*/
public Builder clearFinishedAt() {
bitField0_ = (bitField0_ & ~0x00000020);
finishedAt_ = 0L;
onChanged();
return this;
}
private java.lang.Object containerId_ = "";
/**
* <pre>
* Container's ID in the format '<type>://<container_id>'
* +optional
* </pre>
*
* <code>optional string container_id = 7 [json_name = "containerId"];</code>
* @return Whether the containerId field is set.
*/
public boolean hasContainerId() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* <pre>
* Container's ID in the format '<type>://<container_id>'
* +optional
* </pre>
*
* <code>optional string container_id = 7 [json_name = "containerId"];</code>
* @return The containerId.
*/
public java.lang.String getContainerId() {
java.lang.Object ref = containerId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
containerId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* Container's ID in the format '<type>://<container_id>'
* +optional
* </pre>
*
* <code>optional string container_id = 7 [json_name = "containerId"];</code>
* @return The bytes for containerId.
*/
public com.google.protobuf.ByteString
getContainerIdBytes() {
java.lang.Object ref = containerId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
containerId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* Container's ID in the format '<type>://<container_id>'
* +optional
* </pre>
*
* <code>optional string container_id = 7 [json_name = "containerId"];</code>
* @param value The containerId to set.
* @return This builder for chaining.
*/
public Builder setContainerId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
containerId_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* <pre>
* Container's ID in the format '<type>://<container_id>'
* +optional
* </pre>
*
* <code>optional string container_id = 7 [json_name = "containerId"];</code>
* @return This builder for chaining.
*/
public Builder clearContainerId() {
containerId_ = getDefaultInstance().getContainerId();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
* <pre>
* Container's ID in the format '<type>://<container_id>'
* +optional
* </pre>
*
* <code>optional string container_id = 7 [json_name = "containerId"];</code>
* @param value The bytes for containerId to set.
* @return This builder for chaining.
*/
public Builder setContainerIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
containerId_ = value;
bitField0_ |= 0x00000040;
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:chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated)
}
// @@protoc_insertion_point(class_scope:chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated)
private static final ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated();
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<ContainerStateTerminated>
PARSER = new com.google.protobuf.AbstractParser<ContainerStateTerminated>() {
@java.lang.Override
public ContainerStateTerminated 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<ContainerStateTerminated> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<ContainerStateTerminated> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateTerminated getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface EnvVarOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.pubsub.v1.PodStatusPubSub.EnvVar)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* Name of the environment variable. Must be a C_IDENTIFIER.
* </pre>
*
* <code>string name = 1 [json_name = "name"];</code>
* @return The name.
*/
java.lang.String getName();
/**
* <pre>
* Name of the environment variable. Must be a C_IDENTIFIER.
* </pre>
*
* <code>string name = 1 [json_name = "name"];</code>
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* <pre>
* Variable references $(VAR_NAME) are expanded
* using the previously defined environment variables in the container and
* any service environment variables. If a variable cannot be resolved,
* the reference in the input string will be unchanged. Double $$ are reduced
* to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.
* "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)".
* Escaped references will never be expanded, regardless of whether the variable
* exists or not.
* Defaults to "".
* </pre>
*
* <code>string value = 2 [json_name = "value"];</code>
* @return The value.
*/
java.lang.String getValue();
/**
* <pre>
* Variable references $(VAR_NAME) are expanded
* using the previously defined environment variables in the container and
* any service environment variables. If a variable cannot be resolved,
* the reference in the input string will be unchanged. Double $$ are reduced
* to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.
* "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)".
* Escaped references will never be expanded, regardless of whether the variable
* exists or not.
* Defaults to "".
* </pre>
*
* <code>string value = 2 [json_name = "value"];</code>
* @return The bytes for value.
*/
com.google.protobuf.ByteString
getValueBytes();
}
/**
* <pre>
* EnvVar represents an environment variable present in a Container.
* </pre>
*
* Protobuf type {@code chalk.pubsub.v1.PodStatusPubSub.EnvVar}
*/
public static final class EnvVar extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.pubsub.v1.PodStatusPubSub.EnvVar)
EnvVarOrBuilder {
private static final long serialVersionUID = 0L;
// Use EnvVar.newBuilder() to construct.
private EnvVar(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private EnvVar() {
name_ = "";
value_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new EnvVar();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_EnvVar_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_EnvVar_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar.class, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
* <pre>
* Name of the environment variable. Must be a C_IDENTIFIER.
* </pre>
*
* <code>string name = 1 [json_name = "name"];</code>
* @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;
}
}
/**
* <pre>
* Name of the environment variable. Must be a C_IDENTIFIER.
* </pre>
*
* <code>string name = 1 [json_name = "name"];</code>
* @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 VALUE_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object value_ = "";
/**
* <pre>
* Variable references $(VAR_NAME) are expanded
* using the previously defined environment variables in the container and
* any service environment variables. If a variable cannot be resolved,
* the reference in the input string will be unchanged. Double $$ are reduced
* to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.
* "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)".
* Escaped references will never be expanded, regardless of whether the variable
* exists or not.
* Defaults to "".
* </pre>
*
* <code>string value = 2 [json_name = "value"];</code>
* @return The value.
*/
@java.lang.Override
public java.lang.String getValue() {
java.lang.Object ref = value_;
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();
value_ = s;
return s;
}
}
/**
* <pre>
* Variable references $(VAR_NAME) are expanded
* using the previously defined environment variables in the container and
* any service environment variables. If a variable cannot be resolved,
* the reference in the input string will be unchanged. Double $$ are reduced
* to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.
* "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)".
* Escaped references will never be expanded, regardless of whether the variable
* exists or not.
* Defaults to "".
* </pre>
*
* <code>string value = 2 [json_name = "value"];</code>
* @return The bytes for value.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_);
}
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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar other = (ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar) obj;
if (!getName()
.equals(other.getName())) return false;
if (!getValue()
.equals(other.getValue())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar 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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar 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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar 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(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar 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;
}
/**
* <pre>
* EnvVar represents an environment variable present in a Container.
* </pre>
*
* Protobuf type {@code chalk.pubsub.v1.PodStatusPubSub.EnvVar}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.pubsub.v1.PodStatusPubSub.EnvVar)
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVarOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_EnvVar_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_EnvVar_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar.class, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar.Builder.class);
}
// Construct using ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
value_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_EnvVar_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar getDefaultInstanceForType() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar build() {
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar buildPartial() {
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar result = new ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.value_ = value_;
}
}
@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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar) {
return mergeFrom((ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar other) {
if (other == ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getValue().isEmpty()) {
value_ = other.value_;
bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
value_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
* <pre>
* Name of the environment variable. Must be a C_IDENTIFIER.
* </pre>
*
* <code>string name = 1 [json_name = "name"];</code>
* @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;
}
}
/**
* <pre>
* Name of the environment variable. Must be a C_IDENTIFIER.
* </pre>
*
* <code>string name = 1 [json_name = "name"];</code>
* @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;
}
}
/**
* <pre>
* Name of the environment variable. Must be a C_IDENTIFIER.
* </pre>
*
* <code>string name = 1 [json_name = "name"];</code>
* @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;
}
/**
* <pre>
* Name of the environment variable. Must be a C_IDENTIFIER.
* </pre>
*
* <code>string name = 1 [json_name = "name"];</code>
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* <pre>
* Name of the environment variable. Must be a C_IDENTIFIER.
* </pre>
*
* <code>string name = 1 [json_name = "name"];</code>
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object value_ = "";
/**
* <pre>
* Variable references $(VAR_NAME) are expanded
* using the previously defined environment variables in the container and
* any service environment variables. If a variable cannot be resolved,
* the reference in the input string will be unchanged. Double $$ are reduced
* to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.
* "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)".
* Escaped references will never be expanded, regardless of whether the variable
* exists or not.
* Defaults to "".
* </pre>
*
* <code>string value = 2 [json_name = "value"];</code>
* @return The value.
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
value_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* Variable references $(VAR_NAME) are expanded
* using the previously defined environment variables in the container and
* any service environment variables. If a variable cannot be resolved,
* the reference in the input string will be unchanged. Double $$ are reduced
* to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.
* "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)".
* Escaped references will never be expanded, regardless of whether the variable
* exists or not.
* Defaults to "".
* </pre>
*
* <code>string value = 2 [json_name = "value"];</code>
* @return The bytes for value.
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* Variable references $(VAR_NAME) are expanded
* using the previously defined environment variables in the container and
* any service environment variables. If a variable cannot be resolved,
* the reference in the input string will be unchanged. Double $$ are reduced
* to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.
* "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)".
* Escaped references will never be expanded, regardless of whether the variable
* exists or not.
* Defaults to "".
* </pre>
*
* <code>string value = 2 [json_name = "value"];</code>
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
value_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <pre>
* Variable references $(VAR_NAME) are expanded
* using the previously defined environment variables in the container and
* any service environment variables. If a variable cannot be resolved,
* the reference in the input string will be unchanged. Double $$ are reduced
* to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.
* "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)".
* Escaped references will never be expanded, regardless of whether the variable
* exists or not.
* Defaults to "".
* </pre>
*
* <code>string value = 2 [json_name = "value"];</code>
* @return This builder for chaining.
*/
public Builder clearValue() {
value_ = getDefaultInstance().getValue();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* <pre>
* Variable references $(VAR_NAME) are expanded
* using the previously defined environment variables in the container and
* any service environment variables. If a variable cannot be resolved,
* the reference in the input string will be unchanged. Double $$ are reduced
* to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.
* "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)".
* Escaped references will never be expanded, regardless of whether the variable
* exists or not.
* Defaults to "".
* </pre>
*
* <code>string value = 2 [json_name = "value"];</code>
* @param value The bytes for value to set.
* @return This builder for chaining.
*/
public Builder setValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
value_ = value;
bitField0_ |= 0x00000002;
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:chalk.pubsub.v1.PodStatusPubSub.EnvVar)
}
// @@protoc_insertion_point(class_scope:chalk.pubsub.v1.PodStatusPubSub.EnvVar)
private static final ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar();
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<EnvVar>
PARSER = new com.google.protobuf.AbstractParser<EnvVar>() {
@java.lang.Override
public EnvVar 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<EnvVar> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<EnvVar> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ContainerOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.pubsub.v1.PodStatusPubSub.Container)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* Name of the container specified as a DNS_LABEL.
* Each container in a pod must have a unique name (DNS_LABEL).
* Cannot be updated.
* </pre>
*
* <code>string name = 1 [json_name = "name"];</code>
* @return The name.
*/
java.lang.String getName();
/**
* <pre>
* Name of the container specified as a DNS_LABEL.
* Each container in a pod must have a unique name (DNS_LABEL).
* Cannot be updated.
* </pre>
*
* <code>string name = 1 [json_name = "name"];</code>
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* <pre>
* Container image name.
* More info: https://kubernetes.io/docs/concepts/containers/images
* This field is optional to allow higher level config management to default or override
* container images in workload controllers like Deployments and StatefulSets.
* +optional
* </pre>
*
* <code>optional string image = 2 [json_name = "image"];</code>
* @return Whether the image field is set.
*/
boolean hasImage();
/**
* <pre>
* Container image name.
* More info: https://kubernetes.io/docs/concepts/containers/images
* This field is optional to allow higher level config management to default or override
* container images in workload controllers like Deployments and StatefulSets.
* +optional
* </pre>
*
* <code>optional string image = 2 [json_name = "image"];</code>
* @return The image.
*/
java.lang.String getImage();
/**
* <pre>
* Container image name.
* More info: https://kubernetes.io/docs/concepts/containers/images
* This field is optional to allow higher level config management to default or override
* container images in workload controllers like Deployments and StatefulSets.
* +optional
* </pre>
*
* <code>optional string image = 2 [json_name = "image"];</code>
* @return The bytes for image.
*/
com.google.protobuf.ByteString
getImageBytes();
/**
* <pre>
* Entrypoint array. Not executed within a shell.
* The container image's ENTRYPOINT is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
* to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
* produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
* of whether the variable exists or not. Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated string command = 3 [json_name = "command"];</code>
* @return A list containing the command.
*/
java.util.List<java.lang.String>
getCommandList();
/**
* <pre>
* Entrypoint array. Not executed within a shell.
* The container image's ENTRYPOINT is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
* to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
* produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
* of whether the variable exists or not. Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated string command = 3 [json_name = "command"];</code>
* @return The count of command.
*/
int getCommandCount();
/**
* <pre>
* Entrypoint array. Not executed within a shell.
* The container image's ENTRYPOINT is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
* to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
* produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
* of whether the variable exists or not. Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated string command = 3 [json_name = "command"];</code>
* @param index The index of the element to return.
* @return The command at the given index.
*/
java.lang.String getCommand(int index);
/**
* <pre>
* Entrypoint array. Not executed within a shell.
* The container image's ENTRYPOINT is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
* to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
* produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
* of whether the variable exists or not. Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated string command = 3 [json_name = "command"];</code>
* @param index The index of the value to return.
* @return The bytes of the command at the given index.
*/
com.google.protobuf.ByteString
getCommandBytes(int index);
/**
* <pre>
* Arguments to the entrypoint.
* The container image's CMD is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
* to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
* produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
* of whether the variable exists or not. Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated string args = 4 [json_name = "args"];</code>
* @return A list containing the args.
*/
java.util.List<java.lang.String>
getArgsList();
/**
* <pre>
* Arguments to the entrypoint.
* The container image's CMD is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
* to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
* produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
* of whether the variable exists or not. Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated string args = 4 [json_name = "args"];</code>
* @return The count of args.
*/
int getArgsCount();
/**
* <pre>
* Arguments to the entrypoint.
* The container image's CMD is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
* to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
* produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
* of whether the variable exists or not. Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated string args = 4 [json_name = "args"];</code>
* @param index The index of the element to return.
* @return The args at the given index.
*/
java.lang.String getArgs(int index);
/**
* <pre>
* Arguments to the entrypoint.
* The container image's CMD is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
* to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
* produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
* of whether the variable exists or not. Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated string args = 4 [json_name = "args"];</code>
* @param index The index of the value to return.
* @return The bytes of the args at the given index.
*/
com.google.protobuf.ByteString
getArgsBytes(int index);
/**
* <pre>
* Container's working directory.
* If not specified, the container runtime's default will be used, which
* might be configured in the container image.
* Cannot be updated.
* +optional
* </pre>
*
* <code>optional string working_dir = 5 [json_name = "workingDir"];</code>
* @return Whether the workingDir field is set.
*/
boolean hasWorkingDir();
/**
* <pre>
* Container's working directory.
* If not specified, the container runtime's default will be used, which
* might be configured in the container image.
* Cannot be updated.
* +optional
* </pre>
*
* <code>optional string working_dir = 5 [json_name = "workingDir"];</code>
* @return The workingDir.
*/
java.lang.String getWorkingDir();
/**
* <pre>
* Container's working directory.
* If not specified, the container runtime's default will be used, which
* might be configured in the container image.
* Cannot be updated.
* +optional
* </pre>
*
* <code>optional string working_dir = 5 [json_name = "workingDir"];</code>
* @return The bytes for workingDir.
*/
com.google.protobuf.ByteString
getWorkingDirBytes();
/**
* <pre>
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.EnvVar env = 7 [json_name = "env"];</code>
*/
java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar>
getEnvList();
/**
* <pre>
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.EnvVar env = 7 [json_name = "env"];</code>
*/
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar getEnv(int index);
/**
* <pre>
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.EnvVar env = 7 [json_name = "env"];</code>
*/
int getEnvCount();
/**
* <pre>
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.EnvVar env = 7 [json_name = "env"];</code>
*/
java.util.List<? extends ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVarOrBuilder>
getEnvOrBuilderList();
/**
* <pre>
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.EnvVar env = 7 [json_name = "env"];</code>
*/
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVarOrBuilder getEnvOrBuilder(
int index);
/**
* <pre>
* Compute Resources required by this container.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements resources = 8 [json_name = "resources"];</code>
* @return Whether the resources field is set.
*/
boolean hasResources();
/**
* <pre>
* Compute Resources required by this container.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements resources = 8 [json_name = "resources"];</code>
* @return The resources.
*/
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements getResources();
/**
* <pre>
* Compute Resources required by this container.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements resources = 8 [json_name = "resources"];</code>
*/
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirementsOrBuilder getResourcesOrBuilder();
/**
* <pre>
* RestartPolicy defines the restart behavior of individual containers in a pod.
* This field may only be set for init containers, and the only allowed value is "Always".
* For non-init containers or when this field is not specified,
* the restart behavior is defined by the Pod's restart policy and the container type.
* Setting the RestartPolicy as "Always" for the init container will have the following effect:
* this init container will be continually restarted on
* exit until all regular containers have terminated. Once all regular
* containers have completed, all init containers with restartPolicy "Always"
* will be shut down. This lifecycle differs from normal init containers and
* is often referred to as a "sidecar" container. Although this init
* container still starts in the init container sequence, it does not wait
* for the container to complete before proceeding to the next init
* container. Instead, the next init container starts immediately after this
* init container is started, or after any startupProbe has successfully
* completed.
* +featureGate=SidecarContainers
* +optional
* </pre>
*
* <code>optional string restart_policy = 24 [json_name = "restartPolicy"];</code>
* @return Whether the restartPolicy field is set.
*/
boolean hasRestartPolicy();
/**
* <pre>
* RestartPolicy defines the restart behavior of individual containers in a pod.
* This field may only be set for init containers, and the only allowed value is "Always".
* For non-init containers or when this field is not specified,
* the restart behavior is defined by the Pod's restart policy and the container type.
* Setting the RestartPolicy as "Always" for the init container will have the following effect:
* this init container will be continually restarted on
* exit until all regular containers have terminated. Once all regular
* containers have completed, all init containers with restartPolicy "Always"
* will be shut down. This lifecycle differs from normal init containers and
* is often referred to as a "sidecar" container. Although this init
* container still starts in the init container sequence, it does not wait
* for the container to complete before proceeding to the next init
* container. Instead, the next init container starts immediately after this
* init container is started, or after any startupProbe has successfully
* completed.
* +featureGate=SidecarContainers
* +optional
* </pre>
*
* <code>optional string restart_policy = 24 [json_name = "restartPolicy"];</code>
* @return The restartPolicy.
*/
java.lang.String getRestartPolicy();
/**
* <pre>
* RestartPolicy defines the restart behavior of individual containers in a pod.
* This field may only be set for init containers, and the only allowed value is "Always".
* For non-init containers or when this field is not specified,
* the restart behavior is defined by the Pod's restart policy and the container type.
* Setting the RestartPolicy as "Always" for the init container will have the following effect:
* this init container will be continually restarted on
* exit until all regular containers have terminated. Once all regular
* containers have completed, all init containers with restartPolicy "Always"
* will be shut down. This lifecycle differs from normal init containers and
* is often referred to as a "sidecar" container. Although this init
* container still starts in the init container sequence, it does not wait
* for the container to complete before proceeding to the next init
* container. Instead, the next init container starts immediately after this
* init container is started, or after any startupProbe has successfully
* completed.
* +featureGate=SidecarContainers
* +optional
* </pre>
*
* <code>optional string restart_policy = 24 [json_name = "restartPolicy"];</code>
* @return The bytes for restartPolicy.
*/
com.google.protobuf.ByteString
getRestartPolicyBytes();
/**
* <pre>
* Optional: Path at which the file to which the container's termination message
* will be written is mounted into the container's filesystem.
* Message written is intended to be brief final status, such as an assertion failure message.
* Will be truncated by the node if greater than 4096 bytes. The total message length across
* all containers will be limited to 12kb.
* Defaults to /dev/termination-log.
* Cannot be updated.
* +optional
* </pre>
*
* <code>optional string termination_message_path = 13 [json_name = "terminationMessagePath"];</code>
* @return Whether the terminationMessagePath field is set.
*/
boolean hasTerminationMessagePath();
/**
* <pre>
* Optional: Path at which the file to which the container's termination message
* will be written is mounted into the container's filesystem.
* Message written is intended to be brief final status, such as an assertion failure message.
* Will be truncated by the node if greater than 4096 bytes. The total message length across
* all containers will be limited to 12kb.
* Defaults to /dev/termination-log.
* Cannot be updated.
* +optional
* </pre>
*
* <code>optional string termination_message_path = 13 [json_name = "terminationMessagePath"];</code>
* @return The terminationMessagePath.
*/
java.lang.String getTerminationMessagePath();
/**
* <pre>
* Optional: Path at which the file to which the container's termination message
* will be written is mounted into the container's filesystem.
* Message written is intended to be brief final status, such as an assertion failure message.
* Will be truncated by the node if greater than 4096 bytes. The total message length across
* all containers will be limited to 12kb.
* Defaults to /dev/termination-log.
* Cannot be updated.
* +optional
* </pre>
*
* <code>optional string termination_message_path = 13 [json_name = "terminationMessagePath"];</code>
* @return The bytes for terminationMessagePath.
*/
com.google.protobuf.ByteString
getTerminationMessagePathBytes();
/**
* <pre>
* Indicate how the termination message should be populated. File will use the contents of
* terminationMessagePath to populate the container status message on both success and failure.
* FallbackToLogsOnError will use the last chunk of container log output if the termination
* message file is empty and the container exited with an error.
* The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
* Defaults to File.
* Cannot be updated.
* +optional
* </pre>
*
* <code>optional string termination_message_policy = 20 [json_name = "terminationMessagePolicy"];</code>
* @return Whether the terminationMessagePolicy field is set.
*/
boolean hasTerminationMessagePolicy();
/**
* <pre>
* Indicate how the termination message should be populated. File will use the contents of
* terminationMessagePath to populate the container status message on both success and failure.
* FallbackToLogsOnError will use the last chunk of container log output if the termination
* message file is empty and the container exited with an error.
* The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
* Defaults to File.
* Cannot be updated.
* +optional
* </pre>
*
* <code>optional string termination_message_policy = 20 [json_name = "terminationMessagePolicy"];</code>
* @return The terminationMessagePolicy.
*/
java.lang.String getTerminationMessagePolicy();
/**
* <pre>
* Indicate how the termination message should be populated. File will use the contents of
* terminationMessagePath to populate the container status message on both success and failure.
* FallbackToLogsOnError will use the last chunk of container log output if the termination
* message file is empty and the container exited with an error.
* The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
* Defaults to File.
* Cannot be updated.
* +optional
* </pre>
*
* <code>optional string termination_message_policy = 20 [json_name = "terminationMessagePolicy"];</code>
* @return The bytes for terminationMessagePolicy.
*/
com.google.protobuf.ByteString
getTerminationMessagePolicyBytes();
/**
* <pre>
* Image pull policy.
* One of Always, Never, IfNotPresent.
* Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
* +optional
* </pre>
*
* <code>optional string image_pull_policy = 14 [json_name = "imagePullPolicy"];</code>
* @return Whether the imagePullPolicy field is set.
*/
boolean hasImagePullPolicy();
/**
* <pre>
* Image pull policy.
* One of Always, Never, IfNotPresent.
* Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
* +optional
* </pre>
*
* <code>optional string image_pull_policy = 14 [json_name = "imagePullPolicy"];</code>
* @return The imagePullPolicy.
*/
java.lang.String getImagePullPolicy();
/**
* <pre>
* Image pull policy.
* One of Always, Never, IfNotPresent.
* Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
* +optional
* </pre>
*
* <code>optional string image_pull_policy = 14 [json_name = "imagePullPolicy"];</code>
* @return The bytes for imagePullPolicy.
*/
com.google.protobuf.ByteString
getImagePullPolicyBytes();
/**
* <pre>
* Whether this container should allocate a buffer for stdin in the container runtime. If this
* is not set, reads from stdin in the container will always result in EOF.
* </pre>
*
* <code>bool stdin = 16 [json_name = "stdin"];</code>
* @return The stdin.
*/
boolean getStdin();
/**
* <pre>
* Whether the container runtime should close the stdin channel after it has been opened by
* a single attach. When stdin is true the stdin stream will remain open across multiple attach
* sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the
* first client attaches to stdin, and then remains open and accepts data until the client disconnects,
* at which time stdin is closed and remains closed until the container is restarted. If this
* flag is false, a container processes that reads from stdin will never receive an EOF.
* </pre>
*
* <code>bool stdin_once = 17 [json_name = "stdinOnce"];</code>
* @return The stdinOnce.
*/
boolean getStdinOnce();
/**
* <pre>
* Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
* </pre>
*
* <code>bool tty = 18 [json_name = "tty"];</code>
* @return The tty.
*/
boolean getTty();
}
/**
* <pre>
* A single application container that you want to run within a pod.
* </pre>
*
* Protobuf type {@code chalk.pubsub.v1.PodStatusPubSub.Container}
*/
public static final class Container extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.pubsub.v1.PodStatusPubSub.Container)
ContainerOrBuilder {
private static final long serialVersionUID = 0L;
// Use Container.newBuilder() to construct.
private Container(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private Container() {
name_ = "";
image_ = "";
command_ =
com.google.protobuf.LazyStringArrayList.emptyList();
args_ =
com.google.protobuf.LazyStringArrayList.emptyList();
workingDir_ = "";
env_ = java.util.Collections.emptyList();
restartPolicy_ = "";
terminationMessagePath_ = "";
terminationMessagePolicy_ = "";
imagePullPolicy_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Container();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_Container_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_Container_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container.class, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
* <pre>
* Name of the container specified as a DNS_LABEL.
* Each container in a pod must have a unique name (DNS_LABEL).
* Cannot be updated.
* </pre>
*
* <code>string name = 1 [json_name = "name"];</code>
* @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;
}
}
/**
* <pre>
* Name of the container specified as a DNS_LABEL.
* Each container in a pod must have a unique name (DNS_LABEL).
* Cannot be updated.
* </pre>
*
* <code>string name = 1 [json_name = "name"];</code>
* @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 IMAGE_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object image_ = "";
/**
* <pre>
* Container image name.
* More info: https://kubernetes.io/docs/concepts/containers/images
* This field is optional to allow higher level config management to default or override
* container images in workload controllers like Deployments and StatefulSets.
* +optional
* </pre>
*
* <code>optional string image = 2 [json_name = "image"];</code>
* @return Whether the image field is set.
*/
@java.lang.Override
public boolean hasImage() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <pre>
* Container image name.
* More info: https://kubernetes.io/docs/concepts/containers/images
* This field is optional to allow higher level config management to default or override
* container images in workload controllers like Deployments and StatefulSets.
* +optional
* </pre>
*
* <code>optional string image = 2 [json_name = "image"];</code>
* @return The image.
*/
@java.lang.Override
public java.lang.String getImage() {
java.lang.Object ref = image_;
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();
image_ = s;
return s;
}
}
/**
* <pre>
* Container image name.
* More info: https://kubernetes.io/docs/concepts/containers/images
* This field is optional to allow higher level config management to default or override
* container images in workload controllers like Deployments and StatefulSets.
* +optional
* </pre>
*
* <code>optional string image = 2 [json_name = "image"];</code>
* @return The bytes for image.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getImageBytes() {
java.lang.Object ref = image_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
image_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COMMAND_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList command_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* <pre>
* Entrypoint array. Not executed within a shell.
* The container image's ENTRYPOINT is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
* to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
* produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
* of whether the variable exists or not. Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated string command = 3 [json_name = "command"];</code>
* @return A list containing the command.
*/
public com.google.protobuf.ProtocolStringList
getCommandList() {
return command_;
}
/**
* <pre>
* Entrypoint array. Not executed within a shell.
* The container image's ENTRYPOINT is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
* to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
* produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
* of whether the variable exists or not. Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated string command = 3 [json_name = "command"];</code>
* @return The count of command.
*/
public int getCommandCount() {
return command_.size();
}
/**
* <pre>
* Entrypoint array. Not executed within a shell.
* The container image's ENTRYPOINT is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
* to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
* produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
* of whether the variable exists or not. Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated string command = 3 [json_name = "command"];</code>
* @param index The index of the element to return.
* @return The command at the given index.
*/
public java.lang.String getCommand(int index) {
return command_.get(index);
}
/**
* <pre>
* Entrypoint array. Not executed within a shell.
* The container image's ENTRYPOINT is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
* to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
* produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
* of whether the variable exists or not. Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated string command = 3 [json_name = "command"];</code>
* @param index The index of the value to return.
* @return The bytes of the command at the given index.
*/
public com.google.protobuf.ByteString
getCommandBytes(int index) {
return command_.getByteString(index);
}
public static final int ARGS_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList args_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* <pre>
* Arguments to the entrypoint.
* The container image's CMD is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
* to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
* produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
* of whether the variable exists or not. Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated string args = 4 [json_name = "args"];</code>
* @return A list containing the args.
*/
public com.google.protobuf.ProtocolStringList
getArgsList() {
return args_;
}
/**
* <pre>
* Arguments to the entrypoint.
* The container image's CMD is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
* to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
* produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
* of whether the variable exists or not. Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated string args = 4 [json_name = "args"];</code>
* @return The count of args.
*/
public int getArgsCount() {
return args_.size();
}
/**
* <pre>
* Arguments to the entrypoint.
* The container image's CMD is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
* to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
* produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
* of whether the variable exists or not. Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated string args = 4 [json_name = "args"];</code>
* @param index The index of the element to return.
* @return The args at the given index.
*/
public java.lang.String getArgs(int index) {
return args_.get(index);
}
/**
* <pre>
* Arguments to the entrypoint.
* The container image's CMD is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
* to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
* produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
* of whether the variable exists or not. Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated string args = 4 [json_name = "args"];</code>
* @param index The index of the value to return.
* @return The bytes of the args at the given index.
*/
public com.google.protobuf.ByteString
getArgsBytes(int index) {
return args_.getByteString(index);
}
public static final int WORKING_DIR_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object workingDir_ = "";
/**
* <pre>
* Container's working directory.
* If not specified, the container runtime's default will be used, which
* might be configured in the container image.
* Cannot be updated.
* +optional
* </pre>
*
* <code>optional string working_dir = 5 [json_name = "workingDir"];</code>
* @return Whether the workingDir field is set.
*/
@java.lang.Override
public boolean hasWorkingDir() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* <pre>
* Container's working directory.
* If not specified, the container runtime's default will be used, which
* might be configured in the container image.
* Cannot be updated.
* +optional
* </pre>
*
* <code>optional string working_dir = 5 [json_name = "workingDir"];</code>
* @return The workingDir.
*/
@java.lang.Override
public java.lang.String getWorkingDir() {
java.lang.Object ref = workingDir_;
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();
workingDir_ = s;
return s;
}
}
/**
* <pre>
* Container's working directory.
* If not specified, the container runtime's default will be used, which
* might be configured in the container image.
* Cannot be updated.
* +optional
* </pre>
*
* <code>optional string working_dir = 5 [json_name = "workingDir"];</code>
* @return The bytes for workingDir.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getWorkingDirBytes() {
java.lang.Object ref = workingDir_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
workingDir_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ENV_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar> env_;
/**
* <pre>
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.EnvVar env = 7 [json_name = "env"];</code>
*/
@java.lang.Override
public java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar> getEnvList() {
return env_;
}
/**
* <pre>
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.EnvVar env = 7 [json_name = "env"];</code>
*/
@java.lang.Override
public java.util.List<? extends ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVarOrBuilder>
getEnvOrBuilderList() {
return env_;
}
/**
* <pre>
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.EnvVar env = 7 [json_name = "env"];</code>
*/
@java.lang.Override
public int getEnvCount() {
return env_.size();
}
/**
* <pre>
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.EnvVar env = 7 [json_name = "env"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar getEnv(int index) {
return env_.get(index);
}
/**
* <pre>
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.EnvVar env = 7 [json_name = "env"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVarOrBuilder getEnvOrBuilder(
int index) {
return env_.get(index);
}
public static final int RESOURCES_FIELD_NUMBER = 8;
private ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements resources_;
/**
* <pre>
* Compute Resources required by this container.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements resources = 8 [json_name = "resources"];</code>
* @return Whether the resources field is set.
*/
@java.lang.Override
public boolean hasResources() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* <pre>
* Compute Resources required by this container.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements resources = 8 [json_name = "resources"];</code>
* @return The resources.
*/
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements getResources() {
return resources_ == null ? ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements.getDefaultInstance() : resources_;
}
/**
* <pre>
* Compute Resources required by this container.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements resources = 8 [json_name = "resources"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirementsOrBuilder getResourcesOrBuilder() {
return resources_ == null ? ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements.getDefaultInstance() : resources_;
}
public static final int RESTART_POLICY_FIELD_NUMBER = 24;
@SuppressWarnings("serial")
private volatile java.lang.Object restartPolicy_ = "";
/**
* <pre>
* RestartPolicy defines the restart behavior of individual containers in a pod.
* This field may only be set for init containers, and the only allowed value is "Always".
* For non-init containers or when this field is not specified,
* the restart behavior is defined by the Pod's restart policy and the container type.
* Setting the RestartPolicy as "Always" for the init container will have the following effect:
* this init container will be continually restarted on
* exit until all regular containers have terminated. Once all regular
* containers have completed, all init containers with restartPolicy "Always"
* will be shut down. This lifecycle differs from normal init containers and
* is often referred to as a "sidecar" container. Although this init
* container still starts in the init container sequence, it does not wait
* for the container to complete before proceeding to the next init
* container. Instead, the next init container starts immediately after this
* init container is started, or after any startupProbe has successfully
* completed.
* +featureGate=SidecarContainers
* +optional
* </pre>
*
* <code>optional string restart_policy = 24 [json_name = "restartPolicy"];</code>
* @return Whether the restartPolicy field is set.
*/
@java.lang.Override
public boolean hasRestartPolicy() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* <pre>
* RestartPolicy defines the restart behavior of individual containers in a pod.
* This field may only be set for init containers, and the only allowed value is "Always".
* For non-init containers or when this field is not specified,
* the restart behavior is defined by the Pod's restart policy and the container type.
* Setting the RestartPolicy as "Always" for the init container will have the following effect:
* this init container will be continually restarted on
* exit until all regular containers have terminated. Once all regular
* containers have completed, all init containers with restartPolicy "Always"
* will be shut down. This lifecycle differs from normal init containers and
* is often referred to as a "sidecar" container. Although this init
* container still starts in the init container sequence, it does not wait
* for the container to complete before proceeding to the next init
* container. Instead, the next init container starts immediately after this
* init container is started, or after any startupProbe has successfully
* completed.
* +featureGate=SidecarContainers
* +optional
* </pre>
*
* <code>optional string restart_policy = 24 [json_name = "restartPolicy"];</code>
* @return The restartPolicy.
*/
@java.lang.Override
public java.lang.String getRestartPolicy() {
java.lang.Object ref = restartPolicy_;
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();
restartPolicy_ = s;
return s;
}
}
/**
* <pre>
* RestartPolicy defines the restart behavior of individual containers in a pod.
* This field may only be set for init containers, and the only allowed value is "Always".
* For non-init containers or when this field is not specified,
* the restart behavior is defined by the Pod's restart policy and the container type.
* Setting the RestartPolicy as "Always" for the init container will have the following effect:
* this init container will be continually restarted on
* exit until all regular containers have terminated. Once all regular
* containers have completed, all init containers with restartPolicy "Always"
* will be shut down. This lifecycle differs from normal init containers and
* is often referred to as a "sidecar" container. Although this init
* container still starts in the init container sequence, it does not wait
* for the container to complete before proceeding to the next init
* container. Instead, the next init container starts immediately after this
* init container is started, or after any startupProbe has successfully
* completed.
* +featureGate=SidecarContainers
* +optional
* </pre>
*
* <code>optional string restart_policy = 24 [json_name = "restartPolicy"];</code>
* @return The bytes for restartPolicy.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRestartPolicyBytes() {
java.lang.Object ref = restartPolicy_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
restartPolicy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TERMINATION_MESSAGE_PATH_FIELD_NUMBER = 13;
@SuppressWarnings("serial")
private volatile java.lang.Object terminationMessagePath_ = "";
/**
* <pre>
* Optional: Path at which the file to which the container's termination message
* will be written is mounted into the container's filesystem.
* Message written is intended to be brief final status, such as an assertion failure message.
* Will be truncated by the node if greater than 4096 bytes. The total message length across
* all containers will be limited to 12kb.
* Defaults to /dev/termination-log.
* Cannot be updated.
* +optional
* </pre>
*
* <code>optional string termination_message_path = 13 [json_name = "terminationMessagePath"];</code>
* @return Whether the terminationMessagePath field is set.
*/
@java.lang.Override
public boolean hasTerminationMessagePath() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* <pre>
* Optional: Path at which the file to which the container's termination message
* will be written is mounted into the container's filesystem.
* Message written is intended to be brief final status, such as an assertion failure message.
* Will be truncated by the node if greater than 4096 bytes. The total message length across
* all containers will be limited to 12kb.
* Defaults to /dev/termination-log.
* Cannot be updated.
* +optional
* </pre>
*
* <code>optional string termination_message_path = 13 [json_name = "terminationMessagePath"];</code>
* @return The terminationMessagePath.
*/
@java.lang.Override
public java.lang.String getTerminationMessagePath() {
java.lang.Object ref = terminationMessagePath_;
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();
terminationMessagePath_ = s;
return s;
}
}
/**
* <pre>
* Optional: Path at which the file to which the container's termination message
* will be written is mounted into the container's filesystem.
* Message written is intended to be brief final status, such as an assertion failure message.
* Will be truncated by the node if greater than 4096 bytes. The total message length across
* all containers will be limited to 12kb.
* Defaults to /dev/termination-log.
* Cannot be updated.
* +optional
* </pre>
*
* <code>optional string termination_message_path = 13 [json_name = "terminationMessagePath"];</code>
* @return The bytes for terminationMessagePath.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTerminationMessagePathBytes() {
java.lang.Object ref = terminationMessagePath_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
terminationMessagePath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TERMINATION_MESSAGE_POLICY_FIELD_NUMBER = 20;
@SuppressWarnings("serial")
private volatile java.lang.Object terminationMessagePolicy_ = "";
/**
* <pre>
* Indicate how the termination message should be populated. File will use the contents of
* terminationMessagePath to populate the container status message on both success and failure.
* FallbackToLogsOnError will use the last chunk of container log output if the termination
* message file is empty and the container exited with an error.
* The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
* Defaults to File.
* Cannot be updated.
* +optional
* </pre>
*
* <code>optional string termination_message_policy = 20 [json_name = "terminationMessagePolicy"];</code>
* @return Whether the terminationMessagePolicy field is set.
*/
@java.lang.Override
public boolean hasTerminationMessagePolicy() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* <pre>
* Indicate how the termination message should be populated. File will use the contents of
* terminationMessagePath to populate the container status message on both success and failure.
* FallbackToLogsOnError will use the last chunk of container log output if the termination
* message file is empty and the container exited with an error.
* The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
* Defaults to File.
* Cannot be updated.
* +optional
* </pre>
*
* <code>optional string termination_message_policy = 20 [json_name = "terminationMessagePolicy"];</code>
* @return The terminationMessagePolicy.
*/
@java.lang.Override
public java.lang.String getTerminationMessagePolicy() {
java.lang.Object ref = terminationMessagePolicy_;
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();
terminationMessagePolicy_ = s;
return s;
}
}
/**
* <pre>
* Indicate how the termination message should be populated. File will use the contents of
* terminationMessagePath to populate the container status message on both success and failure.
* FallbackToLogsOnError will use the last chunk of container log output if the termination
* message file is empty and the container exited with an error.
* The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
* Defaults to File.
* Cannot be updated.
* +optional
* </pre>
*
* <code>optional string termination_message_policy = 20 [json_name = "terminationMessagePolicy"];</code>
* @return The bytes for terminationMessagePolicy.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTerminationMessagePolicyBytes() {
java.lang.Object ref = terminationMessagePolicy_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
terminationMessagePolicy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int IMAGE_PULL_POLICY_FIELD_NUMBER = 14;
@SuppressWarnings("serial")
private volatile java.lang.Object imagePullPolicy_ = "";
/**
* <pre>
* Image pull policy.
* One of Always, Never, IfNotPresent.
* Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
* +optional
* </pre>
*
* <code>optional string image_pull_policy = 14 [json_name = "imagePullPolicy"];</code>
* @return Whether the imagePullPolicy field is set.
*/
@java.lang.Override
public boolean hasImagePullPolicy() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* <pre>
* Image pull policy.
* One of Always, Never, IfNotPresent.
* Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
* +optional
* </pre>
*
* <code>optional string image_pull_policy = 14 [json_name = "imagePullPolicy"];</code>
* @return The imagePullPolicy.
*/
@java.lang.Override
public java.lang.String getImagePullPolicy() {
java.lang.Object ref = imagePullPolicy_;
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();
imagePullPolicy_ = s;
return s;
}
}
/**
* <pre>
* Image pull policy.
* One of Always, Never, IfNotPresent.
* Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
* +optional
* </pre>
*
* <code>optional string image_pull_policy = 14 [json_name = "imagePullPolicy"];</code>
* @return The bytes for imagePullPolicy.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getImagePullPolicyBytes() {
java.lang.Object ref = imagePullPolicy_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
imagePullPolicy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STDIN_FIELD_NUMBER = 16;
private boolean stdin_ = false;
/**
* <pre>
* Whether this container should allocate a buffer for stdin in the container runtime. If this
* is not set, reads from stdin in the container will always result in EOF.
* </pre>
*
* <code>bool stdin = 16 [json_name = "stdin"];</code>
* @return The stdin.
*/
@java.lang.Override
public boolean getStdin() {
return stdin_;
}
public static final int STDIN_ONCE_FIELD_NUMBER = 17;
private boolean stdinOnce_ = false;
/**
* <pre>
* Whether the container runtime should close the stdin channel after it has been opened by
* a single attach. When stdin is true the stdin stream will remain open across multiple attach
* sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the
* first client attaches to stdin, and then remains open and accepts data until the client disconnects,
* at which time stdin is closed and remains closed until the container is restarted. If this
* flag is false, a container processes that reads from stdin will never receive an EOF.
* </pre>
*
* <code>bool stdin_once = 17 [json_name = "stdinOnce"];</code>
* @return The stdinOnce.
*/
@java.lang.Override
public boolean getStdinOnce() {
return stdinOnce_;
}
public static final int TTY_FIELD_NUMBER = 18;
private boolean tty_ = false;
/**
* <pre>
* Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
* </pre>
*
* <code>bool tty = 18 [json_name = "tty"];</code>
* @return The tty.
*/
@java.lang.Override
public boolean getTty() {
return tty_;
}
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)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, image_);
}
for (int i = 0; i < command_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, command_.getRaw(i));
}
for (int i = 0; i < args_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, args_.getRaw(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, workingDir_);
}
for (int i = 0; i < env_.size(); i++) {
output.writeMessage(7, env_.get(i));
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(8, getResources());
}
if (((bitField0_ & 0x00000010) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 13, terminationMessagePath_);
}
if (((bitField0_ & 0x00000040) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 14, imagePullPolicy_);
}
if (stdin_ != false) {
output.writeBool(16, stdin_);
}
if (stdinOnce_ != false) {
output.writeBool(17, stdinOnce_);
}
if (tty_ != false) {
output.writeBool(18, tty_);
}
if (((bitField0_ & 0x00000020) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 20, terminationMessagePolicy_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 24, restartPolicy_);
}
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.GeneratedMessageV3.computeStringSize(2, image_);
}
{
int dataSize = 0;
for (int i = 0; i < command_.size(); i++) {
dataSize += computeStringSizeNoTag(command_.getRaw(i));
}
size += dataSize;
size += 1 * getCommandList().size();
}
{
int dataSize = 0;
for (int i = 0; i < args_.size(); i++) {
dataSize += computeStringSizeNoTag(args_.getRaw(i));
}
size += dataSize;
size += 1 * getArgsList().size();
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, workingDir_);
}
for (int i = 0; i < env_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, env_.get(i));
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getResources());
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, terminationMessagePath_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, imagePullPolicy_);
}
if (stdin_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(16, stdin_);
}
if (stdinOnce_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(17, stdinOnce_);
}
if (tty_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(18, tty_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, terminationMessagePolicy_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(24, restartPolicy_);
}
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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container other = (ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container) obj;
if (!getName()
.equals(other.getName())) return false;
if (hasImage() != other.hasImage()) return false;
if (hasImage()) {
if (!getImage()
.equals(other.getImage())) return false;
}
if (!getCommandList()
.equals(other.getCommandList())) return false;
if (!getArgsList()
.equals(other.getArgsList())) return false;
if (hasWorkingDir() != other.hasWorkingDir()) return false;
if (hasWorkingDir()) {
if (!getWorkingDir()
.equals(other.getWorkingDir())) return false;
}
if (!getEnvList()
.equals(other.getEnvList())) return false;
if (hasResources() != other.hasResources()) return false;
if (hasResources()) {
if (!getResources()
.equals(other.getResources())) return false;
}
if (hasRestartPolicy() != other.hasRestartPolicy()) return false;
if (hasRestartPolicy()) {
if (!getRestartPolicy()
.equals(other.getRestartPolicy())) return false;
}
if (hasTerminationMessagePath() != other.hasTerminationMessagePath()) return false;
if (hasTerminationMessagePath()) {
if (!getTerminationMessagePath()
.equals(other.getTerminationMessagePath())) return false;
}
if (hasTerminationMessagePolicy() != other.hasTerminationMessagePolicy()) return false;
if (hasTerminationMessagePolicy()) {
if (!getTerminationMessagePolicy()
.equals(other.getTerminationMessagePolicy())) return false;
}
if (hasImagePullPolicy() != other.hasImagePullPolicy()) return false;
if (hasImagePullPolicy()) {
if (!getImagePullPolicy()
.equals(other.getImagePullPolicy())) return false;
}
if (getStdin()
!= other.getStdin()) return false;
if (getStdinOnce()
!= other.getStdinOnce()) return false;
if (getTty()
!= other.getTty()) 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 (hasImage()) {
hash = (37 * hash) + IMAGE_FIELD_NUMBER;
hash = (53 * hash) + getImage().hashCode();
}
if (getCommandCount() > 0) {
hash = (37 * hash) + COMMAND_FIELD_NUMBER;
hash = (53 * hash) + getCommandList().hashCode();
}
if (getArgsCount() > 0) {
hash = (37 * hash) + ARGS_FIELD_NUMBER;
hash = (53 * hash) + getArgsList().hashCode();
}
if (hasWorkingDir()) {
hash = (37 * hash) + WORKING_DIR_FIELD_NUMBER;
hash = (53 * hash) + getWorkingDir().hashCode();
}
if (getEnvCount() > 0) {
hash = (37 * hash) + ENV_FIELD_NUMBER;
hash = (53 * hash) + getEnvList().hashCode();
}
if (hasResources()) {
hash = (37 * hash) + RESOURCES_FIELD_NUMBER;
hash = (53 * hash) + getResources().hashCode();
}
if (hasRestartPolicy()) {
hash = (37 * hash) + RESTART_POLICY_FIELD_NUMBER;
hash = (53 * hash) + getRestartPolicy().hashCode();
}
if (hasTerminationMessagePath()) {
hash = (37 * hash) + TERMINATION_MESSAGE_PATH_FIELD_NUMBER;
hash = (53 * hash) + getTerminationMessagePath().hashCode();
}
if (hasTerminationMessagePolicy()) {
hash = (37 * hash) + TERMINATION_MESSAGE_POLICY_FIELD_NUMBER;
hash = (53 * hash) + getTerminationMessagePolicy().hashCode();
}
if (hasImagePullPolicy()) {
hash = (37 * hash) + IMAGE_PULL_POLICY_FIELD_NUMBER;
hash = (53 * hash) + getImagePullPolicy().hashCode();
}
hash = (37 * hash) + STDIN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getStdin());
hash = (37 * hash) + STDIN_ONCE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getStdinOnce());
hash = (37 * hash) + TTY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getTty());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container 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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container 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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container 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(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container 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;
}
/**
* <pre>
* A single application container that you want to run within a pod.
* </pre>
*
* Protobuf type {@code chalk.pubsub.v1.PodStatusPubSub.Container}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.pubsub.v1.PodStatusPubSub.Container)
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_Container_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_Container_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container.class, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container.Builder.class);
}
// Construct using ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getEnvFieldBuilder();
getResourcesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
image_ = "";
command_ =
com.google.protobuf.LazyStringArrayList.emptyList();
args_ =
com.google.protobuf.LazyStringArrayList.emptyList();
workingDir_ = "";
if (envBuilder_ == null) {
env_ = java.util.Collections.emptyList();
} else {
env_ = null;
envBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
resources_ = null;
if (resourcesBuilder_ != null) {
resourcesBuilder_.dispose();
resourcesBuilder_ = null;
}
restartPolicy_ = "";
terminationMessagePath_ = "";
terminationMessagePolicy_ = "";
imagePullPolicy_ = "";
stdin_ = false;
stdinOnce_ = false;
tty_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_Container_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container getDefaultInstanceForType() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container build() {
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container buildPartial() {
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container result = new ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container result) {
if (envBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0)) {
env_ = java.util.Collections.unmodifiableList(env_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.env_ = env_;
} else {
result.env_ = envBuilder_.build();
}
}
private void buildPartial0(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.image_ = image_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
command_.makeImmutable();
result.command_ = command_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
args_.makeImmutable();
result.args_ = args_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.workingDir_ = workingDir_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.resources_ = resourcesBuilder_ == null
? resources_
: resourcesBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.restartPolicy_ = restartPolicy_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.terminationMessagePath_ = terminationMessagePath_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.terminationMessagePolicy_ = terminationMessagePolicy_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.imagePullPolicy_ = imagePullPolicy_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.stdin_ = stdin_;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
result.stdinOnce_ = stdinOnce_;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.tty_ = tty_;
}
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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container) {
return mergeFrom((ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container other) {
if (other == ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasImage()) {
image_ = other.image_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.command_.isEmpty()) {
if (command_.isEmpty()) {
command_ = other.command_;
bitField0_ |= 0x00000004;
} else {
ensureCommandIsMutable();
command_.addAll(other.command_);
}
onChanged();
}
if (!other.args_.isEmpty()) {
if (args_.isEmpty()) {
args_ = other.args_;
bitField0_ |= 0x00000008;
} else {
ensureArgsIsMutable();
args_.addAll(other.args_);
}
onChanged();
}
if (other.hasWorkingDir()) {
workingDir_ = other.workingDir_;
bitField0_ |= 0x00000010;
onChanged();
}
if (envBuilder_ == null) {
if (!other.env_.isEmpty()) {
if (env_.isEmpty()) {
env_ = other.env_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureEnvIsMutable();
env_.addAll(other.env_);
}
onChanged();
}
} else {
if (!other.env_.isEmpty()) {
if (envBuilder_.isEmpty()) {
envBuilder_.dispose();
envBuilder_ = null;
env_ = other.env_;
bitField0_ = (bitField0_ & ~0x00000020);
envBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getEnvFieldBuilder() : null;
} else {
envBuilder_.addAllMessages(other.env_);
}
}
}
if (other.hasResources()) {
mergeResources(other.getResources());
}
if (other.hasRestartPolicy()) {
restartPolicy_ = other.restartPolicy_;
bitField0_ |= 0x00000080;
onChanged();
}
if (other.hasTerminationMessagePath()) {
terminationMessagePath_ = other.terminationMessagePath_;
bitField0_ |= 0x00000100;
onChanged();
}
if (other.hasTerminationMessagePolicy()) {
terminationMessagePolicy_ = other.terminationMessagePolicy_;
bitField0_ |= 0x00000200;
onChanged();
}
if (other.hasImagePullPolicy()) {
imagePullPolicy_ = other.imagePullPolicy_;
bitField0_ |= 0x00000400;
onChanged();
}
if (other.getStdin() != false) {
setStdin(other.getStdin());
}
if (other.getStdinOnce() != false) {
setStdinOnce(other.getStdinOnce());
}
if (other.getTty() != false) {
setTty(other.getTty());
}
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: {
image_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
java.lang.String s = input.readStringRequireUtf8();
ensureCommandIsMutable();
command_.add(s);
break;
} // case 26
case 34: {
java.lang.String s = input.readStringRequireUtf8();
ensureArgsIsMutable();
args_.add(s);
break;
} // case 34
case 42: {
workingDir_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
case 58: {
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar m =
input.readMessage(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar.parser(),
extensionRegistry);
if (envBuilder_ == null) {
ensureEnvIsMutable();
env_.add(m);
} else {
envBuilder_.addMessage(m);
}
break;
} // case 58
case 66: {
input.readMessage(
getResourcesFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000040;
break;
} // case 66
case 106: {
terminationMessagePath_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000100;
break;
} // case 106
case 114: {
imagePullPolicy_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000400;
break;
} // case 114
case 128: {
stdin_ = input.readBool();
bitField0_ |= 0x00000800;
break;
} // case 128
case 136: {
stdinOnce_ = input.readBool();
bitField0_ |= 0x00001000;
break;
} // case 136
case 144: {
tty_ = input.readBool();
bitField0_ |= 0x00002000;
break;
} // case 144
case 162: {
terminationMessagePolicy_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000200;
break;
} // case 162
case 194: {
restartPolicy_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000080;
break;
} // case 194
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_ = "";
/**
* <pre>
* Name of the container specified as a DNS_LABEL.
* Each container in a pod must have a unique name (DNS_LABEL).
* Cannot be updated.
* </pre>
*
* <code>string name = 1 [json_name = "name"];</code>
* @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;
}
}
/**
* <pre>
* Name of the container specified as a DNS_LABEL.
* Each container in a pod must have a unique name (DNS_LABEL).
* Cannot be updated.
* </pre>
*
* <code>string name = 1 [json_name = "name"];</code>
* @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;
}
}
/**
* <pre>
* Name of the container specified as a DNS_LABEL.
* Each container in a pod must have a unique name (DNS_LABEL).
* Cannot be updated.
* </pre>
*
* <code>string name = 1 [json_name = "name"];</code>
* @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;
}
/**
* <pre>
* Name of the container specified as a DNS_LABEL.
* Each container in a pod must have a unique name (DNS_LABEL).
* Cannot be updated.
* </pre>
*
* <code>string name = 1 [json_name = "name"];</code>
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* <pre>
* Name of the container specified as a DNS_LABEL.
* Each container in a pod must have a unique name (DNS_LABEL).
* Cannot be updated.
* </pre>
*
* <code>string name = 1 [json_name = "name"];</code>
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object image_ = "";
/**
* <pre>
* Container image name.
* More info: https://kubernetes.io/docs/concepts/containers/images
* This field is optional to allow higher level config management to default or override
* container images in workload controllers like Deployments and StatefulSets.
* +optional
* </pre>
*
* <code>optional string image = 2 [json_name = "image"];</code>
* @return Whether the image field is set.
*/
public boolean hasImage() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* <pre>
* Container image name.
* More info: https://kubernetes.io/docs/concepts/containers/images
* This field is optional to allow higher level config management to default or override
* container images in workload controllers like Deployments and StatefulSets.
* +optional
* </pre>
*
* <code>optional string image = 2 [json_name = "image"];</code>
* @return The image.
*/
public java.lang.String getImage() {
java.lang.Object ref = image_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
image_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* Container image name.
* More info: https://kubernetes.io/docs/concepts/containers/images
* This field is optional to allow higher level config management to default or override
* container images in workload controllers like Deployments and StatefulSets.
* +optional
* </pre>
*
* <code>optional string image = 2 [json_name = "image"];</code>
* @return The bytes for image.
*/
public com.google.protobuf.ByteString
getImageBytes() {
java.lang.Object ref = image_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
image_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* Container image name.
* More info: https://kubernetes.io/docs/concepts/containers/images
* This field is optional to allow higher level config management to default or override
* container images in workload controllers like Deployments and StatefulSets.
* +optional
* </pre>
*
* <code>optional string image = 2 [json_name = "image"];</code>
* @param value The image to set.
* @return This builder for chaining.
*/
public Builder setImage(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
image_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <pre>
* Container image name.
* More info: https://kubernetes.io/docs/concepts/containers/images
* This field is optional to allow higher level config management to default or override
* container images in workload controllers like Deployments and StatefulSets.
* +optional
* </pre>
*
* <code>optional string image = 2 [json_name = "image"];</code>
* @return This builder for chaining.
*/
public Builder clearImage() {
image_ = getDefaultInstance().getImage();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* <pre>
* Container image name.
* More info: https://kubernetes.io/docs/concepts/containers/images
* This field is optional to allow higher level config management to default or override
* container images in workload controllers like Deployments and StatefulSets.
* +optional
* </pre>
*
* <code>optional string image = 2 [json_name = "image"];</code>
* @param value The bytes for image to set.
* @return This builder for chaining.
*/
public Builder setImageBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
image_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList command_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureCommandIsMutable() {
if (!command_.isModifiable()) {
command_ = new com.google.protobuf.LazyStringArrayList(command_);
}
bitField0_ |= 0x00000004;
}
/**
* <pre>
* Entrypoint array. Not executed within a shell.
* The container image's ENTRYPOINT is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
* to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
* produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
* of whether the variable exists or not. Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated string command = 3 [json_name = "command"];</code>
* @return A list containing the command.
*/
public com.google.protobuf.ProtocolStringList
getCommandList() {
command_.makeImmutable();
return command_;
}
/**
* <pre>
* Entrypoint array. Not executed within a shell.
* The container image's ENTRYPOINT is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
* to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
* produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
* of whether the variable exists or not. Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated string command = 3 [json_name = "command"];</code>
* @return The count of command.
*/
public int getCommandCount() {
return command_.size();
}
/**
* <pre>
* Entrypoint array. Not executed within a shell.
* The container image's ENTRYPOINT is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
* to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
* produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
* of whether the variable exists or not. Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated string command = 3 [json_name = "command"];</code>
* @param index The index of the element to return.
* @return The command at the given index.
*/
public java.lang.String getCommand(int index) {
return command_.get(index);
}
/**
* <pre>
* Entrypoint array. Not executed within a shell.
* The container image's ENTRYPOINT is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
* to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
* produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
* of whether the variable exists or not. Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated string command = 3 [json_name = "command"];</code>
* @param index The index of the value to return.
* @return The bytes of the command at the given index.
*/
public com.google.protobuf.ByteString
getCommandBytes(int index) {
return command_.getByteString(index);
}
/**
* <pre>
* Entrypoint array. Not executed within a shell.
* The container image's ENTRYPOINT is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
* to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
* produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
* of whether the variable exists or not. Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated string command = 3 [json_name = "command"];</code>
* @param index The index to set the value at.
* @param value The command to set.
* @return This builder for chaining.
*/
public Builder setCommand(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureCommandIsMutable();
command_.set(index, value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* <pre>
* Entrypoint array. Not executed within a shell.
* The container image's ENTRYPOINT is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
* to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
* produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
* of whether the variable exists or not. Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated string command = 3 [json_name = "command"];</code>
* @param value The command to add.
* @return This builder for chaining.
*/
public Builder addCommand(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureCommandIsMutable();
command_.add(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* <pre>
* Entrypoint array. Not executed within a shell.
* The container image's ENTRYPOINT is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
* to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
* produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
* of whether the variable exists or not. Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated string command = 3 [json_name = "command"];</code>
* @param values The command to add.
* @return This builder for chaining.
*/
public Builder addAllCommand(
java.lang.Iterable<java.lang.String> values) {
ensureCommandIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, command_);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* <pre>
* Entrypoint array. Not executed within a shell.
* The container image's ENTRYPOINT is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
* to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
* produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
* of whether the variable exists or not. Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated string command = 3 [json_name = "command"];</code>
* @return This builder for chaining.
*/
public Builder clearCommand() {
command_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);;
onChanged();
return this;
}
/**
* <pre>
* Entrypoint array. Not executed within a shell.
* The container image's ENTRYPOINT is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
* to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
* produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
* of whether the variable exists or not. Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated string command = 3 [json_name = "command"];</code>
* @param value The bytes of the command to add.
* @return This builder for chaining.
*/
public Builder addCommandBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureCommandIsMutable();
command_.add(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList args_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureArgsIsMutable() {
if (!args_.isModifiable()) {
args_ = new com.google.protobuf.LazyStringArrayList(args_);
}
bitField0_ |= 0x00000008;
}
/**
* <pre>
* Arguments to the entrypoint.
* The container image's CMD is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
* to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
* produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
* of whether the variable exists or not. Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated string args = 4 [json_name = "args"];</code>
* @return A list containing the args.
*/
public com.google.protobuf.ProtocolStringList
getArgsList() {
args_.makeImmutable();
return args_;
}
/**
* <pre>
* Arguments to the entrypoint.
* The container image's CMD is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
* to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
* produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
* of whether the variable exists or not. Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated string args = 4 [json_name = "args"];</code>
* @return The count of args.
*/
public int getArgsCount() {
return args_.size();
}
/**
* <pre>
* Arguments to the entrypoint.
* The container image's CMD is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
* to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
* produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
* of whether the variable exists or not. Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated string args = 4 [json_name = "args"];</code>
* @param index The index of the element to return.
* @return The args at the given index.
*/
public java.lang.String getArgs(int index) {
return args_.get(index);
}
/**
* <pre>
* Arguments to the entrypoint.
* The container image's CMD is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
* to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
* produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
* of whether the variable exists or not. Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated string args = 4 [json_name = "args"];</code>
* @param index The index of the value to return.
* @return The bytes of the args at the given index.
*/
public com.google.protobuf.ByteString
getArgsBytes(int index) {
return args_.getByteString(index);
}
/**
* <pre>
* Arguments to the entrypoint.
* The container image's CMD is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
* to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
* produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
* of whether the variable exists or not. Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated string args = 4 [json_name = "args"];</code>
* @param index The index to set the value at.
* @param value The args to set.
* @return This builder for chaining.
*/
public Builder setArgs(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureArgsIsMutable();
args_.set(index, value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* <pre>
* Arguments to the entrypoint.
* The container image's CMD is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
* to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
* produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
* of whether the variable exists or not. Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated string args = 4 [json_name = "args"];</code>
* @param value The args to add.
* @return This builder for chaining.
*/
public Builder addArgs(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureArgsIsMutable();
args_.add(value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* <pre>
* Arguments to the entrypoint.
* The container image's CMD is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
* to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
* produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
* of whether the variable exists or not. Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated string args = 4 [json_name = "args"];</code>
* @param values The args to add.
* @return This builder for chaining.
*/
public Builder addAllArgs(
java.lang.Iterable<java.lang.String> values) {
ensureArgsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, args_);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* <pre>
* Arguments to the entrypoint.
* The container image's CMD is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
* to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
* produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
* of whether the variable exists or not. Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated string args = 4 [json_name = "args"];</code>
* @return This builder for chaining.
*/
public Builder clearArgs() {
args_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);;
onChanged();
return this;
}
/**
* <pre>
* Arguments to the entrypoint.
* The container image's CMD is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
* to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
* produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
* of whether the variable exists or not. Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated string args = 4 [json_name = "args"];</code>
* @param value The bytes of the args to add.
* @return This builder for chaining.
*/
public Builder addArgsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureArgsIsMutable();
args_.add(value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private java.lang.Object workingDir_ = "";
/**
* <pre>
* Container's working directory.
* If not specified, the container runtime's default will be used, which
* might be configured in the container image.
* Cannot be updated.
* +optional
* </pre>
*
* <code>optional string working_dir = 5 [json_name = "workingDir"];</code>
* @return Whether the workingDir field is set.
*/
public boolean hasWorkingDir() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* <pre>
* Container's working directory.
* If not specified, the container runtime's default will be used, which
* might be configured in the container image.
* Cannot be updated.
* +optional
* </pre>
*
* <code>optional string working_dir = 5 [json_name = "workingDir"];</code>
* @return The workingDir.
*/
public java.lang.String getWorkingDir() {
java.lang.Object ref = workingDir_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
workingDir_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* Container's working directory.
* If not specified, the container runtime's default will be used, which
* might be configured in the container image.
* Cannot be updated.
* +optional
* </pre>
*
* <code>optional string working_dir = 5 [json_name = "workingDir"];</code>
* @return The bytes for workingDir.
*/
public com.google.protobuf.ByteString
getWorkingDirBytes() {
java.lang.Object ref = workingDir_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
workingDir_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* Container's working directory.
* If not specified, the container runtime's default will be used, which
* might be configured in the container image.
* Cannot be updated.
* +optional
* </pre>
*
* <code>optional string working_dir = 5 [json_name = "workingDir"];</code>
* @param value The workingDir to set.
* @return This builder for chaining.
*/
public Builder setWorkingDir(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
workingDir_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* <pre>
* Container's working directory.
* If not specified, the container runtime's default will be used, which
* might be configured in the container image.
* Cannot be updated.
* +optional
* </pre>
*
* <code>optional string working_dir = 5 [json_name = "workingDir"];</code>
* @return This builder for chaining.
*/
public Builder clearWorkingDir() {
workingDir_ = getDefaultInstance().getWorkingDir();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
* <pre>
* Container's working directory.
* If not specified, the container runtime's default will be used, which
* might be configured in the container image.
* Cannot be updated.
* +optional
* </pre>
*
* <code>optional string working_dir = 5 [json_name = "workingDir"];</code>
* @param value The bytes for workingDir to set.
* @return This builder for chaining.
*/
public Builder setWorkingDirBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
workingDir_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar> env_ =
java.util.Collections.emptyList();
private void ensureEnvIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
env_ = new java.util.ArrayList<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar>(env_);
bitField0_ |= 0x00000020;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVarOrBuilder> envBuilder_;
/**
* <pre>
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.EnvVar env = 7 [json_name = "env"];</code>
*/
public java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar> getEnvList() {
if (envBuilder_ == null) {
return java.util.Collections.unmodifiableList(env_);
} else {
return envBuilder_.getMessageList();
}
}
/**
* <pre>
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.EnvVar env = 7 [json_name = "env"];</code>
*/
public int getEnvCount() {
if (envBuilder_ == null) {
return env_.size();
} else {
return envBuilder_.getCount();
}
}
/**
* <pre>
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.EnvVar env = 7 [json_name = "env"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar getEnv(int index) {
if (envBuilder_ == null) {
return env_.get(index);
} else {
return envBuilder_.getMessage(index);
}
}
/**
* <pre>
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.EnvVar env = 7 [json_name = "env"];</code>
*/
public Builder setEnv(
int index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar value) {
if (envBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEnvIsMutable();
env_.set(index, value);
onChanged();
} else {
envBuilder_.setMessage(index, value);
}
return this;
}
/**
* <pre>
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.EnvVar env = 7 [json_name = "env"];</code>
*/
public Builder setEnv(
int index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar.Builder builderForValue) {
if (envBuilder_ == null) {
ensureEnvIsMutable();
env_.set(index, builderForValue.build());
onChanged();
} else {
envBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <pre>
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.EnvVar env = 7 [json_name = "env"];</code>
*/
public Builder addEnv(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar value) {
if (envBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEnvIsMutable();
env_.add(value);
onChanged();
} else {
envBuilder_.addMessage(value);
}
return this;
}
/**
* <pre>
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.EnvVar env = 7 [json_name = "env"];</code>
*/
public Builder addEnv(
int index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar value) {
if (envBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEnvIsMutable();
env_.add(index, value);
onChanged();
} else {
envBuilder_.addMessage(index, value);
}
return this;
}
/**
* <pre>
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.EnvVar env = 7 [json_name = "env"];</code>
*/
public Builder addEnv(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar.Builder builderForValue) {
if (envBuilder_ == null) {
ensureEnvIsMutable();
env_.add(builderForValue.build());
onChanged();
} else {
envBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.EnvVar env = 7 [json_name = "env"];</code>
*/
public Builder addEnv(
int index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar.Builder builderForValue) {
if (envBuilder_ == null) {
ensureEnvIsMutable();
env_.add(index, builderForValue.build());
onChanged();
} else {
envBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <pre>
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.EnvVar env = 7 [json_name = "env"];</code>
*/
public Builder addAllEnv(
java.lang.Iterable<? extends ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar> values) {
if (envBuilder_ == null) {
ensureEnvIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, env_);
onChanged();
} else {
envBuilder_.addAllMessages(values);
}
return this;
}
/**
* <pre>
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.EnvVar env = 7 [json_name = "env"];</code>
*/
public Builder clearEnv() {
if (envBuilder_ == null) {
env_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
envBuilder_.clear();
}
return this;
}
/**
* <pre>
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.EnvVar env = 7 [json_name = "env"];</code>
*/
public Builder removeEnv(int index) {
if (envBuilder_ == null) {
ensureEnvIsMutable();
env_.remove(index);
onChanged();
} else {
envBuilder_.remove(index);
}
return this;
}
/**
* <pre>
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.EnvVar env = 7 [json_name = "env"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar.Builder getEnvBuilder(
int index) {
return getEnvFieldBuilder().getBuilder(index);
}
/**
* <pre>
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.EnvVar env = 7 [json_name = "env"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVarOrBuilder getEnvOrBuilder(
int index) {
if (envBuilder_ == null) {
return env_.get(index); } else {
return envBuilder_.getMessageOrBuilder(index);
}
}
/**
* <pre>
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.EnvVar env = 7 [json_name = "env"];</code>
*/
public java.util.List<? extends ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVarOrBuilder>
getEnvOrBuilderList() {
if (envBuilder_ != null) {
return envBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(env_);
}
}
/**
* <pre>
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.EnvVar env = 7 [json_name = "env"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar.Builder addEnvBuilder() {
return getEnvFieldBuilder().addBuilder(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar.getDefaultInstance());
}
/**
* <pre>
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.EnvVar env = 7 [json_name = "env"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar.Builder addEnvBuilder(
int index) {
return getEnvFieldBuilder().addBuilder(
index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar.getDefaultInstance());
}
/**
* <pre>
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
* +listType=map
* +listMapKey=name
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.EnvVar env = 7 [json_name = "env"];</code>
*/
public java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar.Builder>
getEnvBuilderList() {
return getEnvFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVarOrBuilder>
getEnvFieldBuilder() {
if (envBuilder_ == null) {
envBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVar.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.EnvVarOrBuilder>(
env_,
((bitField0_ & 0x00000020) != 0),
getParentForChildren(),
isClean());
env_ = null;
}
return envBuilder_;
}
private ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements resources_;
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirementsOrBuilder> resourcesBuilder_;
/**
* <pre>
* Compute Resources required by this container.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements resources = 8 [json_name = "resources"];</code>
* @return Whether the resources field is set.
*/
public boolean hasResources() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* <pre>
* Compute Resources required by this container.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements resources = 8 [json_name = "resources"];</code>
* @return The resources.
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements getResources() {
if (resourcesBuilder_ == null) {
return resources_ == null ? ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements.getDefaultInstance() : resources_;
} else {
return resourcesBuilder_.getMessage();
}
}
/**
* <pre>
* Compute Resources required by this container.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements resources = 8 [json_name = "resources"];</code>
*/
public Builder setResources(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements value) {
if (resourcesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
resources_ = value;
} else {
resourcesBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* <pre>
* Compute Resources required by this container.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements resources = 8 [json_name = "resources"];</code>
*/
public Builder setResources(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements.Builder builderForValue) {
if (resourcesBuilder_ == null) {
resources_ = builderForValue.build();
} else {
resourcesBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* <pre>
* Compute Resources required by this container.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements resources = 8 [json_name = "resources"];</code>
*/
public Builder mergeResources(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements value) {
if (resourcesBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0) &&
resources_ != null &&
resources_ != ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements.getDefaultInstance()) {
getResourcesBuilder().mergeFrom(value);
} else {
resources_ = value;
}
} else {
resourcesBuilder_.mergeFrom(value);
}
if (resources_ != null) {
bitField0_ |= 0x00000040;
onChanged();
}
return this;
}
/**
* <pre>
* Compute Resources required by this container.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements resources = 8 [json_name = "resources"];</code>
*/
public Builder clearResources() {
bitField0_ = (bitField0_ & ~0x00000040);
resources_ = null;
if (resourcesBuilder_ != null) {
resourcesBuilder_.dispose();
resourcesBuilder_ = null;
}
onChanged();
return this;
}
/**
* <pre>
* Compute Resources required by this container.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements resources = 8 [json_name = "resources"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements.Builder getResourcesBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getResourcesFieldBuilder().getBuilder();
}
/**
* <pre>
* Compute Resources required by this container.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements resources = 8 [json_name = "resources"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirementsOrBuilder getResourcesOrBuilder() {
if (resourcesBuilder_ != null) {
return resourcesBuilder_.getMessageOrBuilder();
} else {
return resources_ == null ?
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements.getDefaultInstance() : resources_;
}
}
/**
* <pre>
* Compute Resources required by this container.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements resources = 8 [json_name = "resources"];</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirementsOrBuilder>
getResourcesFieldBuilder() {
if (resourcesBuilder_ == null) {
resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirementsOrBuilder>(
getResources(),
getParentForChildren(),
isClean());
resources_ = null;
}
return resourcesBuilder_;
}
private java.lang.Object restartPolicy_ = "";
/**
* <pre>
* RestartPolicy defines the restart behavior of individual containers in a pod.
* This field may only be set for init containers, and the only allowed value is "Always".
* For non-init containers or when this field is not specified,
* the restart behavior is defined by the Pod's restart policy and the container type.
* Setting the RestartPolicy as "Always" for the init container will have the following effect:
* this init container will be continually restarted on
* exit until all regular containers have terminated. Once all regular
* containers have completed, all init containers with restartPolicy "Always"
* will be shut down. This lifecycle differs from normal init containers and
* is often referred to as a "sidecar" container. Although this init
* container still starts in the init container sequence, it does not wait
* for the container to complete before proceeding to the next init
* container. Instead, the next init container starts immediately after this
* init container is started, or after any startupProbe has successfully
* completed.
* +featureGate=SidecarContainers
* +optional
* </pre>
*
* <code>optional string restart_policy = 24 [json_name = "restartPolicy"];</code>
* @return Whether the restartPolicy field is set.
*/
public boolean hasRestartPolicy() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* <pre>
* RestartPolicy defines the restart behavior of individual containers in a pod.
* This field may only be set for init containers, and the only allowed value is "Always".
* For non-init containers or when this field is not specified,
* the restart behavior is defined by the Pod's restart policy and the container type.
* Setting the RestartPolicy as "Always" for the init container will have the following effect:
* this init container will be continually restarted on
* exit until all regular containers have terminated. Once all regular
* containers have completed, all init containers with restartPolicy "Always"
* will be shut down. This lifecycle differs from normal init containers and
* is often referred to as a "sidecar" container. Although this init
* container still starts in the init container sequence, it does not wait
* for the container to complete before proceeding to the next init
* container. Instead, the next init container starts immediately after this
* init container is started, or after any startupProbe has successfully
* completed.
* +featureGate=SidecarContainers
* +optional
* </pre>
*
* <code>optional string restart_policy = 24 [json_name = "restartPolicy"];</code>
* @return The restartPolicy.
*/
public java.lang.String getRestartPolicy() {
java.lang.Object ref = restartPolicy_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
restartPolicy_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* RestartPolicy defines the restart behavior of individual containers in a pod.
* This field may only be set for init containers, and the only allowed value is "Always".
* For non-init containers or when this field is not specified,
* the restart behavior is defined by the Pod's restart policy and the container type.
* Setting the RestartPolicy as "Always" for the init container will have the following effect:
* this init container will be continually restarted on
* exit until all regular containers have terminated. Once all regular
* containers have completed, all init containers with restartPolicy "Always"
* will be shut down. This lifecycle differs from normal init containers and
* is often referred to as a "sidecar" container. Although this init
* container still starts in the init container sequence, it does not wait
* for the container to complete before proceeding to the next init
* container. Instead, the next init container starts immediately after this
* init container is started, or after any startupProbe has successfully
* completed.
* +featureGate=SidecarContainers
* +optional
* </pre>
*
* <code>optional string restart_policy = 24 [json_name = "restartPolicy"];</code>
* @return The bytes for restartPolicy.
*/
public com.google.protobuf.ByteString
getRestartPolicyBytes() {
java.lang.Object ref = restartPolicy_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
restartPolicy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* RestartPolicy defines the restart behavior of individual containers in a pod.
* This field may only be set for init containers, and the only allowed value is "Always".
* For non-init containers or when this field is not specified,
* the restart behavior is defined by the Pod's restart policy and the container type.
* Setting the RestartPolicy as "Always" for the init container will have the following effect:
* this init container will be continually restarted on
* exit until all regular containers have terminated. Once all regular
* containers have completed, all init containers with restartPolicy "Always"
* will be shut down. This lifecycle differs from normal init containers and
* is often referred to as a "sidecar" container. Although this init
* container still starts in the init container sequence, it does not wait
* for the container to complete before proceeding to the next init
* container. Instead, the next init container starts immediately after this
* init container is started, or after any startupProbe has successfully
* completed.
* +featureGate=SidecarContainers
* +optional
* </pre>
*
* <code>optional string restart_policy = 24 [json_name = "restartPolicy"];</code>
* @param value The restartPolicy to set.
* @return This builder for chaining.
*/
public Builder setRestartPolicy(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
restartPolicy_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* <pre>
* RestartPolicy defines the restart behavior of individual containers in a pod.
* This field may only be set for init containers, and the only allowed value is "Always".
* For non-init containers or when this field is not specified,
* the restart behavior is defined by the Pod's restart policy and the container type.
* Setting the RestartPolicy as "Always" for the init container will have the following effect:
* this init container will be continually restarted on
* exit until all regular containers have terminated. Once all regular
* containers have completed, all init containers with restartPolicy "Always"
* will be shut down. This lifecycle differs from normal init containers and
* is often referred to as a "sidecar" container. Although this init
* container still starts in the init container sequence, it does not wait
* for the container to complete before proceeding to the next init
* container. Instead, the next init container starts immediately after this
* init container is started, or after any startupProbe has successfully
* completed.
* +featureGate=SidecarContainers
* +optional
* </pre>
*
* <code>optional string restart_policy = 24 [json_name = "restartPolicy"];</code>
* @return This builder for chaining.
*/
public Builder clearRestartPolicy() {
restartPolicy_ = getDefaultInstance().getRestartPolicy();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
/**
* <pre>
* RestartPolicy defines the restart behavior of individual containers in a pod.
* This field may only be set for init containers, and the only allowed value is "Always".
* For non-init containers or when this field is not specified,
* the restart behavior is defined by the Pod's restart policy and the container type.
* Setting the RestartPolicy as "Always" for the init container will have the following effect:
* this init container will be continually restarted on
* exit until all regular containers have terminated. Once all regular
* containers have completed, all init containers with restartPolicy "Always"
* will be shut down. This lifecycle differs from normal init containers and
* is often referred to as a "sidecar" container. Although this init
* container still starts in the init container sequence, it does not wait
* for the container to complete before proceeding to the next init
* container. Instead, the next init container starts immediately after this
* init container is started, or after any startupProbe has successfully
* completed.
* +featureGate=SidecarContainers
* +optional
* </pre>
*
* <code>optional string restart_policy = 24 [json_name = "restartPolicy"];</code>
* @param value The bytes for restartPolicy to set.
* @return This builder for chaining.
*/
public Builder setRestartPolicyBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
restartPolicy_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
private java.lang.Object terminationMessagePath_ = "";
/**
* <pre>
* Optional: Path at which the file to which the container's termination message
* will be written is mounted into the container's filesystem.
* Message written is intended to be brief final status, such as an assertion failure message.
* Will be truncated by the node if greater than 4096 bytes. The total message length across
* all containers will be limited to 12kb.
* Defaults to /dev/termination-log.
* Cannot be updated.
* +optional
* </pre>
*
* <code>optional string termination_message_path = 13 [json_name = "terminationMessagePath"];</code>
* @return Whether the terminationMessagePath field is set.
*/
public boolean hasTerminationMessagePath() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* <pre>
* Optional: Path at which the file to which the container's termination message
* will be written is mounted into the container's filesystem.
* Message written is intended to be brief final status, such as an assertion failure message.
* Will be truncated by the node if greater than 4096 bytes. The total message length across
* all containers will be limited to 12kb.
* Defaults to /dev/termination-log.
* Cannot be updated.
* +optional
* </pre>
*
* <code>optional string termination_message_path = 13 [json_name = "terminationMessagePath"];</code>
* @return The terminationMessagePath.
*/
public java.lang.String getTerminationMessagePath() {
java.lang.Object ref = terminationMessagePath_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
terminationMessagePath_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* Optional: Path at which the file to which the container's termination message
* will be written is mounted into the container's filesystem.
* Message written is intended to be brief final status, such as an assertion failure message.
* Will be truncated by the node if greater than 4096 bytes. The total message length across
* all containers will be limited to 12kb.
* Defaults to /dev/termination-log.
* Cannot be updated.
* +optional
* </pre>
*
* <code>optional string termination_message_path = 13 [json_name = "terminationMessagePath"];</code>
* @return The bytes for terminationMessagePath.
*/
public com.google.protobuf.ByteString
getTerminationMessagePathBytes() {
java.lang.Object ref = terminationMessagePath_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
terminationMessagePath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* Optional: Path at which the file to which the container's termination message
* will be written is mounted into the container's filesystem.
* Message written is intended to be brief final status, such as an assertion failure message.
* Will be truncated by the node if greater than 4096 bytes. The total message length across
* all containers will be limited to 12kb.
* Defaults to /dev/termination-log.
* Cannot be updated.
* +optional
* </pre>
*
* <code>optional string termination_message_path = 13 [json_name = "terminationMessagePath"];</code>
* @param value The terminationMessagePath to set.
* @return This builder for chaining.
*/
public Builder setTerminationMessagePath(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
terminationMessagePath_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
* <pre>
* Optional: Path at which the file to which the container's termination message
* will be written is mounted into the container's filesystem.
* Message written is intended to be brief final status, such as an assertion failure message.
* Will be truncated by the node if greater than 4096 bytes. The total message length across
* all containers will be limited to 12kb.
* Defaults to /dev/termination-log.
* Cannot be updated.
* +optional
* </pre>
*
* <code>optional string termination_message_path = 13 [json_name = "terminationMessagePath"];</code>
* @return This builder for chaining.
*/
public Builder clearTerminationMessagePath() {
terminationMessagePath_ = getDefaultInstance().getTerminationMessagePath();
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
/**
* <pre>
* Optional: Path at which the file to which the container's termination message
* will be written is mounted into the container's filesystem.
* Message written is intended to be brief final status, such as an assertion failure message.
* Will be truncated by the node if greater than 4096 bytes. The total message length across
* all containers will be limited to 12kb.
* Defaults to /dev/termination-log.
* Cannot be updated.
* +optional
* </pre>
*
* <code>optional string termination_message_path = 13 [json_name = "terminationMessagePath"];</code>
* @param value The bytes for terminationMessagePath to set.
* @return This builder for chaining.
*/
public Builder setTerminationMessagePathBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
terminationMessagePath_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
private java.lang.Object terminationMessagePolicy_ = "";
/**
* <pre>
* Indicate how the termination message should be populated. File will use the contents of
* terminationMessagePath to populate the container status message on both success and failure.
* FallbackToLogsOnError will use the last chunk of container log output if the termination
* message file is empty and the container exited with an error.
* The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
* Defaults to File.
* Cannot be updated.
* +optional
* </pre>
*
* <code>optional string termination_message_policy = 20 [json_name = "terminationMessagePolicy"];</code>
* @return Whether the terminationMessagePolicy field is set.
*/
public boolean hasTerminationMessagePolicy() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* <pre>
* Indicate how the termination message should be populated. File will use the contents of
* terminationMessagePath to populate the container status message on both success and failure.
* FallbackToLogsOnError will use the last chunk of container log output if the termination
* message file is empty and the container exited with an error.
* The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
* Defaults to File.
* Cannot be updated.
* +optional
* </pre>
*
* <code>optional string termination_message_policy = 20 [json_name = "terminationMessagePolicy"];</code>
* @return The terminationMessagePolicy.
*/
public java.lang.String getTerminationMessagePolicy() {
java.lang.Object ref = terminationMessagePolicy_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
terminationMessagePolicy_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* Indicate how the termination message should be populated. File will use the contents of
* terminationMessagePath to populate the container status message on both success and failure.
* FallbackToLogsOnError will use the last chunk of container log output if the termination
* message file is empty and the container exited with an error.
* The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
* Defaults to File.
* Cannot be updated.
* +optional
* </pre>
*
* <code>optional string termination_message_policy = 20 [json_name = "terminationMessagePolicy"];</code>
* @return The bytes for terminationMessagePolicy.
*/
public com.google.protobuf.ByteString
getTerminationMessagePolicyBytes() {
java.lang.Object ref = terminationMessagePolicy_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
terminationMessagePolicy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* Indicate how the termination message should be populated. File will use the contents of
* terminationMessagePath to populate the container status message on both success and failure.
* FallbackToLogsOnError will use the last chunk of container log output if the termination
* message file is empty and the container exited with an error.
* The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
* Defaults to File.
* Cannot be updated.
* +optional
* </pre>
*
* <code>optional string termination_message_policy = 20 [json_name = "terminationMessagePolicy"];</code>
* @param value The terminationMessagePolicy to set.
* @return This builder for chaining.
*/
public Builder setTerminationMessagePolicy(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
terminationMessagePolicy_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
* <pre>
* Indicate how the termination message should be populated. File will use the contents of
* terminationMessagePath to populate the container status message on both success and failure.
* FallbackToLogsOnError will use the last chunk of container log output if the termination
* message file is empty and the container exited with an error.
* The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
* Defaults to File.
* Cannot be updated.
* +optional
* </pre>
*
* <code>optional string termination_message_policy = 20 [json_name = "terminationMessagePolicy"];</code>
* @return This builder for chaining.
*/
public Builder clearTerminationMessagePolicy() {
terminationMessagePolicy_ = getDefaultInstance().getTerminationMessagePolicy();
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
/**
* <pre>
* Indicate how the termination message should be populated. File will use the contents of
* terminationMessagePath to populate the container status message on both success and failure.
* FallbackToLogsOnError will use the last chunk of container log output if the termination
* message file is empty and the container exited with an error.
* The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
* Defaults to File.
* Cannot be updated.
* +optional
* </pre>
*
* <code>optional string termination_message_policy = 20 [json_name = "terminationMessagePolicy"];</code>
* @param value The bytes for terminationMessagePolicy to set.
* @return This builder for chaining.
*/
public Builder setTerminationMessagePolicyBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
terminationMessagePolicy_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
private java.lang.Object imagePullPolicy_ = "";
/**
* <pre>
* Image pull policy.
* One of Always, Never, IfNotPresent.
* Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
* +optional
* </pre>
*
* <code>optional string image_pull_policy = 14 [json_name = "imagePullPolicy"];</code>
* @return Whether the imagePullPolicy field is set.
*/
public boolean hasImagePullPolicy() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
* <pre>
* Image pull policy.
* One of Always, Never, IfNotPresent.
* Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
* +optional
* </pre>
*
* <code>optional string image_pull_policy = 14 [json_name = "imagePullPolicy"];</code>
* @return The imagePullPolicy.
*/
public java.lang.String getImagePullPolicy() {
java.lang.Object ref = imagePullPolicy_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
imagePullPolicy_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* Image pull policy.
* One of Always, Never, IfNotPresent.
* Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
* +optional
* </pre>
*
* <code>optional string image_pull_policy = 14 [json_name = "imagePullPolicy"];</code>
* @return The bytes for imagePullPolicy.
*/
public com.google.protobuf.ByteString
getImagePullPolicyBytes() {
java.lang.Object ref = imagePullPolicy_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
imagePullPolicy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* Image pull policy.
* One of Always, Never, IfNotPresent.
* Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
* +optional
* </pre>
*
* <code>optional string image_pull_policy = 14 [json_name = "imagePullPolicy"];</code>
* @param value The imagePullPolicy to set.
* @return This builder for chaining.
*/
public Builder setImagePullPolicy(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
imagePullPolicy_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
* <pre>
* Image pull policy.
* One of Always, Never, IfNotPresent.
* Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
* +optional
* </pre>
*
* <code>optional string image_pull_policy = 14 [json_name = "imagePullPolicy"];</code>
* @return This builder for chaining.
*/
public Builder clearImagePullPolicy() {
imagePullPolicy_ = getDefaultInstance().getImagePullPolicy();
bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
return this;
}
/**
* <pre>
* Image pull policy.
* One of Always, Never, IfNotPresent.
* Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
* +optional
* </pre>
*
* <code>optional string image_pull_policy = 14 [json_name = "imagePullPolicy"];</code>
* @param value The bytes for imagePullPolicy to set.
* @return This builder for chaining.
*/
public Builder setImagePullPolicyBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
imagePullPolicy_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
private boolean stdin_ ;
/**
* <pre>
* Whether this container should allocate a buffer for stdin in the container runtime. If this
* is not set, reads from stdin in the container will always result in EOF.
* </pre>
*
* <code>bool stdin = 16 [json_name = "stdin"];</code>
* @return The stdin.
*/
@java.lang.Override
public boolean getStdin() {
return stdin_;
}
/**
* <pre>
* Whether this container should allocate a buffer for stdin in the container runtime. If this
* is not set, reads from stdin in the container will always result in EOF.
* </pre>
*
* <code>bool stdin = 16 [json_name = "stdin"];</code>
* @param value The stdin to set.
* @return This builder for chaining.
*/
public Builder setStdin(boolean value) {
stdin_ = value;
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
* <pre>
* Whether this container should allocate a buffer for stdin in the container runtime. If this
* is not set, reads from stdin in the container will always result in EOF.
* </pre>
*
* <code>bool stdin = 16 [json_name = "stdin"];</code>
* @return This builder for chaining.
*/
public Builder clearStdin() {
bitField0_ = (bitField0_ & ~0x00000800);
stdin_ = false;
onChanged();
return this;
}
private boolean stdinOnce_ ;
/**
* <pre>
* Whether the container runtime should close the stdin channel after it has been opened by
* a single attach. When stdin is true the stdin stream will remain open across multiple attach
* sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the
* first client attaches to stdin, and then remains open and accepts data until the client disconnects,
* at which time stdin is closed and remains closed until the container is restarted. If this
* flag is false, a container processes that reads from stdin will never receive an EOF.
* </pre>
*
* <code>bool stdin_once = 17 [json_name = "stdinOnce"];</code>
* @return The stdinOnce.
*/
@java.lang.Override
public boolean getStdinOnce() {
return stdinOnce_;
}
/**
* <pre>
* Whether the container runtime should close the stdin channel after it has been opened by
* a single attach. When stdin is true the stdin stream will remain open across multiple attach
* sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the
* first client attaches to stdin, and then remains open and accepts data until the client disconnects,
* at which time stdin is closed and remains closed until the container is restarted. If this
* flag is false, a container processes that reads from stdin will never receive an EOF.
* </pre>
*
* <code>bool stdin_once = 17 [json_name = "stdinOnce"];</code>
* @param value The stdinOnce to set.
* @return This builder for chaining.
*/
public Builder setStdinOnce(boolean value) {
stdinOnce_ = value;
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
* <pre>
* Whether the container runtime should close the stdin channel after it has been opened by
* a single attach. When stdin is true the stdin stream will remain open across multiple attach
* sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the
* first client attaches to stdin, and then remains open and accepts data until the client disconnects,
* at which time stdin is closed and remains closed until the container is restarted. If this
* flag is false, a container processes that reads from stdin will never receive an EOF.
* </pre>
*
* <code>bool stdin_once = 17 [json_name = "stdinOnce"];</code>
* @return This builder for chaining.
*/
public Builder clearStdinOnce() {
bitField0_ = (bitField0_ & ~0x00001000);
stdinOnce_ = false;
onChanged();
return this;
}
private boolean tty_ ;
/**
* <pre>
* Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
* </pre>
*
* <code>bool tty = 18 [json_name = "tty"];</code>
* @return The tty.
*/
@java.lang.Override
public boolean getTty() {
return tty_;
}
/**
* <pre>
* Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
* </pre>
*
* <code>bool tty = 18 [json_name = "tty"];</code>
* @param value The tty to set.
* @return This builder for chaining.
*/
public Builder setTty(boolean value) {
tty_ = value;
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
* <pre>
* Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
* </pre>
*
* <code>bool tty = 18 [json_name = "tty"];</code>
* @return This builder for chaining.
*/
public Builder clearTty() {
bitField0_ = (bitField0_ & ~0x00002000);
tty_ = 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:chalk.pubsub.v1.PodStatusPubSub.Container)
}
// @@protoc_insertion_point(class_scope:chalk.pubsub.v1.PodStatusPubSub.Container)
private static final ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container();
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<Container>
PARSER = new com.google.protobuf.AbstractParser<Container>() {
@java.lang.Override
public Container 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<Container> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<Container> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ContainerStateWaitingOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* (brief) reason the container is not yet running.
* +optional
* </pre>
*
* <code>optional string reason = 1 [json_name = "reason"];</code>
* @return Whether the reason field is set.
*/
boolean hasReason();
/**
* <pre>
* (brief) reason the container is not yet running.
* +optional
* </pre>
*
* <code>optional string reason = 1 [json_name = "reason"];</code>
* @return The reason.
*/
java.lang.String getReason();
/**
* <pre>
* (brief) reason the container is not yet running.
* +optional
* </pre>
*
* <code>optional string reason = 1 [json_name = "reason"];</code>
* @return The bytes for reason.
*/
com.google.protobuf.ByteString
getReasonBytes();
/**
* <pre>
* Message regarding why the container is not yet running.
* +optional
* </pre>
*
* <code>optional string message = 2 [json_name = "message"];</code>
* @return Whether the message field is set.
*/
boolean hasMessage();
/**
* <pre>
* Message regarding why the container is not yet running.
* +optional
* </pre>
*
* <code>optional string message = 2 [json_name = "message"];</code>
* @return The message.
*/
java.lang.String getMessage();
/**
* <pre>
* Message regarding why the container is not yet running.
* +optional
* </pre>
*
* <code>optional string message = 2 [json_name = "message"];</code>
* @return The bytes for message.
*/
com.google.protobuf.ByteString
getMessageBytes();
}
/**
* <pre>
* ContainerStateWaiting is a waiting state of a container.
* </pre>
*
* Protobuf type {@code chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting}
*/
public static final class ContainerStateWaiting extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting)
ContainerStateWaitingOrBuilder {
private static final long serialVersionUID = 0L;
// Use ContainerStateWaiting.newBuilder() to construct.
private ContainerStateWaiting(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ContainerStateWaiting() {
reason_ = "";
message_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ContainerStateWaiting();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerStateWaiting_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerStateWaiting_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting.class, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting.Builder.class);
}
private int bitField0_;
public static final int REASON_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object reason_ = "";
/**
* <pre>
* (brief) reason the container is not yet running.
* +optional
* </pre>
*
* <code>optional string reason = 1 [json_name = "reason"];</code>
* @return Whether the reason field is set.
*/
@java.lang.Override
public boolean hasReason() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <pre>
* (brief) reason the container is not yet running.
* +optional
* </pre>
*
* <code>optional string reason = 1 [json_name = "reason"];</code>
* @return The reason.
*/
@java.lang.Override
public java.lang.String getReason() {
java.lang.Object ref = reason_;
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();
reason_ = s;
return s;
}
}
/**
* <pre>
* (brief) reason the container is not yet running.
* +optional
* </pre>
*
* <code>optional string reason = 1 [json_name = "reason"];</code>
* @return The bytes for reason.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getReasonBytes() {
java.lang.Object ref = reason_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
reason_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MESSAGE_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object message_ = "";
/**
* <pre>
* Message regarding why the container is not yet running.
* +optional
* </pre>
*
* <code>optional string message = 2 [json_name = "message"];</code>
* @return Whether the message field is set.
*/
@java.lang.Override
public boolean hasMessage() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* <pre>
* Message regarding why the container is not yet running.
* +optional
* </pre>
*
* <code>optional string message = 2 [json_name = "message"];</code>
* @return The message.
*/
@java.lang.Override
public java.lang.String getMessage() {
java.lang.Object ref = message_;
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();
message_ = s;
return s;
}
}
/**
* <pre>
* Message regarding why the container is not yet running.
* +optional
* </pre>
*
* <code>optional string message = 2 [json_name = "message"];</code>
* @return The bytes for message.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = 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 (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, reason_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_);
}
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.GeneratedMessageV3.computeStringSize(1, reason_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_);
}
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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting other = (ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting) obj;
if (hasReason() != other.hasReason()) return false;
if (hasReason()) {
if (!getReason()
.equals(other.getReason())) return false;
}
if (hasMessage() != other.hasMessage()) return false;
if (hasMessage()) {
if (!getMessage()
.equals(other.getMessage())) 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 (hasReason()) {
hash = (37 * hash) + REASON_FIELD_NUMBER;
hash = (53 * hash) + getReason().hashCode();
}
if (hasMessage()) {
hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getMessage().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting 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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting 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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting 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(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting 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;
}
/**
* <pre>
* ContainerStateWaiting is a waiting state of a container.
* </pre>
*
* Protobuf type {@code chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting)
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaitingOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerStateWaiting_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerStateWaiting_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting.class, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting.Builder.class);
}
// Construct using ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
reason_ = "";
message_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerStateWaiting_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting getDefaultInstanceForType() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting build() {
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting buildPartial() {
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting result = new ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.reason_ = reason_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.message_ = message_;
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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting) {
return mergeFrom((ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting other) {
if (other == ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting.getDefaultInstance()) return this;
if (other.hasReason()) {
reason_ = other.reason_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasMessage()) {
message_ = other.message_;
bitField0_ |= 0x00000002;
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: {
reason_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
message_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object reason_ = "";
/**
* <pre>
* (brief) reason the container is not yet running.
* +optional
* </pre>
*
* <code>optional string reason = 1 [json_name = "reason"];</code>
* @return Whether the reason field is set.
*/
public boolean hasReason() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <pre>
* (brief) reason the container is not yet running.
* +optional
* </pre>
*
* <code>optional string reason = 1 [json_name = "reason"];</code>
* @return The reason.
*/
public java.lang.String getReason() {
java.lang.Object ref = reason_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
reason_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* (brief) reason the container is not yet running.
* +optional
* </pre>
*
* <code>optional string reason = 1 [json_name = "reason"];</code>
* @return The bytes for reason.
*/
public com.google.protobuf.ByteString
getReasonBytes() {
java.lang.Object ref = reason_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
reason_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* (brief) reason the container is not yet running.
* +optional
* </pre>
*
* <code>optional string reason = 1 [json_name = "reason"];</code>
* @param value The reason to set.
* @return This builder for chaining.
*/
public Builder setReason(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
reason_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <pre>
* (brief) reason the container is not yet running.
* +optional
* </pre>
*
* <code>optional string reason = 1 [json_name = "reason"];</code>
* @return This builder for chaining.
*/
public Builder clearReason() {
reason_ = getDefaultInstance().getReason();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* <pre>
* (brief) reason the container is not yet running.
* +optional
* </pre>
*
* <code>optional string reason = 1 [json_name = "reason"];</code>
* @param value The bytes for reason to set.
* @return This builder for chaining.
*/
public Builder setReasonBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
reason_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object message_ = "";
/**
* <pre>
* Message regarding why the container is not yet running.
* +optional
* </pre>
*
* <code>optional string message = 2 [json_name = "message"];</code>
* @return Whether the message field is set.
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* <pre>
* Message regarding why the container is not yet running.
* +optional
* </pre>
*
* <code>optional string message = 2 [json_name = "message"];</code>
* @return The message.
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
message_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* Message regarding why the container is not yet running.
* +optional
* </pre>
*
* <code>optional string message = 2 [json_name = "message"];</code>
* @return The bytes for message.
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* Message regarding why the container is not yet running.
* +optional
* </pre>
*
* <code>optional string message = 2 [json_name = "message"];</code>
* @param value The message to set.
* @return This builder for chaining.
*/
public Builder setMessage(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
message_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <pre>
* Message regarding why the container is not yet running.
* +optional
* </pre>
*
* <code>optional string message = 2 [json_name = "message"];</code>
* @return This builder for chaining.
*/
public Builder clearMessage() {
message_ = getDefaultInstance().getMessage();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* <pre>
* Message regarding why the container is not yet running.
* +optional
* </pre>
*
* <code>optional string message = 2 [json_name = "message"];</code>
* @param value The bytes for message to set.
* @return This builder for chaining.
*/
public Builder setMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
message_ = value;
bitField0_ |= 0x00000002;
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:chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting)
}
// @@protoc_insertion_point(class_scope:chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting)
private static final ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting();
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<ContainerStateWaiting>
PARSER = new com.google.protobuf.AbstractParser<ContainerStateWaiting>() {
@java.lang.Override
public ContainerStateWaiting 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<ContainerStateWaiting> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<ContainerStateWaiting> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateWaiting getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ContainerStatusOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.pubsub.v1.PodStatusPubSub.ContainerStatus)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* Name is a DNS_LABEL representing the unique name of the container.
* Each container in a pod must have a unique name across all container types.
* Cannot be updated.
* </pre>
*
* <code>string name = 1 [json_name = "name"];</code>
* @return The name.
*/
java.lang.String getName();
/**
* <pre>
* Name is a DNS_LABEL representing the unique name of the container.
* Each container in a pod must have a unique name across all container types.
* Cannot be updated.
* </pre>
*
* <code>string name = 1 [json_name = "name"];</code>
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* <pre>
* State holds details about the container's current condition.
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerState state = 2 [json_name = "state"];</code>
* @return Whether the state field is set.
*/
boolean hasState();
/**
* <pre>
* State holds details about the container's current condition.
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerState state = 2 [json_name = "state"];</code>
* @return The state.
*/
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState getState();
/**
* <pre>
* State holds details about the container's current condition.
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerState state = 2 [json_name = "state"];</code>
*/
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateOrBuilder getStateOrBuilder();
/**
* <pre>
* LastTerminationState holds the last termination state of the container to
* help debug container crashes and restarts. This field is not
* populated if the container is still running and RestartCount is 0.
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerState last_state = 3 [json_name = "lastState"];</code>
* @return Whether the lastState field is set.
*/
boolean hasLastState();
/**
* <pre>
* LastTerminationState holds the last termination state of the container to
* help debug container crashes and restarts. This field is not
* populated if the container is still running and RestartCount is 0.
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerState last_state = 3 [json_name = "lastState"];</code>
* @return The lastState.
*/
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState getLastState();
/**
* <pre>
* LastTerminationState holds the last termination state of the container to
* help debug container crashes and restarts. This field is not
* populated if the container is still running and RestartCount is 0.
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerState last_state = 3 [json_name = "lastState"];</code>
*/
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateOrBuilder getLastStateOrBuilder();
/**
* <pre>
* Ready specifies whether the container is currently passing its readiness check.
* The value will change as readiness probes keep executing. If no readiness
* probes are specified, this field defaults to true once the container is
* fully started (see Started field).
*
* The value is typically used to determine whether a container is ready to
* accept traffic.
* </pre>
*
* <code>optional bool ready = 4 [json_name = "ready"];</code>
* @return Whether the ready field is set.
*/
boolean hasReady();
/**
* <pre>
* Ready specifies whether the container is currently passing its readiness check.
* The value will change as readiness probes keep executing. If no readiness
* probes are specified, this field defaults to true once the container is
* fully started (see Started field).
*
* The value is typically used to determine whether a container is ready to
* accept traffic.
* </pre>
*
* <code>optional bool ready = 4 [json_name = "ready"];</code>
* @return The ready.
*/
boolean getReady();
/**
* <pre>
* RestartCount holds the number of times the container has been restarted.
* Kubelet makes an effort to always increment the value, but there
* are cases when the state may be lost due to node restarts and then the value
* may be reset to 0. The value is never negative.
* </pre>
*
* <code>int32 restart_count = 5 [json_name = "restartCount"];</code>
* @return The restartCount.
*/
int getRestartCount();
/**
* <pre>
* Image is the name of container image that the container is running.
* The container image may not match the image used in the PodSpec,
* as it may have been resolved by the runtime.
* More info: https://kubernetes.io/docs/concepts/containers/images.
* </pre>
*
* <code>string image = 6 [json_name = "image"];</code>
* @return The image.
*/
java.lang.String getImage();
/**
* <pre>
* Image is the name of container image that the container is running.
* The container image may not match the image used in the PodSpec,
* as it may have been resolved by the runtime.
* More info: https://kubernetes.io/docs/concepts/containers/images.
* </pre>
*
* <code>string image = 6 [json_name = "image"];</code>
* @return The bytes for image.
*/
com.google.protobuf.ByteString
getImageBytes();
/**
* <pre>
* ImageID is the image ID of the container's image. The image ID may not
* match the image ID of the image used in the PodSpec, as it may have been
* resolved by the runtime.
* </pre>
*
* <code>string image_id = 7 [json_name = "imageId"];</code>
* @return The imageId.
*/
java.lang.String getImageId();
/**
* <pre>
* ImageID is the image ID of the container's image. The image ID may not
* match the image ID of the image used in the PodSpec, as it may have been
* resolved by the runtime.
* </pre>
*
* <code>string image_id = 7 [json_name = "imageId"];</code>
* @return The bytes for imageId.
*/
com.google.protobuf.ByteString
getImageIdBytes();
/**
* <pre>
* ContainerID is the ID of the container in the format '<type>://<container_id>'.
* Where type is a container runtime identifier, returned from Version call of CRI API
* (for example "containerd").
* +optional
* </pre>
*
* <code>string container_id = 8 [json_name = "containerId"];</code>
* @return The containerId.
*/
java.lang.String getContainerId();
/**
* <pre>
* ContainerID is the ID of the container in the format '<type>://<container_id>'.
* Where type is a container runtime identifier, returned from Version call of CRI API
* (for example "containerd").
* +optional
* </pre>
*
* <code>string container_id = 8 [json_name = "containerId"];</code>
* @return The bytes for containerId.
*/
com.google.protobuf.ByteString
getContainerIdBytes();
/**
* <pre>
* Started indicates whether the container has finished its postStart lifecycle hook
* and passed its startup probe.
* Initialized as false, becomes true after startupProbe is considered
* successful. Resets to false when the container is restarted, or if kubelet
* loses state temporarily. In both cases, startup probes will run again.
* Is always true when no startupProbe is defined and container is running and
* has passed the postStart lifecycle hook.
* </pre>
*
* <code>bool started = 9 [json_name = "started"];</code>
* @return The started.
*/
boolean getStarted();
}
/**
* <pre>
* ContainerStatus contains details for the current status of this container.
* </pre>
*
* Protobuf type {@code chalk.pubsub.v1.PodStatusPubSub.ContainerStatus}
*/
public static final class ContainerStatus extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.pubsub.v1.PodStatusPubSub.ContainerStatus)
ContainerStatusOrBuilder {
private static final long serialVersionUID = 0L;
// Use ContainerStatus.newBuilder() to construct.
private ContainerStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ContainerStatus() {
name_ = "";
image_ = "";
imageId_ = "";
containerId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ContainerStatus();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus.class, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
* <pre>
* Name is a DNS_LABEL representing the unique name of the container.
* Each container in a pod must have a unique name across all container types.
* Cannot be updated.
* </pre>
*
* <code>string name = 1 [json_name = "name"];</code>
* @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;
}
}
/**
* <pre>
* Name is a DNS_LABEL representing the unique name of the container.
* Each container in a pod must have a unique name across all container types.
* Cannot be updated.
* </pre>
*
* <code>string name = 1 [json_name = "name"];</code>
* @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 STATE_FIELD_NUMBER = 2;
private ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState state_;
/**
* <pre>
* State holds details about the container's current condition.
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerState state = 2 [json_name = "state"];</code>
* @return Whether the state field is set.
*/
@java.lang.Override
public boolean hasState() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <pre>
* State holds details about the container's current condition.
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerState state = 2 [json_name = "state"];</code>
* @return The state.
*/
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState getState() {
return state_ == null ? ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState.getDefaultInstance() : state_;
}
/**
* <pre>
* State holds details about the container's current condition.
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerState state = 2 [json_name = "state"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateOrBuilder getStateOrBuilder() {
return state_ == null ? ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState.getDefaultInstance() : state_;
}
public static final int LAST_STATE_FIELD_NUMBER = 3;
private ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState lastState_;
/**
* <pre>
* LastTerminationState holds the last termination state of the container to
* help debug container crashes and restarts. This field is not
* populated if the container is still running and RestartCount is 0.
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerState last_state = 3 [json_name = "lastState"];</code>
* @return Whether the lastState field is set.
*/
@java.lang.Override
public boolean hasLastState() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* <pre>
* LastTerminationState holds the last termination state of the container to
* help debug container crashes and restarts. This field is not
* populated if the container is still running and RestartCount is 0.
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerState last_state = 3 [json_name = "lastState"];</code>
* @return The lastState.
*/
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState getLastState() {
return lastState_ == null ? ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState.getDefaultInstance() : lastState_;
}
/**
* <pre>
* LastTerminationState holds the last termination state of the container to
* help debug container crashes and restarts. This field is not
* populated if the container is still running and RestartCount is 0.
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerState last_state = 3 [json_name = "lastState"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateOrBuilder getLastStateOrBuilder() {
return lastState_ == null ? ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState.getDefaultInstance() : lastState_;
}
public static final int READY_FIELD_NUMBER = 4;
private boolean ready_ = false;
/**
* <pre>
* Ready specifies whether the container is currently passing its readiness check.
* The value will change as readiness probes keep executing. If no readiness
* probes are specified, this field defaults to true once the container is
* fully started (see Started field).
*
* The value is typically used to determine whether a container is ready to
* accept traffic.
* </pre>
*
* <code>optional bool ready = 4 [json_name = "ready"];</code>
* @return Whether the ready field is set.
*/
@java.lang.Override
public boolean hasReady() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* <pre>
* Ready specifies whether the container is currently passing its readiness check.
* The value will change as readiness probes keep executing. If no readiness
* probes are specified, this field defaults to true once the container is
* fully started (see Started field).
*
* The value is typically used to determine whether a container is ready to
* accept traffic.
* </pre>
*
* <code>optional bool ready = 4 [json_name = "ready"];</code>
* @return The ready.
*/
@java.lang.Override
public boolean getReady() {
return ready_;
}
public static final int RESTART_COUNT_FIELD_NUMBER = 5;
private int restartCount_ = 0;
/**
* <pre>
* RestartCount holds the number of times the container has been restarted.
* Kubelet makes an effort to always increment the value, but there
* are cases when the state may be lost due to node restarts and then the value
* may be reset to 0. The value is never negative.
* </pre>
*
* <code>int32 restart_count = 5 [json_name = "restartCount"];</code>
* @return The restartCount.
*/
@java.lang.Override
public int getRestartCount() {
return restartCount_;
}
public static final int IMAGE_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private volatile java.lang.Object image_ = "";
/**
* <pre>
* Image is the name of container image that the container is running.
* The container image may not match the image used in the PodSpec,
* as it may have been resolved by the runtime.
* More info: https://kubernetes.io/docs/concepts/containers/images.
* </pre>
*
* <code>string image = 6 [json_name = "image"];</code>
* @return The image.
*/
@java.lang.Override
public java.lang.String getImage() {
java.lang.Object ref = image_;
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();
image_ = s;
return s;
}
}
/**
* <pre>
* Image is the name of container image that the container is running.
* The container image may not match the image used in the PodSpec,
* as it may have been resolved by the runtime.
* More info: https://kubernetes.io/docs/concepts/containers/images.
* </pre>
*
* <code>string image = 6 [json_name = "image"];</code>
* @return The bytes for image.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getImageBytes() {
java.lang.Object ref = image_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
image_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int IMAGE_ID_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private volatile java.lang.Object imageId_ = "";
/**
* <pre>
* ImageID is the image ID of the container's image. The image ID may not
* match the image ID of the image used in the PodSpec, as it may have been
* resolved by the runtime.
* </pre>
*
* <code>string image_id = 7 [json_name = "imageId"];</code>
* @return The imageId.
*/
@java.lang.Override
public java.lang.String getImageId() {
java.lang.Object ref = imageId_;
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();
imageId_ = s;
return s;
}
}
/**
* <pre>
* ImageID is the image ID of the container's image. The image ID may not
* match the image ID of the image used in the PodSpec, as it may have been
* resolved by the runtime.
* </pre>
*
* <code>string image_id = 7 [json_name = "imageId"];</code>
* @return The bytes for imageId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getImageIdBytes() {
java.lang.Object ref = imageId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
imageId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CONTAINER_ID_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private volatile java.lang.Object containerId_ = "";
/**
* <pre>
* ContainerID is the ID of the container in the format '<type>://<container_id>'.
* Where type is a container runtime identifier, returned from Version call of CRI API
* (for example "containerd").
* +optional
* </pre>
*
* <code>string container_id = 8 [json_name = "containerId"];</code>
* @return The containerId.
*/
@java.lang.Override
public java.lang.String getContainerId() {
java.lang.Object ref = containerId_;
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();
containerId_ = s;
return s;
}
}
/**
* <pre>
* ContainerID is the ID of the container in the format '<type>://<container_id>'.
* Where type is a container runtime identifier, returned from Version call of CRI API
* (for example "containerd").
* +optional
* </pre>
*
* <code>string container_id = 8 [json_name = "containerId"];</code>
* @return The bytes for containerId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getContainerIdBytes() {
java.lang.Object ref = containerId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
containerId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STARTED_FIELD_NUMBER = 9;
private boolean started_ = false;
/**
* <pre>
* Started indicates whether the container has finished its postStart lifecycle hook
* and passed its startup probe.
* Initialized as false, becomes true after startupProbe is considered
* successful. Resets to false when the container is restarted, or if kubelet
* loses state temporarily. In both cases, startup probes will run again.
* Is always true when no startupProbe is defined and container is running and
* has passed the postStart lifecycle hook.
* </pre>
*
* <code>bool started = 9 [json_name = "started"];</code>
* @return The started.
*/
@java.lang.Override
public boolean getStarted() {
return started_;
}
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, getState());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getLastState());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeBool(4, ready_);
}
if (restartCount_ != 0) {
output.writeInt32(5, restartCount_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(image_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, image_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, imageId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, containerId_);
}
if (started_ != false) {
output.writeBool(9, started_);
}
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, getState());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getLastState());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, ready_);
}
if (restartCount_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(5, restartCount_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(image_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, image_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, imageId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, containerId_);
}
if (started_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(9, started_);
}
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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus other = (ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus) obj;
if (!getName()
.equals(other.getName())) return false;
if (hasState() != other.hasState()) return false;
if (hasState()) {
if (!getState()
.equals(other.getState())) return false;
}
if (hasLastState() != other.hasLastState()) return false;
if (hasLastState()) {
if (!getLastState()
.equals(other.getLastState())) return false;
}
if (hasReady() != other.hasReady()) return false;
if (hasReady()) {
if (getReady()
!= other.getReady()) return false;
}
if (getRestartCount()
!= other.getRestartCount()) return false;
if (!getImage()
.equals(other.getImage())) return false;
if (!getImageId()
.equals(other.getImageId())) return false;
if (!getContainerId()
.equals(other.getContainerId())) return false;
if (getStarted()
!= other.getStarted()) 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 (hasState()) {
hash = (37 * hash) + STATE_FIELD_NUMBER;
hash = (53 * hash) + getState().hashCode();
}
if (hasLastState()) {
hash = (37 * hash) + LAST_STATE_FIELD_NUMBER;
hash = (53 * hash) + getLastState().hashCode();
}
if (hasReady()) {
hash = (37 * hash) + READY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getReady());
}
hash = (37 * hash) + RESTART_COUNT_FIELD_NUMBER;
hash = (53 * hash) + getRestartCount();
hash = (37 * hash) + IMAGE_FIELD_NUMBER;
hash = (53 * hash) + getImage().hashCode();
hash = (37 * hash) + IMAGE_ID_FIELD_NUMBER;
hash = (53 * hash) + getImageId().hashCode();
hash = (37 * hash) + CONTAINER_ID_FIELD_NUMBER;
hash = (53 * hash) + getContainerId().hashCode();
hash = (37 * hash) + STARTED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getStarted());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus 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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus 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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus 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(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus 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;
}
/**
* <pre>
* ContainerStatus contains details for the current status of this container.
* </pre>
*
* Protobuf type {@code chalk.pubsub.v1.PodStatusPubSub.ContainerStatus}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.pubsub.v1.PodStatusPubSub.ContainerStatus)
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatusOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus.class, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus.Builder.class);
}
// Construct using ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getStateFieldBuilder();
getLastStateFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
state_ = null;
if (stateBuilder_ != null) {
stateBuilder_.dispose();
stateBuilder_ = null;
}
lastState_ = null;
if (lastStateBuilder_ != null) {
lastStateBuilder_.dispose();
lastStateBuilder_ = null;
}
ready_ = false;
restartCount_ = 0;
image_ = "";
imageId_ = "";
containerId_ = "";
started_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_ContainerStatus_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus getDefaultInstanceForType() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus build() {
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus buildPartial() {
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus result = new ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.state_ = stateBuilder_ == null
? state_
: stateBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.lastState_ = lastStateBuilder_ == null
? lastState_
: lastStateBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.ready_ = ready_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.restartCount_ = restartCount_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.image_ = image_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.imageId_ = imageId_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.containerId_ = containerId_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.started_ = started_;
}
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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus) {
return mergeFrom((ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus other) {
if (other == ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasState()) {
mergeState(other.getState());
}
if (other.hasLastState()) {
mergeLastState(other.getLastState());
}
if (other.hasReady()) {
setReady(other.getReady());
}
if (other.getRestartCount() != 0) {
setRestartCount(other.getRestartCount());
}
if (!other.getImage().isEmpty()) {
image_ = other.image_;
bitField0_ |= 0x00000020;
onChanged();
}
if (!other.getImageId().isEmpty()) {
imageId_ = other.imageId_;
bitField0_ |= 0x00000040;
onChanged();
}
if (!other.getContainerId().isEmpty()) {
containerId_ = other.containerId_;
bitField0_ |= 0x00000080;
onChanged();
}
if (other.getStarted() != false) {
setStarted(other.getStarted());
}
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(
getStateFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getLastStateFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 32: {
ready_ = input.readBool();
bitField0_ |= 0x00000008;
break;
} // case 32
case 40: {
restartCount_ = input.readInt32();
bitField0_ |= 0x00000010;
break;
} // case 40
case 50: {
image_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 50
case 58: {
imageId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000040;
break;
} // case 58
case 66: {
containerId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000080;
break;
} // case 66
case 72: {
started_ = input.readBool();
bitField0_ |= 0x00000100;
break;
} // case 72
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_ = "";
/**
* <pre>
* Name is a DNS_LABEL representing the unique name of the container.
* Each container in a pod must have a unique name across all container types.
* Cannot be updated.
* </pre>
*
* <code>string name = 1 [json_name = "name"];</code>
* @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;
}
}
/**
* <pre>
* Name is a DNS_LABEL representing the unique name of the container.
* Each container in a pod must have a unique name across all container types.
* Cannot be updated.
* </pre>
*
* <code>string name = 1 [json_name = "name"];</code>
* @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;
}
}
/**
* <pre>
* Name is a DNS_LABEL representing the unique name of the container.
* Each container in a pod must have a unique name across all container types.
* Cannot be updated.
* </pre>
*
* <code>string name = 1 [json_name = "name"];</code>
* @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;
}
/**
* <pre>
* Name is a DNS_LABEL representing the unique name of the container.
* Each container in a pod must have a unique name across all container types.
* Cannot be updated.
* </pre>
*
* <code>string name = 1 [json_name = "name"];</code>
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* <pre>
* Name is a DNS_LABEL representing the unique name of the container.
* Each container in a pod must have a unique name across all container types.
* Cannot be updated.
* </pre>
*
* <code>string name = 1 [json_name = "name"];</code>
* @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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState state_;
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateOrBuilder> stateBuilder_;
/**
* <pre>
* State holds details about the container's current condition.
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerState state = 2 [json_name = "state"];</code>
* @return Whether the state field is set.
*/
public boolean hasState() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* <pre>
* State holds details about the container's current condition.
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerState state = 2 [json_name = "state"];</code>
* @return The state.
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState getState() {
if (stateBuilder_ == null) {
return state_ == null ? ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState.getDefaultInstance() : state_;
} else {
return stateBuilder_.getMessage();
}
}
/**
* <pre>
* State holds details about the container's current condition.
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerState state = 2 [json_name = "state"];</code>
*/
public Builder setState(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState value) {
if (stateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
state_ = value;
} else {
stateBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <pre>
* State holds details about the container's current condition.
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerState state = 2 [json_name = "state"];</code>
*/
public Builder setState(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState.Builder builderForValue) {
if (stateBuilder_ == null) {
state_ = builderForValue.build();
} else {
stateBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <pre>
* State holds details about the container's current condition.
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerState state = 2 [json_name = "state"];</code>
*/
public Builder mergeState(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState value) {
if (stateBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
state_ != null &&
state_ != ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState.getDefaultInstance()) {
getStateBuilder().mergeFrom(value);
} else {
state_ = value;
}
} else {
stateBuilder_.mergeFrom(value);
}
if (state_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
* <pre>
* State holds details about the container's current condition.
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerState state = 2 [json_name = "state"];</code>
*/
public Builder clearState() {
bitField0_ = (bitField0_ & ~0x00000002);
state_ = null;
if (stateBuilder_ != null) {
stateBuilder_.dispose();
stateBuilder_ = null;
}
onChanged();
return this;
}
/**
* <pre>
* State holds details about the container's current condition.
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerState state = 2 [json_name = "state"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState.Builder getStateBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getStateFieldBuilder().getBuilder();
}
/**
* <pre>
* State holds details about the container's current condition.
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerState state = 2 [json_name = "state"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateOrBuilder getStateOrBuilder() {
if (stateBuilder_ != null) {
return stateBuilder_.getMessageOrBuilder();
} else {
return state_ == null ?
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState.getDefaultInstance() : state_;
}
}
/**
* <pre>
* State holds details about the container's current condition.
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerState state = 2 [json_name = "state"];</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateOrBuilder>
getStateFieldBuilder() {
if (stateBuilder_ == null) {
stateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateOrBuilder>(
getState(),
getParentForChildren(),
isClean());
state_ = null;
}
return stateBuilder_;
}
private ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState lastState_;
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateOrBuilder> lastStateBuilder_;
/**
* <pre>
* LastTerminationState holds the last termination state of the container to
* help debug container crashes and restarts. This field is not
* populated if the container is still running and RestartCount is 0.
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerState last_state = 3 [json_name = "lastState"];</code>
* @return Whether the lastState field is set.
*/
public boolean hasLastState() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* <pre>
* LastTerminationState holds the last termination state of the container to
* help debug container crashes and restarts. This field is not
* populated if the container is still running and RestartCount is 0.
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerState last_state = 3 [json_name = "lastState"];</code>
* @return The lastState.
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState getLastState() {
if (lastStateBuilder_ == null) {
return lastState_ == null ? ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState.getDefaultInstance() : lastState_;
} else {
return lastStateBuilder_.getMessage();
}
}
/**
* <pre>
* LastTerminationState holds the last termination state of the container to
* help debug container crashes and restarts. This field is not
* populated if the container is still running and RestartCount is 0.
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerState last_state = 3 [json_name = "lastState"];</code>
*/
public Builder setLastState(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState value) {
if (lastStateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
lastState_ = value;
} else {
lastStateBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* <pre>
* LastTerminationState holds the last termination state of the container to
* help debug container crashes and restarts. This field is not
* populated if the container is still running and RestartCount is 0.
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerState last_state = 3 [json_name = "lastState"];</code>
*/
public Builder setLastState(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState.Builder builderForValue) {
if (lastStateBuilder_ == null) {
lastState_ = builderForValue.build();
} else {
lastStateBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* <pre>
* LastTerminationState holds the last termination state of the container to
* help debug container crashes and restarts. This field is not
* populated if the container is still running and RestartCount is 0.
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerState last_state = 3 [json_name = "lastState"];</code>
*/
public Builder mergeLastState(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState value) {
if (lastStateBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
lastState_ != null &&
lastState_ != ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState.getDefaultInstance()) {
getLastStateBuilder().mergeFrom(value);
} else {
lastState_ = value;
}
} else {
lastStateBuilder_.mergeFrom(value);
}
if (lastState_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
* <pre>
* LastTerminationState holds the last termination state of the container to
* help debug container crashes and restarts. This field is not
* populated if the container is still running and RestartCount is 0.
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerState last_state = 3 [json_name = "lastState"];</code>
*/
public Builder clearLastState() {
bitField0_ = (bitField0_ & ~0x00000004);
lastState_ = null;
if (lastStateBuilder_ != null) {
lastStateBuilder_.dispose();
lastStateBuilder_ = null;
}
onChanged();
return this;
}
/**
* <pre>
* LastTerminationState holds the last termination state of the container to
* help debug container crashes and restarts. This field is not
* populated if the container is still running and RestartCount is 0.
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerState last_state = 3 [json_name = "lastState"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState.Builder getLastStateBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getLastStateFieldBuilder().getBuilder();
}
/**
* <pre>
* LastTerminationState holds the last termination state of the container to
* help debug container crashes and restarts. This field is not
* populated if the container is still running and RestartCount is 0.
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerState last_state = 3 [json_name = "lastState"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateOrBuilder getLastStateOrBuilder() {
if (lastStateBuilder_ != null) {
return lastStateBuilder_.getMessageOrBuilder();
} else {
return lastState_ == null ?
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState.getDefaultInstance() : lastState_;
}
}
/**
* <pre>
* LastTerminationState holds the last termination state of the container to
* help debug container crashes and restarts. This field is not
* populated if the container is still running and RestartCount is 0.
* +optional
* </pre>
*
* <code>optional .chalk.pubsub.v1.PodStatusPubSub.ContainerState last_state = 3 [json_name = "lastState"];</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateOrBuilder>
getLastStateFieldBuilder() {
if (lastStateBuilder_ == null) {
lastStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerState.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStateOrBuilder>(
getLastState(),
getParentForChildren(),
isClean());
lastState_ = null;
}
return lastStateBuilder_;
}
private boolean ready_ ;
/**
* <pre>
* Ready specifies whether the container is currently passing its readiness check.
* The value will change as readiness probes keep executing. If no readiness
* probes are specified, this field defaults to true once the container is
* fully started (see Started field).
*
* The value is typically used to determine whether a container is ready to
* accept traffic.
* </pre>
*
* <code>optional bool ready = 4 [json_name = "ready"];</code>
* @return Whether the ready field is set.
*/
@java.lang.Override
public boolean hasReady() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* <pre>
* Ready specifies whether the container is currently passing its readiness check.
* The value will change as readiness probes keep executing. If no readiness
* probes are specified, this field defaults to true once the container is
* fully started (see Started field).
*
* The value is typically used to determine whether a container is ready to
* accept traffic.
* </pre>
*
* <code>optional bool ready = 4 [json_name = "ready"];</code>
* @return The ready.
*/
@java.lang.Override
public boolean getReady() {
return ready_;
}
/**
* <pre>
* Ready specifies whether the container is currently passing its readiness check.
* The value will change as readiness probes keep executing. If no readiness
* probes are specified, this field defaults to true once the container is
* fully started (see Started field).
*
* The value is typically used to determine whether a container is ready to
* accept traffic.
* </pre>
*
* <code>optional bool ready = 4 [json_name = "ready"];</code>
* @param value The ready to set.
* @return This builder for chaining.
*/
public Builder setReady(boolean value) {
ready_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* <pre>
* Ready specifies whether the container is currently passing its readiness check.
* The value will change as readiness probes keep executing. If no readiness
* probes are specified, this field defaults to true once the container is
* fully started (see Started field).
*
* The value is typically used to determine whether a container is ready to
* accept traffic.
* </pre>
*
* <code>optional bool ready = 4 [json_name = "ready"];</code>
* @return This builder for chaining.
*/
public Builder clearReady() {
bitField0_ = (bitField0_ & ~0x00000008);
ready_ = false;
onChanged();
return this;
}
private int restartCount_ ;
/**
* <pre>
* RestartCount holds the number of times the container has been restarted.
* Kubelet makes an effort to always increment the value, but there
* are cases when the state may be lost due to node restarts and then the value
* may be reset to 0. The value is never negative.
* </pre>
*
* <code>int32 restart_count = 5 [json_name = "restartCount"];</code>
* @return The restartCount.
*/
@java.lang.Override
public int getRestartCount() {
return restartCount_;
}
/**
* <pre>
* RestartCount holds the number of times the container has been restarted.
* Kubelet makes an effort to always increment the value, but there
* are cases when the state may be lost due to node restarts and then the value
* may be reset to 0. The value is never negative.
* </pre>
*
* <code>int32 restart_count = 5 [json_name = "restartCount"];</code>
* @param value The restartCount to set.
* @return This builder for chaining.
*/
public Builder setRestartCount(int value) {
restartCount_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* <pre>
* RestartCount holds the number of times the container has been restarted.
* Kubelet makes an effort to always increment the value, but there
* are cases when the state may be lost due to node restarts and then the value
* may be reset to 0. The value is never negative.
* </pre>
*
* <code>int32 restart_count = 5 [json_name = "restartCount"];</code>
* @return This builder for chaining.
*/
public Builder clearRestartCount() {
bitField0_ = (bitField0_ & ~0x00000010);
restartCount_ = 0;
onChanged();
return this;
}
private java.lang.Object image_ = "";
/**
* <pre>
* Image is the name of container image that the container is running.
* The container image may not match the image used in the PodSpec,
* as it may have been resolved by the runtime.
* More info: https://kubernetes.io/docs/concepts/containers/images.
* </pre>
*
* <code>string image = 6 [json_name = "image"];</code>
* @return The image.
*/
public java.lang.String getImage() {
java.lang.Object ref = image_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
image_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* Image is the name of container image that the container is running.
* The container image may not match the image used in the PodSpec,
* as it may have been resolved by the runtime.
* More info: https://kubernetes.io/docs/concepts/containers/images.
* </pre>
*
* <code>string image = 6 [json_name = "image"];</code>
* @return The bytes for image.
*/
public com.google.protobuf.ByteString
getImageBytes() {
java.lang.Object ref = image_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
image_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* Image is the name of container image that the container is running.
* The container image may not match the image used in the PodSpec,
* as it may have been resolved by the runtime.
* More info: https://kubernetes.io/docs/concepts/containers/images.
* </pre>
*
* <code>string image = 6 [json_name = "image"];</code>
* @param value The image to set.
* @return This builder for chaining.
*/
public Builder setImage(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
image_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* <pre>
* Image is the name of container image that the container is running.
* The container image may not match the image used in the PodSpec,
* as it may have been resolved by the runtime.
* More info: https://kubernetes.io/docs/concepts/containers/images.
* </pre>
*
* <code>string image = 6 [json_name = "image"];</code>
* @return This builder for chaining.
*/
public Builder clearImage() {
image_ = getDefaultInstance().getImage();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
* <pre>
* Image is the name of container image that the container is running.
* The container image may not match the image used in the PodSpec,
* as it may have been resolved by the runtime.
* More info: https://kubernetes.io/docs/concepts/containers/images.
* </pre>
*
* <code>string image = 6 [json_name = "image"];</code>
* @param value The bytes for image to set.
* @return This builder for chaining.
*/
public Builder setImageBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
image_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
private java.lang.Object imageId_ = "";
/**
* <pre>
* ImageID is the image ID of the container's image. The image ID may not
* match the image ID of the image used in the PodSpec, as it may have been
* resolved by the runtime.
* </pre>
*
* <code>string image_id = 7 [json_name = "imageId"];</code>
* @return The imageId.
*/
public java.lang.String getImageId() {
java.lang.Object ref = imageId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
imageId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* ImageID is the image ID of the container's image. The image ID may not
* match the image ID of the image used in the PodSpec, as it may have been
* resolved by the runtime.
* </pre>
*
* <code>string image_id = 7 [json_name = "imageId"];</code>
* @return The bytes for imageId.
*/
public com.google.protobuf.ByteString
getImageIdBytes() {
java.lang.Object ref = imageId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
imageId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* ImageID is the image ID of the container's image. The image ID may not
* match the image ID of the image used in the PodSpec, as it may have been
* resolved by the runtime.
* </pre>
*
* <code>string image_id = 7 [json_name = "imageId"];</code>
* @param value The imageId to set.
* @return This builder for chaining.
*/
public Builder setImageId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
imageId_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* <pre>
* ImageID is the image ID of the container's image. The image ID may not
* match the image ID of the image used in the PodSpec, as it may have been
* resolved by the runtime.
* </pre>
*
* <code>string image_id = 7 [json_name = "imageId"];</code>
* @return This builder for chaining.
*/
public Builder clearImageId() {
imageId_ = getDefaultInstance().getImageId();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
* <pre>
* ImageID is the image ID of the container's image. The image ID may not
* match the image ID of the image used in the PodSpec, as it may have been
* resolved by the runtime.
* </pre>
*
* <code>string image_id = 7 [json_name = "imageId"];</code>
* @param value The bytes for imageId to set.
* @return This builder for chaining.
*/
public Builder setImageIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
imageId_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
private java.lang.Object containerId_ = "";
/**
* <pre>
* ContainerID is the ID of the container in the format '<type>://<container_id>'.
* Where type is a container runtime identifier, returned from Version call of CRI API
* (for example "containerd").
* +optional
* </pre>
*
* <code>string container_id = 8 [json_name = "containerId"];</code>
* @return The containerId.
*/
public java.lang.String getContainerId() {
java.lang.Object ref = containerId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
containerId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* ContainerID is the ID of the container in the format '<type>://<container_id>'.
* Where type is a container runtime identifier, returned from Version call of CRI API
* (for example "containerd").
* +optional
* </pre>
*
* <code>string container_id = 8 [json_name = "containerId"];</code>
* @return The bytes for containerId.
*/
public com.google.protobuf.ByteString
getContainerIdBytes() {
java.lang.Object ref = containerId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
containerId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* ContainerID is the ID of the container in the format '<type>://<container_id>'.
* Where type is a container runtime identifier, returned from Version call of CRI API
* (for example "containerd").
* +optional
* </pre>
*
* <code>string container_id = 8 [json_name = "containerId"];</code>
* @param value The containerId to set.
* @return This builder for chaining.
*/
public Builder setContainerId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
containerId_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* <pre>
* ContainerID is the ID of the container in the format '<type>://<container_id>'.
* Where type is a container runtime identifier, returned from Version call of CRI API
* (for example "containerd").
* +optional
* </pre>
*
* <code>string container_id = 8 [json_name = "containerId"];</code>
* @return This builder for chaining.
*/
public Builder clearContainerId() {
containerId_ = getDefaultInstance().getContainerId();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
/**
* <pre>
* ContainerID is the ID of the container in the format '<type>://<container_id>'.
* Where type is a container runtime identifier, returned from Version call of CRI API
* (for example "containerd").
* +optional
* </pre>
*
* <code>string container_id = 8 [json_name = "containerId"];</code>
* @param value The bytes for containerId to set.
* @return This builder for chaining.
*/
public Builder setContainerIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
containerId_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
private boolean started_ ;
/**
* <pre>
* Started indicates whether the container has finished its postStart lifecycle hook
* and passed its startup probe.
* Initialized as false, becomes true after startupProbe is considered
* successful. Resets to false when the container is restarted, or if kubelet
* loses state temporarily. In both cases, startup probes will run again.
* Is always true when no startupProbe is defined and container is running and
* has passed the postStart lifecycle hook.
* </pre>
*
* <code>bool started = 9 [json_name = "started"];</code>
* @return The started.
*/
@java.lang.Override
public boolean getStarted() {
return started_;
}
/**
* <pre>
* Started indicates whether the container has finished its postStart lifecycle hook
* and passed its startup probe.
* Initialized as false, becomes true after startupProbe is considered
* successful. Resets to false when the container is restarted, or if kubelet
* loses state temporarily. In both cases, startup probes will run again.
* Is always true when no startupProbe is defined and container is running and
* has passed the postStart lifecycle hook.
* </pre>
*
* <code>bool started = 9 [json_name = "started"];</code>
* @param value The started to set.
* @return This builder for chaining.
*/
public Builder setStarted(boolean value) {
started_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
* <pre>
* Started indicates whether the container has finished its postStart lifecycle hook
* and passed its startup probe.
* Initialized as false, becomes true after startupProbe is considered
* successful. Resets to false when the container is restarted, or if kubelet
* loses state temporarily. In both cases, startup probes will run again.
* Is always true when no startupProbe is defined and container is running and
* has passed the postStart lifecycle hook.
* </pre>
*
* <code>bool started = 9 [json_name = "started"];</code>
* @return This builder for chaining.
*/
public Builder clearStarted() {
bitField0_ = (bitField0_ & ~0x00000100);
started_ = 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:chalk.pubsub.v1.PodStatusPubSub.ContainerStatus)
}
// @@protoc_insertion_point(class_scope:chalk.pubsub.v1.PodStatusPubSub.ContainerStatus)
private static final ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus();
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<ContainerStatus>
PARSER = new com.google.protobuf.AbstractParser<ContainerStatus>() {
@java.lang.Override
public ContainerStatus 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<ContainerStatus> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<ContainerStatus> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QuantityOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.pubsub.v1.PodStatusPubSub.Quantity)
com.google.protobuf.MessageOrBuilder {
/**
* <code>optional string string = 1 [json_name = "string"];</code>
* @return Whether the string field is set.
*/
boolean hasString();
/**
* <code>optional string string = 1 [json_name = "string"];</code>
* @return The string.
*/
java.lang.String getString();
/**
* <code>optional string string = 1 [json_name = "string"];</code>
* @return The bytes for string.
*/
com.google.protobuf.ByteString
getStringBytes();
}
/**
* Protobuf type {@code chalk.pubsub.v1.PodStatusPubSub.Quantity}
*/
public static final class Quantity extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.pubsub.v1.PodStatusPubSub.Quantity)
QuantityOrBuilder {
private static final long serialVersionUID = 0L;
// Use Quantity.newBuilder() to construct.
private Quantity(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private Quantity() {
string_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Quantity();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_Quantity_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_Quantity_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity.class, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity.Builder.class);
}
private int bitField0_;
public static final int STRING_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object string_ = "";
/**
* <code>optional string string = 1 [json_name = "string"];</code>
* @return Whether the string field is set.
*/
@java.lang.Override
public boolean hasString() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <code>optional string string = 1 [json_name = "string"];</code>
* @return The string.
*/
@java.lang.Override
public java.lang.String getString() {
java.lang.Object ref = string_;
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();
string_ = s;
return s;
}
}
/**
* <code>optional string string = 1 [json_name = "string"];</code>
* @return The bytes for string.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStringBytes() {
java.lang.Object ref = string_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
string_ = 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 (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, string_);
}
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.GeneratedMessageV3.computeStringSize(1, string_);
}
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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity other = (ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity) obj;
if (hasString() != other.hasString()) return false;
if (hasString()) {
if (!getString()
.equals(other.getString())) 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 (hasString()) {
hash = (37 * hash) + STRING_FIELD_NUMBER;
hash = (53 * hash) + getString().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity 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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity 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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity 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(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code chalk.pubsub.v1.PodStatusPubSub.Quantity}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.pubsub.v1.PodStatusPubSub.Quantity)
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.QuantityOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_Quantity_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_Quantity_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity.class, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity.Builder.class);
}
// Construct using ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
string_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_Quantity_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity getDefaultInstanceForType() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity build() {
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity buildPartial() {
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity result = new ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.string_ = string_;
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity) {
return mergeFrom((ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity other) {
if (other == ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity.getDefaultInstance()) return this;
if (other.hasString()) {
string_ = other.string_;
bitField0_ |= 0x00000001;
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: {
string_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
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 string_ = "";
/**
* <code>optional string string = 1 [json_name = "string"];</code>
* @return Whether the string field is set.
*/
public boolean hasString() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <code>optional string string = 1 [json_name = "string"];</code>
* @return The string.
*/
public java.lang.String getString() {
java.lang.Object ref = string_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
string_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>optional string string = 1 [json_name = "string"];</code>
* @return The bytes for string.
*/
public com.google.protobuf.ByteString
getStringBytes() {
java.lang.Object ref = string_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
string_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>optional string string = 1 [json_name = "string"];</code>
* @param value The string to set.
* @return This builder for chaining.
*/
public Builder setString(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
string_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>optional string string = 1 [json_name = "string"];</code>
* @return This builder for chaining.
*/
public Builder clearString() {
string_ = getDefaultInstance().getString();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* <code>optional string string = 1 [json_name = "string"];</code>
* @param value The bytes for string to set.
* @return This builder for chaining.
*/
public Builder setStringBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
string_ = value;
bitField0_ |= 0x00000001;
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:chalk.pubsub.v1.PodStatusPubSub.Quantity)
}
// @@protoc_insertion_point(class_scope:chalk.pubsub.v1.PodStatusPubSub.Quantity)
private static final ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity();
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<Quantity>
PARSER = new com.google.protobuf.AbstractParser<Quantity>() {
@java.lang.Override
public Quantity 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<Quantity> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<Quantity> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResourceRequirementsOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* Limits describes the maximum amount of compute resources allowed.
* More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
* +optional
* </pre>
*
* <code>map<string, .chalk.pubsub.v1.PodStatusPubSub.Quantity> limits = 1 [json_name = "limits"];</code>
*/
int getLimitsCount();
/**
* <pre>
* Limits describes the maximum amount of compute resources allowed.
* More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
* +optional
* </pre>
*
* <code>map<string, .chalk.pubsub.v1.PodStatusPubSub.Quantity> limits = 1 [json_name = "limits"];</code>
*/
boolean containsLimits(
java.lang.String key);
/**
* Use {@link #getLimitsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map<java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity>
getLimits();
/**
* <pre>
* Limits describes the maximum amount of compute resources allowed.
* More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
* +optional
* </pre>
*
* <code>map<string, .chalk.pubsub.v1.PodStatusPubSub.Quantity> limits = 1 [json_name = "limits"];</code>
*/
java.util.Map<java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity>
getLimitsMap();
/**
* <pre>
* Limits describes the maximum amount of compute resources allowed.
* More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
* +optional
* </pre>
*
* <code>map<string, .chalk.pubsub.v1.PodStatusPubSub.Quantity> limits = 1 [json_name = "limits"];</code>
*/
/* nullable */
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity getLimitsOrDefault(
java.lang.String key,
/* nullable */
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity defaultValue);
/**
* <pre>
* Limits describes the maximum amount of compute resources allowed.
* More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
* +optional
* </pre>
*
* <code>map<string, .chalk.pubsub.v1.PodStatusPubSub.Quantity> limits = 1 [json_name = "limits"];</code>
*/
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity getLimitsOrThrow(
java.lang.String key);
/**
* <pre>
* Requests describes the minimum amount of compute resources required.
* If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
* otherwise to an implementation-defined value. Requests cannot exceed Limits.
* More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
* +optional
* </pre>
*
* <code>map<string, .chalk.pubsub.v1.PodStatusPubSub.Quantity> requests = 2 [json_name = "requests"];</code>
*/
int getRequestsCount();
/**
* <pre>
* Requests describes the minimum amount of compute resources required.
* If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
* otherwise to an implementation-defined value. Requests cannot exceed Limits.
* More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
* +optional
* </pre>
*
* <code>map<string, .chalk.pubsub.v1.PodStatusPubSub.Quantity> requests = 2 [json_name = "requests"];</code>
*/
boolean containsRequests(
java.lang.String key);
/**
* Use {@link #getRequestsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map<java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity>
getRequests();
/**
* <pre>
* Requests describes the minimum amount of compute resources required.
* If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
* otherwise to an implementation-defined value. Requests cannot exceed Limits.
* More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
* +optional
* </pre>
*
* <code>map<string, .chalk.pubsub.v1.PodStatusPubSub.Quantity> requests = 2 [json_name = "requests"];</code>
*/
java.util.Map<java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity>
getRequestsMap();
/**
* <pre>
* Requests describes the minimum amount of compute resources required.
* If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
* otherwise to an implementation-defined value. Requests cannot exceed Limits.
* More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
* +optional
* </pre>
*
* <code>map<string, .chalk.pubsub.v1.PodStatusPubSub.Quantity> requests = 2 [json_name = "requests"];</code>
*/
/* nullable */
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity getRequestsOrDefault(
java.lang.String key,
/* nullable */
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity defaultValue);
/**
* <pre>
* Requests describes the minimum amount of compute resources required.
* If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
* otherwise to an implementation-defined value. Requests cannot exceed Limits.
* More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
* +optional
* </pre>
*
* <code>map<string, .chalk.pubsub.v1.PodStatusPubSub.Quantity> requests = 2 [json_name = "requests"];</code>
*/
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity getRequestsOrThrow(
java.lang.String key);
}
/**
* Protobuf type {@code chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements}
*/
public static final class ResourceRequirements extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements)
ResourceRequirementsOrBuilder {
private static final long serialVersionUID = 0L;
// Use ResourceRequirements.newBuilder() to construct.
private ResourceRequirements(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ResourceRequirements() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ResourceRequirements();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_ResourceRequirements_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 1:
return internalGetLimits();
case 2:
return internalGetRequests();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_ResourceRequirements_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements.class, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements.Builder.class);
}
public static final int LIMITS_FIELD_NUMBER = 1;
private static final class LimitsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity> defaultEntry =
com.google.protobuf.MapEntry
.<java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity>newDefaultInstance(
ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_ResourceRequirements_LimitsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity.getDefaultInstance());
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField<
java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity> limits_;
private com.google.protobuf.MapField<java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity>
internalGetLimits() {
if (limits_ == null) {
return com.google.protobuf.MapField.emptyMapField(
LimitsDefaultEntryHolder.defaultEntry);
}
return limits_;
}
public int getLimitsCount() {
return internalGetLimits().getMap().size();
}
/**
* <pre>
* Limits describes the maximum amount of compute resources allowed.
* More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
* +optional
* </pre>
*
* <code>map<string, .chalk.pubsub.v1.PodStatusPubSub.Quantity> limits = 1 [json_name = "limits"];</code>
*/
@java.lang.Override
public boolean containsLimits(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetLimits().getMap().containsKey(key);
}
/**
* Use {@link #getLimitsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map<java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity> getLimits() {
return getLimitsMap();
}
/**
* <pre>
* Limits describes the maximum amount of compute resources allowed.
* More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
* +optional
* </pre>
*
* <code>map<string, .chalk.pubsub.v1.PodStatusPubSub.Quantity> limits = 1 [json_name = "limits"];</code>
*/
@java.lang.Override
public java.util.Map<java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity> getLimitsMap() {
return internalGetLimits().getMap();
}
/**
* <pre>
* Limits describes the maximum amount of compute resources allowed.
* More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
* +optional
* </pre>
*
* <code>map<string, .chalk.pubsub.v1.PodStatusPubSub.Quantity> limits = 1 [json_name = "limits"];</code>
*/
@java.lang.Override
public /* nullable */
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity getLimitsOrDefault(
java.lang.String key,
/* nullable */
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity> map =
internalGetLimits().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <pre>
* Limits describes the maximum amount of compute resources allowed.
* More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
* +optional
* </pre>
*
* <code>map<string, .chalk.pubsub.v1.PodStatusPubSub.Quantity> limits = 1 [json_name = "limits"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity getLimitsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity> map =
internalGetLimits().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int REQUESTS_FIELD_NUMBER = 2;
private static final class RequestsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity> defaultEntry =
com.google.protobuf.MapEntry
.<java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity>newDefaultInstance(
ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_ResourceRequirements_RequestsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity.getDefaultInstance());
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField<
java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity> requests_;
private com.google.protobuf.MapField<java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity>
internalGetRequests() {
if (requests_ == null) {
return com.google.protobuf.MapField.emptyMapField(
RequestsDefaultEntryHolder.defaultEntry);
}
return requests_;
}
public int getRequestsCount() {
return internalGetRequests().getMap().size();
}
/**
* <pre>
* Requests describes the minimum amount of compute resources required.
* If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
* otherwise to an implementation-defined value. Requests cannot exceed Limits.
* More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
* +optional
* </pre>
*
* <code>map<string, .chalk.pubsub.v1.PodStatusPubSub.Quantity> requests = 2 [json_name = "requests"];</code>
*/
@java.lang.Override
public boolean containsRequests(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetRequests().getMap().containsKey(key);
}
/**
* Use {@link #getRequestsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map<java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity> getRequests() {
return getRequestsMap();
}
/**
* <pre>
* Requests describes the minimum amount of compute resources required.
* If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
* otherwise to an implementation-defined value. Requests cannot exceed Limits.
* More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
* +optional
* </pre>
*
* <code>map<string, .chalk.pubsub.v1.PodStatusPubSub.Quantity> requests = 2 [json_name = "requests"];</code>
*/
@java.lang.Override
public java.util.Map<java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity> getRequestsMap() {
return internalGetRequests().getMap();
}
/**
* <pre>
* Requests describes the minimum amount of compute resources required.
* If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
* otherwise to an implementation-defined value. Requests cannot exceed Limits.
* More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
* +optional
* </pre>
*
* <code>map<string, .chalk.pubsub.v1.PodStatusPubSub.Quantity> requests = 2 [json_name = "requests"];</code>
*/
@java.lang.Override
public /* nullable */
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity getRequestsOrDefault(
java.lang.String key,
/* nullable */
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity> map =
internalGetRequests().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <pre>
* Requests describes the minimum amount of compute resources required.
* If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
* otherwise to an implementation-defined value. Requests cannot exceed Limits.
* More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
* +optional
* </pre>
*
* <code>map<string, .chalk.pubsub.v1.PodStatusPubSub.Quantity> requests = 2 [json_name = "requests"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity getRequestsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity> map =
internalGetRequests().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
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 {
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetLimits(),
LimitsDefaultEntryHolder.defaultEntry,
1);
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetRequests(),
RequestsDefaultEntryHolder.defaultEntry,
2);
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (java.util.Map.Entry<java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity> entry
: internalGetLimits().getMap().entrySet()) {
com.google.protobuf.MapEntry<java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity>
limits__ = LimitsDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, limits__);
}
for (java.util.Map.Entry<java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity> entry
: internalGetRequests().getMap().entrySet()) {
com.google.protobuf.MapEntry<java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity>
requests__ = RequestsDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, requests__);
}
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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements other = (ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements) obj;
if (!internalGetLimits().equals(
other.internalGetLimits())) return false;
if (!internalGetRequests().equals(
other.internalGetRequests())) 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 (!internalGetLimits().getMap().isEmpty()) {
hash = (37 * hash) + LIMITS_FIELD_NUMBER;
hash = (53 * hash) + internalGetLimits().hashCode();
}
if (!internalGetRequests().getMap().isEmpty()) {
hash = (37 * hash) + REQUESTS_FIELD_NUMBER;
hash = (53 * hash) + internalGetRequests().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements 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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements 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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements 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(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements)
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirementsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_ResourceRequirements_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 1:
return internalGetLimits();
case 2:
return internalGetRequests();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
int number) {
switch (number) {
case 1:
return internalGetMutableLimits();
case 2:
return internalGetMutableRequests();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_ResourceRequirements_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements.class, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements.Builder.class);
}
// Construct using ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
internalGetMutableLimits().clear();
internalGetMutableRequests().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_ResourceRequirements_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements getDefaultInstanceForType() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements build() {
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements buildPartial() {
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements result = new ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.limits_ = internalGetLimits().build(LimitsDefaultEntryHolder.defaultEntry);
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.requests_ = internalGetRequests().build(RequestsDefaultEntryHolder.defaultEntry);
}
}
@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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements) {
return mergeFrom((ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements other) {
if (other == ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements.getDefaultInstance()) return this;
internalGetMutableLimits().mergeFrom(
other.internalGetLimits());
bitField0_ |= 0x00000001;
internalGetMutableRequests().mergeFrom(
other.internalGetRequests());
bitField0_ |= 0x00000002;
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.MapEntry<java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity>
limits__ = input.readMessage(
LimitsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableLimits().ensureBuilderMap().put(
limits__.getKey(), limits__.getValue());
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
com.google.protobuf.MapEntry<java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity>
requests__ = input.readMessage(
RequestsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableRequests().ensureBuilderMap().put(
requests__.getKey(), requests__.getValue());
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private static final class LimitsConverter implements com.google.protobuf.MapFieldBuilder.Converter<java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.QuantityOrBuilder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity> {
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity build(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.QuantityOrBuilder val) {
if (val instanceof ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity) { return (ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity) val; }
return ((ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity.Builder) val).build();
}
@java.lang.Override
public com.google.protobuf.MapEntry<java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity> defaultEntry() {
return LimitsDefaultEntryHolder.defaultEntry;
}
};
private static final LimitsConverter limitsConverter = new LimitsConverter();
private com.google.protobuf.MapFieldBuilder<
java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.QuantityOrBuilder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity.Builder> limits_;
private com.google.protobuf.MapFieldBuilder<java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.QuantityOrBuilder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity.Builder>
internalGetLimits() {
if (limits_ == null) {
return new com.google.protobuf.MapFieldBuilder<>(limitsConverter);
}
return limits_;
}
private com.google.protobuf.MapFieldBuilder<java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.QuantityOrBuilder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity.Builder>
internalGetMutableLimits() {
if (limits_ == null) {
limits_ = new com.google.protobuf.MapFieldBuilder<>(limitsConverter);
}
bitField0_ |= 0x00000001;
onChanged();
return limits_;
}
public int getLimitsCount() {
return internalGetLimits().ensureBuilderMap().size();
}
/**
* <pre>
* Limits describes the maximum amount of compute resources allowed.
* More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
* +optional
* </pre>
*
* <code>map<string, .chalk.pubsub.v1.PodStatusPubSub.Quantity> limits = 1 [json_name = "limits"];</code>
*/
@java.lang.Override
public boolean containsLimits(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetLimits().ensureBuilderMap().containsKey(key);
}
/**
* Use {@link #getLimitsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map<java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity> getLimits() {
return getLimitsMap();
}
/**
* <pre>
* Limits describes the maximum amount of compute resources allowed.
* More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
* +optional
* </pre>
*
* <code>map<string, .chalk.pubsub.v1.PodStatusPubSub.Quantity> limits = 1 [json_name = "limits"];</code>
*/
@java.lang.Override
public java.util.Map<java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity> getLimitsMap() {
return internalGetLimits().getImmutableMap();
}
/**
* <pre>
* Limits describes the maximum amount of compute resources allowed.
* More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
* +optional
* </pre>
*
* <code>map<string, .chalk.pubsub.v1.PodStatusPubSub.Quantity> limits = 1 [json_name = "limits"];</code>
*/
@java.lang.Override
public /* nullable */
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity getLimitsOrDefault(
java.lang.String key,
/* nullable */
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.QuantityOrBuilder> map = internalGetMutableLimits().ensureBuilderMap();
return map.containsKey(key) ? limitsConverter.build(map.get(key)) : defaultValue;
}
/**
* <pre>
* Limits describes the maximum amount of compute resources allowed.
* More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
* +optional
* </pre>
*
* <code>map<string, .chalk.pubsub.v1.PodStatusPubSub.Quantity> limits = 1 [json_name = "limits"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity getLimitsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.QuantityOrBuilder> map = internalGetMutableLimits().ensureBuilderMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return limitsConverter.build(map.get(key));
}
public Builder clearLimits() {
bitField0_ = (bitField0_ & ~0x00000001);
internalGetMutableLimits().clear();
return this;
}
/**
* <pre>
* Limits describes the maximum amount of compute resources allowed.
* More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
* +optional
* </pre>
*
* <code>map<string, .chalk.pubsub.v1.PodStatusPubSub.Quantity> limits = 1 [json_name = "limits"];</code>
*/
public Builder removeLimits(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableLimits().ensureBuilderMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map<java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity>
getMutableLimits() {
bitField0_ |= 0x00000001;
return internalGetMutableLimits().ensureMessageMap();
}
/**
* <pre>
* Limits describes the maximum amount of compute resources allowed.
* More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
* +optional
* </pre>
*
* <code>map<string, .chalk.pubsub.v1.PodStatusPubSub.Quantity> limits = 1 [json_name = "limits"];</code>
*/
public Builder putLimits(
java.lang.String key,
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) { throw new NullPointerException("map value"); }
internalGetMutableLimits().ensureBuilderMap()
.put(key, value);
bitField0_ |= 0x00000001;
return this;
}
/**
* <pre>
* Limits describes the maximum amount of compute resources allowed.
* More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
* +optional
* </pre>
*
* <code>map<string, .chalk.pubsub.v1.PodStatusPubSub.Quantity> limits = 1 [json_name = "limits"];</code>
*/
public Builder putAllLimits(
java.util.Map<java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity> values) {
for (java.util.Map.Entry<java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity> e : values.entrySet()) {
if (e.getKey() == null || e.getValue() == null) {
throw new NullPointerException();
}
}
internalGetMutableLimits().ensureBuilderMap()
.putAll(values);
bitField0_ |= 0x00000001;
return this;
}
/**
* <pre>
* Limits describes the maximum amount of compute resources allowed.
* More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
* +optional
* </pre>
*
* <code>map<string, .chalk.pubsub.v1.PodStatusPubSub.Quantity> limits = 1 [json_name = "limits"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity.Builder putLimitsBuilderIfAbsent(
java.lang.String key) {
java.util.Map<java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.QuantityOrBuilder> builderMap = internalGetMutableLimits().ensureBuilderMap();
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.QuantityOrBuilder entry = builderMap.get(key);
if (entry == null) {
entry = ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity.newBuilder();
builderMap.put(key, entry);
}
if (entry instanceof ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity) {
entry = ((ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity) entry).toBuilder();
builderMap.put(key, entry);
}
return (ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity.Builder) entry;
}
private static final class RequestsConverter implements com.google.protobuf.MapFieldBuilder.Converter<java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.QuantityOrBuilder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity> {
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity build(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.QuantityOrBuilder val) {
if (val instanceof ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity) { return (ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity) val; }
return ((ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity.Builder) val).build();
}
@java.lang.Override
public com.google.protobuf.MapEntry<java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity> defaultEntry() {
return RequestsDefaultEntryHolder.defaultEntry;
}
};
private static final RequestsConverter requestsConverter = new RequestsConverter();
private com.google.protobuf.MapFieldBuilder<
java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.QuantityOrBuilder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity.Builder> requests_;
private com.google.protobuf.MapFieldBuilder<java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.QuantityOrBuilder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity.Builder>
internalGetRequests() {
if (requests_ == null) {
return new com.google.protobuf.MapFieldBuilder<>(requestsConverter);
}
return requests_;
}
private com.google.protobuf.MapFieldBuilder<java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.QuantityOrBuilder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity.Builder>
internalGetMutableRequests() {
if (requests_ == null) {
requests_ = new com.google.protobuf.MapFieldBuilder<>(requestsConverter);
}
bitField0_ |= 0x00000002;
onChanged();
return requests_;
}
public int getRequestsCount() {
return internalGetRequests().ensureBuilderMap().size();
}
/**
* <pre>
* Requests describes the minimum amount of compute resources required.
* If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
* otherwise to an implementation-defined value. Requests cannot exceed Limits.
* More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
* +optional
* </pre>
*
* <code>map<string, .chalk.pubsub.v1.PodStatusPubSub.Quantity> requests = 2 [json_name = "requests"];</code>
*/
@java.lang.Override
public boolean containsRequests(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetRequests().ensureBuilderMap().containsKey(key);
}
/**
* Use {@link #getRequestsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map<java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity> getRequests() {
return getRequestsMap();
}
/**
* <pre>
* Requests describes the minimum amount of compute resources required.
* If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
* otherwise to an implementation-defined value. Requests cannot exceed Limits.
* More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
* +optional
* </pre>
*
* <code>map<string, .chalk.pubsub.v1.PodStatusPubSub.Quantity> requests = 2 [json_name = "requests"];</code>
*/
@java.lang.Override
public java.util.Map<java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity> getRequestsMap() {
return internalGetRequests().getImmutableMap();
}
/**
* <pre>
* Requests describes the minimum amount of compute resources required.
* If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
* otherwise to an implementation-defined value. Requests cannot exceed Limits.
* More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
* +optional
* </pre>
*
* <code>map<string, .chalk.pubsub.v1.PodStatusPubSub.Quantity> requests = 2 [json_name = "requests"];</code>
*/
@java.lang.Override
public /* nullable */
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity getRequestsOrDefault(
java.lang.String key,
/* nullable */
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.QuantityOrBuilder> map = internalGetMutableRequests().ensureBuilderMap();
return map.containsKey(key) ? requestsConverter.build(map.get(key)) : defaultValue;
}
/**
* <pre>
* Requests describes the minimum amount of compute resources required.
* If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
* otherwise to an implementation-defined value. Requests cannot exceed Limits.
* More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
* +optional
* </pre>
*
* <code>map<string, .chalk.pubsub.v1.PodStatusPubSub.Quantity> requests = 2 [json_name = "requests"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity getRequestsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.QuantityOrBuilder> map = internalGetMutableRequests().ensureBuilderMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return requestsConverter.build(map.get(key));
}
public Builder clearRequests() {
bitField0_ = (bitField0_ & ~0x00000002);
internalGetMutableRequests().clear();
return this;
}
/**
* <pre>
* Requests describes the minimum amount of compute resources required.
* If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
* otherwise to an implementation-defined value. Requests cannot exceed Limits.
* More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
* +optional
* </pre>
*
* <code>map<string, .chalk.pubsub.v1.PodStatusPubSub.Quantity> requests = 2 [json_name = "requests"];</code>
*/
public Builder removeRequests(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableRequests().ensureBuilderMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map<java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity>
getMutableRequests() {
bitField0_ |= 0x00000002;
return internalGetMutableRequests().ensureMessageMap();
}
/**
* <pre>
* Requests describes the minimum amount of compute resources required.
* If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
* otherwise to an implementation-defined value. Requests cannot exceed Limits.
* More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
* +optional
* </pre>
*
* <code>map<string, .chalk.pubsub.v1.PodStatusPubSub.Quantity> requests = 2 [json_name = "requests"];</code>
*/
public Builder putRequests(
java.lang.String key,
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) { throw new NullPointerException("map value"); }
internalGetMutableRequests().ensureBuilderMap()
.put(key, value);
bitField0_ |= 0x00000002;
return this;
}
/**
* <pre>
* Requests describes the minimum amount of compute resources required.
* If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
* otherwise to an implementation-defined value. Requests cannot exceed Limits.
* More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
* +optional
* </pre>
*
* <code>map<string, .chalk.pubsub.v1.PodStatusPubSub.Quantity> requests = 2 [json_name = "requests"];</code>
*/
public Builder putAllRequests(
java.util.Map<java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity> values) {
for (java.util.Map.Entry<java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity> e : values.entrySet()) {
if (e.getKey() == null || e.getValue() == null) {
throw new NullPointerException();
}
}
internalGetMutableRequests().ensureBuilderMap()
.putAll(values);
bitField0_ |= 0x00000002;
return this;
}
/**
* <pre>
* Requests describes the minimum amount of compute resources required.
* If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
* otherwise to an implementation-defined value. Requests cannot exceed Limits.
* More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
* +optional
* </pre>
*
* <code>map<string, .chalk.pubsub.v1.PodStatusPubSub.Quantity> requests = 2 [json_name = "requests"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity.Builder putRequestsBuilderIfAbsent(
java.lang.String key) {
java.util.Map<java.lang.String, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.QuantityOrBuilder> builderMap = internalGetMutableRequests().ensureBuilderMap();
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.QuantityOrBuilder entry = builderMap.get(key);
if (entry == null) {
entry = ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity.newBuilder();
builderMap.put(key, entry);
}
if (entry instanceof ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity) {
entry = ((ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity) entry).toBuilder();
builderMap.put(key, entry);
}
return (ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Quantity.Builder) entry;
}
@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:chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements)
}
// @@protoc_insertion_point(class_scope:chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements)
private static final ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements();
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<ResourceRequirements>
PARSER = new com.google.protobuf.AbstractParser<ResourceRequirements>() {
@java.lang.Override
public ResourceRequirements 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<ResourceRequirements> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<ResourceRequirements> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PodConditionOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.pubsub.v1.PodStatusPubSub.PodCondition)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* Type is the type of the condition.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
* </pre>
*
* <code>string type = 1 [json_name = "type"];</code>
* @return The type.
*/
java.lang.String getType();
/**
* <pre>
* Type is the type of the condition.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
* </pre>
*
* <code>string type = 1 [json_name = "type"];</code>
* @return The bytes for type.
*/
com.google.protobuf.ByteString
getTypeBytes();
/**
* <pre>
* Status is the status of the condition.
* Can be True, False, Unknown.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
* </pre>
*
* <code>string status = 2 [json_name = "status"];</code>
* @return The status.
*/
java.lang.String getStatus();
/**
* <pre>
* Status is the status of the condition.
* Can be True, False, Unknown.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
* </pre>
*
* <code>string status = 2 [json_name = "status"];</code>
* @return The bytes for status.
*/
com.google.protobuf.ByteString
getStatusBytes();
/**
* <pre>
* Last time we probed the condition.
* +optional
* </pre>
*
* <code>int64 last_probe_time = 3 [json_name = "lastProbeTime", (.gen_bq_schema.bigquery) = { ... }</code>
* @return The lastProbeTime.
*/
long getLastProbeTime();
/**
* <pre>
* Last time the condition transitioned from one status to another.
* +optional
* </pre>
*
* <code>int64 last_transition_time = 4 [json_name = "lastTransitionTime", (.gen_bq_schema.bigquery) = { ... }</code>
* @return The lastTransitionTime.
*/
long getLastTransitionTime();
/**
* <pre>
* Unique, one-word, CamelCase reason for the condition's last transition.
* +optional
* </pre>
*
* <code>optional string reason = 5 [json_name = "reason"];</code>
* @return Whether the reason field is set.
*/
boolean hasReason();
/**
* <pre>
* Unique, one-word, CamelCase reason for the condition's last transition.
* +optional
* </pre>
*
* <code>optional string reason = 5 [json_name = "reason"];</code>
* @return The reason.
*/
java.lang.String getReason();
/**
* <pre>
* Unique, one-word, CamelCase reason for the condition's last transition.
* +optional
* </pre>
*
* <code>optional string reason = 5 [json_name = "reason"];</code>
* @return The bytes for reason.
*/
com.google.protobuf.ByteString
getReasonBytes();
/**
* <pre>
* Human-readable message indicating details about last transition.
* +optional
* </pre>
*
* <code>optional string message = 6 [json_name = "message"];</code>
* @return Whether the message field is set.
*/
boolean hasMessage();
/**
* <pre>
* Human-readable message indicating details about last transition.
* +optional
* </pre>
*
* <code>optional string message = 6 [json_name = "message"];</code>
* @return The message.
*/
java.lang.String getMessage();
/**
* <pre>
* Human-readable message indicating details about last transition.
* +optional
* </pre>
*
* <code>optional string message = 6 [json_name = "message"];</code>
* @return The bytes for message.
*/
com.google.protobuf.ByteString
getMessageBytes();
}
/**
* <pre>
* PodCondition contains details for the current condition of this pod.
* </pre>
*
* Protobuf type {@code chalk.pubsub.v1.PodStatusPubSub.PodCondition}
*/
public static final class PodCondition extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.pubsub.v1.PodStatusPubSub.PodCondition)
PodConditionOrBuilder {
private static final long serialVersionUID = 0L;
// Use PodCondition.newBuilder() to construct.
private PodCondition(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private PodCondition() {
type_ = "";
status_ = "";
reason_ = "";
message_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PodCondition();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_PodCondition_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_PodCondition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition.class, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition.Builder.class);
}
private int bitField0_;
public static final int TYPE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object type_ = "";
/**
* <pre>
* Type is the type of the condition.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
* </pre>
*
* <code>string type = 1 [json_name = "type"];</code>
* @return The type.
*/
@java.lang.Override
public java.lang.String getType() {
java.lang.Object ref = type_;
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();
type_ = s;
return s;
}
}
/**
* <pre>
* Type is the type of the condition.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
* </pre>
*
* <code>string type = 1 [json_name = "type"];</code>
* @return The bytes for type.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STATUS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object status_ = "";
/**
* <pre>
* Status is the status of the condition.
* Can be True, False, Unknown.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
* </pre>
*
* <code>string status = 2 [json_name = "status"];</code>
* @return The status.
*/
@java.lang.Override
public java.lang.String getStatus() {
java.lang.Object ref = status_;
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();
status_ = s;
return s;
}
}
/**
* <pre>
* Status is the status of the condition.
* Can be True, False, Unknown.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
* </pre>
*
* <code>string status = 2 [json_name = "status"];</code>
* @return The bytes for status.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStatusBytes() {
java.lang.Object ref = status_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
status_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LAST_PROBE_TIME_FIELD_NUMBER = 3;
private long lastProbeTime_ = 0L;
/**
* <pre>
* Last time we probed the condition.
* +optional
* </pre>
*
* <code>int64 last_probe_time = 3 [json_name = "lastProbeTime", (.gen_bq_schema.bigquery) = { ... }</code>
* @return The lastProbeTime.
*/
@java.lang.Override
public long getLastProbeTime() {
return lastProbeTime_;
}
public static final int LAST_TRANSITION_TIME_FIELD_NUMBER = 4;
private long lastTransitionTime_ = 0L;
/**
* <pre>
* Last time the condition transitioned from one status to another.
* +optional
* </pre>
*
* <code>int64 last_transition_time = 4 [json_name = "lastTransitionTime", (.gen_bq_schema.bigquery) = { ... }</code>
* @return The lastTransitionTime.
*/
@java.lang.Override
public long getLastTransitionTime() {
return lastTransitionTime_;
}
public static final int REASON_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object reason_ = "";
/**
* <pre>
* Unique, one-word, CamelCase reason for the condition's last transition.
* +optional
* </pre>
*
* <code>optional string reason = 5 [json_name = "reason"];</code>
* @return Whether the reason field is set.
*/
@java.lang.Override
public boolean hasReason() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <pre>
* Unique, one-word, CamelCase reason for the condition's last transition.
* +optional
* </pre>
*
* <code>optional string reason = 5 [json_name = "reason"];</code>
* @return The reason.
*/
@java.lang.Override
public java.lang.String getReason() {
java.lang.Object ref = reason_;
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();
reason_ = s;
return s;
}
}
/**
* <pre>
* Unique, one-word, CamelCase reason for the condition's last transition.
* +optional
* </pre>
*
* <code>optional string reason = 5 [json_name = "reason"];</code>
* @return The bytes for reason.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getReasonBytes() {
java.lang.Object ref = reason_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
reason_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MESSAGE_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private volatile java.lang.Object message_ = "";
/**
* <pre>
* Human-readable message indicating details about last transition.
* +optional
* </pre>
*
* <code>optional string message = 6 [json_name = "message"];</code>
* @return Whether the message field is set.
*/
@java.lang.Override
public boolean hasMessage() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* <pre>
* Human-readable message indicating details about last transition.
* +optional
* </pre>
*
* <code>optional string message = 6 [json_name = "message"];</code>
* @return The message.
*/
@java.lang.Override
public java.lang.String getMessage() {
java.lang.Object ref = message_;
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();
message_ = s;
return s;
}
}
/**
* <pre>
* Human-readable message indicating details about last transition.
* +optional
* </pre>
*
* <code>optional string message = 6 [json_name = "message"];</code>
* @return The bytes for message.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = 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(type_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(status_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, status_);
}
if (lastProbeTime_ != 0L) {
output.writeInt64(3, lastProbeTime_);
}
if (lastTransitionTime_ != 0L) {
output.writeInt64(4, lastTransitionTime_);
}
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, reason_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, message_);
}
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(type_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(status_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, status_);
}
if (lastProbeTime_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, lastProbeTime_);
}
if (lastTransitionTime_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, lastTransitionTime_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, reason_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, message_);
}
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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition other = (ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition) obj;
if (!getType()
.equals(other.getType())) return false;
if (!getStatus()
.equals(other.getStatus())) return false;
if (getLastProbeTime()
!= other.getLastProbeTime()) return false;
if (getLastTransitionTime()
!= other.getLastTransitionTime()) return false;
if (hasReason() != other.hasReason()) return false;
if (hasReason()) {
if (!getReason()
.equals(other.getReason())) return false;
}
if (hasMessage() != other.hasMessage()) return false;
if (hasMessage()) {
if (!getMessage()
.equals(other.getMessage())) 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) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType().hashCode();
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + getStatus().hashCode();
hash = (37 * hash) + LAST_PROBE_TIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLastProbeTime());
hash = (37 * hash) + LAST_TRANSITION_TIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLastTransitionTime());
if (hasReason()) {
hash = (37 * hash) + REASON_FIELD_NUMBER;
hash = (53 * hash) + getReason().hashCode();
}
if (hasMessage()) {
hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getMessage().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition 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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition 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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition 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(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition 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;
}
/**
* <pre>
* PodCondition contains details for the current condition of this pod.
* </pre>
*
* Protobuf type {@code chalk.pubsub.v1.PodStatusPubSub.PodCondition}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.pubsub.v1.PodStatusPubSub.PodCondition)
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodConditionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_PodCondition_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_PodCondition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition.class, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition.Builder.class);
}
// Construct using ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
type_ = "";
status_ = "";
lastProbeTime_ = 0L;
lastTransitionTime_ = 0L;
reason_ = "";
message_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_PodCondition_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition getDefaultInstanceForType() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition build() {
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition buildPartial() {
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition result = new ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.type_ = type_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.status_ = status_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.lastProbeTime_ = lastProbeTime_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.lastTransitionTime_ = lastTransitionTime_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000010) != 0)) {
result.reason_ = reason_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.message_ = message_;
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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition) {
return mergeFrom((ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition other) {
if (other == ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition.getDefaultInstance()) return this;
if (!other.getType().isEmpty()) {
type_ = other.type_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getStatus().isEmpty()) {
status_ = other.status_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.getLastProbeTime() != 0L) {
setLastProbeTime(other.getLastProbeTime());
}
if (other.getLastTransitionTime() != 0L) {
setLastTransitionTime(other.getLastTransitionTime());
}
if (other.hasReason()) {
reason_ = other.reason_;
bitField0_ |= 0x00000010;
onChanged();
}
if (other.hasMessage()) {
message_ = other.message_;
bitField0_ |= 0x00000020;
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: {
type_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
status_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 24: {
lastProbeTime_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
lastTransitionTime_ = input.readInt64();
bitField0_ |= 0x00000008;
break;
} // case 32
case 42: {
reason_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
message_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 50
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object type_ = "";
/**
* <pre>
* Type is the type of the condition.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
* </pre>
*
* <code>string type = 1 [json_name = "type"];</code>
* @return The type.
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
type_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* Type is the type of the condition.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
* </pre>
*
* <code>string type = 1 [json_name = "type"];</code>
* @return The bytes for type.
*/
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* Type is the type of the condition.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
* </pre>
*
* <code>string type = 1 [json_name = "type"];</code>
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
type_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <pre>
* Type is the type of the condition.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
* </pre>
*
* <code>string type = 1 [json_name = "type"];</code>
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = getDefaultInstance().getType();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* <pre>
* Type is the type of the condition.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
* </pre>
*
* <code>string type = 1 [json_name = "type"];</code>
* @param value The bytes for type to set.
* @return This builder for chaining.
*/
public Builder setTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
type_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object status_ = "";
/**
* <pre>
* Status is the status of the condition.
* Can be True, False, Unknown.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
* </pre>
*
* <code>string status = 2 [json_name = "status"];</code>
* @return The status.
*/
public java.lang.String getStatus() {
java.lang.Object ref = status_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
status_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* Status is the status of the condition.
* Can be True, False, Unknown.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
* </pre>
*
* <code>string status = 2 [json_name = "status"];</code>
* @return The bytes for status.
*/
public com.google.protobuf.ByteString
getStatusBytes() {
java.lang.Object ref = status_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
status_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* Status is the status of the condition.
* Can be True, False, Unknown.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
* </pre>
*
* <code>string status = 2 [json_name = "status"];</code>
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
status_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <pre>
* Status is the status of the condition.
* Can be True, False, Unknown.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
* </pre>
*
* <code>string status = 2 [json_name = "status"];</code>
* @return This builder for chaining.
*/
public Builder clearStatus() {
status_ = getDefaultInstance().getStatus();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* <pre>
* Status is the status of the condition.
* Can be True, False, Unknown.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
* </pre>
*
* <code>string status = 2 [json_name = "status"];</code>
* @param value The bytes for status to set.
* @return This builder for chaining.
*/
public Builder setStatusBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
status_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private long lastProbeTime_ ;
/**
* <pre>
* Last time we probed the condition.
* +optional
* </pre>
*
* <code>int64 last_probe_time = 3 [json_name = "lastProbeTime", (.gen_bq_schema.bigquery) = { ... }</code>
* @return The lastProbeTime.
*/
@java.lang.Override
public long getLastProbeTime() {
return lastProbeTime_;
}
/**
* <pre>
* Last time we probed the condition.
* +optional
* </pre>
*
* <code>int64 last_probe_time = 3 [json_name = "lastProbeTime", (.gen_bq_schema.bigquery) = { ... }</code>
* @param value The lastProbeTime to set.
* @return This builder for chaining.
*/
public Builder setLastProbeTime(long value) {
lastProbeTime_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* <pre>
* Last time we probed the condition.
* +optional
* </pre>
*
* <code>int64 last_probe_time = 3 [json_name = "lastProbeTime", (.gen_bq_schema.bigquery) = { ... }</code>
* @return This builder for chaining.
*/
public Builder clearLastProbeTime() {
bitField0_ = (bitField0_ & ~0x00000004);
lastProbeTime_ = 0L;
onChanged();
return this;
}
private long lastTransitionTime_ ;
/**
* <pre>
* Last time the condition transitioned from one status to another.
* +optional
* </pre>
*
* <code>int64 last_transition_time = 4 [json_name = "lastTransitionTime", (.gen_bq_schema.bigquery) = { ... }</code>
* @return The lastTransitionTime.
*/
@java.lang.Override
public long getLastTransitionTime() {
return lastTransitionTime_;
}
/**
* <pre>
* Last time the condition transitioned from one status to another.
* +optional
* </pre>
*
* <code>int64 last_transition_time = 4 [json_name = "lastTransitionTime", (.gen_bq_schema.bigquery) = { ... }</code>
* @param value The lastTransitionTime to set.
* @return This builder for chaining.
*/
public Builder setLastTransitionTime(long value) {
lastTransitionTime_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* <pre>
* Last time the condition transitioned from one status to another.
* +optional
* </pre>
*
* <code>int64 last_transition_time = 4 [json_name = "lastTransitionTime", (.gen_bq_schema.bigquery) = { ... }</code>
* @return This builder for chaining.
*/
public Builder clearLastTransitionTime() {
bitField0_ = (bitField0_ & ~0x00000008);
lastTransitionTime_ = 0L;
onChanged();
return this;
}
private java.lang.Object reason_ = "";
/**
* <pre>
* Unique, one-word, CamelCase reason for the condition's last transition.
* +optional
* </pre>
*
* <code>optional string reason = 5 [json_name = "reason"];</code>
* @return Whether the reason field is set.
*/
public boolean hasReason() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* <pre>
* Unique, one-word, CamelCase reason for the condition's last transition.
* +optional
* </pre>
*
* <code>optional string reason = 5 [json_name = "reason"];</code>
* @return The reason.
*/
public java.lang.String getReason() {
java.lang.Object ref = reason_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
reason_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* Unique, one-word, CamelCase reason for the condition's last transition.
* +optional
* </pre>
*
* <code>optional string reason = 5 [json_name = "reason"];</code>
* @return The bytes for reason.
*/
public com.google.protobuf.ByteString
getReasonBytes() {
java.lang.Object ref = reason_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
reason_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* Unique, one-word, CamelCase reason for the condition's last transition.
* +optional
* </pre>
*
* <code>optional string reason = 5 [json_name = "reason"];</code>
* @param value The reason to set.
* @return This builder for chaining.
*/
public Builder setReason(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
reason_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* <pre>
* Unique, one-word, CamelCase reason for the condition's last transition.
* +optional
* </pre>
*
* <code>optional string reason = 5 [json_name = "reason"];</code>
* @return This builder for chaining.
*/
public Builder clearReason() {
reason_ = getDefaultInstance().getReason();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
* <pre>
* Unique, one-word, CamelCase reason for the condition's last transition.
* +optional
* </pre>
*
* <code>optional string reason = 5 [json_name = "reason"];</code>
* @param value The bytes for reason to set.
* @return This builder for chaining.
*/
public Builder setReasonBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
reason_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private java.lang.Object message_ = "";
/**
* <pre>
* Human-readable message indicating details about last transition.
* +optional
* </pre>
*
* <code>optional string message = 6 [json_name = "message"];</code>
* @return Whether the message field is set.
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* <pre>
* Human-readable message indicating details about last transition.
* +optional
* </pre>
*
* <code>optional string message = 6 [json_name = "message"];</code>
* @return The message.
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
message_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* Human-readable message indicating details about last transition.
* +optional
* </pre>
*
* <code>optional string message = 6 [json_name = "message"];</code>
* @return The bytes for message.
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* Human-readable message indicating details about last transition.
* +optional
* </pre>
*
* <code>optional string message = 6 [json_name = "message"];</code>
* @param value The message to set.
* @return This builder for chaining.
*/
public Builder setMessage(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
message_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* <pre>
* Human-readable message indicating details about last transition.
* +optional
* </pre>
*
* <code>optional string message = 6 [json_name = "message"];</code>
* @return This builder for chaining.
*/
public Builder clearMessage() {
message_ = getDefaultInstance().getMessage();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
* <pre>
* Human-readable message indicating details about last transition.
* +optional
* </pre>
*
* <code>optional string message = 6 [json_name = "message"];</code>
* @param value The bytes for message to set.
* @return This builder for chaining.
*/
public Builder setMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
message_ = value;
bitField0_ |= 0x00000020;
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:chalk.pubsub.v1.PodStatusPubSub.PodCondition)
}
// @@protoc_insertion_point(class_scope:chalk.pubsub.v1.PodStatusPubSub.PodCondition)
private static final ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition();
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<PodCondition>
PARSER = new com.google.protobuf.AbstractParser<PodCondition>() {
@java.lang.Override
public PodCondition 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<PodCondition> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<PodCondition> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface HostIPOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.pubsub.v1.PodStatusPubSub.HostIP)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* IP is the IP address assigned to the host
* </pre>
*
* <code>optional string ip = 1 [json_name = "ip"];</code>
* @return Whether the ip field is set.
*/
boolean hasIp();
/**
* <pre>
* IP is the IP address assigned to the host
* </pre>
*
* <code>optional string ip = 1 [json_name = "ip"];</code>
* @return The ip.
*/
java.lang.String getIp();
/**
* <pre>
* IP is the IP address assigned to the host
* </pre>
*
* <code>optional string ip = 1 [json_name = "ip"];</code>
* @return The bytes for ip.
*/
com.google.protobuf.ByteString
getIpBytes();
}
/**
* <pre>
* HostIP represents a single IP address allocated to the host.
* </pre>
*
* Protobuf type {@code chalk.pubsub.v1.PodStatusPubSub.HostIP}
*/
public static final class HostIP extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.pubsub.v1.PodStatusPubSub.HostIP)
HostIPOrBuilder {
private static final long serialVersionUID = 0L;
// Use HostIP.newBuilder() to construct.
private HostIP(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private HostIP() {
ip_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new HostIP();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_HostIP_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_HostIP_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP.class, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP.Builder.class);
}
private int bitField0_;
public static final int IP_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object ip_ = "";
/**
* <pre>
* IP is the IP address assigned to the host
* </pre>
*
* <code>optional string ip = 1 [json_name = "ip"];</code>
* @return Whether the ip field is set.
*/
@java.lang.Override
public boolean hasIp() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <pre>
* IP is the IP address assigned to the host
* </pre>
*
* <code>optional string ip = 1 [json_name = "ip"];</code>
* @return The ip.
*/
@java.lang.Override
public java.lang.String getIp() {
java.lang.Object ref = ip_;
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();
ip_ = s;
return s;
}
}
/**
* <pre>
* IP is the IP address assigned to the host
* </pre>
*
* <code>optional string ip = 1 [json_name = "ip"];</code>
* @return The bytes for ip.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIpBytes() {
java.lang.Object ref = ip_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
ip_ = 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 (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ip_);
}
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.GeneratedMessageV3.computeStringSize(1, ip_);
}
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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP other = (ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP) obj;
if (hasIp() != other.hasIp()) return false;
if (hasIp()) {
if (!getIp()
.equals(other.getIp())) 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 (hasIp()) {
hash = (37 * hash) + IP_FIELD_NUMBER;
hash = (53 * hash) + getIp().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP 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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP 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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP 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(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP 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;
}
/**
* <pre>
* HostIP represents a single IP address allocated to the host.
* </pre>
*
* Protobuf type {@code chalk.pubsub.v1.PodStatusPubSub.HostIP}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.pubsub.v1.PodStatusPubSub.HostIP)
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIPOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_HostIP_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_HostIP_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP.class, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP.Builder.class);
}
// Construct using ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
ip_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_HostIP_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP getDefaultInstanceForType() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP build() {
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP buildPartial() {
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP result = new ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.ip_ = ip_;
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP) {
return mergeFrom((ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP other) {
if (other == ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP.getDefaultInstance()) return this;
if (other.hasIp()) {
ip_ = other.ip_;
bitField0_ |= 0x00000001;
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: {
ip_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
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 ip_ = "";
/**
* <pre>
* IP is the IP address assigned to the host
* </pre>
*
* <code>optional string ip = 1 [json_name = "ip"];</code>
* @return Whether the ip field is set.
*/
public boolean hasIp() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <pre>
* IP is the IP address assigned to the host
* </pre>
*
* <code>optional string ip = 1 [json_name = "ip"];</code>
* @return The ip.
*/
public java.lang.String getIp() {
java.lang.Object ref = ip_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
ip_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* IP is the IP address assigned to the host
* </pre>
*
* <code>optional string ip = 1 [json_name = "ip"];</code>
* @return The bytes for ip.
*/
public com.google.protobuf.ByteString
getIpBytes() {
java.lang.Object ref = ip_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
ip_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* IP is the IP address assigned to the host
* </pre>
*
* <code>optional string ip = 1 [json_name = "ip"];</code>
* @param value The ip to set.
* @return This builder for chaining.
*/
public Builder setIp(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ip_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <pre>
* IP is the IP address assigned to the host
* </pre>
*
* <code>optional string ip = 1 [json_name = "ip"];</code>
* @return This builder for chaining.
*/
public Builder clearIp() {
ip_ = getDefaultInstance().getIp();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* <pre>
* IP is the IP address assigned to the host
* </pre>
*
* <code>optional string ip = 1 [json_name = "ip"];</code>
* @param value The bytes for ip to set.
* @return This builder for chaining.
*/
public Builder setIpBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ip_ = value;
bitField0_ |= 0x00000001;
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:chalk.pubsub.v1.PodStatusPubSub.HostIP)
}
// @@protoc_insertion_point(class_scope:chalk.pubsub.v1.PodStatusPubSub.HostIP)
private static final ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP();
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<HostIP>
PARSER = new com.google.protobuf.AbstractParser<HostIP>() {
@java.lang.Override
public HostIP 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<HostIP> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<HostIP> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PodStatusOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.pubsub.v1.PodStatusPubSub.PodStatus)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle.
* The conditions array, the reason and message fields, and the individual container status
* arrays contain more detail about the pod's status.
* There are five possible phase values:
*
* Pending: The pod has been accepted by the Kubernetes system, but one or more of the
* container images has not been created. This includes time before being scheduled as
* well as time spent downloading images over the network, which could take a while.
* Running: The pod has been bound to a node, and all of the containers have been created.
* At least one container is still running, or is in the process of starting or restarting.
* Succeeded: All containers in the pod have terminated in success, and will not be restarted.
* Failed: All containers in the pod have terminated, and at least one container has
* terminated in failure. The container either exited with non-zero status or was terminated
* by the system.
* Unknown: For some reason the state of the pod could not be obtained, typically due to an
* error in communicating with the host of the pod.
*
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase
* +optional
* </pre>
*
* <code>optional string phase = 1 [json_name = "phase"];</code>
* @return Whether the phase field is set.
*/
boolean hasPhase();
/**
* <pre>
* The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle.
* The conditions array, the reason and message fields, and the individual container status
* arrays contain more detail about the pod's status.
* There are five possible phase values:
*
* Pending: The pod has been accepted by the Kubernetes system, but one or more of the
* container images has not been created. This includes time before being scheduled as
* well as time spent downloading images over the network, which could take a while.
* Running: The pod has been bound to a node, and all of the containers have been created.
* At least one container is still running, or is in the process of starting or restarting.
* Succeeded: All containers in the pod have terminated in success, and will not be restarted.
* Failed: All containers in the pod have terminated, and at least one container has
* terminated in failure. The container either exited with non-zero status or was terminated
* by the system.
* Unknown: For some reason the state of the pod could not be obtained, typically due to an
* error in communicating with the host of the pod.
*
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase
* +optional
* </pre>
*
* <code>optional string phase = 1 [json_name = "phase"];</code>
* @return The phase.
*/
java.lang.String getPhase();
/**
* <pre>
* The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle.
* The conditions array, the reason and message fields, and the individual container status
* arrays contain more detail about the pod's status.
* There are five possible phase values:
*
* Pending: The pod has been accepted by the Kubernetes system, but one or more of the
* container images has not been created. This includes time before being scheduled as
* well as time spent downloading images over the network, which could take a while.
* Running: The pod has been bound to a node, and all of the containers have been created.
* At least one container is still running, or is in the process of starting or restarting.
* Succeeded: All containers in the pod have terminated in success, and will not be restarted.
* Failed: All containers in the pod have terminated, and at least one container has
* terminated in failure. The container either exited with non-zero status or was terminated
* by the system.
* Unknown: For some reason the state of the pod could not be obtained, typically due to an
* error in communicating with the host of the pod.
*
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase
* +optional
* </pre>
*
* <code>optional string phase = 1 [json_name = "phase"];</code>
* @return The bytes for phase.
*/
com.google.protobuf.ByteString
getPhaseBytes();
/**
* <pre>
* Current service state of pod.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
* +listType=map
* +listMapKey=type
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodCondition conditions = 2 [json_name = "conditions"];</code>
*/
java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition>
getConditionsList();
/**
* <pre>
* Current service state of pod.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
* +listType=map
* +listMapKey=type
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodCondition conditions = 2 [json_name = "conditions"];</code>
*/
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition getConditions(int index);
/**
* <pre>
* Current service state of pod.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
* +listType=map
* +listMapKey=type
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodCondition conditions = 2 [json_name = "conditions"];</code>
*/
int getConditionsCount();
/**
* <pre>
* Current service state of pod.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
* +listType=map
* +listMapKey=type
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodCondition conditions = 2 [json_name = "conditions"];</code>
*/
java.util.List<? extends ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodConditionOrBuilder>
getConditionsOrBuilderList();
/**
* <pre>
* Current service state of pod.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
* +listType=map
* +listMapKey=type
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodCondition conditions = 2 [json_name = "conditions"];</code>
*/
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodConditionOrBuilder getConditionsOrBuilder(
int index);
/**
* <pre>
* A human readable message indicating details about why the pod is in this condition.
* +optional
* </pre>
*
* <code>optional string message = 3 [json_name = "message"];</code>
* @return Whether the message field is set.
*/
boolean hasMessage();
/**
* <pre>
* A human readable message indicating details about why the pod is in this condition.
* +optional
* </pre>
*
* <code>optional string message = 3 [json_name = "message"];</code>
* @return The message.
*/
java.lang.String getMessage();
/**
* <pre>
* A human readable message indicating details about why the pod is in this condition.
* +optional
* </pre>
*
* <code>optional string message = 3 [json_name = "message"];</code>
* @return The bytes for message.
*/
com.google.protobuf.ByteString
getMessageBytes();
/**
* <pre>
* A brief CamelCase message indicating details about why the pod is in this state.
* e.g. 'Evicted'
* +optional
* </pre>
*
* <code>optional string reason = 4 [json_name = "reason"];</code>
* @return Whether the reason field is set.
*/
boolean hasReason();
/**
* <pre>
* A brief CamelCase message indicating details about why the pod is in this state.
* e.g. 'Evicted'
* +optional
* </pre>
*
* <code>optional string reason = 4 [json_name = "reason"];</code>
* @return The reason.
*/
java.lang.String getReason();
/**
* <pre>
* A brief CamelCase message indicating details about why the pod is in this state.
* e.g. 'Evicted'
* +optional
* </pre>
*
* <code>optional string reason = 4 [json_name = "reason"];</code>
* @return The bytes for reason.
*/
com.google.protobuf.ByteString
getReasonBytes();
/**
* <pre>
* nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be
* scheduled right away as preemption victims receive their graceful termination periods.
* This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide
* to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to
* give the resources on this node to a higher priority pod that is created after preemption.
* As a result, this field may be different than PodSpec.nodeName when the pod is
* scheduled.
* +optional
* </pre>
*
* <code>optional string nominated_node_name = 11 [json_name = "nominatedNodeName"];</code>
* @return Whether the nominatedNodeName field is set.
*/
boolean hasNominatedNodeName();
/**
* <pre>
* nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be
* scheduled right away as preemption victims receive their graceful termination periods.
* This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide
* to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to
* give the resources on this node to a higher priority pod that is created after preemption.
* As a result, this field may be different than PodSpec.nodeName when the pod is
* scheduled.
* +optional
* </pre>
*
* <code>optional string nominated_node_name = 11 [json_name = "nominatedNodeName"];</code>
* @return The nominatedNodeName.
*/
java.lang.String getNominatedNodeName();
/**
* <pre>
* nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be
* scheduled right away as preemption victims receive their graceful termination periods.
* This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide
* to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to
* give the resources on this node to a higher priority pod that is created after preemption.
* As a result, this field may be different than PodSpec.nodeName when the pod is
* scheduled.
* +optional
* </pre>
*
* <code>optional string nominated_node_name = 11 [json_name = "nominatedNodeName"];</code>
* @return The bytes for nominatedNodeName.
*/
com.google.protobuf.ByteString
getNominatedNodeNameBytes();
/**
* <pre>
* hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet.
* A pod can be assigned to a node that has a problem in kubelet which in turns mean that HostIP will
* not be updated even if there is a node is assigned to pod
* +optional
* </pre>
*
* <code>optional string host_ip = 5 [json_name = "hostIp"];</code>
* @return Whether the hostIp field is set.
*/
boolean hasHostIp();
/**
* <pre>
* hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet.
* A pod can be assigned to a node that has a problem in kubelet which in turns mean that HostIP will
* not be updated even if there is a node is assigned to pod
* +optional
* </pre>
*
* <code>optional string host_ip = 5 [json_name = "hostIp"];</code>
* @return The hostIp.
*/
java.lang.String getHostIp();
/**
* <pre>
* hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet.
* A pod can be assigned to a node that has a problem in kubelet which in turns mean that HostIP will
* not be updated even if there is a node is assigned to pod
* +optional
* </pre>
*
* <code>optional string host_ip = 5 [json_name = "hostIp"];</code>
* @return The bytes for hostIp.
*/
com.google.protobuf.ByteString
getHostIpBytes();
/**
* <pre>
* hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must
* match the hostIP field. This list is empty if the pod has not started yet.
* A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will
* not be updated even if there is a node is assigned to this pod.
* +optional
* +patchStrategy=merge
* +patchMergeKey=ip
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.HostIP host_ips = 16 [json_name = "hostIps"];</code>
*/
java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP>
getHostIpsList();
/**
* <pre>
* hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must
* match the hostIP field. This list is empty if the pod has not started yet.
* A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will
* not be updated even if there is a node is assigned to this pod.
* +optional
* +patchStrategy=merge
* +patchMergeKey=ip
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.HostIP host_ips = 16 [json_name = "hostIps"];</code>
*/
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP getHostIps(int index);
/**
* <pre>
* hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must
* match the hostIP field. This list is empty if the pod has not started yet.
* A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will
* not be updated even if there is a node is assigned to this pod.
* +optional
* +patchStrategy=merge
* +patchMergeKey=ip
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.HostIP host_ips = 16 [json_name = "hostIps"];</code>
*/
int getHostIpsCount();
/**
* <pre>
* hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must
* match the hostIP field. This list is empty if the pod has not started yet.
* A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will
* not be updated even if there is a node is assigned to this pod.
* +optional
* +patchStrategy=merge
* +patchMergeKey=ip
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.HostIP host_ips = 16 [json_name = "hostIps"];</code>
*/
java.util.List<? extends ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIPOrBuilder>
getHostIpsOrBuilderList();
/**
* <pre>
* hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must
* match the hostIP field. This list is empty if the pod has not started yet.
* A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will
* not be updated even if there is a node is assigned to this pod.
* +optional
* +patchStrategy=merge
* +patchMergeKey=ip
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.HostIP host_ips = 16 [json_name = "hostIps"];</code>
*/
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIPOrBuilder getHostIpsOrBuilder(
int index);
/**
* <pre>
* podIP address allocated to the pod. Routable at least within the cluster.
* Empty if not yet allocated.
* +optional
* </pre>
*
* <code>optional string pod_ip = 6 [json_name = "podIp"];</code>
* @return Whether the podIp field is set.
*/
boolean hasPodIp();
/**
* <pre>
* podIP address allocated to the pod. Routable at least within the cluster.
* Empty if not yet allocated.
* +optional
* </pre>
*
* <code>optional string pod_ip = 6 [json_name = "podIp"];</code>
* @return The podIp.
*/
java.lang.String getPodIp();
/**
* <pre>
* podIP address allocated to the pod. Routable at least within the cluster.
* Empty if not yet allocated.
* +optional
* </pre>
*
* <code>optional string pod_ip = 6 [json_name = "podIp"];</code>
* @return The bytes for podIp.
*/
com.google.protobuf.ByteString
getPodIpBytes();
/**
* <pre>
* RFC 3339 date and time at which the object was acknowledged by the Kubelet.
* This is before the Kubelet pulled the container image(s) for the pod.
* +optional
* </pre>
*
* <code>optional int64 start_time = 7 [json_name = "startTime", (.gen_bq_schema.bigquery) = { ... }</code>
* @return Whether the startTime field is set.
*/
boolean hasStartTime();
/**
* <pre>
* RFC 3339 date and time at which the object was acknowledged by the Kubelet.
* This is before the Kubelet pulled the container image(s) for the pod.
* +optional
* </pre>
*
* <code>optional int64 start_time = 7 [json_name = "startTime", (.gen_bq_schema.bigquery) = { ... }</code>
* @return The startTime.
*/
long getStartTime();
/**
* <pre>
* The list has one entry per init container in the manifest. The most recent successful
* init container will have ready = true, the most recently started container will have
* startTime set.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code>
*/
java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus>
getInitContainerStatusesList();
/**
* <pre>
* The list has one entry per init container in the manifest. The most recent successful
* init container will have ready = true, the most recently started container will have
* startTime set.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code>
*/
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus getInitContainerStatuses(int index);
/**
* <pre>
* The list has one entry per init container in the manifest. The most recent successful
* init container will have ready = true, the most recently started container will have
* startTime set.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code>
*/
int getInitContainerStatusesCount();
/**
* <pre>
* The list has one entry per init container in the manifest. The most recent successful
* init container will have ready = true, the most recently started container will have
* startTime set.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code>
*/
java.util.List<? extends ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatusOrBuilder>
getInitContainerStatusesOrBuilderList();
/**
* <pre>
* The list has one entry per init container in the manifest. The most recent successful
* init container will have ready = true, the most recently started container will have
* startTime set.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code>
*/
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatusOrBuilder getInitContainerStatusesOrBuilder(
int index);
/**
* <pre>
* The list has one entry per container in the manifest.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code>
*/
java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus>
getContainerStatusesList();
/**
* <pre>
* The list has one entry per container in the manifest.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code>
*/
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus getContainerStatuses(int index);
/**
* <pre>
* The list has one entry per container in the manifest.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code>
*/
int getContainerStatusesCount();
/**
* <pre>
* The list has one entry per container in the manifest.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code>
*/
java.util.List<? extends ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatusOrBuilder>
getContainerStatusesOrBuilderList();
/**
* <pre>
* The list has one entry per container in the manifest.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code>
*/
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatusOrBuilder getContainerStatusesOrBuilder(
int index);
/**
* <pre>
* The Quality of Service (QOS) classification assigned to the pod based on resource requirements
* See PodQOSClass type for available QOS classes
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes
* +optional
* </pre>
*
* <code>optional string qos_class = 9 [json_name = "qosClass"];</code>
* @return Whether the qosClass field is set.
*/
boolean hasQosClass();
/**
* <pre>
* The Quality of Service (QOS) classification assigned to the pod based on resource requirements
* See PodQOSClass type for available QOS classes
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes
* +optional
* </pre>
*
* <code>optional string qos_class = 9 [json_name = "qosClass"];</code>
* @return The qosClass.
*/
java.lang.String getQosClass();
/**
* <pre>
* The Quality of Service (QOS) classification assigned to the pod based on resource requirements
* See PodQOSClass type for available QOS classes
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes
* +optional
* </pre>
*
* <code>optional string qos_class = 9 [json_name = "qosClass"];</code>
* @return The bytes for qosClass.
*/
com.google.protobuf.ByteString
getQosClassBytes();
/**
* <pre>
* Status for any ephemeral containers that have run in this pod.
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code>
*/
java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus>
getEphemeralContainerStatusesList();
/**
* <pre>
* Status for any ephemeral containers that have run in this pod.
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code>
*/
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus getEphemeralContainerStatuses(int index);
/**
* <pre>
* Status for any ephemeral containers that have run in this pod.
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code>
*/
int getEphemeralContainerStatusesCount();
/**
* <pre>
* Status for any ephemeral containers that have run in this pod.
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code>
*/
java.util.List<? extends ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatusOrBuilder>
getEphemeralContainerStatusesOrBuilderList();
/**
* <pre>
* Status for any ephemeral containers that have run in this pod.
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code>
*/
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatusOrBuilder getEphemeralContainerStatusesOrBuilder(
int index);
/**
* <pre>
* Status of resources resize desired for pod's containers.
* It is empty if no resources resize is pending.
* Any changes to container resources will automatically set this to "Proposed"
* +featureGate=InPlacePodVerticalScaling
* +optional
* </pre>
*
* <code>optional string resize = 14 [json_name = "resize"];</code>
* @return Whether the resize field is set.
*/
boolean hasResize();
/**
* <pre>
* Status of resources resize desired for pod's containers.
* It is empty if no resources resize is pending.
* Any changes to container resources will automatically set this to "Proposed"
* +featureGate=InPlacePodVerticalScaling
* +optional
* </pre>
*
* <code>optional string resize = 14 [json_name = "resize"];</code>
* @return The resize.
*/
java.lang.String getResize();
/**
* <pre>
* Status of resources resize desired for pod's containers.
* It is empty if no resources resize is pending.
* Any changes to container resources will automatically set this to "Proposed"
* +featureGate=InPlacePodVerticalScaling
* +optional
* </pre>
*
* <code>optional string resize = 14 [json_name = "resize"];</code>
* @return The bytes for resize.
*/
com.google.protobuf.ByteString
getResizeBytes();
}
/**
* <pre>
* PodStatus represents information about the status of a pod. Status may trail the actual
* state of a system, especially if the node that hosts the pod cannot contact the control
* plane.
* </pre>
*
* Protobuf type {@code chalk.pubsub.v1.PodStatusPubSub.PodStatus}
*/
public static final class PodStatus extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.pubsub.v1.PodStatusPubSub.PodStatus)
PodStatusOrBuilder {
private static final long serialVersionUID = 0L;
// Use PodStatus.newBuilder() to construct.
private PodStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private PodStatus() {
phase_ = "";
conditions_ = java.util.Collections.emptyList();
message_ = "";
reason_ = "";
nominatedNodeName_ = "";
hostIp_ = "";
hostIps_ = java.util.Collections.emptyList();
podIp_ = "";
initContainerStatuses_ = java.util.Collections.emptyList();
containerStatuses_ = java.util.Collections.emptyList();
qosClass_ = "";
ephemeralContainerStatuses_ = java.util.Collections.emptyList();
resize_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PodStatus();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_PodStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_PodStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus.class, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus.Builder.class);
}
private int bitField0_;
public static final int PHASE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object phase_ = "";
/**
* <pre>
* The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle.
* The conditions array, the reason and message fields, and the individual container status
* arrays contain more detail about the pod's status.
* There are five possible phase values:
*
* Pending: The pod has been accepted by the Kubernetes system, but one or more of the
* container images has not been created. This includes time before being scheduled as
* well as time spent downloading images over the network, which could take a while.
* Running: The pod has been bound to a node, and all of the containers have been created.
* At least one container is still running, or is in the process of starting or restarting.
* Succeeded: All containers in the pod have terminated in success, and will not be restarted.
* Failed: All containers in the pod have terminated, and at least one container has
* terminated in failure. The container either exited with non-zero status or was terminated
* by the system.
* Unknown: For some reason the state of the pod could not be obtained, typically due to an
* error in communicating with the host of the pod.
*
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase
* +optional
* </pre>
*
* <code>optional string phase = 1 [json_name = "phase"];</code>
* @return Whether the phase field is set.
*/
@java.lang.Override
public boolean hasPhase() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <pre>
* The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle.
* The conditions array, the reason and message fields, and the individual container status
* arrays contain more detail about the pod's status.
* There are five possible phase values:
*
* Pending: The pod has been accepted by the Kubernetes system, but one or more of the
* container images has not been created. This includes time before being scheduled as
* well as time spent downloading images over the network, which could take a while.
* Running: The pod has been bound to a node, and all of the containers have been created.
* At least one container is still running, or is in the process of starting or restarting.
* Succeeded: All containers in the pod have terminated in success, and will not be restarted.
* Failed: All containers in the pod have terminated, and at least one container has
* terminated in failure. The container either exited with non-zero status or was terminated
* by the system.
* Unknown: For some reason the state of the pod could not be obtained, typically due to an
* error in communicating with the host of the pod.
*
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase
* +optional
* </pre>
*
* <code>optional string phase = 1 [json_name = "phase"];</code>
* @return The phase.
*/
@java.lang.Override
public java.lang.String getPhase() {
java.lang.Object ref = phase_;
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();
phase_ = s;
return s;
}
}
/**
* <pre>
* The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle.
* The conditions array, the reason and message fields, and the individual container status
* arrays contain more detail about the pod's status.
* There are five possible phase values:
*
* Pending: The pod has been accepted by the Kubernetes system, but one or more of the
* container images has not been created. This includes time before being scheduled as
* well as time spent downloading images over the network, which could take a while.
* Running: The pod has been bound to a node, and all of the containers have been created.
* At least one container is still running, or is in the process of starting or restarting.
* Succeeded: All containers in the pod have terminated in success, and will not be restarted.
* Failed: All containers in the pod have terminated, and at least one container has
* terminated in failure. The container either exited with non-zero status or was terminated
* by the system.
* Unknown: For some reason the state of the pod could not be obtained, typically due to an
* error in communicating with the host of the pod.
*
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase
* +optional
* </pre>
*
* <code>optional string phase = 1 [json_name = "phase"];</code>
* @return The bytes for phase.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPhaseBytes() {
java.lang.Object ref = phase_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
phase_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CONDITIONS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition> conditions_;
/**
* <pre>
* Current service state of pod.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
* +listType=map
* +listMapKey=type
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodCondition conditions = 2 [json_name = "conditions"];</code>
*/
@java.lang.Override
public java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition> getConditionsList() {
return conditions_;
}
/**
* <pre>
* Current service state of pod.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
* +listType=map
* +listMapKey=type
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodCondition conditions = 2 [json_name = "conditions"];</code>
*/
@java.lang.Override
public java.util.List<? extends ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodConditionOrBuilder>
getConditionsOrBuilderList() {
return conditions_;
}
/**
* <pre>
* Current service state of pod.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
* +listType=map
* +listMapKey=type
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodCondition conditions = 2 [json_name = "conditions"];</code>
*/
@java.lang.Override
public int getConditionsCount() {
return conditions_.size();
}
/**
* <pre>
* Current service state of pod.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
* +listType=map
* +listMapKey=type
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodCondition conditions = 2 [json_name = "conditions"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition getConditions(int index) {
return conditions_.get(index);
}
/**
* <pre>
* Current service state of pod.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
* +listType=map
* +listMapKey=type
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodCondition conditions = 2 [json_name = "conditions"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodConditionOrBuilder getConditionsOrBuilder(
int index) {
return conditions_.get(index);
}
public static final int MESSAGE_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object message_ = "";
/**
* <pre>
* A human readable message indicating details about why the pod is in this condition.
* +optional
* </pre>
*
* <code>optional string message = 3 [json_name = "message"];</code>
* @return Whether the message field is set.
*/
@java.lang.Override
public boolean hasMessage() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* <pre>
* A human readable message indicating details about why the pod is in this condition.
* +optional
* </pre>
*
* <code>optional string message = 3 [json_name = "message"];</code>
* @return The message.
*/
@java.lang.Override
public java.lang.String getMessage() {
java.lang.Object ref = message_;
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();
message_ = s;
return s;
}
}
/**
* <pre>
* A human readable message indicating details about why the pod is in this condition.
* +optional
* </pre>
*
* <code>optional string message = 3 [json_name = "message"];</code>
* @return The bytes for message.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REASON_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object reason_ = "";
/**
* <pre>
* A brief CamelCase message indicating details about why the pod is in this state.
* e.g. 'Evicted'
* +optional
* </pre>
*
* <code>optional string reason = 4 [json_name = "reason"];</code>
* @return Whether the reason field is set.
*/
@java.lang.Override
public boolean hasReason() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* <pre>
* A brief CamelCase message indicating details about why the pod is in this state.
* e.g. 'Evicted'
* +optional
* </pre>
*
* <code>optional string reason = 4 [json_name = "reason"];</code>
* @return The reason.
*/
@java.lang.Override
public java.lang.String getReason() {
java.lang.Object ref = reason_;
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();
reason_ = s;
return s;
}
}
/**
* <pre>
* A brief CamelCase message indicating details about why the pod is in this state.
* e.g. 'Evicted'
* +optional
* </pre>
*
* <code>optional string reason = 4 [json_name = "reason"];</code>
* @return The bytes for reason.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getReasonBytes() {
java.lang.Object ref = reason_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
reason_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NOMINATED_NODE_NAME_FIELD_NUMBER = 11;
@SuppressWarnings("serial")
private volatile java.lang.Object nominatedNodeName_ = "";
/**
* <pre>
* nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be
* scheduled right away as preemption victims receive their graceful termination periods.
* This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide
* to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to
* give the resources on this node to a higher priority pod that is created after preemption.
* As a result, this field may be different than PodSpec.nodeName when the pod is
* scheduled.
* +optional
* </pre>
*
* <code>optional string nominated_node_name = 11 [json_name = "nominatedNodeName"];</code>
* @return Whether the nominatedNodeName field is set.
*/
@java.lang.Override
public boolean hasNominatedNodeName() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* <pre>
* nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be
* scheduled right away as preemption victims receive their graceful termination periods.
* This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide
* to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to
* give the resources on this node to a higher priority pod that is created after preemption.
* As a result, this field may be different than PodSpec.nodeName when the pod is
* scheduled.
* +optional
* </pre>
*
* <code>optional string nominated_node_name = 11 [json_name = "nominatedNodeName"];</code>
* @return The nominatedNodeName.
*/
@java.lang.Override
public java.lang.String getNominatedNodeName() {
java.lang.Object ref = nominatedNodeName_;
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();
nominatedNodeName_ = s;
return s;
}
}
/**
* <pre>
* nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be
* scheduled right away as preemption victims receive their graceful termination periods.
* This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide
* to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to
* give the resources on this node to a higher priority pod that is created after preemption.
* As a result, this field may be different than PodSpec.nodeName when the pod is
* scheduled.
* +optional
* </pre>
*
* <code>optional string nominated_node_name = 11 [json_name = "nominatedNodeName"];</code>
* @return The bytes for nominatedNodeName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNominatedNodeNameBytes() {
java.lang.Object ref = nominatedNodeName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nominatedNodeName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int HOST_IP_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object hostIp_ = "";
/**
* <pre>
* hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet.
* A pod can be assigned to a node that has a problem in kubelet which in turns mean that HostIP will
* not be updated even if there is a node is assigned to pod
* +optional
* </pre>
*
* <code>optional string host_ip = 5 [json_name = "hostIp"];</code>
* @return Whether the hostIp field is set.
*/
@java.lang.Override
public boolean hasHostIp() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* <pre>
* hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet.
* A pod can be assigned to a node that has a problem in kubelet which in turns mean that HostIP will
* not be updated even if there is a node is assigned to pod
* +optional
* </pre>
*
* <code>optional string host_ip = 5 [json_name = "hostIp"];</code>
* @return The hostIp.
*/
@java.lang.Override
public java.lang.String getHostIp() {
java.lang.Object ref = hostIp_;
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();
hostIp_ = s;
return s;
}
}
/**
* <pre>
* hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet.
* A pod can be assigned to a node that has a problem in kubelet which in turns mean that HostIP will
* not be updated even if there is a node is assigned to pod
* +optional
* </pre>
*
* <code>optional string host_ip = 5 [json_name = "hostIp"];</code>
* @return The bytes for hostIp.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHostIpBytes() {
java.lang.Object ref = hostIp_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hostIp_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int HOST_IPS_FIELD_NUMBER = 16;
@SuppressWarnings("serial")
private java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP> hostIps_;
/**
* <pre>
* hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must
* match the hostIP field. This list is empty if the pod has not started yet.
* A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will
* not be updated even if there is a node is assigned to this pod.
* +optional
* +patchStrategy=merge
* +patchMergeKey=ip
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.HostIP host_ips = 16 [json_name = "hostIps"];</code>
*/
@java.lang.Override
public java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP> getHostIpsList() {
return hostIps_;
}
/**
* <pre>
* hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must
* match the hostIP field. This list is empty if the pod has not started yet.
* A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will
* not be updated even if there is a node is assigned to this pod.
* +optional
* +patchStrategy=merge
* +patchMergeKey=ip
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.HostIP host_ips = 16 [json_name = "hostIps"];</code>
*/
@java.lang.Override
public java.util.List<? extends ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIPOrBuilder>
getHostIpsOrBuilderList() {
return hostIps_;
}
/**
* <pre>
* hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must
* match the hostIP field. This list is empty if the pod has not started yet.
* A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will
* not be updated even if there is a node is assigned to this pod.
* +optional
* +patchStrategy=merge
* +patchMergeKey=ip
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.HostIP host_ips = 16 [json_name = "hostIps"];</code>
*/
@java.lang.Override
public int getHostIpsCount() {
return hostIps_.size();
}
/**
* <pre>
* hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must
* match the hostIP field. This list is empty if the pod has not started yet.
* A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will
* not be updated even if there is a node is assigned to this pod.
* +optional
* +patchStrategy=merge
* +patchMergeKey=ip
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.HostIP host_ips = 16 [json_name = "hostIps"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP getHostIps(int index) {
return hostIps_.get(index);
}
/**
* <pre>
* hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must
* match the hostIP field. This list is empty if the pod has not started yet.
* A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will
* not be updated even if there is a node is assigned to this pod.
* +optional
* +patchStrategy=merge
* +patchMergeKey=ip
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.HostIP host_ips = 16 [json_name = "hostIps"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIPOrBuilder getHostIpsOrBuilder(
int index) {
return hostIps_.get(index);
}
public static final int POD_IP_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private volatile java.lang.Object podIp_ = "";
/**
* <pre>
* podIP address allocated to the pod. Routable at least within the cluster.
* Empty if not yet allocated.
* +optional
* </pre>
*
* <code>optional string pod_ip = 6 [json_name = "podIp"];</code>
* @return Whether the podIp field is set.
*/
@java.lang.Override
public boolean hasPodIp() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* <pre>
* podIP address allocated to the pod. Routable at least within the cluster.
* Empty if not yet allocated.
* +optional
* </pre>
*
* <code>optional string pod_ip = 6 [json_name = "podIp"];</code>
* @return The podIp.
*/
@java.lang.Override
public java.lang.String getPodIp() {
java.lang.Object ref = podIp_;
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();
podIp_ = s;
return s;
}
}
/**
* <pre>
* podIP address allocated to the pod. Routable at least within the cluster.
* Empty if not yet allocated.
* +optional
* </pre>
*
* <code>optional string pod_ip = 6 [json_name = "podIp"];</code>
* @return The bytes for podIp.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPodIpBytes() {
java.lang.Object ref = podIp_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
podIp_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int START_TIME_FIELD_NUMBER = 7;
private long startTime_ = 0L;
/**
* <pre>
* RFC 3339 date and time at which the object was acknowledged by the Kubelet.
* This is before the Kubelet pulled the container image(s) for the pod.
* +optional
* </pre>
*
* <code>optional int64 start_time = 7 [json_name = "startTime", (.gen_bq_schema.bigquery) = { ... }</code>
* @return Whether the startTime field is set.
*/
@java.lang.Override
public boolean hasStartTime() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* <pre>
* RFC 3339 date and time at which the object was acknowledged by the Kubelet.
* This is before the Kubelet pulled the container image(s) for the pod.
* +optional
* </pre>
*
* <code>optional int64 start_time = 7 [json_name = "startTime", (.gen_bq_schema.bigquery) = { ... }</code>
* @return The startTime.
*/
@java.lang.Override
public long getStartTime() {
return startTime_;
}
public static final int INIT_CONTAINER_STATUSES_FIELD_NUMBER = 10;
@SuppressWarnings("serial")
private java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus> initContainerStatuses_;
/**
* <pre>
* The list has one entry per init container in the manifest. The most recent successful
* init container will have ready = true, the most recently started container will have
* startTime set.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code>
*/
@java.lang.Override
public java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus> getInitContainerStatusesList() {
return initContainerStatuses_;
}
/**
* <pre>
* The list has one entry per init container in the manifest. The most recent successful
* init container will have ready = true, the most recently started container will have
* startTime set.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code>
*/
@java.lang.Override
public java.util.List<? extends ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatusOrBuilder>
getInitContainerStatusesOrBuilderList() {
return initContainerStatuses_;
}
/**
* <pre>
* The list has one entry per init container in the manifest. The most recent successful
* init container will have ready = true, the most recently started container will have
* startTime set.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code>
*/
@java.lang.Override
public int getInitContainerStatusesCount() {
return initContainerStatuses_.size();
}
/**
* <pre>
* The list has one entry per init container in the manifest. The most recent successful
* init container will have ready = true, the most recently started container will have
* startTime set.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus getInitContainerStatuses(int index) {
return initContainerStatuses_.get(index);
}
/**
* <pre>
* The list has one entry per init container in the manifest. The most recent successful
* init container will have ready = true, the most recently started container will have
* startTime set.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatusOrBuilder getInitContainerStatusesOrBuilder(
int index) {
return initContainerStatuses_.get(index);
}
public static final int CONTAINER_STATUSES_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus> containerStatuses_;
/**
* <pre>
* The list has one entry per container in the manifest.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code>
*/
@java.lang.Override
public java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus> getContainerStatusesList() {
return containerStatuses_;
}
/**
* <pre>
* The list has one entry per container in the manifest.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code>
*/
@java.lang.Override
public java.util.List<? extends ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatusOrBuilder>
getContainerStatusesOrBuilderList() {
return containerStatuses_;
}
/**
* <pre>
* The list has one entry per container in the manifest.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code>
*/
@java.lang.Override
public int getContainerStatusesCount() {
return containerStatuses_.size();
}
/**
* <pre>
* The list has one entry per container in the manifest.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus getContainerStatuses(int index) {
return containerStatuses_.get(index);
}
/**
* <pre>
* The list has one entry per container in the manifest.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatusOrBuilder getContainerStatusesOrBuilder(
int index) {
return containerStatuses_.get(index);
}
public static final int QOS_CLASS_FIELD_NUMBER = 9;
@SuppressWarnings("serial")
private volatile java.lang.Object qosClass_ = "";
/**
* <pre>
* The Quality of Service (QOS) classification assigned to the pod based on resource requirements
* See PodQOSClass type for available QOS classes
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes
* +optional
* </pre>
*
* <code>optional string qos_class = 9 [json_name = "qosClass"];</code>
* @return Whether the qosClass field is set.
*/
@java.lang.Override
public boolean hasQosClass() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* <pre>
* The Quality of Service (QOS) classification assigned to the pod based on resource requirements
* See PodQOSClass type for available QOS classes
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes
* +optional
* </pre>
*
* <code>optional string qos_class = 9 [json_name = "qosClass"];</code>
* @return The qosClass.
*/
@java.lang.Override
public java.lang.String getQosClass() {
java.lang.Object ref = qosClass_;
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();
qosClass_ = s;
return s;
}
}
/**
* <pre>
* The Quality of Service (QOS) classification assigned to the pod based on resource requirements
* See PodQOSClass type for available QOS classes
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes
* +optional
* </pre>
*
* <code>optional string qos_class = 9 [json_name = "qosClass"];</code>
* @return The bytes for qosClass.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getQosClassBytes() {
java.lang.Object ref = qosClass_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
qosClass_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EPHEMERAL_CONTAINER_STATUSES_FIELD_NUMBER = 13;
@SuppressWarnings("serial")
private java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus> ephemeralContainerStatuses_;
/**
* <pre>
* Status for any ephemeral containers that have run in this pod.
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code>
*/
@java.lang.Override
public java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus> getEphemeralContainerStatusesList() {
return ephemeralContainerStatuses_;
}
/**
* <pre>
* Status for any ephemeral containers that have run in this pod.
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code>
*/
@java.lang.Override
public java.util.List<? extends ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatusOrBuilder>
getEphemeralContainerStatusesOrBuilderList() {
return ephemeralContainerStatuses_;
}
/**
* <pre>
* Status for any ephemeral containers that have run in this pod.
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code>
*/
@java.lang.Override
public int getEphemeralContainerStatusesCount() {
return ephemeralContainerStatuses_.size();
}
/**
* <pre>
* Status for any ephemeral containers that have run in this pod.
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus getEphemeralContainerStatuses(int index) {
return ephemeralContainerStatuses_.get(index);
}
/**
* <pre>
* Status for any ephemeral containers that have run in this pod.
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatusOrBuilder getEphemeralContainerStatusesOrBuilder(
int index) {
return ephemeralContainerStatuses_.get(index);
}
public static final int RESIZE_FIELD_NUMBER = 14;
@SuppressWarnings("serial")
private volatile java.lang.Object resize_ = "";
/**
* <pre>
* Status of resources resize desired for pod's containers.
* It is empty if no resources resize is pending.
* Any changes to container resources will automatically set this to "Proposed"
* +featureGate=InPlacePodVerticalScaling
* +optional
* </pre>
*
* <code>optional string resize = 14 [json_name = "resize"];</code>
* @return Whether the resize field is set.
*/
@java.lang.Override
public boolean hasResize() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* <pre>
* Status of resources resize desired for pod's containers.
* It is empty if no resources resize is pending.
* Any changes to container resources will automatically set this to "Proposed"
* +featureGate=InPlacePodVerticalScaling
* +optional
* </pre>
*
* <code>optional string resize = 14 [json_name = "resize"];</code>
* @return The resize.
*/
@java.lang.Override
public java.lang.String getResize() {
java.lang.Object ref = resize_;
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();
resize_ = s;
return s;
}
}
/**
* <pre>
* Status of resources resize desired for pod's containers.
* It is empty if no resources resize is pending.
* Any changes to container resources will automatically set this to "Proposed"
* +featureGate=InPlacePodVerticalScaling
* +optional
* </pre>
*
* <code>optional string resize = 14 [json_name = "resize"];</code>
* @return The bytes for resize.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getResizeBytes() {
java.lang.Object ref = resize_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resize_ = 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 (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, phase_);
}
for (int i = 0; i < conditions_.size(); i++) {
output.writeMessage(2, conditions_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, message_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, reason_);
}
if (((bitField0_ & 0x00000010) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, hostIp_);
}
if (((bitField0_ & 0x00000020) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, podIp_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeInt64(7, startTime_);
}
for (int i = 0; i < containerStatuses_.size(); i++) {
output.writeMessage(8, containerStatuses_.get(i));
}
if (((bitField0_ & 0x00000080) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, qosClass_);
}
for (int i = 0; i < initContainerStatuses_.size(); i++) {
output.writeMessage(10, initContainerStatuses_.get(i));
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, nominatedNodeName_);
}
for (int i = 0; i < ephemeralContainerStatuses_.size(); i++) {
output.writeMessage(13, ephemeralContainerStatuses_.get(i));
}
if (((bitField0_ & 0x00000100) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 14, resize_);
}
for (int i = 0; i < hostIps_.size(); i++) {
output.writeMessage(16, hostIps_.get(i));
}
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.GeneratedMessageV3.computeStringSize(1, phase_);
}
for (int i = 0; i < conditions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, conditions_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, message_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, reason_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, hostIp_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, podIp_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(7, startTime_);
}
for (int i = 0; i < containerStatuses_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, containerStatuses_.get(i));
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, qosClass_);
}
for (int i = 0; i < initContainerStatuses_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, initContainerStatuses_.get(i));
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, nominatedNodeName_);
}
for (int i = 0; i < ephemeralContainerStatuses_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, ephemeralContainerStatuses_.get(i));
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, resize_);
}
for (int i = 0; i < hostIps_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(16, hostIps_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus other = (ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus) obj;
if (hasPhase() != other.hasPhase()) return false;
if (hasPhase()) {
if (!getPhase()
.equals(other.getPhase())) return false;
}
if (!getConditionsList()
.equals(other.getConditionsList())) return false;
if (hasMessage() != other.hasMessage()) return false;
if (hasMessage()) {
if (!getMessage()
.equals(other.getMessage())) return false;
}
if (hasReason() != other.hasReason()) return false;
if (hasReason()) {
if (!getReason()
.equals(other.getReason())) return false;
}
if (hasNominatedNodeName() != other.hasNominatedNodeName()) return false;
if (hasNominatedNodeName()) {
if (!getNominatedNodeName()
.equals(other.getNominatedNodeName())) return false;
}
if (hasHostIp() != other.hasHostIp()) return false;
if (hasHostIp()) {
if (!getHostIp()
.equals(other.getHostIp())) return false;
}
if (!getHostIpsList()
.equals(other.getHostIpsList())) return false;
if (hasPodIp() != other.hasPodIp()) return false;
if (hasPodIp()) {
if (!getPodIp()
.equals(other.getPodIp())) return false;
}
if (hasStartTime() != other.hasStartTime()) return false;
if (hasStartTime()) {
if (getStartTime()
!= other.getStartTime()) return false;
}
if (!getInitContainerStatusesList()
.equals(other.getInitContainerStatusesList())) return false;
if (!getContainerStatusesList()
.equals(other.getContainerStatusesList())) return false;
if (hasQosClass() != other.hasQosClass()) return false;
if (hasQosClass()) {
if (!getQosClass()
.equals(other.getQosClass())) return false;
}
if (!getEphemeralContainerStatusesList()
.equals(other.getEphemeralContainerStatusesList())) return false;
if (hasResize() != other.hasResize()) return false;
if (hasResize()) {
if (!getResize()
.equals(other.getResize())) 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 (hasPhase()) {
hash = (37 * hash) + PHASE_FIELD_NUMBER;
hash = (53 * hash) + getPhase().hashCode();
}
if (getConditionsCount() > 0) {
hash = (37 * hash) + CONDITIONS_FIELD_NUMBER;
hash = (53 * hash) + getConditionsList().hashCode();
}
if (hasMessage()) {
hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getMessage().hashCode();
}
if (hasReason()) {
hash = (37 * hash) + REASON_FIELD_NUMBER;
hash = (53 * hash) + getReason().hashCode();
}
if (hasNominatedNodeName()) {
hash = (37 * hash) + NOMINATED_NODE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getNominatedNodeName().hashCode();
}
if (hasHostIp()) {
hash = (37 * hash) + HOST_IP_FIELD_NUMBER;
hash = (53 * hash) + getHostIp().hashCode();
}
if (getHostIpsCount() > 0) {
hash = (37 * hash) + HOST_IPS_FIELD_NUMBER;
hash = (53 * hash) + getHostIpsList().hashCode();
}
if (hasPodIp()) {
hash = (37 * hash) + POD_IP_FIELD_NUMBER;
hash = (53 * hash) + getPodIp().hashCode();
}
if (hasStartTime()) {
hash = (37 * hash) + START_TIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStartTime());
}
if (getInitContainerStatusesCount() > 0) {
hash = (37 * hash) + INIT_CONTAINER_STATUSES_FIELD_NUMBER;
hash = (53 * hash) + getInitContainerStatusesList().hashCode();
}
if (getContainerStatusesCount() > 0) {
hash = (37 * hash) + CONTAINER_STATUSES_FIELD_NUMBER;
hash = (53 * hash) + getContainerStatusesList().hashCode();
}
if (hasQosClass()) {
hash = (37 * hash) + QOS_CLASS_FIELD_NUMBER;
hash = (53 * hash) + getQosClass().hashCode();
}
if (getEphemeralContainerStatusesCount() > 0) {
hash = (37 * hash) + EPHEMERAL_CONTAINER_STATUSES_FIELD_NUMBER;
hash = (53 * hash) + getEphemeralContainerStatusesList().hashCode();
}
if (hasResize()) {
hash = (37 * hash) + RESIZE_FIELD_NUMBER;
hash = (53 * hash) + getResize().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus 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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus 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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus 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(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus 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;
}
/**
* <pre>
* PodStatus represents information about the status of a pod. Status may trail the actual
* state of a system, especially if the node that hosts the pod cannot contact the control
* plane.
* </pre>
*
* Protobuf type {@code chalk.pubsub.v1.PodStatusPubSub.PodStatus}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.pubsub.v1.PodStatusPubSub.PodStatus)
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatusOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_PodStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_PodStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus.class, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus.Builder.class);
}
// Construct using ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
phase_ = "";
if (conditionsBuilder_ == null) {
conditions_ = java.util.Collections.emptyList();
} else {
conditions_ = null;
conditionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
message_ = "";
reason_ = "";
nominatedNodeName_ = "";
hostIp_ = "";
if (hostIpsBuilder_ == null) {
hostIps_ = java.util.Collections.emptyList();
} else {
hostIps_ = null;
hostIpsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
podIp_ = "";
startTime_ = 0L;
if (initContainerStatusesBuilder_ == null) {
initContainerStatuses_ = java.util.Collections.emptyList();
} else {
initContainerStatuses_ = null;
initContainerStatusesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000200);
if (containerStatusesBuilder_ == null) {
containerStatuses_ = java.util.Collections.emptyList();
} else {
containerStatuses_ = null;
containerStatusesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000400);
qosClass_ = "";
if (ephemeralContainerStatusesBuilder_ == null) {
ephemeralContainerStatuses_ = java.util.Collections.emptyList();
} else {
ephemeralContainerStatuses_ = null;
ephemeralContainerStatusesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00001000);
resize_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_PodStatus_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus getDefaultInstanceForType() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus build() {
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus buildPartial() {
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus result = new ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus result) {
if (conditionsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
conditions_ = java.util.Collections.unmodifiableList(conditions_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.conditions_ = conditions_;
} else {
result.conditions_ = conditionsBuilder_.build();
}
if (hostIpsBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0)) {
hostIps_ = java.util.Collections.unmodifiableList(hostIps_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.hostIps_ = hostIps_;
} else {
result.hostIps_ = hostIpsBuilder_.build();
}
if (initContainerStatusesBuilder_ == null) {
if (((bitField0_ & 0x00000200) != 0)) {
initContainerStatuses_ = java.util.Collections.unmodifiableList(initContainerStatuses_);
bitField0_ = (bitField0_ & ~0x00000200);
}
result.initContainerStatuses_ = initContainerStatuses_;
} else {
result.initContainerStatuses_ = initContainerStatusesBuilder_.build();
}
if (containerStatusesBuilder_ == null) {
if (((bitField0_ & 0x00000400) != 0)) {
containerStatuses_ = java.util.Collections.unmodifiableList(containerStatuses_);
bitField0_ = (bitField0_ & ~0x00000400);
}
result.containerStatuses_ = containerStatuses_;
} else {
result.containerStatuses_ = containerStatusesBuilder_.build();
}
if (ephemeralContainerStatusesBuilder_ == null) {
if (((bitField0_ & 0x00001000) != 0)) {
ephemeralContainerStatuses_ = java.util.Collections.unmodifiableList(ephemeralContainerStatuses_);
bitField0_ = (bitField0_ & ~0x00001000);
}
result.ephemeralContainerStatuses_ = ephemeralContainerStatuses_;
} else {
result.ephemeralContainerStatuses_ = ephemeralContainerStatusesBuilder_.build();
}
}
private void buildPartial0(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.phase_ = phase_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.message_ = message_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.reason_ = reason_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.nominatedNodeName_ = nominatedNodeName_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.hostIp_ = hostIp_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.podIp_ = podIp_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.startTime_ = startTime_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.qosClass_ = qosClass_;
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.resize_ = resize_;
to_bitField0_ |= 0x00000100;
}
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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus) {
return mergeFrom((ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus other) {
if (other == ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus.getDefaultInstance()) return this;
if (other.hasPhase()) {
phase_ = other.phase_;
bitField0_ |= 0x00000001;
onChanged();
}
if (conditionsBuilder_ == null) {
if (!other.conditions_.isEmpty()) {
if (conditions_.isEmpty()) {
conditions_ = other.conditions_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureConditionsIsMutable();
conditions_.addAll(other.conditions_);
}
onChanged();
}
} else {
if (!other.conditions_.isEmpty()) {
if (conditionsBuilder_.isEmpty()) {
conditionsBuilder_.dispose();
conditionsBuilder_ = null;
conditions_ = other.conditions_;
bitField0_ = (bitField0_ & ~0x00000002);
conditionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getConditionsFieldBuilder() : null;
} else {
conditionsBuilder_.addAllMessages(other.conditions_);
}
}
}
if (other.hasMessage()) {
message_ = other.message_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasReason()) {
reason_ = other.reason_;
bitField0_ |= 0x00000008;
onChanged();
}
if (other.hasNominatedNodeName()) {
nominatedNodeName_ = other.nominatedNodeName_;
bitField0_ |= 0x00000010;
onChanged();
}
if (other.hasHostIp()) {
hostIp_ = other.hostIp_;
bitField0_ |= 0x00000020;
onChanged();
}
if (hostIpsBuilder_ == null) {
if (!other.hostIps_.isEmpty()) {
if (hostIps_.isEmpty()) {
hostIps_ = other.hostIps_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureHostIpsIsMutable();
hostIps_.addAll(other.hostIps_);
}
onChanged();
}
} else {
if (!other.hostIps_.isEmpty()) {
if (hostIpsBuilder_.isEmpty()) {
hostIpsBuilder_.dispose();
hostIpsBuilder_ = null;
hostIps_ = other.hostIps_;
bitField0_ = (bitField0_ & ~0x00000040);
hostIpsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getHostIpsFieldBuilder() : null;
} else {
hostIpsBuilder_.addAllMessages(other.hostIps_);
}
}
}
if (other.hasPodIp()) {
podIp_ = other.podIp_;
bitField0_ |= 0x00000080;
onChanged();
}
if (other.hasStartTime()) {
setStartTime(other.getStartTime());
}
if (initContainerStatusesBuilder_ == null) {
if (!other.initContainerStatuses_.isEmpty()) {
if (initContainerStatuses_.isEmpty()) {
initContainerStatuses_ = other.initContainerStatuses_;
bitField0_ = (bitField0_ & ~0x00000200);
} else {
ensureInitContainerStatusesIsMutable();
initContainerStatuses_.addAll(other.initContainerStatuses_);
}
onChanged();
}
} else {
if (!other.initContainerStatuses_.isEmpty()) {
if (initContainerStatusesBuilder_.isEmpty()) {
initContainerStatusesBuilder_.dispose();
initContainerStatusesBuilder_ = null;
initContainerStatuses_ = other.initContainerStatuses_;
bitField0_ = (bitField0_ & ~0x00000200);
initContainerStatusesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getInitContainerStatusesFieldBuilder() : null;
} else {
initContainerStatusesBuilder_.addAllMessages(other.initContainerStatuses_);
}
}
}
if (containerStatusesBuilder_ == null) {
if (!other.containerStatuses_.isEmpty()) {
if (containerStatuses_.isEmpty()) {
containerStatuses_ = other.containerStatuses_;
bitField0_ = (bitField0_ & ~0x00000400);
} else {
ensureContainerStatusesIsMutable();
containerStatuses_.addAll(other.containerStatuses_);
}
onChanged();
}
} else {
if (!other.containerStatuses_.isEmpty()) {
if (containerStatusesBuilder_.isEmpty()) {
containerStatusesBuilder_.dispose();
containerStatusesBuilder_ = null;
containerStatuses_ = other.containerStatuses_;
bitField0_ = (bitField0_ & ~0x00000400);
containerStatusesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getContainerStatusesFieldBuilder() : null;
} else {
containerStatusesBuilder_.addAllMessages(other.containerStatuses_);
}
}
}
if (other.hasQosClass()) {
qosClass_ = other.qosClass_;
bitField0_ |= 0x00000800;
onChanged();
}
if (ephemeralContainerStatusesBuilder_ == null) {
if (!other.ephemeralContainerStatuses_.isEmpty()) {
if (ephemeralContainerStatuses_.isEmpty()) {
ephemeralContainerStatuses_ = other.ephemeralContainerStatuses_;
bitField0_ = (bitField0_ & ~0x00001000);
} else {
ensureEphemeralContainerStatusesIsMutable();
ephemeralContainerStatuses_.addAll(other.ephemeralContainerStatuses_);
}
onChanged();
}
} else {
if (!other.ephemeralContainerStatuses_.isEmpty()) {
if (ephemeralContainerStatusesBuilder_.isEmpty()) {
ephemeralContainerStatusesBuilder_.dispose();
ephemeralContainerStatusesBuilder_ = null;
ephemeralContainerStatuses_ = other.ephemeralContainerStatuses_;
bitField0_ = (bitField0_ & ~0x00001000);
ephemeralContainerStatusesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getEphemeralContainerStatusesFieldBuilder() : null;
} else {
ephemeralContainerStatusesBuilder_.addAllMessages(other.ephemeralContainerStatuses_);
}
}
}
if (other.hasResize()) {
resize_ = other.resize_;
bitField0_ |= 0x00002000;
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: {
phase_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition m =
input.readMessage(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition.parser(),
extensionRegistry);
if (conditionsBuilder_ == null) {
ensureConditionsIsMutable();
conditions_.add(m);
} else {
conditionsBuilder_.addMessage(m);
}
break;
} // case 18
case 26: {
message_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
reason_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
hostIp_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 42
case 50: {
podIp_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000080;
break;
} // case 50
case 56: {
startTime_ = input.readInt64();
bitField0_ |= 0x00000100;
break;
} // case 56
case 66: {
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus m =
input.readMessage(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus.parser(),
extensionRegistry);
if (containerStatusesBuilder_ == null) {
ensureContainerStatusesIsMutable();
containerStatuses_.add(m);
} else {
containerStatusesBuilder_.addMessage(m);
}
break;
} // case 66
case 74: {
qosClass_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000800;
break;
} // case 74
case 82: {
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus m =
input.readMessage(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus.parser(),
extensionRegistry);
if (initContainerStatusesBuilder_ == null) {
ensureInitContainerStatusesIsMutable();
initContainerStatuses_.add(m);
} else {
initContainerStatusesBuilder_.addMessage(m);
}
break;
} // case 82
case 90: {
nominatedNodeName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 90
case 106: {
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus m =
input.readMessage(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus.parser(),
extensionRegistry);
if (ephemeralContainerStatusesBuilder_ == null) {
ensureEphemeralContainerStatusesIsMutable();
ephemeralContainerStatuses_.add(m);
} else {
ephemeralContainerStatusesBuilder_.addMessage(m);
}
break;
} // case 106
case 114: {
resize_ = input.readStringRequireUtf8();
bitField0_ |= 0x00002000;
break;
} // case 114
case 130: {
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP m =
input.readMessage(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP.parser(),
extensionRegistry);
if (hostIpsBuilder_ == null) {
ensureHostIpsIsMutable();
hostIps_.add(m);
} else {
hostIpsBuilder_.addMessage(m);
}
break;
} // case 130
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 phase_ = "";
/**
* <pre>
* The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle.
* The conditions array, the reason and message fields, and the individual container status
* arrays contain more detail about the pod's status.
* There are five possible phase values:
*
* Pending: The pod has been accepted by the Kubernetes system, but one or more of the
* container images has not been created. This includes time before being scheduled as
* well as time spent downloading images over the network, which could take a while.
* Running: The pod has been bound to a node, and all of the containers have been created.
* At least one container is still running, or is in the process of starting or restarting.
* Succeeded: All containers in the pod have terminated in success, and will not be restarted.
* Failed: All containers in the pod have terminated, and at least one container has
* terminated in failure. The container either exited with non-zero status or was terminated
* by the system.
* Unknown: For some reason the state of the pod could not be obtained, typically due to an
* error in communicating with the host of the pod.
*
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase
* +optional
* </pre>
*
* <code>optional string phase = 1 [json_name = "phase"];</code>
* @return Whether the phase field is set.
*/
public boolean hasPhase() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <pre>
* The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle.
* The conditions array, the reason and message fields, and the individual container status
* arrays contain more detail about the pod's status.
* There are five possible phase values:
*
* Pending: The pod has been accepted by the Kubernetes system, but one or more of the
* container images has not been created. This includes time before being scheduled as
* well as time spent downloading images over the network, which could take a while.
* Running: The pod has been bound to a node, and all of the containers have been created.
* At least one container is still running, or is in the process of starting or restarting.
* Succeeded: All containers in the pod have terminated in success, and will not be restarted.
* Failed: All containers in the pod have terminated, and at least one container has
* terminated in failure. The container either exited with non-zero status or was terminated
* by the system.
* Unknown: For some reason the state of the pod could not be obtained, typically due to an
* error in communicating with the host of the pod.
*
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase
* +optional
* </pre>
*
* <code>optional string phase = 1 [json_name = "phase"];</code>
* @return The phase.
*/
public java.lang.String getPhase() {
java.lang.Object ref = phase_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
phase_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle.
* The conditions array, the reason and message fields, and the individual container status
* arrays contain more detail about the pod's status.
* There are five possible phase values:
*
* Pending: The pod has been accepted by the Kubernetes system, but one or more of the
* container images has not been created. This includes time before being scheduled as
* well as time spent downloading images over the network, which could take a while.
* Running: The pod has been bound to a node, and all of the containers have been created.
* At least one container is still running, or is in the process of starting or restarting.
* Succeeded: All containers in the pod have terminated in success, and will not be restarted.
* Failed: All containers in the pod have terminated, and at least one container has
* terminated in failure. The container either exited with non-zero status or was terminated
* by the system.
* Unknown: For some reason the state of the pod could not be obtained, typically due to an
* error in communicating with the host of the pod.
*
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase
* +optional
* </pre>
*
* <code>optional string phase = 1 [json_name = "phase"];</code>
* @return The bytes for phase.
*/
public com.google.protobuf.ByteString
getPhaseBytes() {
java.lang.Object ref = phase_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
phase_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle.
* The conditions array, the reason and message fields, and the individual container status
* arrays contain more detail about the pod's status.
* There are five possible phase values:
*
* Pending: The pod has been accepted by the Kubernetes system, but one or more of the
* container images has not been created. This includes time before being scheduled as
* well as time spent downloading images over the network, which could take a while.
* Running: The pod has been bound to a node, and all of the containers have been created.
* At least one container is still running, or is in the process of starting or restarting.
* Succeeded: All containers in the pod have terminated in success, and will not be restarted.
* Failed: All containers in the pod have terminated, and at least one container has
* terminated in failure. The container either exited with non-zero status or was terminated
* by the system.
* Unknown: For some reason the state of the pod could not be obtained, typically due to an
* error in communicating with the host of the pod.
*
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase
* +optional
* </pre>
*
* <code>optional string phase = 1 [json_name = "phase"];</code>
* @param value The phase to set.
* @return This builder for chaining.
*/
public Builder setPhase(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
phase_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <pre>
* The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle.
* The conditions array, the reason and message fields, and the individual container status
* arrays contain more detail about the pod's status.
* There are five possible phase values:
*
* Pending: The pod has been accepted by the Kubernetes system, but one or more of the
* container images has not been created. This includes time before being scheduled as
* well as time spent downloading images over the network, which could take a while.
* Running: The pod has been bound to a node, and all of the containers have been created.
* At least one container is still running, or is in the process of starting or restarting.
* Succeeded: All containers in the pod have terminated in success, and will not be restarted.
* Failed: All containers in the pod have terminated, and at least one container has
* terminated in failure. The container either exited with non-zero status or was terminated
* by the system.
* Unknown: For some reason the state of the pod could not be obtained, typically due to an
* error in communicating with the host of the pod.
*
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase
* +optional
* </pre>
*
* <code>optional string phase = 1 [json_name = "phase"];</code>
* @return This builder for chaining.
*/
public Builder clearPhase() {
phase_ = getDefaultInstance().getPhase();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* <pre>
* The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle.
* The conditions array, the reason and message fields, and the individual container status
* arrays contain more detail about the pod's status.
* There are five possible phase values:
*
* Pending: The pod has been accepted by the Kubernetes system, but one or more of the
* container images has not been created. This includes time before being scheduled as
* well as time spent downloading images over the network, which could take a while.
* Running: The pod has been bound to a node, and all of the containers have been created.
* At least one container is still running, or is in the process of starting or restarting.
* Succeeded: All containers in the pod have terminated in success, and will not be restarted.
* Failed: All containers in the pod have terminated, and at least one container has
* terminated in failure. The container either exited with non-zero status or was terminated
* by the system.
* Unknown: For some reason the state of the pod could not be obtained, typically due to an
* error in communicating with the host of the pod.
*
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase
* +optional
* </pre>
*
* <code>optional string phase = 1 [json_name = "phase"];</code>
* @param value The bytes for phase to set.
* @return This builder for chaining.
*/
public Builder setPhaseBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
phase_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition> conditions_ =
java.util.Collections.emptyList();
private void ensureConditionsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
conditions_ = new java.util.ArrayList<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition>(conditions_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodConditionOrBuilder> conditionsBuilder_;
/**
* <pre>
* Current service state of pod.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
* +listType=map
* +listMapKey=type
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodCondition conditions = 2 [json_name = "conditions"];</code>
*/
public java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition> getConditionsList() {
if (conditionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(conditions_);
} else {
return conditionsBuilder_.getMessageList();
}
}
/**
* <pre>
* Current service state of pod.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
* +listType=map
* +listMapKey=type
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodCondition conditions = 2 [json_name = "conditions"];</code>
*/
public int getConditionsCount() {
if (conditionsBuilder_ == null) {
return conditions_.size();
} else {
return conditionsBuilder_.getCount();
}
}
/**
* <pre>
* Current service state of pod.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
* +listType=map
* +listMapKey=type
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodCondition conditions = 2 [json_name = "conditions"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition getConditions(int index) {
if (conditionsBuilder_ == null) {
return conditions_.get(index);
} else {
return conditionsBuilder_.getMessage(index);
}
}
/**
* <pre>
* Current service state of pod.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
* +listType=map
* +listMapKey=type
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodCondition conditions = 2 [json_name = "conditions"];</code>
*/
public Builder setConditions(
int index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition value) {
if (conditionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConditionsIsMutable();
conditions_.set(index, value);
onChanged();
} else {
conditionsBuilder_.setMessage(index, value);
}
return this;
}
/**
* <pre>
* Current service state of pod.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
* +listType=map
* +listMapKey=type
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodCondition conditions = 2 [json_name = "conditions"];</code>
*/
public Builder setConditions(
int index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition.Builder builderForValue) {
if (conditionsBuilder_ == null) {
ensureConditionsIsMutable();
conditions_.set(index, builderForValue.build());
onChanged();
} else {
conditionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <pre>
* Current service state of pod.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
* +listType=map
* +listMapKey=type
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodCondition conditions = 2 [json_name = "conditions"];</code>
*/
public Builder addConditions(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition value) {
if (conditionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConditionsIsMutable();
conditions_.add(value);
onChanged();
} else {
conditionsBuilder_.addMessage(value);
}
return this;
}
/**
* <pre>
* Current service state of pod.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
* +listType=map
* +listMapKey=type
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodCondition conditions = 2 [json_name = "conditions"];</code>
*/
public Builder addConditions(
int index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition value) {
if (conditionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConditionsIsMutable();
conditions_.add(index, value);
onChanged();
} else {
conditionsBuilder_.addMessage(index, value);
}
return this;
}
/**
* <pre>
* Current service state of pod.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
* +listType=map
* +listMapKey=type
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodCondition conditions = 2 [json_name = "conditions"];</code>
*/
public Builder addConditions(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition.Builder builderForValue) {
if (conditionsBuilder_ == null) {
ensureConditionsIsMutable();
conditions_.add(builderForValue.build());
onChanged();
} else {
conditionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
* Current service state of pod.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
* +listType=map
* +listMapKey=type
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodCondition conditions = 2 [json_name = "conditions"];</code>
*/
public Builder addConditions(
int index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition.Builder builderForValue) {
if (conditionsBuilder_ == null) {
ensureConditionsIsMutable();
conditions_.add(index, builderForValue.build());
onChanged();
} else {
conditionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <pre>
* Current service state of pod.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
* +listType=map
* +listMapKey=type
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodCondition conditions = 2 [json_name = "conditions"];</code>
*/
public Builder addAllConditions(
java.lang.Iterable<? extends ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition> values) {
if (conditionsBuilder_ == null) {
ensureConditionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, conditions_);
onChanged();
} else {
conditionsBuilder_.addAllMessages(values);
}
return this;
}
/**
* <pre>
* Current service state of pod.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
* +listType=map
* +listMapKey=type
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodCondition conditions = 2 [json_name = "conditions"];</code>
*/
public Builder clearConditions() {
if (conditionsBuilder_ == null) {
conditions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
conditionsBuilder_.clear();
}
return this;
}
/**
* <pre>
* Current service state of pod.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
* +listType=map
* +listMapKey=type
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodCondition conditions = 2 [json_name = "conditions"];</code>
*/
public Builder removeConditions(int index) {
if (conditionsBuilder_ == null) {
ensureConditionsIsMutable();
conditions_.remove(index);
onChanged();
} else {
conditionsBuilder_.remove(index);
}
return this;
}
/**
* <pre>
* Current service state of pod.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
* +listType=map
* +listMapKey=type
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodCondition conditions = 2 [json_name = "conditions"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition.Builder getConditionsBuilder(
int index) {
return getConditionsFieldBuilder().getBuilder(index);
}
/**
* <pre>
* Current service state of pod.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
* +listType=map
* +listMapKey=type
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodCondition conditions = 2 [json_name = "conditions"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodConditionOrBuilder getConditionsOrBuilder(
int index) {
if (conditionsBuilder_ == null) {
return conditions_.get(index); } else {
return conditionsBuilder_.getMessageOrBuilder(index);
}
}
/**
* <pre>
* Current service state of pod.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
* +listType=map
* +listMapKey=type
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodCondition conditions = 2 [json_name = "conditions"];</code>
*/
public java.util.List<? extends ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodConditionOrBuilder>
getConditionsOrBuilderList() {
if (conditionsBuilder_ != null) {
return conditionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(conditions_);
}
}
/**
* <pre>
* Current service state of pod.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
* +listType=map
* +listMapKey=type
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodCondition conditions = 2 [json_name = "conditions"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition.Builder addConditionsBuilder() {
return getConditionsFieldBuilder().addBuilder(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition.getDefaultInstance());
}
/**
* <pre>
* Current service state of pod.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
* +listType=map
* +listMapKey=type
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodCondition conditions = 2 [json_name = "conditions"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition.Builder addConditionsBuilder(
int index) {
return getConditionsFieldBuilder().addBuilder(
index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition.getDefaultInstance());
}
/**
* <pre>
* Current service state of pod.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
* +listType=map
* +listMapKey=type
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.PodCondition conditions = 2 [json_name = "conditions"];</code>
*/
public java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition.Builder>
getConditionsBuilderList() {
return getConditionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodConditionOrBuilder>
getConditionsFieldBuilder() {
if (conditionsBuilder_ == null) {
conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodCondition.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodConditionOrBuilder>(
conditions_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
conditions_ = null;
}
return conditionsBuilder_;
}
private java.lang.Object message_ = "";
/**
* <pre>
* A human readable message indicating details about why the pod is in this condition.
* +optional
* </pre>
*
* <code>optional string message = 3 [json_name = "message"];</code>
* @return Whether the message field is set.
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* <pre>
* A human readable message indicating details about why the pod is in this condition.
* +optional
* </pre>
*
* <code>optional string message = 3 [json_name = "message"];</code>
* @return The message.
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
message_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* A human readable message indicating details about why the pod is in this condition.
* +optional
* </pre>
*
* <code>optional string message = 3 [json_name = "message"];</code>
* @return The bytes for message.
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* A human readable message indicating details about why the pod is in this condition.
* +optional
* </pre>
*
* <code>optional string message = 3 [json_name = "message"];</code>
* @param value The message to set.
* @return This builder for chaining.
*/
public Builder setMessage(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
message_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* <pre>
* A human readable message indicating details about why the pod is in this condition.
* +optional
* </pre>
*
* <code>optional string message = 3 [json_name = "message"];</code>
* @return This builder for chaining.
*/
public Builder clearMessage() {
message_ = getDefaultInstance().getMessage();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* <pre>
* A human readable message indicating details about why the pod is in this condition.
* +optional
* </pre>
*
* <code>optional string message = 3 [json_name = "message"];</code>
* @param value The bytes for message to set.
* @return This builder for chaining.
*/
public Builder setMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
message_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object reason_ = "";
/**
* <pre>
* A brief CamelCase message indicating details about why the pod is in this state.
* e.g. 'Evicted'
* +optional
* </pre>
*
* <code>optional string reason = 4 [json_name = "reason"];</code>
* @return Whether the reason field is set.
*/
public boolean hasReason() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* <pre>
* A brief CamelCase message indicating details about why the pod is in this state.
* e.g. 'Evicted'
* +optional
* </pre>
*
* <code>optional string reason = 4 [json_name = "reason"];</code>
* @return The reason.
*/
public java.lang.String getReason() {
java.lang.Object ref = reason_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
reason_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* A brief CamelCase message indicating details about why the pod is in this state.
* e.g. 'Evicted'
* +optional
* </pre>
*
* <code>optional string reason = 4 [json_name = "reason"];</code>
* @return The bytes for reason.
*/
public com.google.protobuf.ByteString
getReasonBytes() {
java.lang.Object ref = reason_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
reason_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* A brief CamelCase message indicating details about why the pod is in this state.
* e.g. 'Evicted'
* +optional
* </pre>
*
* <code>optional string reason = 4 [json_name = "reason"];</code>
* @param value The reason to set.
* @return This builder for chaining.
*/
public Builder setReason(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
reason_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* <pre>
* A brief CamelCase message indicating details about why the pod is in this state.
* e.g. 'Evicted'
* +optional
* </pre>
*
* <code>optional string reason = 4 [json_name = "reason"];</code>
* @return This builder for chaining.
*/
public Builder clearReason() {
reason_ = getDefaultInstance().getReason();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
* <pre>
* A brief CamelCase message indicating details about why the pod is in this state.
* e.g. 'Evicted'
* +optional
* </pre>
*
* <code>optional string reason = 4 [json_name = "reason"];</code>
* @param value The bytes for reason to set.
* @return This builder for chaining.
*/
public Builder setReasonBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
reason_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private java.lang.Object nominatedNodeName_ = "";
/**
* <pre>
* nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be
* scheduled right away as preemption victims receive their graceful termination periods.
* This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide
* to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to
* give the resources on this node to a higher priority pod that is created after preemption.
* As a result, this field may be different than PodSpec.nodeName when the pod is
* scheduled.
* +optional
* </pre>
*
* <code>optional string nominated_node_name = 11 [json_name = "nominatedNodeName"];</code>
* @return Whether the nominatedNodeName field is set.
*/
public boolean hasNominatedNodeName() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* <pre>
* nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be
* scheduled right away as preemption victims receive their graceful termination periods.
* This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide
* to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to
* give the resources on this node to a higher priority pod that is created after preemption.
* As a result, this field may be different than PodSpec.nodeName when the pod is
* scheduled.
* +optional
* </pre>
*
* <code>optional string nominated_node_name = 11 [json_name = "nominatedNodeName"];</code>
* @return The nominatedNodeName.
*/
public java.lang.String getNominatedNodeName() {
java.lang.Object ref = nominatedNodeName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nominatedNodeName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be
* scheduled right away as preemption victims receive their graceful termination periods.
* This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide
* to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to
* give the resources on this node to a higher priority pod that is created after preemption.
* As a result, this field may be different than PodSpec.nodeName when the pod is
* scheduled.
* +optional
* </pre>
*
* <code>optional string nominated_node_name = 11 [json_name = "nominatedNodeName"];</code>
* @return The bytes for nominatedNodeName.
*/
public com.google.protobuf.ByteString
getNominatedNodeNameBytes() {
java.lang.Object ref = nominatedNodeName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nominatedNodeName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be
* scheduled right away as preemption victims receive their graceful termination periods.
* This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide
* to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to
* give the resources on this node to a higher priority pod that is created after preemption.
* As a result, this field may be different than PodSpec.nodeName when the pod is
* scheduled.
* +optional
* </pre>
*
* <code>optional string nominated_node_name = 11 [json_name = "nominatedNodeName"];</code>
* @param value The nominatedNodeName to set.
* @return This builder for chaining.
*/
public Builder setNominatedNodeName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
nominatedNodeName_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* <pre>
* nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be
* scheduled right away as preemption victims receive their graceful termination periods.
* This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide
* to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to
* give the resources on this node to a higher priority pod that is created after preemption.
* As a result, this field may be different than PodSpec.nodeName when the pod is
* scheduled.
* +optional
* </pre>
*
* <code>optional string nominated_node_name = 11 [json_name = "nominatedNodeName"];</code>
* @return This builder for chaining.
*/
public Builder clearNominatedNodeName() {
nominatedNodeName_ = getDefaultInstance().getNominatedNodeName();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
* <pre>
* nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be
* scheduled right away as preemption victims receive their graceful termination periods.
* This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide
* to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to
* give the resources on this node to a higher priority pod that is created after preemption.
* As a result, this field may be different than PodSpec.nodeName when the pod is
* scheduled.
* +optional
* </pre>
*
* <code>optional string nominated_node_name = 11 [json_name = "nominatedNodeName"];</code>
* @param value The bytes for nominatedNodeName to set.
* @return This builder for chaining.
*/
public Builder setNominatedNodeNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
nominatedNodeName_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private java.lang.Object hostIp_ = "";
/**
* <pre>
* hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet.
* A pod can be assigned to a node that has a problem in kubelet which in turns mean that HostIP will
* not be updated even if there is a node is assigned to pod
* +optional
* </pre>
*
* <code>optional string host_ip = 5 [json_name = "hostIp"];</code>
* @return Whether the hostIp field is set.
*/
public boolean hasHostIp() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* <pre>
* hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet.
* A pod can be assigned to a node that has a problem in kubelet which in turns mean that HostIP will
* not be updated even if there is a node is assigned to pod
* +optional
* </pre>
*
* <code>optional string host_ip = 5 [json_name = "hostIp"];</code>
* @return The hostIp.
*/
public java.lang.String getHostIp() {
java.lang.Object ref = hostIp_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hostIp_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet.
* A pod can be assigned to a node that has a problem in kubelet which in turns mean that HostIP will
* not be updated even if there is a node is assigned to pod
* +optional
* </pre>
*
* <code>optional string host_ip = 5 [json_name = "hostIp"];</code>
* @return The bytes for hostIp.
*/
public com.google.protobuf.ByteString
getHostIpBytes() {
java.lang.Object ref = hostIp_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hostIp_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet.
* A pod can be assigned to a node that has a problem in kubelet which in turns mean that HostIP will
* not be updated even if there is a node is assigned to pod
* +optional
* </pre>
*
* <code>optional string host_ip = 5 [json_name = "hostIp"];</code>
* @param value The hostIp to set.
* @return This builder for chaining.
*/
public Builder setHostIp(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
hostIp_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* <pre>
* hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet.
* A pod can be assigned to a node that has a problem in kubelet which in turns mean that HostIP will
* not be updated even if there is a node is assigned to pod
* +optional
* </pre>
*
* <code>optional string host_ip = 5 [json_name = "hostIp"];</code>
* @return This builder for chaining.
*/
public Builder clearHostIp() {
hostIp_ = getDefaultInstance().getHostIp();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
* <pre>
* hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet.
* A pod can be assigned to a node that has a problem in kubelet which in turns mean that HostIP will
* not be updated even if there is a node is assigned to pod
* +optional
* </pre>
*
* <code>optional string host_ip = 5 [json_name = "hostIp"];</code>
* @param value The bytes for hostIp to set.
* @return This builder for chaining.
*/
public Builder setHostIpBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
hostIp_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
private java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP> hostIps_ =
java.util.Collections.emptyList();
private void ensureHostIpsIsMutable() {
if (!((bitField0_ & 0x00000040) != 0)) {
hostIps_ = new java.util.ArrayList<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP>(hostIps_);
bitField0_ |= 0x00000040;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIPOrBuilder> hostIpsBuilder_;
/**
* <pre>
* hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must
* match the hostIP field. This list is empty if the pod has not started yet.
* A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will
* not be updated even if there is a node is assigned to this pod.
* +optional
* +patchStrategy=merge
* +patchMergeKey=ip
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.HostIP host_ips = 16 [json_name = "hostIps"];</code>
*/
public java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP> getHostIpsList() {
if (hostIpsBuilder_ == null) {
return java.util.Collections.unmodifiableList(hostIps_);
} else {
return hostIpsBuilder_.getMessageList();
}
}
/**
* <pre>
* hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must
* match the hostIP field. This list is empty if the pod has not started yet.
* A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will
* not be updated even if there is a node is assigned to this pod.
* +optional
* +patchStrategy=merge
* +patchMergeKey=ip
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.HostIP host_ips = 16 [json_name = "hostIps"];</code>
*/
public int getHostIpsCount() {
if (hostIpsBuilder_ == null) {
return hostIps_.size();
} else {
return hostIpsBuilder_.getCount();
}
}
/**
* <pre>
* hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must
* match the hostIP field. This list is empty if the pod has not started yet.
* A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will
* not be updated even if there is a node is assigned to this pod.
* +optional
* +patchStrategy=merge
* +patchMergeKey=ip
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.HostIP host_ips = 16 [json_name = "hostIps"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP getHostIps(int index) {
if (hostIpsBuilder_ == null) {
return hostIps_.get(index);
} else {
return hostIpsBuilder_.getMessage(index);
}
}
/**
* <pre>
* hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must
* match the hostIP field. This list is empty if the pod has not started yet.
* A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will
* not be updated even if there is a node is assigned to this pod.
* +optional
* +patchStrategy=merge
* +patchMergeKey=ip
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.HostIP host_ips = 16 [json_name = "hostIps"];</code>
*/
public Builder setHostIps(
int index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP value) {
if (hostIpsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHostIpsIsMutable();
hostIps_.set(index, value);
onChanged();
} else {
hostIpsBuilder_.setMessage(index, value);
}
return this;
}
/**
* <pre>
* hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must
* match the hostIP field. This list is empty if the pod has not started yet.
* A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will
* not be updated even if there is a node is assigned to this pod.
* +optional
* +patchStrategy=merge
* +patchMergeKey=ip
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.HostIP host_ips = 16 [json_name = "hostIps"];</code>
*/
public Builder setHostIps(
int index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP.Builder builderForValue) {
if (hostIpsBuilder_ == null) {
ensureHostIpsIsMutable();
hostIps_.set(index, builderForValue.build());
onChanged();
} else {
hostIpsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <pre>
* hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must
* match the hostIP field. This list is empty if the pod has not started yet.
* A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will
* not be updated even if there is a node is assigned to this pod.
* +optional
* +patchStrategy=merge
* +patchMergeKey=ip
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.HostIP host_ips = 16 [json_name = "hostIps"];</code>
*/
public Builder addHostIps(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP value) {
if (hostIpsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHostIpsIsMutable();
hostIps_.add(value);
onChanged();
} else {
hostIpsBuilder_.addMessage(value);
}
return this;
}
/**
* <pre>
* hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must
* match the hostIP field. This list is empty if the pod has not started yet.
* A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will
* not be updated even if there is a node is assigned to this pod.
* +optional
* +patchStrategy=merge
* +patchMergeKey=ip
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.HostIP host_ips = 16 [json_name = "hostIps"];</code>
*/
public Builder addHostIps(
int index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP value) {
if (hostIpsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHostIpsIsMutable();
hostIps_.add(index, value);
onChanged();
} else {
hostIpsBuilder_.addMessage(index, value);
}
return this;
}
/**
* <pre>
* hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must
* match the hostIP field. This list is empty if the pod has not started yet.
* A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will
* not be updated even if there is a node is assigned to this pod.
* +optional
* +patchStrategy=merge
* +patchMergeKey=ip
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.HostIP host_ips = 16 [json_name = "hostIps"];</code>
*/
public Builder addHostIps(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP.Builder builderForValue) {
if (hostIpsBuilder_ == null) {
ensureHostIpsIsMutable();
hostIps_.add(builderForValue.build());
onChanged();
} else {
hostIpsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
* hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must
* match the hostIP field. This list is empty if the pod has not started yet.
* A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will
* not be updated even if there is a node is assigned to this pod.
* +optional
* +patchStrategy=merge
* +patchMergeKey=ip
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.HostIP host_ips = 16 [json_name = "hostIps"];</code>
*/
public Builder addHostIps(
int index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP.Builder builderForValue) {
if (hostIpsBuilder_ == null) {
ensureHostIpsIsMutable();
hostIps_.add(index, builderForValue.build());
onChanged();
} else {
hostIpsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <pre>
* hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must
* match the hostIP field. This list is empty if the pod has not started yet.
* A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will
* not be updated even if there is a node is assigned to this pod.
* +optional
* +patchStrategy=merge
* +patchMergeKey=ip
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.HostIP host_ips = 16 [json_name = "hostIps"];</code>
*/
public Builder addAllHostIps(
java.lang.Iterable<? extends ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP> values) {
if (hostIpsBuilder_ == null) {
ensureHostIpsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, hostIps_);
onChanged();
} else {
hostIpsBuilder_.addAllMessages(values);
}
return this;
}
/**
* <pre>
* hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must
* match the hostIP field. This list is empty if the pod has not started yet.
* A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will
* not be updated even if there is a node is assigned to this pod.
* +optional
* +patchStrategy=merge
* +patchMergeKey=ip
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.HostIP host_ips = 16 [json_name = "hostIps"];</code>
*/
public Builder clearHostIps() {
if (hostIpsBuilder_ == null) {
hostIps_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
} else {
hostIpsBuilder_.clear();
}
return this;
}
/**
* <pre>
* hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must
* match the hostIP field. This list is empty if the pod has not started yet.
* A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will
* not be updated even if there is a node is assigned to this pod.
* +optional
* +patchStrategy=merge
* +patchMergeKey=ip
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.HostIP host_ips = 16 [json_name = "hostIps"];</code>
*/
public Builder removeHostIps(int index) {
if (hostIpsBuilder_ == null) {
ensureHostIpsIsMutable();
hostIps_.remove(index);
onChanged();
} else {
hostIpsBuilder_.remove(index);
}
return this;
}
/**
* <pre>
* hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must
* match the hostIP field. This list is empty if the pod has not started yet.
* A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will
* not be updated even if there is a node is assigned to this pod.
* +optional
* +patchStrategy=merge
* +patchMergeKey=ip
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.HostIP host_ips = 16 [json_name = "hostIps"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP.Builder getHostIpsBuilder(
int index) {
return getHostIpsFieldBuilder().getBuilder(index);
}
/**
* <pre>
* hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must
* match the hostIP field. This list is empty if the pod has not started yet.
* A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will
* not be updated even if there is a node is assigned to this pod.
* +optional
* +patchStrategy=merge
* +patchMergeKey=ip
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.HostIP host_ips = 16 [json_name = "hostIps"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIPOrBuilder getHostIpsOrBuilder(
int index) {
if (hostIpsBuilder_ == null) {
return hostIps_.get(index); } else {
return hostIpsBuilder_.getMessageOrBuilder(index);
}
}
/**
* <pre>
* hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must
* match the hostIP field. This list is empty if the pod has not started yet.
* A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will
* not be updated even if there is a node is assigned to this pod.
* +optional
* +patchStrategy=merge
* +patchMergeKey=ip
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.HostIP host_ips = 16 [json_name = "hostIps"];</code>
*/
public java.util.List<? extends ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIPOrBuilder>
getHostIpsOrBuilderList() {
if (hostIpsBuilder_ != null) {
return hostIpsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(hostIps_);
}
}
/**
* <pre>
* hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must
* match the hostIP field. This list is empty if the pod has not started yet.
* A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will
* not be updated even if there is a node is assigned to this pod.
* +optional
* +patchStrategy=merge
* +patchMergeKey=ip
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.HostIP host_ips = 16 [json_name = "hostIps"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP.Builder addHostIpsBuilder() {
return getHostIpsFieldBuilder().addBuilder(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP.getDefaultInstance());
}
/**
* <pre>
* hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must
* match the hostIP field. This list is empty if the pod has not started yet.
* A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will
* not be updated even if there is a node is assigned to this pod.
* +optional
* +patchStrategy=merge
* +patchMergeKey=ip
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.HostIP host_ips = 16 [json_name = "hostIps"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP.Builder addHostIpsBuilder(
int index) {
return getHostIpsFieldBuilder().addBuilder(
index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP.getDefaultInstance());
}
/**
* <pre>
* hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must
* match the hostIP field. This list is empty if the pod has not started yet.
* A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will
* not be updated even if there is a node is assigned to this pod.
* +optional
* +patchStrategy=merge
* +patchMergeKey=ip
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.HostIP host_ips = 16 [json_name = "hostIps"];</code>
*/
public java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP.Builder>
getHostIpsBuilderList() {
return getHostIpsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIPOrBuilder>
getHostIpsFieldBuilder() {
if (hostIpsBuilder_ == null) {
hostIpsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIP.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.HostIPOrBuilder>(
hostIps_,
((bitField0_ & 0x00000040) != 0),
getParentForChildren(),
isClean());
hostIps_ = null;
}
return hostIpsBuilder_;
}
private java.lang.Object podIp_ = "";
/**
* <pre>
* podIP address allocated to the pod. Routable at least within the cluster.
* Empty if not yet allocated.
* +optional
* </pre>
*
* <code>optional string pod_ip = 6 [json_name = "podIp"];</code>
* @return Whether the podIp field is set.
*/
public boolean hasPodIp() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* <pre>
* podIP address allocated to the pod. Routable at least within the cluster.
* Empty if not yet allocated.
* +optional
* </pre>
*
* <code>optional string pod_ip = 6 [json_name = "podIp"];</code>
* @return The podIp.
*/
public java.lang.String getPodIp() {
java.lang.Object ref = podIp_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
podIp_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* podIP address allocated to the pod. Routable at least within the cluster.
* Empty if not yet allocated.
* +optional
* </pre>
*
* <code>optional string pod_ip = 6 [json_name = "podIp"];</code>
* @return The bytes for podIp.
*/
public com.google.protobuf.ByteString
getPodIpBytes() {
java.lang.Object ref = podIp_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
podIp_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* podIP address allocated to the pod. Routable at least within the cluster.
* Empty if not yet allocated.
* +optional
* </pre>
*
* <code>optional string pod_ip = 6 [json_name = "podIp"];</code>
* @param value The podIp to set.
* @return This builder for chaining.
*/
public Builder setPodIp(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
podIp_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* <pre>
* podIP address allocated to the pod. Routable at least within the cluster.
* Empty if not yet allocated.
* +optional
* </pre>
*
* <code>optional string pod_ip = 6 [json_name = "podIp"];</code>
* @return This builder for chaining.
*/
public Builder clearPodIp() {
podIp_ = getDefaultInstance().getPodIp();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
/**
* <pre>
* podIP address allocated to the pod. Routable at least within the cluster.
* Empty if not yet allocated.
* +optional
* </pre>
*
* <code>optional string pod_ip = 6 [json_name = "podIp"];</code>
* @param value The bytes for podIp to set.
* @return This builder for chaining.
*/
public Builder setPodIpBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
podIp_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
private long startTime_ ;
/**
* <pre>
* RFC 3339 date and time at which the object was acknowledged by the Kubelet.
* This is before the Kubelet pulled the container image(s) for the pod.
* +optional
* </pre>
*
* <code>optional int64 start_time = 7 [json_name = "startTime", (.gen_bq_schema.bigquery) = { ... }</code>
* @return Whether the startTime field is set.
*/
@java.lang.Override
public boolean hasStartTime() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* <pre>
* RFC 3339 date and time at which the object was acknowledged by the Kubelet.
* This is before the Kubelet pulled the container image(s) for the pod.
* +optional
* </pre>
*
* <code>optional int64 start_time = 7 [json_name = "startTime", (.gen_bq_schema.bigquery) = { ... }</code>
* @return The startTime.
*/
@java.lang.Override
public long getStartTime() {
return startTime_;
}
/**
* <pre>
* RFC 3339 date and time at which the object was acknowledged by the Kubelet.
* This is before the Kubelet pulled the container image(s) for the pod.
* +optional
* </pre>
*
* <code>optional int64 start_time = 7 [json_name = "startTime", (.gen_bq_schema.bigquery) = { ... }</code>
* @param value The startTime to set.
* @return This builder for chaining.
*/
public Builder setStartTime(long value) {
startTime_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
* <pre>
* RFC 3339 date and time at which the object was acknowledged by the Kubelet.
* This is before the Kubelet pulled the container image(s) for the pod.
* +optional
* </pre>
*
* <code>optional int64 start_time = 7 [json_name = "startTime", (.gen_bq_schema.bigquery) = { ... }</code>
* @return This builder for chaining.
*/
public Builder clearStartTime() {
bitField0_ = (bitField0_ & ~0x00000100);
startTime_ = 0L;
onChanged();
return this;
}
private java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus> initContainerStatuses_ =
java.util.Collections.emptyList();
private void ensureInitContainerStatusesIsMutable() {
if (!((bitField0_ & 0x00000200) != 0)) {
initContainerStatuses_ = new java.util.ArrayList<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus>(initContainerStatuses_);
bitField0_ |= 0x00000200;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatusOrBuilder> initContainerStatusesBuilder_;
/**
* <pre>
* The list has one entry per init container in the manifest. The most recent successful
* init container will have ready = true, the most recently started container will have
* startTime set.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code>
*/
public java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus> getInitContainerStatusesList() {
if (initContainerStatusesBuilder_ == null) {
return java.util.Collections.unmodifiableList(initContainerStatuses_);
} else {
return initContainerStatusesBuilder_.getMessageList();
}
}
/**
* <pre>
* The list has one entry per init container in the manifest. The most recent successful
* init container will have ready = true, the most recently started container will have
* startTime set.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code>
*/
public int getInitContainerStatusesCount() {
if (initContainerStatusesBuilder_ == null) {
return initContainerStatuses_.size();
} else {
return initContainerStatusesBuilder_.getCount();
}
}
/**
* <pre>
* The list has one entry per init container in the manifest. The most recent successful
* init container will have ready = true, the most recently started container will have
* startTime set.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus getInitContainerStatuses(int index) {
if (initContainerStatusesBuilder_ == null) {
return initContainerStatuses_.get(index);
} else {
return initContainerStatusesBuilder_.getMessage(index);
}
}
/**
* <pre>
* The list has one entry per init container in the manifest. The most recent successful
* init container will have ready = true, the most recently started container will have
* startTime set.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code>
*/
public Builder setInitContainerStatuses(
int index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus value) {
if (initContainerStatusesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInitContainerStatusesIsMutable();
initContainerStatuses_.set(index, value);
onChanged();
} else {
initContainerStatusesBuilder_.setMessage(index, value);
}
return this;
}
/**
* <pre>
* The list has one entry per init container in the manifest. The most recent successful
* init container will have ready = true, the most recently started container will have
* startTime set.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code>
*/
public Builder setInitContainerStatuses(
int index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus.Builder builderForValue) {
if (initContainerStatusesBuilder_ == null) {
ensureInitContainerStatusesIsMutable();
initContainerStatuses_.set(index, builderForValue.build());
onChanged();
} else {
initContainerStatusesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <pre>
* The list has one entry per init container in the manifest. The most recent successful
* init container will have ready = true, the most recently started container will have
* startTime set.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code>
*/
public Builder addInitContainerStatuses(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus value) {
if (initContainerStatusesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInitContainerStatusesIsMutable();
initContainerStatuses_.add(value);
onChanged();
} else {
initContainerStatusesBuilder_.addMessage(value);
}
return this;
}
/**
* <pre>
* The list has one entry per init container in the manifest. The most recent successful
* init container will have ready = true, the most recently started container will have
* startTime set.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code>
*/
public Builder addInitContainerStatuses(
int index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus value) {
if (initContainerStatusesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInitContainerStatusesIsMutable();
initContainerStatuses_.add(index, value);
onChanged();
} else {
initContainerStatusesBuilder_.addMessage(index, value);
}
return this;
}
/**
* <pre>
* The list has one entry per init container in the manifest. The most recent successful
* init container will have ready = true, the most recently started container will have
* startTime set.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code>
*/
public Builder addInitContainerStatuses(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus.Builder builderForValue) {
if (initContainerStatusesBuilder_ == null) {
ensureInitContainerStatusesIsMutable();
initContainerStatuses_.add(builderForValue.build());
onChanged();
} else {
initContainerStatusesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
* The list has one entry per init container in the manifest. The most recent successful
* init container will have ready = true, the most recently started container will have
* startTime set.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code>
*/
public Builder addInitContainerStatuses(
int index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus.Builder builderForValue) {
if (initContainerStatusesBuilder_ == null) {
ensureInitContainerStatusesIsMutable();
initContainerStatuses_.add(index, builderForValue.build());
onChanged();
} else {
initContainerStatusesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <pre>
* The list has one entry per init container in the manifest. The most recent successful
* init container will have ready = true, the most recently started container will have
* startTime set.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code>
*/
public Builder addAllInitContainerStatuses(
java.lang.Iterable<? extends ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus> values) {
if (initContainerStatusesBuilder_ == null) {
ensureInitContainerStatusesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, initContainerStatuses_);
onChanged();
} else {
initContainerStatusesBuilder_.addAllMessages(values);
}
return this;
}
/**
* <pre>
* The list has one entry per init container in the manifest. The most recent successful
* init container will have ready = true, the most recently started container will have
* startTime set.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code>
*/
public Builder clearInitContainerStatuses() {
if (initContainerStatusesBuilder_ == null) {
initContainerStatuses_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
} else {
initContainerStatusesBuilder_.clear();
}
return this;
}
/**
* <pre>
* The list has one entry per init container in the manifest. The most recent successful
* init container will have ready = true, the most recently started container will have
* startTime set.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code>
*/
public Builder removeInitContainerStatuses(int index) {
if (initContainerStatusesBuilder_ == null) {
ensureInitContainerStatusesIsMutable();
initContainerStatuses_.remove(index);
onChanged();
} else {
initContainerStatusesBuilder_.remove(index);
}
return this;
}
/**
* <pre>
* The list has one entry per init container in the manifest. The most recent successful
* init container will have ready = true, the most recently started container will have
* startTime set.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus.Builder getInitContainerStatusesBuilder(
int index) {
return getInitContainerStatusesFieldBuilder().getBuilder(index);
}
/**
* <pre>
* The list has one entry per init container in the manifest. The most recent successful
* init container will have ready = true, the most recently started container will have
* startTime set.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatusOrBuilder getInitContainerStatusesOrBuilder(
int index) {
if (initContainerStatusesBuilder_ == null) {
return initContainerStatuses_.get(index); } else {
return initContainerStatusesBuilder_.getMessageOrBuilder(index);
}
}
/**
* <pre>
* The list has one entry per init container in the manifest. The most recent successful
* init container will have ready = true, the most recently started container will have
* startTime set.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code>
*/
public java.util.List<? extends ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatusOrBuilder>
getInitContainerStatusesOrBuilderList() {
if (initContainerStatusesBuilder_ != null) {
return initContainerStatusesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(initContainerStatuses_);
}
}
/**
* <pre>
* The list has one entry per init container in the manifest. The most recent successful
* init container will have ready = true, the most recently started container will have
* startTime set.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus.Builder addInitContainerStatusesBuilder() {
return getInitContainerStatusesFieldBuilder().addBuilder(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus.getDefaultInstance());
}
/**
* <pre>
* The list has one entry per init container in the manifest. The most recent successful
* init container will have ready = true, the most recently started container will have
* startTime set.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus.Builder addInitContainerStatusesBuilder(
int index) {
return getInitContainerStatusesFieldBuilder().addBuilder(
index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus.getDefaultInstance());
}
/**
* <pre>
* The list has one entry per init container in the manifest. The most recent successful
* init container will have ready = true, the most recently started container will have
* startTime set.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code>
*/
public java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus.Builder>
getInitContainerStatusesBuilderList() {
return getInitContainerStatusesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatusOrBuilder>
getInitContainerStatusesFieldBuilder() {
if (initContainerStatusesBuilder_ == null) {
initContainerStatusesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatusOrBuilder>(
initContainerStatuses_,
((bitField0_ & 0x00000200) != 0),
getParentForChildren(),
isClean());
initContainerStatuses_ = null;
}
return initContainerStatusesBuilder_;
}
private java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus> containerStatuses_ =
java.util.Collections.emptyList();
private void ensureContainerStatusesIsMutable() {
if (!((bitField0_ & 0x00000400) != 0)) {
containerStatuses_ = new java.util.ArrayList<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus>(containerStatuses_);
bitField0_ |= 0x00000400;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatusOrBuilder> containerStatusesBuilder_;
/**
* <pre>
* The list has one entry per container in the manifest.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code>
*/
public java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus> getContainerStatusesList() {
if (containerStatusesBuilder_ == null) {
return java.util.Collections.unmodifiableList(containerStatuses_);
} else {
return containerStatusesBuilder_.getMessageList();
}
}
/**
* <pre>
* The list has one entry per container in the manifest.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code>
*/
public int getContainerStatusesCount() {
if (containerStatusesBuilder_ == null) {
return containerStatuses_.size();
} else {
return containerStatusesBuilder_.getCount();
}
}
/**
* <pre>
* The list has one entry per container in the manifest.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus getContainerStatuses(int index) {
if (containerStatusesBuilder_ == null) {
return containerStatuses_.get(index);
} else {
return containerStatusesBuilder_.getMessage(index);
}
}
/**
* <pre>
* The list has one entry per container in the manifest.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code>
*/
public Builder setContainerStatuses(
int index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus value) {
if (containerStatusesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContainerStatusesIsMutable();
containerStatuses_.set(index, value);
onChanged();
} else {
containerStatusesBuilder_.setMessage(index, value);
}
return this;
}
/**
* <pre>
* The list has one entry per container in the manifest.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code>
*/
public Builder setContainerStatuses(
int index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus.Builder builderForValue) {
if (containerStatusesBuilder_ == null) {
ensureContainerStatusesIsMutable();
containerStatuses_.set(index, builderForValue.build());
onChanged();
} else {
containerStatusesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <pre>
* The list has one entry per container in the manifest.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code>
*/
public Builder addContainerStatuses(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus value) {
if (containerStatusesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContainerStatusesIsMutable();
containerStatuses_.add(value);
onChanged();
} else {
containerStatusesBuilder_.addMessage(value);
}
return this;
}
/**
* <pre>
* The list has one entry per container in the manifest.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code>
*/
public Builder addContainerStatuses(
int index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus value) {
if (containerStatusesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContainerStatusesIsMutable();
containerStatuses_.add(index, value);
onChanged();
} else {
containerStatusesBuilder_.addMessage(index, value);
}
return this;
}
/**
* <pre>
* The list has one entry per container in the manifest.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code>
*/
public Builder addContainerStatuses(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus.Builder builderForValue) {
if (containerStatusesBuilder_ == null) {
ensureContainerStatusesIsMutable();
containerStatuses_.add(builderForValue.build());
onChanged();
} else {
containerStatusesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
* The list has one entry per container in the manifest.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code>
*/
public Builder addContainerStatuses(
int index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus.Builder builderForValue) {
if (containerStatusesBuilder_ == null) {
ensureContainerStatusesIsMutable();
containerStatuses_.add(index, builderForValue.build());
onChanged();
} else {
containerStatusesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <pre>
* The list has one entry per container in the manifest.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code>
*/
public Builder addAllContainerStatuses(
java.lang.Iterable<? extends ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus> values) {
if (containerStatusesBuilder_ == null) {
ensureContainerStatusesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, containerStatuses_);
onChanged();
} else {
containerStatusesBuilder_.addAllMessages(values);
}
return this;
}
/**
* <pre>
* The list has one entry per container in the manifest.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code>
*/
public Builder clearContainerStatuses() {
if (containerStatusesBuilder_ == null) {
containerStatuses_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
} else {
containerStatusesBuilder_.clear();
}
return this;
}
/**
* <pre>
* The list has one entry per container in the manifest.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code>
*/
public Builder removeContainerStatuses(int index) {
if (containerStatusesBuilder_ == null) {
ensureContainerStatusesIsMutable();
containerStatuses_.remove(index);
onChanged();
} else {
containerStatusesBuilder_.remove(index);
}
return this;
}
/**
* <pre>
* The list has one entry per container in the manifest.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus.Builder getContainerStatusesBuilder(
int index) {
return getContainerStatusesFieldBuilder().getBuilder(index);
}
/**
* <pre>
* The list has one entry per container in the manifest.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatusOrBuilder getContainerStatusesOrBuilder(
int index) {
if (containerStatusesBuilder_ == null) {
return containerStatuses_.get(index); } else {
return containerStatusesBuilder_.getMessageOrBuilder(index);
}
}
/**
* <pre>
* The list has one entry per container in the manifest.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code>
*/
public java.util.List<? extends ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatusOrBuilder>
getContainerStatusesOrBuilderList() {
if (containerStatusesBuilder_ != null) {
return containerStatusesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(containerStatuses_);
}
}
/**
* <pre>
* The list has one entry per container in the manifest.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus.Builder addContainerStatusesBuilder() {
return getContainerStatusesFieldBuilder().addBuilder(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus.getDefaultInstance());
}
/**
* <pre>
* The list has one entry per container in the manifest.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus.Builder addContainerStatusesBuilder(
int index) {
return getContainerStatusesFieldBuilder().addBuilder(
index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus.getDefaultInstance());
}
/**
* <pre>
* The list has one entry per container in the manifest.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code>
*/
public java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus.Builder>
getContainerStatusesBuilderList() {
return getContainerStatusesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatusOrBuilder>
getContainerStatusesFieldBuilder() {
if (containerStatusesBuilder_ == null) {
containerStatusesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatusOrBuilder>(
containerStatuses_,
((bitField0_ & 0x00000400) != 0),
getParentForChildren(),
isClean());
containerStatuses_ = null;
}
return containerStatusesBuilder_;
}
private java.lang.Object qosClass_ = "";
/**
* <pre>
* The Quality of Service (QOS) classification assigned to the pod based on resource requirements
* See PodQOSClass type for available QOS classes
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes
* +optional
* </pre>
*
* <code>optional string qos_class = 9 [json_name = "qosClass"];</code>
* @return Whether the qosClass field is set.
*/
public boolean hasQosClass() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
* <pre>
* The Quality of Service (QOS) classification assigned to the pod based on resource requirements
* See PodQOSClass type for available QOS classes
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes
* +optional
* </pre>
*
* <code>optional string qos_class = 9 [json_name = "qosClass"];</code>
* @return The qosClass.
*/
public java.lang.String getQosClass() {
java.lang.Object ref = qosClass_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
qosClass_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* The Quality of Service (QOS) classification assigned to the pod based on resource requirements
* See PodQOSClass type for available QOS classes
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes
* +optional
* </pre>
*
* <code>optional string qos_class = 9 [json_name = "qosClass"];</code>
* @return The bytes for qosClass.
*/
public com.google.protobuf.ByteString
getQosClassBytes() {
java.lang.Object ref = qosClass_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
qosClass_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* The Quality of Service (QOS) classification assigned to the pod based on resource requirements
* See PodQOSClass type for available QOS classes
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes
* +optional
* </pre>
*
* <code>optional string qos_class = 9 [json_name = "qosClass"];</code>
* @param value The qosClass to set.
* @return This builder for chaining.
*/
public Builder setQosClass(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
qosClass_ = value;
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
* <pre>
* The Quality of Service (QOS) classification assigned to the pod based on resource requirements
* See PodQOSClass type for available QOS classes
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes
* +optional
* </pre>
*
* <code>optional string qos_class = 9 [json_name = "qosClass"];</code>
* @return This builder for chaining.
*/
public Builder clearQosClass() {
qosClass_ = getDefaultInstance().getQosClass();
bitField0_ = (bitField0_ & ~0x00000800);
onChanged();
return this;
}
/**
* <pre>
* The Quality of Service (QOS) classification assigned to the pod based on resource requirements
* See PodQOSClass type for available QOS classes
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes
* +optional
* </pre>
*
* <code>optional string qos_class = 9 [json_name = "qosClass"];</code>
* @param value The bytes for qosClass to set.
* @return This builder for chaining.
*/
public Builder setQosClassBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
qosClass_ = value;
bitField0_ |= 0x00000800;
onChanged();
return this;
}
private java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus> ephemeralContainerStatuses_ =
java.util.Collections.emptyList();
private void ensureEphemeralContainerStatusesIsMutable() {
if (!((bitField0_ & 0x00001000) != 0)) {
ephemeralContainerStatuses_ = new java.util.ArrayList<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus>(ephemeralContainerStatuses_);
bitField0_ |= 0x00001000;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatusOrBuilder> ephemeralContainerStatusesBuilder_;
/**
* <pre>
* Status for any ephemeral containers that have run in this pod.
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code>
*/
public java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus> getEphemeralContainerStatusesList() {
if (ephemeralContainerStatusesBuilder_ == null) {
return java.util.Collections.unmodifiableList(ephemeralContainerStatuses_);
} else {
return ephemeralContainerStatusesBuilder_.getMessageList();
}
}
/**
* <pre>
* Status for any ephemeral containers that have run in this pod.
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code>
*/
public int getEphemeralContainerStatusesCount() {
if (ephemeralContainerStatusesBuilder_ == null) {
return ephemeralContainerStatuses_.size();
} else {
return ephemeralContainerStatusesBuilder_.getCount();
}
}
/**
* <pre>
* Status for any ephemeral containers that have run in this pod.
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus getEphemeralContainerStatuses(int index) {
if (ephemeralContainerStatusesBuilder_ == null) {
return ephemeralContainerStatuses_.get(index);
} else {
return ephemeralContainerStatusesBuilder_.getMessage(index);
}
}
/**
* <pre>
* Status for any ephemeral containers that have run in this pod.
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code>
*/
public Builder setEphemeralContainerStatuses(
int index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus value) {
if (ephemeralContainerStatusesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEphemeralContainerStatusesIsMutable();
ephemeralContainerStatuses_.set(index, value);
onChanged();
} else {
ephemeralContainerStatusesBuilder_.setMessage(index, value);
}
return this;
}
/**
* <pre>
* Status for any ephemeral containers that have run in this pod.
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code>
*/
public Builder setEphemeralContainerStatuses(
int index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus.Builder builderForValue) {
if (ephemeralContainerStatusesBuilder_ == null) {
ensureEphemeralContainerStatusesIsMutable();
ephemeralContainerStatuses_.set(index, builderForValue.build());
onChanged();
} else {
ephemeralContainerStatusesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <pre>
* Status for any ephemeral containers that have run in this pod.
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code>
*/
public Builder addEphemeralContainerStatuses(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus value) {
if (ephemeralContainerStatusesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEphemeralContainerStatusesIsMutable();
ephemeralContainerStatuses_.add(value);
onChanged();
} else {
ephemeralContainerStatusesBuilder_.addMessage(value);
}
return this;
}
/**
* <pre>
* Status for any ephemeral containers that have run in this pod.
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code>
*/
public Builder addEphemeralContainerStatuses(
int index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus value) {
if (ephemeralContainerStatusesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEphemeralContainerStatusesIsMutable();
ephemeralContainerStatuses_.add(index, value);
onChanged();
} else {
ephemeralContainerStatusesBuilder_.addMessage(index, value);
}
return this;
}
/**
* <pre>
* Status for any ephemeral containers that have run in this pod.
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code>
*/
public Builder addEphemeralContainerStatuses(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus.Builder builderForValue) {
if (ephemeralContainerStatusesBuilder_ == null) {
ensureEphemeralContainerStatusesIsMutable();
ephemeralContainerStatuses_.add(builderForValue.build());
onChanged();
} else {
ephemeralContainerStatusesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
* Status for any ephemeral containers that have run in this pod.
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code>
*/
public Builder addEphemeralContainerStatuses(
int index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus.Builder builderForValue) {
if (ephemeralContainerStatusesBuilder_ == null) {
ensureEphemeralContainerStatusesIsMutable();
ephemeralContainerStatuses_.add(index, builderForValue.build());
onChanged();
} else {
ephemeralContainerStatusesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <pre>
* Status for any ephemeral containers that have run in this pod.
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code>
*/
public Builder addAllEphemeralContainerStatuses(
java.lang.Iterable<? extends ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus> values) {
if (ephemeralContainerStatusesBuilder_ == null) {
ensureEphemeralContainerStatusesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, ephemeralContainerStatuses_);
onChanged();
} else {
ephemeralContainerStatusesBuilder_.addAllMessages(values);
}
return this;
}
/**
* <pre>
* Status for any ephemeral containers that have run in this pod.
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code>
*/
public Builder clearEphemeralContainerStatuses() {
if (ephemeralContainerStatusesBuilder_ == null) {
ephemeralContainerStatuses_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00001000);
onChanged();
} else {
ephemeralContainerStatusesBuilder_.clear();
}
return this;
}
/**
* <pre>
* Status for any ephemeral containers that have run in this pod.
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code>
*/
public Builder removeEphemeralContainerStatuses(int index) {
if (ephemeralContainerStatusesBuilder_ == null) {
ensureEphemeralContainerStatusesIsMutable();
ephemeralContainerStatuses_.remove(index);
onChanged();
} else {
ephemeralContainerStatusesBuilder_.remove(index);
}
return this;
}
/**
* <pre>
* Status for any ephemeral containers that have run in this pod.
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus.Builder getEphemeralContainerStatusesBuilder(
int index) {
return getEphemeralContainerStatusesFieldBuilder().getBuilder(index);
}
/**
* <pre>
* Status for any ephemeral containers that have run in this pod.
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatusOrBuilder getEphemeralContainerStatusesOrBuilder(
int index) {
if (ephemeralContainerStatusesBuilder_ == null) {
return ephemeralContainerStatuses_.get(index); } else {
return ephemeralContainerStatusesBuilder_.getMessageOrBuilder(index);
}
}
/**
* <pre>
* Status for any ephemeral containers that have run in this pod.
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code>
*/
public java.util.List<? extends ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatusOrBuilder>
getEphemeralContainerStatusesOrBuilderList() {
if (ephemeralContainerStatusesBuilder_ != null) {
return ephemeralContainerStatusesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(ephemeralContainerStatuses_);
}
}
/**
* <pre>
* Status for any ephemeral containers that have run in this pod.
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus.Builder addEphemeralContainerStatusesBuilder() {
return getEphemeralContainerStatusesFieldBuilder().addBuilder(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus.getDefaultInstance());
}
/**
* <pre>
* Status for any ephemeral containers that have run in this pod.
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus.Builder addEphemeralContainerStatusesBuilder(
int index) {
return getEphemeralContainerStatusesFieldBuilder().addBuilder(
index, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus.getDefaultInstance());
}
/**
* <pre>
* Status for any ephemeral containers that have run in this pod.
* +optional
* +listType=atomic
* </pre>
*
* <code>repeated .chalk.pubsub.v1.PodStatusPubSub.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code>
*/
public java.util.List<ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus.Builder>
getEphemeralContainerStatusesBuilderList() {
return getEphemeralContainerStatusesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatusOrBuilder>
getEphemeralContainerStatusesFieldBuilder() {
if (ephemeralContainerStatusesBuilder_ == null) {
ephemeralContainerStatusesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatus.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.ContainerStatusOrBuilder>(
ephemeralContainerStatuses_,
((bitField0_ & 0x00001000) != 0),
getParentForChildren(),
isClean());
ephemeralContainerStatuses_ = null;
}
return ephemeralContainerStatusesBuilder_;
}
private java.lang.Object resize_ = "";
/**
* <pre>
* Status of resources resize desired for pod's containers.
* It is empty if no resources resize is pending.
* Any changes to container resources will automatically set this to "Proposed"
* +featureGate=InPlacePodVerticalScaling
* +optional
* </pre>
*
* <code>optional string resize = 14 [json_name = "resize"];</code>
* @return Whether the resize field is set.
*/
public boolean hasResize() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
* <pre>
* Status of resources resize desired for pod's containers.
* It is empty if no resources resize is pending.
* Any changes to container resources will automatically set this to "Proposed"
* +featureGate=InPlacePodVerticalScaling
* +optional
* </pre>
*
* <code>optional string resize = 14 [json_name = "resize"];</code>
* @return The resize.
*/
public java.lang.String getResize() {
java.lang.Object ref = resize_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
resize_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* Status of resources resize desired for pod's containers.
* It is empty if no resources resize is pending.
* Any changes to container resources will automatically set this to "Proposed"
* +featureGate=InPlacePodVerticalScaling
* +optional
* </pre>
*
* <code>optional string resize = 14 [json_name = "resize"];</code>
* @return The bytes for resize.
*/
public com.google.protobuf.ByteString
getResizeBytes() {
java.lang.Object ref = resize_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resize_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* Status of resources resize desired for pod's containers.
* It is empty if no resources resize is pending.
* Any changes to container resources will automatically set this to "Proposed"
* +featureGate=InPlacePodVerticalScaling
* +optional
* </pre>
*
* <code>optional string resize = 14 [json_name = "resize"];</code>
* @param value The resize to set.
* @return This builder for chaining.
*/
public Builder setResize(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
resize_ = value;
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
* <pre>
* Status of resources resize desired for pod's containers.
* It is empty if no resources resize is pending.
* Any changes to container resources will automatically set this to "Proposed"
* +featureGate=InPlacePodVerticalScaling
* +optional
* </pre>
*
* <code>optional string resize = 14 [json_name = "resize"];</code>
* @return This builder for chaining.
*/
public Builder clearResize() {
resize_ = getDefaultInstance().getResize();
bitField0_ = (bitField0_ & ~0x00002000);
onChanged();
return this;
}
/**
* <pre>
* Status of resources resize desired for pod's containers.
* It is empty if no resources resize is pending.
* Any changes to container resources will automatically set this to "Proposed"
* +featureGate=InPlacePodVerticalScaling
* +optional
* </pre>
*
* <code>optional string resize = 14 [json_name = "resize"];</code>
* @param value The bytes for resize to set.
* @return This builder for chaining.
*/
public Builder setResizeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
resize_ = value;
bitField0_ |= 0x00002000;
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:chalk.pubsub.v1.PodStatusPubSub.PodStatus)
}
// @@protoc_insertion_point(class_scope:chalk.pubsub.v1.PodStatusPubSub.PodStatus)
private static final ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus();
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<PodStatus>
PARSER = new com.google.protobuf.AbstractParser<PodStatus>() {
@java.lang.Override
public PodStatus 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<PodStatus> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<PodStatus> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int TEAM_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object team_ = "";
/**
* <pre>
* The Chalk team name that incurred the usage.
* </pre>
*
* <code>string team = 1 [json_name = "team"];</code>
* @return The team.
*/
@java.lang.Override
public java.lang.String getTeam() {
java.lang.Object ref = team_;
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();
team_ = s;
return s;
}
}
/**
* <pre>
* The Chalk team name that incurred the usage.
* </pre>
*
* <code>string team = 1 [json_name = "team"];</code>
* @return The bytes for team.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTeamBytes() {
java.lang.Object ref = team_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
team_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int APP_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object app_ = "";
/**
* <code>string app = 2 [json_name = "app"];</code>
* @return The app.
*/
@java.lang.Override
public java.lang.String getApp() {
java.lang.Object ref = app_;
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();
app_ = s;
return s;
}
}
/**
* <code>string app = 2 [json_name = "app"];</code>
* @return The bytes for app.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAppBytes() {
java.lang.Object ref = app_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
app_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COMPONENT_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object component_ = "";
/**
* <code>string component = 3 [json_name = "component"];</code>
* @return The component.
*/
@java.lang.Override
public java.lang.String getComponent() {
java.lang.Object ref = component_;
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();
component_ = s;
return s;
}
}
/**
* <code>string component = 3 [json_name = "component"];</code>
* @return The bytes for component.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getComponentBytes() {
java.lang.Object ref = component_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
component_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DATADOG_SERVICE_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object datadogService_ = "";
/**
* <code>string datadog_service = 4 [json_name = "datadogService"];</code>
* @return The datadogService.
*/
@java.lang.Override
public java.lang.String getDatadogService() {
java.lang.Object ref = datadogService_;
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();
datadogService_ = s;
return s;
}
}
/**
* <code>string datadog_service = 4 [json_name = "datadogService"];</code>
* @return The bytes for datadogService.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDatadogServiceBytes() {
java.lang.Object ref = datadogService_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
datadogService_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DATADOG_VERSION_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object datadogVersion_ = "";
/**
* <code>string datadog_version = 5 [json_name = "datadogVersion"];</code>
* @return The datadogVersion.
*/
@java.lang.Override
public java.lang.String getDatadogVersion() {
java.lang.Object ref = datadogVersion_;
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();
datadogVersion_ = s;
return s;
}
}
/**
* <code>string datadog_version = 5 [json_name = "datadogVersion"];</code>
* @return The bytes for datadogVersion.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDatadogVersionBytes() {
java.lang.Object ref = datadogVersion_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
datadogVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int POD_TEMPLATE_HASH_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private volatile java.lang.Object podTemplateHash_ = "";
/**
* <code>string pod_template_hash = 6 [json_name = "podTemplateHash"];</code>
* @return The podTemplateHash.
*/
@java.lang.Override
public java.lang.String getPodTemplateHash() {
java.lang.Object ref = podTemplateHash_;
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();
podTemplateHash_ = s;
return s;
}
}
/**
* <code>string pod_template_hash = 6 [json_name = "podTemplateHash"];</code>
* @return The bytes for podTemplateHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPodTemplateHashBytes() {
java.lang.Object ref = podTemplateHash_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
podTemplateHash_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STATUS_FIELD_NUMBER = 7;
private ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus status_;
/**
* <pre>
* string status = 7;
* </pre>
*
* <code>.chalk.pubsub.v1.PodStatusPubSub.PodStatus status = 7 [json_name = "status"];</code>
* @return Whether the status field is set.
*/
@java.lang.Override
public boolean hasStatus() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <pre>
* string status = 7;
* </pre>
*
* <code>.chalk.pubsub.v1.PodStatusPubSub.PodStatus status = 7 [json_name = "status"];</code>
* @return The status.
*/
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus getStatus() {
return status_ == null ? ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus.getDefaultInstance() : status_;
}
/**
* <pre>
* string status = 7;
* </pre>
*
* <code>.chalk.pubsub.v1.PodStatusPubSub.PodStatus status = 7 [json_name = "status"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatusOrBuilder getStatusOrBuilder() {
return status_ == null ? ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus.getDefaultInstance() : status_;
}
public static final int SPEC_FIELD_NUMBER = 8;
private ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec spec_;
/**
* <code>.chalk.pubsub.v1.PodStatusPubSub.PodSpec spec = 8 [json_name = "spec"];</code>
* @return Whether the spec field is set.
*/
@java.lang.Override
public boolean hasSpec() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* <code>.chalk.pubsub.v1.PodStatusPubSub.PodSpec spec = 8 [json_name = "spec"];</code>
* @return The spec.
*/
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec getSpec() {
return spec_ == null ? ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec.getDefaultInstance() : spec_;
}
/**
* <code>.chalk.pubsub.v1.PodStatusPubSub.PodSpec spec = 8 [json_name = "spec"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpecOrBuilder getSpecOrBuilder() {
return spec_ == null ? ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec.getDefaultInstance() : spec_;
}
public static final int CREATION_TIMESTAMP_FIELD_NUMBER = 18;
private long creationTimestamp_ = 0L;
/**
* <pre>
* The time that the instance was created.
* pod.CreationTimestamp.Unix()
* </pre>
*
* <code>int64 creation_timestamp = 18 [json_name = "creationTimestamp", (.gen_bq_schema.bigquery) = { ... }</code>
* @return The creationTimestamp.
*/
@java.lang.Override
public long getCreationTimestamp() {
return creationTimestamp_;
}
public static final int DELETION_TIMESTAMP_FIELD_NUMBER = 19;
private long deletionTimestamp_ = 0L;
/**
* <pre>
* pod.DeletionTimestamp.Unix()
* The time that the instance was deleted. May be 0 if the instance is still running.
* </pre>
*
* <code>int64 deletion_timestamp = 19 [json_name = "deletionTimestamp", (.gen_bq_schema.bigquery) = { ... }</code>
* @return The deletionTimestamp.
*/
@java.lang.Override
public long getDeletionTimestamp() {
return deletionTimestamp_;
}
public static final int OBSERVED_TIMESTAMP_FIELD_NUMBER = 20;
private long observedTimestamp_ = 0L;
/**
* <pre>
* The time that we polled the instance for usage.
* </pre>
*
* <code>int64 observed_timestamp = 20 [json_name = "observedTimestamp", (.gen_bq_schema.bigquery) = { ... }</code>
* @return The observedTimestamp.
*/
@java.lang.Override
public long getObservedTimestamp() {
return observedTimestamp_;
}
public static final int LABELS_FIELD_NUMBER = 21;
private static final class LabelsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.<java.lang.String, java.lang.String>newDefaultInstance(
ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_LabelsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> labels_;
private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetLabels() {
if (labels_ == null) {
return com.google.protobuf.MapField.emptyMapField(
LabelsDefaultEntryHolder.defaultEntry);
}
return labels_;
}
public int getLabelsCount() {
return internalGetLabels().getMap().size();
}
/**
* <pre>
* pod.Labels
* </pre>
*
* <code>map<string, string> labels = 21 [json_name = "labels"];</code>
*/
@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<java.lang.String, java.lang.String> getLabels() {
return getLabelsMap();
}
/**
* <pre>
* pod.Labels
* </pre>
*
* <code>map<string, string> labels = 21 [json_name = "labels"];</code>
*/
@java.lang.Override
public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {
return internalGetLabels().getMap();
}
/**
* <pre>
* pod.Labels
* </pre>
*
* <code>map<string, string> labels = 21 [json_name = "labels"];</code>
*/
@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<java.lang.String, java.lang.String> map =
internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <pre>
* pod.Labels
* </pre>
*
* <code>map<string, string> labels = 21 [json_name = "labels"];</code>
*/
@java.lang.Override
public java.lang.String getLabelsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetLabels().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int ANNOTATIONS_FIELD_NUMBER = 22;
private static final class AnnotationsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.<java.lang.String, java.lang.String>newDefaultInstance(
ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_AnnotationsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> annotations_;
private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetAnnotations() {
if (annotations_ == null) {
return com.google.protobuf.MapField.emptyMapField(
AnnotationsDefaultEntryHolder.defaultEntry);
}
return annotations_;
}
public int getAnnotationsCount() {
return internalGetAnnotations().getMap().size();
}
/**
* <pre>
* pod.Annotations
* </pre>
*
* <code>map<string, string> annotations = 22 [json_name = "annotations"];</code>
*/
@java.lang.Override
public boolean containsAnnotations(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetAnnotations().getMap().containsKey(key);
}
/**
* Use {@link #getAnnotationsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map<java.lang.String, java.lang.String> getAnnotations() {
return getAnnotationsMap();
}
/**
* <pre>
* pod.Annotations
* </pre>
*
* <code>map<string, string> annotations = 22 [json_name = "annotations"];</code>
*/
@java.lang.Override
public java.util.Map<java.lang.String, java.lang.String> getAnnotationsMap() {
return internalGetAnnotations().getMap();
}
/**
* <pre>
* pod.Annotations
* </pre>
*
* <code>map<string, string> annotations = 22 [json_name = "annotations"];</code>
*/
@java.lang.Override
public /* nullable */
java.lang.String getAnnotationsOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetAnnotations().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <pre>
* pod.Annotations
* </pre>
*
* <code>map<string, string> annotations = 22 [json_name = "annotations"];</code>
*/
@java.lang.Override
public java.lang.String getAnnotationsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetAnnotations().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int CLUSTER_FIELD_NUMBER = 23;
@SuppressWarnings("serial")
private volatile java.lang.Object cluster_ = "";
/**
* <code>string cluster = 23 [json_name = "cluster"];</code>
* @return The cluster.
*/
@java.lang.Override
public java.lang.String getCluster() {
java.lang.Object ref = cluster_;
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();
cluster_ = s;
return s;
}
}
/**
* <code>string cluster = 23 [json_name = "cluster"];</code>
* @return The bytes for cluster.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getClusterBytes() {
java.lang.Object ref = cluster_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cluster_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int UID_FIELD_NUMBER = 24;
@SuppressWarnings("serial")
private volatile java.lang.Object uid_ = "";
/**
* <pre>
* // node.UID
* </pre>
*
* <code>string uid = 24 [json_name = "uid"];</code>
* @return The uid.
*/
@java.lang.Override
public java.lang.String getUid() {
java.lang.Object ref = uid_;
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();
uid_ = s;
return s;
}
}
/**
* <pre>
* // node.UID
* </pre>
*
* <code>string uid = 24 [json_name = "uid"];</code>
* @return The bytes for uid.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUidBytes() {
java.lang.Object ref = uid_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
uid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAME_FIELD_NUMBER = 25;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
* <pre>
* // node.Name
* </pre>
*
* <code>string name = 25 [json_name = "name"];</code>
* @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;
}
}
/**
* <pre>
* // node.Name
* </pre>
*
* <code>string name = 25 [json_name = "name"];</code>
* @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 NAMESPACE_FIELD_NUMBER = 26;
@SuppressWarnings("serial")
private volatile java.lang.Object namespace_ = "";
/**
* <code>string namespace = 26 [json_name = "namespace"];</code>
* @return The namespace.
*/
@java.lang.Override
public java.lang.String getNamespace() {
java.lang.Object ref = namespace_;
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();
namespace_ = s;
return s;
}
}
/**
* <code>string namespace = 26 [json_name = "namespace"];</code>
* @return The bytes for namespace.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNamespaceBytes() {
java.lang.Object ref = namespace_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
namespace_ = 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(team_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, team_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(app_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, app_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(component_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, component_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datadogService_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, datadogService_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datadogVersion_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, datadogVersion_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(podTemplateHash_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, podTemplateHash_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(7, getStatus());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(8, getSpec());
}
if (creationTimestamp_ != 0L) {
output.writeInt64(18, creationTimestamp_);
}
if (deletionTimestamp_ != 0L) {
output.writeInt64(19, deletionTimestamp_);
}
if (observedTimestamp_ != 0L) {
output.writeInt64(20, observedTimestamp_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetLabels(),
LabelsDefaultEntryHolder.defaultEntry,
21);
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetAnnotations(),
AnnotationsDefaultEntryHolder.defaultEntry,
22);
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cluster_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 23, cluster_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 24, uid_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 25, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 26, namespace_);
}
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(team_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, team_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(app_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, app_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(component_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, component_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datadogService_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, datadogService_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datadogVersion_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, datadogVersion_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(podTemplateHash_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, podTemplateHash_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getStatus());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getSpec());
}
if (creationTimestamp_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(18, creationTimestamp_);
}
if (deletionTimestamp_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(19, deletionTimestamp_);
}
if (observedTimestamp_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(20, observedTimestamp_);
}
for (java.util.Map.Entry<java.lang.String, java.lang.String> entry
: internalGetLabels().getMap().entrySet()) {
com.google.protobuf.MapEntry<java.lang.String, java.lang.String>
labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(21, labels__);
}
for (java.util.Map.Entry<java.lang.String, java.lang.String> entry
: internalGetAnnotations().getMap().entrySet()) {
com.google.protobuf.MapEntry<java.lang.String, java.lang.String>
annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(22, annotations__);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cluster_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, cluster_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(24, uid_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(25, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(26, namespace_);
}
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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub other = (ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub) obj;
if (!getTeam()
.equals(other.getTeam())) return false;
if (!getApp()
.equals(other.getApp())) return false;
if (!getComponent()
.equals(other.getComponent())) return false;
if (!getDatadogService()
.equals(other.getDatadogService())) return false;
if (!getDatadogVersion()
.equals(other.getDatadogVersion())) return false;
if (!getPodTemplateHash()
.equals(other.getPodTemplateHash())) return false;
if (hasStatus() != other.hasStatus()) return false;
if (hasStatus()) {
if (!getStatus()
.equals(other.getStatus())) return false;
}
if (hasSpec() != other.hasSpec()) return false;
if (hasSpec()) {
if (!getSpec()
.equals(other.getSpec())) return false;
}
if (getCreationTimestamp()
!= other.getCreationTimestamp()) return false;
if (getDeletionTimestamp()
!= other.getDeletionTimestamp()) return false;
if (getObservedTimestamp()
!= other.getObservedTimestamp()) return false;
if (!internalGetLabels().equals(
other.internalGetLabels())) return false;
if (!internalGetAnnotations().equals(
other.internalGetAnnotations())) return false;
if (!getCluster()
.equals(other.getCluster())) return false;
if (!getUid()
.equals(other.getUid())) return false;
if (!getName()
.equals(other.getName())) return false;
if (!getNamespace()
.equals(other.getNamespace())) 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) + TEAM_FIELD_NUMBER;
hash = (53 * hash) + getTeam().hashCode();
hash = (37 * hash) + APP_FIELD_NUMBER;
hash = (53 * hash) + getApp().hashCode();
hash = (37 * hash) + COMPONENT_FIELD_NUMBER;
hash = (53 * hash) + getComponent().hashCode();
hash = (37 * hash) + DATADOG_SERVICE_FIELD_NUMBER;
hash = (53 * hash) + getDatadogService().hashCode();
hash = (37 * hash) + DATADOG_VERSION_FIELD_NUMBER;
hash = (53 * hash) + getDatadogVersion().hashCode();
hash = (37 * hash) + POD_TEMPLATE_HASH_FIELD_NUMBER;
hash = (53 * hash) + getPodTemplateHash().hashCode();
if (hasStatus()) {
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + getStatus().hashCode();
}
if (hasSpec()) {
hash = (37 * hash) + SPEC_FIELD_NUMBER;
hash = (53 * hash) + getSpec().hashCode();
}
hash = (37 * hash) + CREATION_TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCreationTimestamp());
hash = (37 * hash) + DELETION_TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getDeletionTimestamp());
hash = (37 * hash) + OBSERVED_TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getObservedTimestamp());
if (!internalGetLabels().getMap().isEmpty()) {
hash = (37 * hash) + LABELS_FIELD_NUMBER;
hash = (53 * hash) + internalGetLabels().hashCode();
}
if (!internalGetAnnotations().getMap().isEmpty()) {
hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER;
hash = (53 * hash) + internalGetAnnotations().hashCode();
}
hash = (37 * hash) + CLUSTER_FIELD_NUMBER;
hash = (53 * hash) + getCluster().hashCode();
hash = (37 * hash) + UID_FIELD_NUMBER;
hash = (53 * hash) + getUid().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + NAMESPACE_FIELD_NUMBER;
hash = (53 * hash) + getNamespace().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub 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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub 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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub 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(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub 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;
}
/**
* <pre>
* PodStatusPubSub captures the state of a kubernetes pod.
* </pre>
*
* Protobuf type {@code chalk.pubsub.v1.PodStatusPubSub}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.pubsub.v1.PodStatusPubSub)
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSubOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 21:
return internalGetLabels();
case 22:
return internalGetAnnotations();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
int number) {
switch (number) {
case 21:
return internalGetMutableLabels();
case 22:
return internalGetMutableAnnotations();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.class, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Builder.class);
}
// Construct using ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getStatusFieldBuilder();
getSpecFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
team_ = "";
app_ = "";
component_ = "";
datadogService_ = "";
datadogVersion_ = "";
podTemplateHash_ = "";
status_ = null;
if (statusBuilder_ != null) {
statusBuilder_.dispose();
statusBuilder_ = null;
}
spec_ = null;
if (specBuilder_ != null) {
specBuilder_.dispose();
specBuilder_ = null;
}
creationTimestamp_ = 0L;
deletionTimestamp_ = 0L;
observedTimestamp_ = 0L;
internalGetMutableLabels().clear();
internalGetMutableAnnotations().clear();
cluster_ = "";
uid_ = "";
name_ = "";
namespace_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.internal_static_chalk_pubsub_v1_PodStatusPubSub_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub getDefaultInstanceForType() {
return ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub build() {
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub buildPartial() {
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub result = new ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.team_ = team_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.app_ = app_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.component_ = component_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.datadogService_ = datadogService_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.datadogVersion_ = datadogVersion_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.podTemplateHash_ = podTemplateHash_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000040) != 0)) {
result.status_ = statusBuilder_ == null
? status_
: statusBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.spec_ = specBuilder_ == null
? spec_
: specBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.creationTimestamp_ = creationTimestamp_;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.deletionTimestamp_ = deletionTimestamp_;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.observedTimestamp_ = observedTimestamp_;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.labels_ = internalGetLabels();
result.labels_.makeImmutable();
}
if (((from_bitField0_ & 0x00001000) != 0)) {
result.annotations_ = internalGetAnnotations();
result.annotations_.makeImmutable();
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.cluster_ = cluster_;
}
if (((from_bitField0_ & 0x00004000) != 0)) {
result.uid_ = uid_;
}
if (((from_bitField0_ & 0x00008000) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00010000) != 0)) {
result.namespace_ = namespace_;
}
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 ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub) {
return mergeFrom((ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub other) {
if (other == ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.getDefaultInstance()) return this;
if (!other.getTeam().isEmpty()) {
team_ = other.team_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getApp().isEmpty()) {
app_ = other.app_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getComponent().isEmpty()) {
component_ = other.component_;
bitField0_ |= 0x00000004;
onChanged();
}
if (!other.getDatadogService().isEmpty()) {
datadogService_ = other.datadogService_;
bitField0_ |= 0x00000008;
onChanged();
}
if (!other.getDatadogVersion().isEmpty()) {
datadogVersion_ = other.datadogVersion_;
bitField0_ |= 0x00000010;
onChanged();
}
if (!other.getPodTemplateHash().isEmpty()) {
podTemplateHash_ = other.podTemplateHash_;
bitField0_ |= 0x00000020;
onChanged();
}
if (other.hasStatus()) {
mergeStatus(other.getStatus());
}
if (other.hasSpec()) {
mergeSpec(other.getSpec());
}
if (other.getCreationTimestamp() != 0L) {
setCreationTimestamp(other.getCreationTimestamp());
}
if (other.getDeletionTimestamp() != 0L) {
setDeletionTimestamp(other.getDeletionTimestamp());
}
if (other.getObservedTimestamp() != 0L) {
setObservedTimestamp(other.getObservedTimestamp());
}
internalGetMutableLabels().mergeFrom(
other.internalGetLabels());
bitField0_ |= 0x00000800;
internalGetMutableAnnotations().mergeFrom(
other.internalGetAnnotations());
bitField0_ |= 0x00001000;
if (!other.getCluster().isEmpty()) {
cluster_ = other.cluster_;
bitField0_ |= 0x00002000;
onChanged();
}
if (!other.getUid().isEmpty()) {
uid_ = other.uid_;
bitField0_ |= 0x00004000;
onChanged();
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00008000;
onChanged();
}
if (!other.getNamespace().isEmpty()) {
namespace_ = other.namespace_;
bitField0_ |= 0x00010000;
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: {
team_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
app_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
component_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
datadogService_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
datadogVersion_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
podTemplateHash_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 50
case 58: {
input.readMessage(
getStatusFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000040;
break;
} // case 58
case 66: {
input.readMessage(
getSpecFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000080;
break;
} // case 66
case 144: {
creationTimestamp_ = input.readInt64();
bitField0_ |= 0x00000100;
break;
} // case 144
case 152: {
deletionTimestamp_ = input.readInt64();
bitField0_ |= 0x00000200;
break;
} // case 152
case 160: {
observedTimestamp_ = input.readInt64();
bitField0_ |= 0x00000400;
break;
} // case 160
case 170: {
com.google.protobuf.MapEntry<java.lang.String, java.lang.String>
labels__ = input.readMessage(
LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableLabels().getMutableMap().put(
labels__.getKey(), labels__.getValue());
bitField0_ |= 0x00000800;
break;
} // case 170
case 178: {
com.google.protobuf.MapEntry<java.lang.String, java.lang.String>
annotations__ = input.readMessage(
AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableAnnotations().getMutableMap().put(
annotations__.getKey(), annotations__.getValue());
bitField0_ |= 0x00001000;
break;
} // case 178
case 186: {
cluster_ = input.readStringRequireUtf8();
bitField0_ |= 0x00002000;
break;
} // case 186
case 194: {
uid_ = input.readStringRequireUtf8();
bitField0_ |= 0x00004000;
break;
} // case 194
case 202: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00008000;
break;
} // case 202
case 210: {
namespace_ = input.readStringRequireUtf8();
bitField0_ |= 0x00010000;
break;
} // case 210
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 team_ = "";
/**
* <pre>
* The Chalk team name that incurred the usage.
* </pre>
*
* <code>string team = 1 [json_name = "team"];</code>
* @return The team.
*/
public java.lang.String getTeam() {
java.lang.Object ref = team_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
team_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* The Chalk team name that incurred the usage.
* </pre>
*
* <code>string team = 1 [json_name = "team"];</code>
* @return The bytes for team.
*/
public com.google.protobuf.ByteString
getTeamBytes() {
java.lang.Object ref = team_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
team_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* The Chalk team name that incurred the usage.
* </pre>
*
* <code>string team = 1 [json_name = "team"];</code>
* @param value The team to set.
* @return This builder for chaining.
*/
public Builder setTeam(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
team_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <pre>
* The Chalk team name that incurred the usage.
* </pre>
*
* <code>string team = 1 [json_name = "team"];</code>
* @return This builder for chaining.
*/
public Builder clearTeam() {
team_ = getDefaultInstance().getTeam();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* <pre>
* The Chalk team name that incurred the usage.
* </pre>
*
* <code>string team = 1 [json_name = "team"];</code>
* @param value The bytes for team to set.
* @return This builder for chaining.
*/
public Builder setTeamBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
team_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object app_ = "";
/**
* <code>string app = 2 [json_name = "app"];</code>
* @return The app.
*/
public java.lang.String getApp() {
java.lang.Object ref = app_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
app_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string app = 2 [json_name = "app"];</code>
* @return The bytes for app.
*/
public com.google.protobuf.ByteString
getAppBytes() {
java.lang.Object ref = app_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
app_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string app = 2 [json_name = "app"];</code>
* @param value The app to set.
* @return This builder for chaining.
*/
public Builder setApp(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
app_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <code>string app = 2 [json_name = "app"];</code>
* @return This builder for chaining.
*/
public Builder clearApp() {
app_ = getDefaultInstance().getApp();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* <code>string app = 2 [json_name = "app"];</code>
* @param value The bytes for app to set.
* @return This builder for chaining.
*/
public Builder setAppBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
app_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object component_ = "";
/**
* <code>string component = 3 [json_name = "component"];</code>
* @return The component.
*/
public java.lang.String getComponent() {
java.lang.Object ref = component_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
component_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string component = 3 [json_name = "component"];</code>
* @return The bytes for component.
*/
public com.google.protobuf.ByteString
getComponentBytes() {
java.lang.Object ref = component_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
component_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string component = 3 [json_name = "component"];</code>
* @param value The component to set.
* @return This builder for chaining.
*/
public Builder setComponent(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
component_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* <code>string component = 3 [json_name = "component"];</code>
* @return This builder for chaining.
*/
public Builder clearComponent() {
component_ = getDefaultInstance().getComponent();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* <code>string component = 3 [json_name = "component"];</code>
* @param value The bytes for component to set.
* @return This builder for chaining.
*/
public Builder setComponentBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
component_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object datadogService_ = "";
/**
* <code>string datadog_service = 4 [json_name = "datadogService"];</code>
* @return The datadogService.
*/
public java.lang.String getDatadogService() {
java.lang.Object ref = datadogService_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
datadogService_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string datadog_service = 4 [json_name = "datadogService"];</code>
* @return The bytes for datadogService.
*/
public com.google.protobuf.ByteString
getDatadogServiceBytes() {
java.lang.Object ref = datadogService_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
datadogService_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string datadog_service = 4 [json_name = "datadogService"];</code>
* @param value The datadogService to set.
* @return This builder for chaining.
*/
public Builder setDatadogService(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
datadogService_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* <code>string datadog_service = 4 [json_name = "datadogService"];</code>
* @return This builder for chaining.
*/
public Builder clearDatadogService() {
datadogService_ = getDefaultInstance().getDatadogService();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
* <code>string datadog_service = 4 [json_name = "datadogService"];</code>
* @param value The bytes for datadogService to set.
* @return This builder for chaining.
*/
public Builder setDatadogServiceBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
datadogService_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private java.lang.Object datadogVersion_ = "";
/**
* <code>string datadog_version = 5 [json_name = "datadogVersion"];</code>
* @return The datadogVersion.
*/
public java.lang.String getDatadogVersion() {
java.lang.Object ref = datadogVersion_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
datadogVersion_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string datadog_version = 5 [json_name = "datadogVersion"];</code>
* @return The bytes for datadogVersion.
*/
public com.google.protobuf.ByteString
getDatadogVersionBytes() {
java.lang.Object ref = datadogVersion_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
datadogVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string datadog_version = 5 [json_name = "datadogVersion"];</code>
* @param value The datadogVersion to set.
* @return This builder for chaining.
*/
public Builder setDatadogVersion(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
datadogVersion_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* <code>string datadog_version = 5 [json_name = "datadogVersion"];</code>
* @return This builder for chaining.
*/
public Builder clearDatadogVersion() {
datadogVersion_ = getDefaultInstance().getDatadogVersion();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
* <code>string datadog_version = 5 [json_name = "datadogVersion"];</code>
* @param value The bytes for datadogVersion to set.
* @return This builder for chaining.
*/
public Builder setDatadogVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
datadogVersion_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private java.lang.Object podTemplateHash_ = "";
/**
* <code>string pod_template_hash = 6 [json_name = "podTemplateHash"];</code>
* @return The podTemplateHash.
*/
public java.lang.String getPodTemplateHash() {
java.lang.Object ref = podTemplateHash_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
podTemplateHash_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string pod_template_hash = 6 [json_name = "podTemplateHash"];</code>
* @return The bytes for podTemplateHash.
*/
public com.google.protobuf.ByteString
getPodTemplateHashBytes() {
java.lang.Object ref = podTemplateHash_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
podTemplateHash_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string pod_template_hash = 6 [json_name = "podTemplateHash"];</code>
* @param value The podTemplateHash to set.
* @return This builder for chaining.
*/
public Builder setPodTemplateHash(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
podTemplateHash_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* <code>string pod_template_hash = 6 [json_name = "podTemplateHash"];</code>
* @return This builder for chaining.
*/
public Builder clearPodTemplateHash() {
podTemplateHash_ = getDefaultInstance().getPodTemplateHash();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
* <code>string pod_template_hash = 6 [json_name = "podTemplateHash"];</code>
* @param value The bytes for podTemplateHash to set.
* @return This builder for chaining.
*/
public Builder setPodTemplateHashBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
podTemplateHash_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
private ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus status_;
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatusOrBuilder> statusBuilder_;
/**
* <pre>
* string status = 7;
* </pre>
*
* <code>.chalk.pubsub.v1.PodStatusPubSub.PodStatus status = 7 [json_name = "status"];</code>
* @return Whether the status field is set.
*/
public boolean hasStatus() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* <pre>
* string status = 7;
* </pre>
*
* <code>.chalk.pubsub.v1.PodStatusPubSub.PodStatus status = 7 [json_name = "status"];</code>
* @return The status.
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus getStatus() {
if (statusBuilder_ == null) {
return status_ == null ? ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus.getDefaultInstance() : status_;
} else {
return statusBuilder_.getMessage();
}
}
/**
* <pre>
* string status = 7;
* </pre>
*
* <code>.chalk.pubsub.v1.PodStatusPubSub.PodStatus status = 7 [json_name = "status"];</code>
*/
public Builder setStatus(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus value) {
if (statusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
status_ = value;
} else {
statusBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* <pre>
* string status = 7;
* </pre>
*
* <code>.chalk.pubsub.v1.PodStatusPubSub.PodStatus status = 7 [json_name = "status"];</code>
*/
public Builder setStatus(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus.Builder builderForValue) {
if (statusBuilder_ == null) {
status_ = builderForValue.build();
} else {
statusBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* <pre>
* string status = 7;
* </pre>
*
* <code>.chalk.pubsub.v1.PodStatusPubSub.PodStatus status = 7 [json_name = "status"];</code>
*/
public Builder mergeStatus(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus value) {
if (statusBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0) &&
status_ != null &&
status_ != ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus.getDefaultInstance()) {
getStatusBuilder().mergeFrom(value);
} else {
status_ = value;
}
} else {
statusBuilder_.mergeFrom(value);
}
if (status_ != null) {
bitField0_ |= 0x00000040;
onChanged();
}
return this;
}
/**
* <pre>
* string status = 7;
* </pre>
*
* <code>.chalk.pubsub.v1.PodStatusPubSub.PodStatus status = 7 [json_name = "status"];</code>
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000040);
status_ = null;
if (statusBuilder_ != null) {
statusBuilder_.dispose();
statusBuilder_ = null;
}
onChanged();
return this;
}
/**
* <pre>
* string status = 7;
* </pre>
*
* <code>.chalk.pubsub.v1.PodStatusPubSub.PodStatus status = 7 [json_name = "status"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus.Builder getStatusBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getStatusFieldBuilder().getBuilder();
}
/**
* <pre>
* string status = 7;
* </pre>
*
* <code>.chalk.pubsub.v1.PodStatusPubSub.PodStatus status = 7 [json_name = "status"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatusOrBuilder getStatusOrBuilder() {
if (statusBuilder_ != null) {
return statusBuilder_.getMessageOrBuilder();
} else {
return status_ == null ?
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus.getDefaultInstance() : status_;
}
}
/**
* <pre>
* string status = 7;
* </pre>
*
* <code>.chalk.pubsub.v1.PodStatusPubSub.PodStatus status = 7 [json_name = "status"];</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatusOrBuilder>
getStatusFieldBuilder() {
if (statusBuilder_ == null) {
statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatusOrBuilder>(
getStatus(),
getParentForChildren(),
isClean());
status_ = null;
}
return statusBuilder_;
}
private ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec spec_;
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpecOrBuilder> specBuilder_;
/**
* <code>.chalk.pubsub.v1.PodStatusPubSub.PodSpec spec = 8 [json_name = "spec"];</code>
* @return Whether the spec field is set.
*/
public boolean hasSpec() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* <code>.chalk.pubsub.v1.PodStatusPubSub.PodSpec spec = 8 [json_name = "spec"];</code>
* @return The spec.
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec getSpec() {
if (specBuilder_ == null) {
return spec_ == null ? ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec.getDefaultInstance() : spec_;
} else {
return specBuilder_.getMessage();
}
}
/**
* <code>.chalk.pubsub.v1.PodStatusPubSub.PodSpec spec = 8 [json_name = "spec"];</code>
*/
public Builder setSpec(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec value) {
if (specBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
spec_ = value;
} else {
specBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* <code>.chalk.pubsub.v1.PodStatusPubSub.PodSpec spec = 8 [json_name = "spec"];</code>
*/
public Builder setSpec(
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec.Builder builderForValue) {
if (specBuilder_ == null) {
spec_ = builderForValue.build();
} else {
specBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* <code>.chalk.pubsub.v1.PodStatusPubSub.PodSpec spec = 8 [json_name = "spec"];</code>
*/
public Builder mergeSpec(ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec value) {
if (specBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0) &&
spec_ != null &&
spec_ != ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec.getDefaultInstance()) {
getSpecBuilder().mergeFrom(value);
} else {
spec_ = value;
}
} else {
specBuilder_.mergeFrom(value);
}
if (spec_ != null) {
bitField0_ |= 0x00000080;
onChanged();
}
return this;
}
/**
* <code>.chalk.pubsub.v1.PodStatusPubSub.PodSpec spec = 8 [json_name = "spec"];</code>
*/
public Builder clearSpec() {
bitField0_ = (bitField0_ & ~0x00000080);
spec_ = null;
if (specBuilder_ != null) {
specBuilder_.dispose();
specBuilder_ = null;
}
onChanged();
return this;
}
/**
* <code>.chalk.pubsub.v1.PodStatusPubSub.PodSpec spec = 8 [json_name = "spec"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec.Builder getSpecBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getSpecFieldBuilder().getBuilder();
}
/**
* <code>.chalk.pubsub.v1.PodStatusPubSub.PodSpec spec = 8 [json_name = "spec"];</code>
*/
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpecOrBuilder getSpecOrBuilder() {
if (specBuilder_ != null) {
return specBuilder_.getMessageOrBuilder();
} else {
return spec_ == null ?
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec.getDefaultInstance() : spec_;
}
}
/**
* <code>.chalk.pubsub.v1.PodStatusPubSub.PodSpec spec = 8 [json_name = "spec"];</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpecOrBuilder>
getSpecFieldBuilder() {
if (specBuilder_ == null) {
specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec.Builder, ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpecOrBuilder>(
getSpec(),
getParentForChildren(),
isClean());
spec_ = null;
}
return specBuilder_;
}
private long creationTimestamp_ ;
/**
* <pre>
* The time that the instance was created.
* pod.CreationTimestamp.Unix()
* </pre>
*
* <code>int64 creation_timestamp = 18 [json_name = "creationTimestamp", (.gen_bq_schema.bigquery) = { ... }</code>
* @return The creationTimestamp.
*/
@java.lang.Override
public long getCreationTimestamp() {
return creationTimestamp_;
}
/**
* <pre>
* The time that the instance was created.
* pod.CreationTimestamp.Unix()
* </pre>
*
* <code>int64 creation_timestamp = 18 [json_name = "creationTimestamp", (.gen_bq_schema.bigquery) = { ... }</code>
* @param value The creationTimestamp to set.
* @return This builder for chaining.
*/
public Builder setCreationTimestamp(long value) {
creationTimestamp_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
* <pre>
* The time that the instance was created.
* pod.CreationTimestamp.Unix()
* </pre>
*
* <code>int64 creation_timestamp = 18 [json_name = "creationTimestamp", (.gen_bq_schema.bigquery) = { ... }</code>
* @return This builder for chaining.
*/
public Builder clearCreationTimestamp() {
bitField0_ = (bitField0_ & ~0x00000100);
creationTimestamp_ = 0L;
onChanged();
return this;
}
private long deletionTimestamp_ ;
/**
* <pre>
* pod.DeletionTimestamp.Unix()
* The time that the instance was deleted. May be 0 if the instance is still running.
* </pre>
*
* <code>int64 deletion_timestamp = 19 [json_name = "deletionTimestamp", (.gen_bq_schema.bigquery) = { ... }</code>
* @return The deletionTimestamp.
*/
@java.lang.Override
public long getDeletionTimestamp() {
return deletionTimestamp_;
}
/**
* <pre>
* pod.DeletionTimestamp.Unix()
* The time that the instance was deleted. May be 0 if the instance is still running.
* </pre>
*
* <code>int64 deletion_timestamp = 19 [json_name = "deletionTimestamp", (.gen_bq_schema.bigquery) = { ... }</code>
* @param value The deletionTimestamp to set.
* @return This builder for chaining.
*/
public Builder setDeletionTimestamp(long value) {
deletionTimestamp_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
* <pre>
* pod.DeletionTimestamp.Unix()
* The time that the instance was deleted. May be 0 if the instance is still running.
* </pre>
*
* <code>int64 deletion_timestamp = 19 [json_name = "deletionTimestamp", (.gen_bq_schema.bigquery) = { ... }</code>
* @return This builder for chaining.
*/
public Builder clearDeletionTimestamp() {
bitField0_ = (bitField0_ & ~0x00000200);
deletionTimestamp_ = 0L;
onChanged();
return this;
}
private long observedTimestamp_ ;
/**
* <pre>
* The time that we polled the instance for usage.
* </pre>
*
* <code>int64 observed_timestamp = 20 [json_name = "observedTimestamp", (.gen_bq_schema.bigquery) = { ... }</code>
* @return The observedTimestamp.
*/
@java.lang.Override
public long getObservedTimestamp() {
return observedTimestamp_;
}
/**
* <pre>
* The time that we polled the instance for usage.
* </pre>
*
* <code>int64 observed_timestamp = 20 [json_name = "observedTimestamp", (.gen_bq_schema.bigquery) = { ... }</code>
* @param value The observedTimestamp to set.
* @return This builder for chaining.
*/
public Builder setObservedTimestamp(long value) {
observedTimestamp_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
* <pre>
* The time that we polled the instance for usage.
* </pre>
*
* <code>int64 observed_timestamp = 20 [json_name = "observedTimestamp", (.gen_bq_schema.bigquery) = { ... }</code>
* @return This builder for chaining.
*/
public Builder clearObservedTimestamp() {
bitField0_ = (bitField0_ & ~0x00000400);
observedTimestamp_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> labels_;
private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetLabels() {
if (labels_ == null) {
return com.google.protobuf.MapField.emptyMapField(
LabelsDefaultEntryHolder.defaultEntry);
}
return labels_;
}
private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetMutableLabels() {
if (labels_ == null) {
labels_ = com.google.protobuf.MapField.newMapField(
LabelsDefaultEntryHolder.defaultEntry);
}
if (!labels_.isMutable()) {
labels_ = labels_.copy();
}
bitField0_ |= 0x00000800;
onChanged();
return labels_;
}
public int getLabelsCount() {
return internalGetLabels().getMap().size();
}
/**
* <pre>
* pod.Labels
* </pre>
*
* <code>map<string, string> labels = 21 [json_name = "labels"];</code>
*/
@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<java.lang.String, java.lang.String> getLabels() {
return getLabelsMap();
}
/**
* <pre>
* pod.Labels
* </pre>
*
* <code>map<string, string> labels = 21 [json_name = "labels"];</code>
*/
@java.lang.Override
public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {
return internalGetLabels().getMap();
}
/**
* <pre>
* pod.Labels
* </pre>
*
* <code>map<string, string> labels = 21 [json_name = "labels"];</code>
*/
@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<java.lang.String, java.lang.String> map =
internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <pre>
* pod.Labels
* </pre>
*
* <code>map<string, string> labels = 21 [json_name = "labels"];</code>
*/
@java.lang.Override
public java.lang.String getLabelsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetLabels().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearLabels() {
bitField0_ = (bitField0_ & ~0x00000800);
internalGetMutableLabels().getMutableMap()
.clear();
return this;
}
/**
* <pre>
* pod.Labels
* </pre>
*
* <code>map<string, string> labels = 21 [json_name = "labels"];</code>
*/
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<java.lang.String, java.lang.String>
getMutableLabels() {
bitField0_ |= 0x00000800;
return internalGetMutableLabels().getMutableMap();
}
/**
* <pre>
* pod.Labels
* </pre>
*
* <code>map<string, string> labels = 21 [json_name = "labels"];</code>
*/
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_ |= 0x00000800;
return this;
}
/**
* <pre>
* pod.Labels
* </pre>
*
* <code>map<string, string> labels = 21 [json_name = "labels"];</code>
*/
public Builder putAllLabels(
java.util.Map<java.lang.String, java.lang.String> values) {
internalGetMutableLabels().getMutableMap()
.putAll(values);
bitField0_ |= 0x00000800;
return this;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> annotations_;
private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetAnnotations() {
if (annotations_ == null) {
return com.google.protobuf.MapField.emptyMapField(
AnnotationsDefaultEntryHolder.defaultEntry);
}
return annotations_;
}
private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetMutableAnnotations() {
if (annotations_ == null) {
annotations_ = com.google.protobuf.MapField.newMapField(
AnnotationsDefaultEntryHolder.defaultEntry);
}
if (!annotations_.isMutable()) {
annotations_ = annotations_.copy();
}
bitField0_ |= 0x00001000;
onChanged();
return annotations_;
}
public int getAnnotationsCount() {
return internalGetAnnotations().getMap().size();
}
/**
* <pre>
* pod.Annotations
* </pre>
*
* <code>map<string, string> annotations = 22 [json_name = "annotations"];</code>
*/
@java.lang.Override
public boolean containsAnnotations(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetAnnotations().getMap().containsKey(key);
}
/**
* Use {@link #getAnnotationsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map<java.lang.String, java.lang.String> getAnnotations() {
return getAnnotationsMap();
}
/**
* <pre>
* pod.Annotations
* </pre>
*
* <code>map<string, string> annotations = 22 [json_name = "annotations"];</code>
*/
@java.lang.Override
public java.util.Map<java.lang.String, java.lang.String> getAnnotationsMap() {
return internalGetAnnotations().getMap();
}
/**
* <pre>
* pod.Annotations
* </pre>
*
* <code>map<string, string> annotations = 22 [json_name = "annotations"];</code>
*/
@java.lang.Override
public /* nullable */
java.lang.String getAnnotationsOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetAnnotations().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <pre>
* pod.Annotations
* </pre>
*
* <code>map<string, string> annotations = 22 [json_name = "annotations"];</code>
*/
@java.lang.Override
public java.lang.String getAnnotationsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetAnnotations().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearAnnotations() {
bitField0_ = (bitField0_ & ~0x00001000);
internalGetMutableAnnotations().getMutableMap()
.clear();
return this;
}
/**
* <pre>
* pod.Annotations
* </pre>
*
* <code>map<string, string> annotations = 22 [json_name = "annotations"];</code>
*/
public Builder removeAnnotations(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableAnnotations().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map<java.lang.String, java.lang.String>
getMutableAnnotations() {
bitField0_ |= 0x00001000;
return internalGetMutableAnnotations().getMutableMap();
}
/**
* <pre>
* pod.Annotations
* </pre>
*
* <code>map<string, string> annotations = 22 [json_name = "annotations"];</code>
*/
public Builder putAnnotations(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) { throw new NullPointerException("map value"); }
internalGetMutableAnnotations().getMutableMap()
.put(key, value);
bitField0_ |= 0x00001000;
return this;
}
/**
* <pre>
* pod.Annotations
* </pre>
*
* <code>map<string, string> annotations = 22 [json_name = "annotations"];</code>
*/
public Builder putAllAnnotations(
java.util.Map<java.lang.String, java.lang.String> values) {
internalGetMutableAnnotations().getMutableMap()
.putAll(values);
bitField0_ |= 0x00001000;
return this;
}
private java.lang.Object cluster_ = "";
/**
* <code>string cluster = 23 [json_name = "cluster"];</code>
* @return The cluster.
*/
public java.lang.String getCluster() {
java.lang.Object ref = cluster_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
cluster_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string cluster = 23 [json_name = "cluster"];</code>
* @return The bytes for cluster.
*/
public com.google.protobuf.ByteString
getClusterBytes() {
java.lang.Object ref = cluster_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cluster_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string cluster = 23 [json_name = "cluster"];</code>
* @param value The cluster to set.
* @return This builder for chaining.
*/
public Builder setCluster(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
cluster_ = value;
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
* <code>string cluster = 23 [json_name = "cluster"];</code>
* @return This builder for chaining.
*/
public Builder clearCluster() {
cluster_ = getDefaultInstance().getCluster();
bitField0_ = (bitField0_ & ~0x00002000);
onChanged();
return this;
}
/**
* <code>string cluster = 23 [json_name = "cluster"];</code>
* @param value The bytes for cluster to set.
* @return This builder for chaining.
*/
public Builder setClusterBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
cluster_ = value;
bitField0_ |= 0x00002000;
onChanged();
return this;
}
private java.lang.Object uid_ = "";
/**
* <pre>
* // node.UID
* </pre>
*
* <code>string uid = 24 [json_name = "uid"];</code>
* @return The uid.
*/
public java.lang.String getUid() {
java.lang.Object ref = uid_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
uid_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* // node.UID
* </pre>
*
* <code>string uid = 24 [json_name = "uid"];</code>
* @return The bytes for uid.
*/
public com.google.protobuf.ByteString
getUidBytes() {
java.lang.Object ref = uid_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
uid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* // node.UID
* </pre>
*
* <code>string uid = 24 [json_name = "uid"];</code>
* @param value The uid to set.
* @return This builder for chaining.
*/
public Builder setUid(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
uid_ = value;
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
* <pre>
* // node.UID
* </pre>
*
* <code>string uid = 24 [json_name = "uid"];</code>
* @return This builder for chaining.
*/
public Builder clearUid() {
uid_ = getDefaultInstance().getUid();
bitField0_ = (bitField0_ & ~0x00004000);
onChanged();
return this;
}
/**
* <pre>
* // node.UID
* </pre>
*
* <code>string uid = 24 [json_name = "uid"];</code>
* @param value The bytes for uid to set.
* @return This builder for chaining.
*/
public Builder setUidBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
uid_ = value;
bitField0_ |= 0x00004000;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
* <pre>
* // node.Name
* </pre>
*
* <code>string name = 25 [json_name = "name"];</code>
* @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;
}
}
/**
* <pre>
* // node.Name
* </pre>
*
* <code>string name = 25 [json_name = "name"];</code>
* @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;
}
}
/**
* <pre>
* // node.Name
* </pre>
*
* <code>string name = 25 [json_name = "name"];</code>
* @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_ |= 0x00008000;
onChanged();
return this;
}
/**
* <pre>
* // node.Name
* </pre>
*
* <code>string name = 25 [json_name = "name"];</code>
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00008000);
onChanged();
return this;
}
/**
* <pre>
* // node.Name
* </pre>
*
* <code>string name = 25 [json_name = "name"];</code>
* @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_ |= 0x00008000;
onChanged();
return this;
}
private java.lang.Object namespace_ = "";
/**
* <code>string namespace = 26 [json_name = "namespace"];</code>
* @return The namespace.
*/
public java.lang.String getNamespace() {
java.lang.Object ref = namespace_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
namespace_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string namespace = 26 [json_name = "namespace"];</code>
* @return The bytes for namespace.
*/
public com.google.protobuf.ByteString
getNamespaceBytes() {
java.lang.Object ref = namespace_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
namespace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string namespace = 26 [json_name = "namespace"];</code>
* @param value The namespace to set.
* @return This builder for chaining.
*/
public Builder setNamespace(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
namespace_ = value;
bitField0_ |= 0x00010000;
onChanged();
return this;
}
/**
* <code>string namespace = 26 [json_name = "namespace"];</code>
* @return This builder for chaining.
*/
public Builder clearNamespace() {
namespace_ = getDefaultInstance().getNamespace();
bitField0_ = (bitField0_ & ~0x00010000);
onChanged();
return this;
}
/**
* <code>string namespace = 26 [json_name = "namespace"];</code>
* @param value The bytes for namespace to set.
* @return This builder for chaining.
*/
public Builder setNamespaceBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
namespace_ = value;
bitField0_ |= 0x00010000;
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:chalk.pubsub.v1.PodStatusPubSub)
}
// @@protoc_insertion_point(class_scope:chalk.pubsub.v1.PodStatusPubSub)
private static final ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub();
}
public static ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<PodStatusPubSub>
PARSER = new com.google.protobuf.AbstractParser<PodStatusPubSub>() {
@java.lang.Override
public PodStatusPubSub 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<PodStatusPubSub> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<PodStatusPubSub> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/pubsub
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/pubsub/v1/PodStatusPubSubOrBuilder.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/pubsub/v1/pod_status.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.pubsub.v1;
public interface PodStatusPubSubOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.pubsub.v1.PodStatusPubSub)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* The Chalk team name that incurred the usage.
* </pre>
*
* <code>string team = 1 [json_name = "team"];</code>
* @return The team.
*/
java.lang.String getTeam();
/**
* <pre>
* The Chalk team name that incurred the usage.
* </pre>
*
* <code>string team = 1 [json_name = "team"];</code>
* @return The bytes for team.
*/
com.google.protobuf.ByteString
getTeamBytes();
/**
* <code>string app = 2 [json_name = "app"];</code>
* @return The app.
*/
java.lang.String getApp();
/**
* <code>string app = 2 [json_name = "app"];</code>
* @return The bytes for app.
*/
com.google.protobuf.ByteString
getAppBytes();
/**
* <code>string component = 3 [json_name = "component"];</code>
* @return The component.
*/
java.lang.String getComponent();
/**
* <code>string component = 3 [json_name = "component"];</code>
* @return The bytes for component.
*/
com.google.protobuf.ByteString
getComponentBytes();
/**
* <code>string datadog_service = 4 [json_name = "datadogService"];</code>
* @return The datadogService.
*/
java.lang.String getDatadogService();
/**
* <code>string datadog_service = 4 [json_name = "datadogService"];</code>
* @return The bytes for datadogService.
*/
com.google.protobuf.ByteString
getDatadogServiceBytes();
/**
* <code>string datadog_version = 5 [json_name = "datadogVersion"];</code>
* @return The datadogVersion.
*/
java.lang.String getDatadogVersion();
/**
* <code>string datadog_version = 5 [json_name = "datadogVersion"];</code>
* @return The bytes for datadogVersion.
*/
com.google.protobuf.ByteString
getDatadogVersionBytes();
/**
* <code>string pod_template_hash = 6 [json_name = "podTemplateHash"];</code>
* @return The podTemplateHash.
*/
java.lang.String getPodTemplateHash();
/**
* <code>string pod_template_hash = 6 [json_name = "podTemplateHash"];</code>
* @return The bytes for podTemplateHash.
*/
com.google.protobuf.ByteString
getPodTemplateHashBytes();
/**
* <pre>
* string status = 7;
* </pre>
*
* <code>.chalk.pubsub.v1.PodStatusPubSub.PodStatus status = 7 [json_name = "status"];</code>
* @return Whether the status field is set.
*/
boolean hasStatus();
/**
* <pre>
* string status = 7;
* </pre>
*
* <code>.chalk.pubsub.v1.PodStatusPubSub.PodStatus status = 7 [json_name = "status"];</code>
* @return The status.
*/
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatus getStatus();
/**
* <pre>
* string status = 7;
* </pre>
*
* <code>.chalk.pubsub.v1.PodStatusPubSub.PodStatus status = 7 [json_name = "status"];</code>
*/
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodStatusOrBuilder getStatusOrBuilder();
/**
* <code>.chalk.pubsub.v1.PodStatusPubSub.PodSpec spec = 8 [json_name = "spec"];</code>
* @return Whether the spec field is set.
*/
boolean hasSpec();
/**
* <code>.chalk.pubsub.v1.PodStatusPubSub.PodSpec spec = 8 [json_name = "spec"];</code>
* @return The spec.
*/
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpec getSpec();
/**
* <code>.chalk.pubsub.v1.PodStatusPubSub.PodSpec spec = 8 [json_name = "spec"];</code>
*/
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.PodSpecOrBuilder getSpecOrBuilder();
/**
* <pre>
* The time that the instance was created.
* pod.CreationTimestamp.Unix()
* </pre>
*
* <code>int64 creation_timestamp = 18 [json_name = "creationTimestamp", (.gen_bq_schema.bigquery) = { ... }</code>
* @return The creationTimestamp.
*/
long getCreationTimestamp();
/**
* <pre>
* pod.DeletionTimestamp.Unix()
* The time that the instance was deleted. May be 0 if the instance is still running.
* </pre>
*
* <code>int64 deletion_timestamp = 19 [json_name = "deletionTimestamp", (.gen_bq_schema.bigquery) = { ... }</code>
* @return The deletionTimestamp.
*/
long getDeletionTimestamp();
/**
* <pre>
* The time that we polled the instance for usage.
* </pre>
*
* <code>int64 observed_timestamp = 20 [json_name = "observedTimestamp", (.gen_bq_schema.bigquery) = { ... }</code>
* @return The observedTimestamp.
*/
long getObservedTimestamp();
/**
* <pre>
* pod.Labels
* </pre>
*
* <code>map<string, string> labels = 21 [json_name = "labels"];</code>
*/
int getLabelsCount();
/**
* <pre>
* pod.Labels
* </pre>
*
* <code>map<string, string> labels = 21 [json_name = "labels"];</code>
*/
boolean containsLabels(
java.lang.String key);
/**
* Use {@link #getLabelsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map<java.lang.String, java.lang.String>
getLabels();
/**
* <pre>
* pod.Labels
* </pre>
*
* <code>map<string, string> labels = 21 [json_name = "labels"];</code>
*/
java.util.Map<java.lang.String, java.lang.String>
getLabelsMap();
/**
* <pre>
* pod.Labels
* </pre>
*
* <code>map<string, string> labels = 21 [json_name = "labels"];</code>
*/
/* nullable */
java.lang.String getLabelsOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue);
/**
* <pre>
* pod.Labels
* </pre>
*
* <code>map<string, string> labels = 21 [json_name = "labels"];</code>
*/
java.lang.String getLabelsOrThrow(
java.lang.String key);
/**
* <pre>
* pod.Annotations
* </pre>
*
* <code>map<string, string> annotations = 22 [json_name = "annotations"];</code>
*/
int getAnnotationsCount();
/**
* <pre>
* pod.Annotations
* </pre>
*
* <code>map<string, string> annotations = 22 [json_name = "annotations"];</code>
*/
boolean containsAnnotations(
java.lang.String key);
/**
* Use {@link #getAnnotationsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map<java.lang.String, java.lang.String>
getAnnotations();
/**
* <pre>
* pod.Annotations
* </pre>
*
* <code>map<string, string> annotations = 22 [json_name = "annotations"];</code>
*/
java.util.Map<java.lang.String, java.lang.String>
getAnnotationsMap();
/**
* <pre>
* pod.Annotations
* </pre>
*
* <code>map<string, string> annotations = 22 [json_name = "annotations"];</code>
*/
/* nullable */
java.lang.String getAnnotationsOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue);
/**
* <pre>
* pod.Annotations
* </pre>
*
* <code>map<string, string> annotations = 22 [json_name = "annotations"];</code>
*/
java.lang.String getAnnotationsOrThrow(
java.lang.String key);
/**
* <code>string cluster = 23 [json_name = "cluster"];</code>
* @return The cluster.
*/
java.lang.String getCluster();
/**
* <code>string cluster = 23 [json_name = "cluster"];</code>
* @return The bytes for cluster.
*/
com.google.protobuf.ByteString
getClusterBytes();
/**
* <pre>
* // node.UID
* </pre>
*
* <code>string uid = 24 [json_name = "uid"];</code>
* @return The uid.
*/
java.lang.String getUid();
/**
* <pre>
* // node.UID
* </pre>
*
* <code>string uid = 24 [json_name = "uid"];</code>
* @return The bytes for uid.
*/
com.google.protobuf.ByteString
getUidBytes();
/**
* <pre>
* // node.Name
* </pre>
*
* <code>string name = 25 [json_name = "name"];</code>
* @return The name.
*/
java.lang.String getName();
/**
* <pre>
* // node.Name
* </pre>
*
* <code>string name = 25 [json_name = "name"];</code>
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* <code>string namespace = 26 [json_name = "namespace"];</code>
* @return The namespace.
*/
java.lang.String getNamespace();
/**
* <code>string namespace = 26 [json_name = "namespace"];</code>
* @return The bytes for namespace.
*/
com.google.protobuf.ByteString
getNamespaceBytes();
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/pubsub
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/pubsub/v1/QueriesProto.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/pubsub/v1/queries.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.pubsub.v1;
public final class QueriesProto {
private QueriesProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_pubsub_v1_QueryMessagePubSub_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_pubsub_v1_QueryMessagePubSub_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_pubsub_v1_QueryMessagePubSub_QueryMetaEntry_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_pubsub_v1_QueryMessagePubSub_QueryMetaEntry_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\035chalk/pubsub/v1/queries.proto\022\017chalk.p" +
"ubsub.v1\032\034gen_bq_schema/bq_field.proto\032\034" +
"gen_bq_schema/bq_table.proto\"\304\010\n\022QueryMe" +
"ssagePubSub\022!\n\014operation_id\030\001 \001(\tR\013opera" +
"tionId\022%\n\016environment_id\030\002 \001(\tR\renvironm" +
"entId\022Q\n\nquery_meta\030\003 \003(\01322.chalk.pubsub" +
".v1.QueryMessagePubSub.QueryMetaEntryR\tq" +
"ueryMeta\022\"\n\nquery_name\030\004 \001(\tH\000R\tqueryNam" +
"e\210\001\001\0221\n\022query_name_version\030\005 \001(\tH\001R\020quer" +
"yNameVersion\210\001\001\022*\n\016correlation_id\030\006 \001(\tH" +
"\002R\rcorrelationId\210\001\001\022%\n\016input_features\030\007 " +
"\003(\tR\rinputFeatures\022\'\n\017output_features\030\010 " +
"\003(\tR\016outputFeatures\022(\n\020output_root_fqns\030" +
"\t \003(\tR\016outputRootFqns\0223\n\025intermediate_fe" +
"atures\030\n \003(\tR\024intermediateFeatures\022\034\n\tre" +
"solvers\030\013 \003(\tR\tresolvers\022\'\n\rquery_plan_i" +
"d\030\014 \001(\tH\003R\013queryPlanId\210\001\001\022-\n\ncreated_at\030" +
"\r \001(\003B\016\352?\013\022\tTIMESTAMPR\tcreatedAt\022\"\n\nhas_" +
"errors\030\016 \001(\010H\004R\thasErrors\210\001\001\022\036\n\010agent_id" +
"\030\017 \001(\tH\005R\007agentId\210\001\001\022$\n\013branch_name\030\020 \001(" +
"\tH\006R\nbranchName\210\001\001\022(\n\rdeployment_id\030\021 \001(" +
"\tH\007R\014deploymentId\210\001\001\022+\n\017has_plan_stages\030" +
"\022 \001(\010H\010R\rhasPlanStages\210\001\001\022+\n\017meta_query_" +
"hash\030\023 \001(\tH\tR\rmetaQueryHash\210\001\001\032<\n\016QueryM" +
"etaEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(" +
"\tR\005value:\0028\001:\014\352?\t\n\007queriesB\r\n\013_query_nam" +
"eB\025\n\023_query_name_versionB\021\n\017_correlation" +
"_idB\020\n\016_query_plan_idB\r\n\013_has_errorsB\013\n\t" +
"_agent_idB\016\n\014_branch_nameB\020\n\016_deployment" +
"_idB\022\n\020_has_plan_stagesB\022\n\020_meta_query_h" +
"ashB\241\001\n\037ai.chalk.protos.chalk.pubsub.v1B" +
"\014QueriesProtoP\001Z\022pubsub/v1;pubsubv1\242\002\003CP" +
"X\252\002\017Chalk.Pubsub.V1\312\002\017Chalk\\Pubsub\\V1\342\002\033" +
"Chalk\\Pubsub\\V1\\GPBMetadata\352\002\021Chalk::Pub" +
"sub::V1b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
ai.chalk.protos.gen_bq_schema.BqFieldProto.getDescriptor(),
ai.chalk.protos.gen_bq_schema.BqTableProto.getDescriptor(),
});
internal_static_chalk_pubsub_v1_QueryMessagePubSub_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_chalk_pubsub_v1_QueryMessagePubSub_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_pubsub_v1_QueryMessagePubSub_descriptor,
new java.lang.String[] { "OperationId", "EnvironmentId", "QueryMeta", "QueryName", "QueryNameVersion", "CorrelationId", "InputFeatures", "OutputFeatures", "OutputRootFqns", "IntermediateFeatures", "Resolvers", "QueryPlanId", "CreatedAt", "HasErrors", "AgentId", "BranchName", "DeploymentId", "HasPlanStages", "MetaQueryHash", });
internal_static_chalk_pubsub_v1_QueryMessagePubSub_QueryMetaEntry_descriptor =
internal_static_chalk_pubsub_v1_QueryMessagePubSub_descriptor.getNestedTypes().get(0);
internal_static_chalk_pubsub_v1_QueryMessagePubSub_QueryMetaEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_pubsub_v1_QueryMessagePubSub_QueryMetaEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(ai.chalk.protos.gen_bq_schema.BqFieldProto.bigquery);
registry.add(ai.chalk.protos.gen_bq_schema.BqTableProto.bigqueryOpts);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
ai.chalk.protos.gen_bq_schema.BqFieldProto.getDescriptor();
ai.chalk.protos.gen_bq_schema.BqTableProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/pubsub
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/pubsub/v1/QueryMessagePubSub.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/pubsub/v1/queries.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.pubsub.v1;
/**
* <pre>
* QueryMessagePubSub corresponds exactly to the QueryStorageMessage pydantic model,
* which in turn mostly corresponds to the QueryStorageRequest pydantic model.
* It captures information about an online query from the header, plan, parsed metadata, and more.
* </pre>
*
* Protobuf type {@code chalk.pubsub.v1.QueryMessagePubSub}
*/
public final class QueryMessagePubSub extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.pubsub.v1.QueryMessagePubSub)
QueryMessagePubSubOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryMessagePubSub.newBuilder() to construct.
private QueryMessagePubSub(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private QueryMessagePubSub() {
operationId_ = "";
environmentId_ = "";
queryName_ = "";
queryNameVersion_ = "";
correlationId_ = "";
inputFeatures_ =
com.google.protobuf.LazyStringArrayList.emptyList();
outputFeatures_ =
com.google.protobuf.LazyStringArrayList.emptyList();
outputRootFqns_ =
com.google.protobuf.LazyStringArrayList.emptyList();
intermediateFeatures_ =
com.google.protobuf.LazyStringArrayList.emptyList();
resolvers_ =
com.google.protobuf.LazyStringArrayList.emptyList();
queryPlanId_ = "";
agentId_ = "";
branchName_ = "";
deploymentId_ = "";
metaQueryHash_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueryMessagePubSub();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.pubsub.v1.QueriesProto.internal_static_chalk_pubsub_v1_QueryMessagePubSub_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 3:
return internalGetQueryMeta();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.pubsub.v1.QueriesProto.internal_static_chalk_pubsub_v1_QueryMessagePubSub_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.pubsub.v1.QueryMessagePubSub.class, ai.chalk.protos.chalk.pubsub.v1.QueryMessagePubSub.Builder.class);
}
private int bitField0_;
public static final int OPERATION_ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object operationId_ = "";
/**
* <pre>
* Operation unique identifier
* </pre>
*
* <code>string operation_id = 1 [json_name = "operationId"];</code>
* @return The operationId.
*/
@java.lang.Override
public java.lang.String getOperationId() {
java.lang.Object ref = operationId_;
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();
operationId_ = s;
return s;
}
}
/**
* <pre>
* Operation unique identifier
* </pre>
*
* <code>string operation_id = 1 [json_name = "operationId"];</code>
* @return The bytes for operationId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOperationIdBytes() {
java.lang.Object ref = operationId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
operationId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ENVIRONMENT_ID_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object environmentId_ = "";
/**
* <pre>
* Environment query belongs to
* </pre>
*
* <code>string environment_id = 2 [json_name = "environmentId"];</code>
* @return The environmentId.
*/
@java.lang.Override
public java.lang.String getEnvironmentId() {
java.lang.Object ref = environmentId_;
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();
environmentId_ = s;
return s;
}
}
/**
* <pre>
* Environment query belongs to
* </pre>
*
* <code>string environment_id = 2 [json_name = "environmentId"];</code>
* @return The bytes for environmentId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getEnvironmentIdBytes() {
java.lang.Object ref = environmentId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
environmentId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int QUERY_META_FIELD_NUMBER = 3;
private static final class QueryMetaDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.<java.lang.String, java.lang.String>newDefaultInstance(
ai.chalk.protos.chalk.pubsub.v1.QueriesProto.internal_static_chalk_pubsub_v1_QueryMessagePubSub_QueryMetaEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> queryMeta_;
private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetQueryMeta() {
if (queryMeta_ == null) {
return com.google.protobuf.MapField.emptyMapField(
QueryMetaDefaultEntryHolder.defaultEntry);
}
return queryMeta_;
}
public int getQueryMetaCount() {
return internalGetQueryMeta().getMap().size();
}
/**
* <pre>
* maps to FeatherRequestHeader.meta which can be specified via the client
* </pre>
*
* <code>map<string, string> query_meta = 3 [json_name = "queryMeta"];</code>
*/
@java.lang.Override
public boolean containsQueryMeta(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetQueryMeta().getMap().containsKey(key);
}
/**
* Use {@link #getQueryMetaMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map<java.lang.String, java.lang.String> getQueryMeta() {
return getQueryMetaMap();
}
/**
* <pre>
* maps to FeatherRequestHeader.meta which can be specified via the client
* </pre>
*
* <code>map<string, string> query_meta = 3 [json_name = "queryMeta"];</code>
*/
@java.lang.Override
public java.util.Map<java.lang.String, java.lang.String> getQueryMetaMap() {
return internalGetQueryMeta().getMap();
}
/**
* <pre>
* maps to FeatherRequestHeader.meta which can be specified via the client
* </pre>
*
* <code>map<string, string> query_meta = 3 [json_name = "queryMeta"];</code>
*/
@java.lang.Override
public /* nullable */
java.lang.String getQueryMetaOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetQueryMeta().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <pre>
* maps to FeatherRequestHeader.meta which can be specified via the client
* </pre>
*
* <code>map<string, string> query_meta = 3 [json_name = "queryMeta"];</code>
*/
@java.lang.Override
public java.lang.String getQueryMetaOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetQueryMeta().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int QUERY_NAME_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object queryName_ = "";
/**
* <pre>
* maps to FeatherRequestHeader.query_name which can be specified via the client
* </pre>
*
* <code>optional string query_name = 4 [json_name = "queryName"];</code>
* @return Whether the queryName field is set.
*/
@java.lang.Override
public boolean hasQueryName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <pre>
* maps to FeatherRequestHeader.query_name which can be specified via the client
* </pre>
*
* <code>optional string query_name = 4 [json_name = "queryName"];</code>
* @return The queryName.
*/
@java.lang.Override
public java.lang.String getQueryName() {
java.lang.Object ref = queryName_;
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();
queryName_ = s;
return s;
}
}
/**
* <pre>
* maps to FeatherRequestHeader.query_name which can be specified via the client
* </pre>
*
* <code>optional string query_name = 4 [json_name = "queryName"];</code>
* @return The bytes for queryName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getQueryNameBytes() {
java.lang.Object ref = queryName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
queryName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int QUERY_NAME_VERSION_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object queryNameVersion_ = "";
/**
* <pre>
* maps to FeatherRequestHeader.query_name_version which can be specified via the client
* </pre>
*
* <code>optional string query_name_version = 5 [json_name = "queryNameVersion"];</code>
* @return Whether the queryNameVersion field is set.
*/
@java.lang.Override
public boolean hasQueryNameVersion() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* <pre>
* maps to FeatherRequestHeader.query_name_version which can be specified via the client
* </pre>
*
* <code>optional string query_name_version = 5 [json_name = "queryNameVersion"];</code>
* @return The queryNameVersion.
*/
@java.lang.Override
public java.lang.String getQueryNameVersion() {
java.lang.Object ref = queryNameVersion_;
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();
queryNameVersion_ = s;
return s;
}
}
/**
* <pre>
* maps to FeatherRequestHeader.query_name_version which can be specified via the client
* </pre>
*
* <code>optional string query_name_version = 5 [json_name = "queryNameVersion"];</code>
* @return The bytes for queryNameVersion.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getQueryNameVersionBytes() {
java.lang.Object ref = queryNameVersion_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
queryNameVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CORRELATION_ID_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private volatile java.lang.Object correlationId_ = "";
/**
* <pre>
* maps to FeatherRequestHeader.correlation_id which can be specified via the client
* </pre>
*
* <code>optional string correlation_id = 6 [json_name = "correlationId"];</code>
* @return Whether the correlationId field is set.
*/
@java.lang.Override
public boolean hasCorrelationId() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* <pre>
* maps to FeatherRequestHeader.correlation_id which can be specified via the client
* </pre>
*
* <code>optional string correlation_id = 6 [json_name = "correlationId"];</code>
* @return The correlationId.
*/
@java.lang.Override
public java.lang.String getCorrelationId() {
java.lang.Object ref = correlationId_;
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();
correlationId_ = s;
return s;
}
}
/**
* <pre>
* maps to FeatherRequestHeader.correlation_id which can be specified via the client
* </pre>
*
* <code>optional string correlation_id = 6 [json_name = "correlationId"];</code>
* @return The bytes for correlationId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCorrelationIdBytes() {
java.lang.Object ref = correlationId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
correlationId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INPUT_FEATURES_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList inputFeatures_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* <pre>
* parsed input feature fqns
* </pre>
*
* <code>repeated string input_features = 7 [json_name = "inputFeatures"];</code>
* @return A list containing the inputFeatures.
*/
public com.google.protobuf.ProtocolStringList
getInputFeaturesList() {
return inputFeatures_;
}
/**
* <pre>
* parsed input feature fqns
* </pre>
*
* <code>repeated string input_features = 7 [json_name = "inputFeatures"];</code>
* @return The count of inputFeatures.
*/
public int getInputFeaturesCount() {
return inputFeatures_.size();
}
/**
* <pre>
* parsed input feature fqns
* </pre>
*
* <code>repeated string input_features = 7 [json_name = "inputFeatures"];</code>
* @param index The index of the element to return.
* @return The inputFeatures at the given index.
*/
public java.lang.String getInputFeatures(int index) {
return inputFeatures_.get(index);
}
/**
* <pre>
* parsed input feature fqns
* </pre>
*
* <code>repeated string input_features = 7 [json_name = "inputFeatures"];</code>
* @param index The index of the value to return.
* @return The bytes of the inputFeatures at the given index.
*/
public com.google.protobuf.ByteString
getInputFeaturesBytes(int index) {
return inputFeatures_.getByteString(index);
}
public static final int OUTPUT_FEATURES_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList outputFeatures_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* <pre>
* parsed output feature fqns
* </pre>
*
* <code>repeated string output_features = 8 [json_name = "outputFeatures"];</code>
* @return A list containing the outputFeatures.
*/
public com.google.protobuf.ProtocolStringList
getOutputFeaturesList() {
return outputFeatures_;
}
/**
* <pre>
* parsed output feature fqns
* </pre>
*
* <code>repeated string output_features = 8 [json_name = "outputFeatures"];</code>
* @return The count of outputFeatures.
*/
public int getOutputFeaturesCount() {
return outputFeatures_.size();
}
/**
* <pre>
* parsed output feature fqns
* </pre>
*
* <code>repeated string output_features = 8 [json_name = "outputFeatures"];</code>
* @param index The index of the element to return.
* @return The outputFeatures at the given index.
*/
public java.lang.String getOutputFeatures(int index) {
return outputFeatures_.get(index);
}
/**
* <pre>
* parsed output feature fqns
* </pre>
*
* <code>repeated string output_features = 8 [json_name = "outputFeatures"];</code>
* @param index The index of the value to return.
* @return The bytes of the outputFeatures at the given index.
*/
public com.google.protobuf.ByteString
getOutputFeaturesBytes(int index) {
return outputFeatures_.getByteString(index);
}
public static final int OUTPUT_ROOT_FQNS_FIELD_NUMBER = 9;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList outputRootFqns_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* <pre>
* parsed output feature root fqns
* </pre>
*
* <code>repeated string output_root_fqns = 9 [json_name = "outputRootFqns"];</code>
* @return A list containing the outputRootFqns.
*/
public com.google.protobuf.ProtocolStringList
getOutputRootFqnsList() {
return outputRootFqns_;
}
/**
* <pre>
* parsed output feature root fqns
* </pre>
*
* <code>repeated string output_root_fqns = 9 [json_name = "outputRootFqns"];</code>
* @return The count of outputRootFqns.
*/
public int getOutputRootFqnsCount() {
return outputRootFqns_.size();
}
/**
* <pre>
* parsed output feature root fqns
* </pre>
*
* <code>repeated string output_root_fqns = 9 [json_name = "outputRootFqns"];</code>
* @param index The index of the element to return.
* @return The outputRootFqns at the given index.
*/
public java.lang.String getOutputRootFqns(int index) {
return outputRootFqns_.get(index);
}
/**
* <pre>
* parsed output feature root fqns
* </pre>
*
* <code>repeated string output_root_fqns = 9 [json_name = "outputRootFqns"];</code>
* @param index The index of the value to return.
* @return The bytes of the outputRootFqns at the given index.
*/
public com.google.protobuf.ByteString
getOutputRootFqnsBytes(int index) {
return outputRootFqns_.getByteString(index);
}
public static final int INTERMEDIATE_FEATURES_FIELD_NUMBER = 10;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList intermediateFeatures_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* <pre>
* intermediate feature fqns currently empty
* </pre>
*
* <code>repeated string intermediate_features = 10 [json_name = "intermediateFeatures"];</code>
* @return A list containing the intermediateFeatures.
*/
public com.google.protobuf.ProtocolStringList
getIntermediateFeaturesList() {
return intermediateFeatures_;
}
/**
* <pre>
* intermediate feature fqns currently empty
* </pre>
*
* <code>repeated string intermediate_features = 10 [json_name = "intermediateFeatures"];</code>
* @return The count of intermediateFeatures.
*/
public int getIntermediateFeaturesCount() {
return intermediateFeatures_.size();
}
/**
* <pre>
* intermediate feature fqns currently empty
* </pre>
*
* <code>repeated string intermediate_features = 10 [json_name = "intermediateFeatures"];</code>
* @param index The index of the element to return.
* @return The intermediateFeatures at the given index.
*/
public java.lang.String getIntermediateFeatures(int index) {
return intermediateFeatures_.get(index);
}
/**
* <pre>
* intermediate feature fqns currently empty
* </pre>
*
* <code>repeated string intermediate_features = 10 [json_name = "intermediateFeatures"];</code>
* @param index The index of the value to return.
* @return The bytes of the intermediateFeatures at the given index.
*/
public com.google.protobuf.ByteString
getIntermediateFeaturesBytes(int index) {
return intermediateFeatures_.getByteString(index);
}
public static final int RESOLVERS_FIELD_NUMBER = 11;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList resolvers_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* <pre>
* resolver fqns used in plan
* </pre>
*
* <code>repeated string resolvers = 11 [json_name = "resolvers"];</code>
* @return A list containing the resolvers.
*/
public com.google.protobuf.ProtocolStringList
getResolversList() {
return resolvers_;
}
/**
* <pre>
* resolver fqns used in plan
* </pre>
*
* <code>repeated string resolvers = 11 [json_name = "resolvers"];</code>
* @return The count of resolvers.
*/
public int getResolversCount() {
return resolvers_.size();
}
/**
* <pre>
* resolver fqns used in plan
* </pre>
*
* <code>repeated string resolvers = 11 [json_name = "resolvers"];</code>
* @param index The index of the element to return.
* @return The resolvers at the given index.
*/
public java.lang.String getResolvers(int index) {
return resolvers_.get(index);
}
/**
* <pre>
* resolver fqns used in plan
* </pre>
*
* <code>repeated string resolvers = 11 [json_name = "resolvers"];</code>
* @param index The index of the value to return.
* @return The bytes of the resolvers at the given index.
*/
public com.google.protobuf.ByteString
getResolversBytes(int index) {
return resolvers_.getByteString(index);
}
public static final int QUERY_PLAN_ID_FIELD_NUMBER = 12;
@SuppressWarnings("serial")
private volatile java.lang.Object queryPlanId_ = "";
/**
* <pre>
* id of final plan
* </pre>
*
* <code>optional string query_plan_id = 12 [json_name = "queryPlanId"];</code>
* @return Whether the queryPlanId field is set.
*/
@java.lang.Override
public boolean hasQueryPlanId() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* <pre>
* id of final plan
* </pre>
*
* <code>optional string query_plan_id = 12 [json_name = "queryPlanId"];</code>
* @return The queryPlanId.
*/
@java.lang.Override
public java.lang.String getQueryPlanId() {
java.lang.Object ref = queryPlanId_;
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();
queryPlanId_ = s;
return s;
}
}
/**
* <pre>
* id of final plan
* </pre>
*
* <code>optional string query_plan_id = 12 [json_name = "queryPlanId"];</code>
* @return The bytes for queryPlanId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getQueryPlanIdBytes() {
java.lang.Object ref = queryPlanId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
queryPlanId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CREATED_AT_FIELD_NUMBER = 13;
private long createdAt_ = 0L;
/**
* <pre>
* timestamp
* </pre>
*
* <code>int64 created_at = 13 [json_name = "createdAt", (.gen_bq_schema.bigquery) = { ... }</code>
* @return The createdAt.
*/
@java.lang.Override
public long getCreatedAt() {
return createdAt_;
}
public static final int HAS_ERRORS_FIELD_NUMBER = 14;
private boolean hasErrors_ = false;
/**
* <pre>
* if query had errors
* </pre>
*
* <code>optional bool has_errors = 14 [json_name = "hasErrors"];</code>
* @return Whether the hasErrors field is set.
*/
@java.lang.Override
public boolean hasHasErrors() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* <pre>
* if query had errors
* </pre>
*
* <code>optional bool has_errors = 14 [json_name = "hasErrors"];</code>
* @return The hasErrors.
*/
@java.lang.Override
public boolean getHasErrors() {
return hasErrors_;
}
public static final int AGENT_ID_FIELD_NUMBER = 15;
@SuppressWarnings("serial")
private volatile java.lang.Object agentId_ = "";
/**
* <pre>
* aka as requester_id from run context
* </pre>
*
* <code>optional string agent_id = 15 [json_name = "agentId"];</code>
* @return Whether the agentId field is set.
*/
@java.lang.Override
public boolean hasAgentId() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* <pre>
* aka as requester_id from run context
* </pre>
*
* <code>optional string agent_id = 15 [json_name = "agentId"];</code>
* @return The agentId.
*/
@java.lang.Override
public java.lang.String getAgentId() {
java.lang.Object ref = agentId_;
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();
agentId_ = s;
return s;
}
}
/**
* <pre>
* aka as requester_id from run context
* </pre>
*
* <code>optional string agent_id = 15 [json_name = "agentId"];</code>
* @return The bytes for agentId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAgentIdBytes() {
java.lang.Object ref = agentId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
agentId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BRANCH_NAME_FIELD_NUMBER = 16;
@SuppressWarnings("serial")
private volatile java.lang.Object branchName_ = "";
/**
* <pre>
* branch query was run on
* </pre>
*
* <code>optional string branch_name = 16 [json_name = "branchName"];</code>
* @return Whether the branchName field is set.
*/
@java.lang.Override
public boolean hasBranchName() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* <pre>
* branch query was run on
* </pre>
*
* <code>optional string branch_name = 16 [json_name = "branchName"];</code>
* @return The branchName.
*/
@java.lang.Override
public java.lang.String getBranchName() {
java.lang.Object ref = branchName_;
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();
branchName_ = s;
return s;
}
}
/**
* <pre>
* branch query was run on
* </pre>
*
* <code>optional string branch_name = 16 [json_name = "branchName"];</code>
* @return The bytes for branchName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBranchNameBytes() {
java.lang.Object ref = branchName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
branchName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DEPLOYMENT_ID_FIELD_NUMBER = 17;
@SuppressWarnings("serial")
private volatile java.lang.Object deploymentId_ = "";
/**
* <pre>
* deployment query was run on
* </pre>
*
* <code>optional string deployment_id = 17 [json_name = "deploymentId"];</code>
* @return Whether the deploymentId field is set.
*/
@java.lang.Override
public boolean hasDeploymentId() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* <pre>
* deployment query was run on
* </pre>
*
* <code>optional string deployment_id = 17 [json_name = "deploymentId"];</code>
* @return The deploymentId.
*/
@java.lang.Override
public java.lang.String getDeploymentId() {
java.lang.Object ref = deploymentId_;
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();
deploymentId_ = s;
return s;
}
}
/**
* <pre>
* deployment query was run on
* </pre>
*
* <code>optional string deployment_id = 17 [json_name = "deploymentId"];</code>
* @return The bytes for deploymentId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDeploymentIdBytes() {
java.lang.Object ref = deploymentId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
deploymentId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int HAS_PLAN_STAGES_FIELD_NUMBER = 18;
private boolean hasPlanStages_ = false;
/**
* <pre>
* if query was run with plan_stages
* </pre>
*
* <code>optional bool has_plan_stages = 18 [json_name = "hasPlanStages"];</code>
* @return Whether the hasPlanStages field is set.
*/
@java.lang.Override
public boolean hasHasPlanStages() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* <pre>
* if query was run with plan_stages
* </pre>
*
* <code>optional bool has_plan_stages = 18 [json_name = "hasPlanStages"];</code>
* @return The hasPlanStages.
*/
@java.lang.Override
public boolean getHasPlanStages() {
return hasPlanStages_;
}
public static final int META_QUERY_HASH_FIELD_NUMBER = 19;
@SuppressWarnings("serial")
private volatile java.lang.Object metaQueryHash_ = "";
/**
* <pre>
* the meta query hash
* </pre>
*
* <code>optional string meta_query_hash = 19 [json_name = "metaQueryHash"];</code>
* @return Whether the metaQueryHash field is set.
*/
@java.lang.Override
public boolean hasMetaQueryHash() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* <pre>
* the meta query hash
* </pre>
*
* <code>optional string meta_query_hash = 19 [json_name = "metaQueryHash"];</code>
* @return The metaQueryHash.
*/
@java.lang.Override
public java.lang.String getMetaQueryHash() {
java.lang.Object ref = metaQueryHash_;
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();
metaQueryHash_ = s;
return s;
}
}
/**
* <pre>
* the meta query hash
* </pre>
*
* <code>optional string meta_query_hash = 19 [json_name = "metaQueryHash"];</code>
* @return The bytes for metaQueryHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMetaQueryHashBytes() {
java.lang.Object ref = metaQueryHash_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
metaQueryHash_ = 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(operationId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, operationId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environmentId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, environmentId_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetQueryMeta(),
QueryMetaDefaultEntryHolder.defaultEntry,
3);
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, queryName_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, queryNameVersion_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, correlationId_);
}
for (int i = 0; i < inputFeatures_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, inputFeatures_.getRaw(i));
}
for (int i = 0; i < outputFeatures_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, outputFeatures_.getRaw(i));
}
for (int i = 0; i < outputRootFqns_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, outputRootFqns_.getRaw(i));
}
for (int i = 0; i < intermediateFeatures_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, intermediateFeatures_.getRaw(i));
}
for (int i = 0; i < resolvers_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, resolvers_.getRaw(i));
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, queryPlanId_);
}
if (createdAt_ != 0L) {
output.writeInt64(13, createdAt_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeBool(14, hasErrors_);
}
if (((bitField0_ & 0x00000020) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 15, agentId_);
}
if (((bitField0_ & 0x00000040) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 16, branchName_);
}
if (((bitField0_ & 0x00000080) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 17, deploymentId_);
}
if (((bitField0_ & 0x00000100) != 0)) {
output.writeBool(18, hasPlanStages_);
}
if (((bitField0_ & 0x00000200) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 19, metaQueryHash_);
}
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(operationId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, operationId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environmentId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, environmentId_);
}
for (java.util.Map.Entry<java.lang.String, java.lang.String> entry
: internalGetQueryMeta().getMap().entrySet()) {
com.google.protobuf.MapEntry<java.lang.String, java.lang.String>
queryMeta__ = QueryMetaDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, queryMeta__);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, queryName_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, queryNameVersion_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, correlationId_);
}
{
int dataSize = 0;
for (int i = 0; i < inputFeatures_.size(); i++) {
dataSize += computeStringSizeNoTag(inputFeatures_.getRaw(i));
}
size += dataSize;
size += 1 * getInputFeaturesList().size();
}
{
int dataSize = 0;
for (int i = 0; i < outputFeatures_.size(); i++) {
dataSize += computeStringSizeNoTag(outputFeatures_.getRaw(i));
}
size += dataSize;
size += 1 * getOutputFeaturesList().size();
}
{
int dataSize = 0;
for (int i = 0; i < outputRootFqns_.size(); i++) {
dataSize += computeStringSizeNoTag(outputRootFqns_.getRaw(i));
}
size += dataSize;
size += 1 * getOutputRootFqnsList().size();
}
{
int dataSize = 0;
for (int i = 0; i < intermediateFeatures_.size(); i++) {
dataSize += computeStringSizeNoTag(intermediateFeatures_.getRaw(i));
}
size += dataSize;
size += 1 * getIntermediateFeaturesList().size();
}
{
int dataSize = 0;
for (int i = 0; i < resolvers_.size(); i++) {
dataSize += computeStringSizeNoTag(resolvers_.getRaw(i));
}
size += dataSize;
size += 1 * getResolversList().size();
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, queryPlanId_);
}
if (createdAt_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(13, createdAt_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(14, hasErrors_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, agentId_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, branchName_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, deploymentId_);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(18, hasPlanStages_);
}
if (((bitField0_ & 0x00000200) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, metaQueryHash_);
}
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 ai.chalk.protos.chalk.pubsub.v1.QueryMessagePubSub)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.pubsub.v1.QueryMessagePubSub other = (ai.chalk.protos.chalk.pubsub.v1.QueryMessagePubSub) obj;
if (!getOperationId()
.equals(other.getOperationId())) return false;
if (!getEnvironmentId()
.equals(other.getEnvironmentId())) return false;
if (!internalGetQueryMeta().equals(
other.internalGetQueryMeta())) return false;
if (hasQueryName() != other.hasQueryName()) return false;
if (hasQueryName()) {
if (!getQueryName()
.equals(other.getQueryName())) return false;
}
if (hasQueryNameVersion() != other.hasQueryNameVersion()) return false;
if (hasQueryNameVersion()) {
if (!getQueryNameVersion()
.equals(other.getQueryNameVersion())) return false;
}
if (hasCorrelationId() != other.hasCorrelationId()) return false;
if (hasCorrelationId()) {
if (!getCorrelationId()
.equals(other.getCorrelationId())) return false;
}
if (!getInputFeaturesList()
.equals(other.getInputFeaturesList())) return false;
if (!getOutputFeaturesList()
.equals(other.getOutputFeaturesList())) return false;
if (!getOutputRootFqnsList()
.equals(other.getOutputRootFqnsList())) return false;
if (!getIntermediateFeaturesList()
.equals(other.getIntermediateFeaturesList())) return false;
if (!getResolversList()
.equals(other.getResolversList())) return false;
if (hasQueryPlanId() != other.hasQueryPlanId()) return false;
if (hasQueryPlanId()) {
if (!getQueryPlanId()
.equals(other.getQueryPlanId())) return false;
}
if (getCreatedAt()
!= other.getCreatedAt()) return false;
if (hasHasErrors() != other.hasHasErrors()) return false;
if (hasHasErrors()) {
if (getHasErrors()
!= other.getHasErrors()) return false;
}
if (hasAgentId() != other.hasAgentId()) return false;
if (hasAgentId()) {
if (!getAgentId()
.equals(other.getAgentId())) return false;
}
if (hasBranchName() != other.hasBranchName()) return false;
if (hasBranchName()) {
if (!getBranchName()
.equals(other.getBranchName())) return false;
}
if (hasDeploymentId() != other.hasDeploymentId()) return false;
if (hasDeploymentId()) {
if (!getDeploymentId()
.equals(other.getDeploymentId())) return false;
}
if (hasHasPlanStages() != other.hasHasPlanStages()) return false;
if (hasHasPlanStages()) {
if (getHasPlanStages()
!= other.getHasPlanStages()) return false;
}
if (hasMetaQueryHash() != other.hasMetaQueryHash()) return false;
if (hasMetaQueryHash()) {
if (!getMetaQueryHash()
.equals(other.getMetaQueryHash())) 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) + OPERATION_ID_FIELD_NUMBER;
hash = (53 * hash) + getOperationId().hashCode();
hash = (37 * hash) + ENVIRONMENT_ID_FIELD_NUMBER;
hash = (53 * hash) + getEnvironmentId().hashCode();
if (!internalGetQueryMeta().getMap().isEmpty()) {
hash = (37 * hash) + QUERY_META_FIELD_NUMBER;
hash = (53 * hash) + internalGetQueryMeta().hashCode();
}
if (hasQueryName()) {
hash = (37 * hash) + QUERY_NAME_FIELD_NUMBER;
hash = (53 * hash) + getQueryName().hashCode();
}
if (hasQueryNameVersion()) {
hash = (37 * hash) + QUERY_NAME_VERSION_FIELD_NUMBER;
hash = (53 * hash) + getQueryNameVersion().hashCode();
}
if (hasCorrelationId()) {
hash = (37 * hash) + CORRELATION_ID_FIELD_NUMBER;
hash = (53 * hash) + getCorrelationId().hashCode();
}
if (getInputFeaturesCount() > 0) {
hash = (37 * hash) + INPUT_FEATURES_FIELD_NUMBER;
hash = (53 * hash) + getInputFeaturesList().hashCode();
}
if (getOutputFeaturesCount() > 0) {
hash = (37 * hash) + OUTPUT_FEATURES_FIELD_NUMBER;
hash = (53 * hash) + getOutputFeaturesList().hashCode();
}
if (getOutputRootFqnsCount() > 0) {
hash = (37 * hash) + OUTPUT_ROOT_FQNS_FIELD_NUMBER;
hash = (53 * hash) + getOutputRootFqnsList().hashCode();
}
if (getIntermediateFeaturesCount() > 0) {
hash = (37 * hash) + INTERMEDIATE_FEATURES_FIELD_NUMBER;
hash = (53 * hash) + getIntermediateFeaturesList().hashCode();
}
if (getResolversCount() > 0) {
hash = (37 * hash) + RESOLVERS_FIELD_NUMBER;
hash = (53 * hash) + getResolversList().hashCode();
}
if (hasQueryPlanId()) {
hash = (37 * hash) + QUERY_PLAN_ID_FIELD_NUMBER;
hash = (53 * hash) + getQueryPlanId().hashCode();
}
hash = (37 * hash) + CREATED_AT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCreatedAt());
if (hasHasErrors()) {
hash = (37 * hash) + HAS_ERRORS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getHasErrors());
}
if (hasAgentId()) {
hash = (37 * hash) + AGENT_ID_FIELD_NUMBER;
hash = (53 * hash) + getAgentId().hashCode();
}
if (hasBranchName()) {
hash = (37 * hash) + BRANCH_NAME_FIELD_NUMBER;
hash = (53 * hash) + getBranchName().hashCode();
}
if (hasDeploymentId()) {
hash = (37 * hash) + DEPLOYMENT_ID_FIELD_NUMBER;
hash = (53 * hash) + getDeploymentId().hashCode();
}
if (hasHasPlanStages()) {
hash = (37 * hash) + HAS_PLAN_STAGES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getHasPlanStages());
}
if (hasMetaQueryHash()) {
hash = (37 * hash) + META_QUERY_HASH_FIELD_NUMBER;
hash = (53 * hash) + getMetaQueryHash().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.pubsub.v1.QueryMessagePubSub parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.QueryMessagePubSub parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.QueryMessagePubSub parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.QueryMessagePubSub parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.QueryMessagePubSub parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.pubsub.v1.QueryMessagePubSub parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.pubsub.v1.QueryMessagePubSub parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.QueryMessagePubSub 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 ai.chalk.protos.chalk.pubsub.v1.QueryMessagePubSub parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.QueryMessagePubSub 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 ai.chalk.protos.chalk.pubsub.v1.QueryMessagePubSub parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.pubsub.v1.QueryMessagePubSub 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(ai.chalk.protos.chalk.pubsub.v1.QueryMessagePubSub 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;
}
/**
* <pre>
* QueryMessagePubSub corresponds exactly to the QueryStorageMessage pydantic model,
* which in turn mostly corresponds to the QueryStorageRequest pydantic model.
* It captures information about an online query from the header, plan, parsed metadata, and more.
* </pre>
*
* Protobuf type {@code chalk.pubsub.v1.QueryMessagePubSub}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.pubsub.v1.QueryMessagePubSub)
ai.chalk.protos.chalk.pubsub.v1.QueryMessagePubSubOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.pubsub.v1.QueriesProto.internal_static_chalk_pubsub_v1_QueryMessagePubSub_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 3:
return internalGetQueryMeta();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
int number) {
switch (number) {
case 3:
return internalGetMutableQueryMeta();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.pubsub.v1.QueriesProto.internal_static_chalk_pubsub_v1_QueryMessagePubSub_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.pubsub.v1.QueryMessagePubSub.class, ai.chalk.protos.chalk.pubsub.v1.QueryMessagePubSub.Builder.class);
}
// Construct using ai.chalk.protos.chalk.pubsub.v1.QueryMessagePubSub.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
operationId_ = "";
environmentId_ = "";
internalGetMutableQueryMeta().clear();
queryName_ = "";
queryNameVersion_ = "";
correlationId_ = "";
inputFeatures_ =
com.google.protobuf.LazyStringArrayList.emptyList();
outputFeatures_ =
com.google.protobuf.LazyStringArrayList.emptyList();
outputRootFqns_ =
com.google.protobuf.LazyStringArrayList.emptyList();
intermediateFeatures_ =
com.google.protobuf.LazyStringArrayList.emptyList();
resolvers_ =
com.google.protobuf.LazyStringArrayList.emptyList();
queryPlanId_ = "";
createdAt_ = 0L;
hasErrors_ = false;
agentId_ = "";
branchName_ = "";
deploymentId_ = "";
hasPlanStages_ = false;
metaQueryHash_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.pubsub.v1.QueriesProto.internal_static_chalk_pubsub_v1_QueryMessagePubSub_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.QueryMessagePubSub getDefaultInstanceForType() {
return ai.chalk.protos.chalk.pubsub.v1.QueryMessagePubSub.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.QueryMessagePubSub build() {
ai.chalk.protos.chalk.pubsub.v1.QueryMessagePubSub result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.QueryMessagePubSub buildPartial() {
ai.chalk.protos.chalk.pubsub.v1.QueryMessagePubSub result = new ai.chalk.protos.chalk.pubsub.v1.QueryMessagePubSub(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ai.chalk.protos.chalk.pubsub.v1.QueryMessagePubSub result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.operationId_ = operationId_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.environmentId_ = environmentId_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.queryMeta_ = internalGetQueryMeta();
result.queryMeta_.makeImmutable();
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000008) != 0)) {
result.queryName_ = queryName_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.queryNameVersion_ = queryNameVersion_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.correlationId_ = correlationId_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
inputFeatures_.makeImmutable();
result.inputFeatures_ = inputFeatures_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
outputFeatures_.makeImmutable();
result.outputFeatures_ = outputFeatures_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
outputRootFqns_.makeImmutable();
result.outputRootFqns_ = outputRootFqns_;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
intermediateFeatures_.makeImmutable();
result.intermediateFeatures_ = intermediateFeatures_;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
resolvers_.makeImmutable();
result.resolvers_ = resolvers_;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.queryPlanId_ = queryPlanId_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
result.createdAt_ = createdAt_;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.hasErrors_ = hasErrors_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00004000) != 0)) {
result.agentId_ = agentId_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00008000) != 0)) {
result.branchName_ = branchName_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00010000) != 0)) {
result.deploymentId_ = deploymentId_;
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00020000) != 0)) {
result.hasPlanStages_ = hasPlanStages_;
to_bitField0_ |= 0x00000100;
}
if (((from_bitField0_ & 0x00040000) != 0)) {
result.metaQueryHash_ = metaQueryHash_;
to_bitField0_ |= 0x00000200;
}
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 ai.chalk.protos.chalk.pubsub.v1.QueryMessagePubSub) {
return mergeFrom((ai.chalk.protos.chalk.pubsub.v1.QueryMessagePubSub)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.pubsub.v1.QueryMessagePubSub other) {
if (other == ai.chalk.protos.chalk.pubsub.v1.QueryMessagePubSub.getDefaultInstance()) return this;
if (!other.getOperationId().isEmpty()) {
operationId_ = other.operationId_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getEnvironmentId().isEmpty()) {
environmentId_ = other.environmentId_;
bitField0_ |= 0x00000002;
onChanged();
}
internalGetMutableQueryMeta().mergeFrom(
other.internalGetQueryMeta());
bitField0_ |= 0x00000004;
if (other.hasQueryName()) {
queryName_ = other.queryName_;
bitField0_ |= 0x00000008;
onChanged();
}
if (other.hasQueryNameVersion()) {
queryNameVersion_ = other.queryNameVersion_;
bitField0_ |= 0x00000010;
onChanged();
}
if (other.hasCorrelationId()) {
correlationId_ = other.correlationId_;
bitField0_ |= 0x00000020;
onChanged();
}
if (!other.inputFeatures_.isEmpty()) {
if (inputFeatures_.isEmpty()) {
inputFeatures_ = other.inputFeatures_;
bitField0_ |= 0x00000040;
} else {
ensureInputFeaturesIsMutable();
inputFeatures_.addAll(other.inputFeatures_);
}
onChanged();
}
if (!other.outputFeatures_.isEmpty()) {
if (outputFeatures_.isEmpty()) {
outputFeatures_ = other.outputFeatures_;
bitField0_ |= 0x00000080;
} else {
ensureOutputFeaturesIsMutable();
outputFeatures_.addAll(other.outputFeatures_);
}
onChanged();
}
if (!other.outputRootFqns_.isEmpty()) {
if (outputRootFqns_.isEmpty()) {
outputRootFqns_ = other.outputRootFqns_;
bitField0_ |= 0x00000100;
} else {
ensureOutputRootFqnsIsMutable();
outputRootFqns_.addAll(other.outputRootFqns_);
}
onChanged();
}
if (!other.intermediateFeatures_.isEmpty()) {
if (intermediateFeatures_.isEmpty()) {
intermediateFeatures_ = other.intermediateFeatures_;
bitField0_ |= 0x00000200;
} else {
ensureIntermediateFeaturesIsMutable();
intermediateFeatures_.addAll(other.intermediateFeatures_);
}
onChanged();
}
if (!other.resolvers_.isEmpty()) {
if (resolvers_.isEmpty()) {
resolvers_ = other.resolvers_;
bitField0_ |= 0x00000400;
} else {
ensureResolversIsMutable();
resolvers_.addAll(other.resolvers_);
}
onChanged();
}
if (other.hasQueryPlanId()) {
queryPlanId_ = other.queryPlanId_;
bitField0_ |= 0x00000800;
onChanged();
}
if (other.getCreatedAt() != 0L) {
setCreatedAt(other.getCreatedAt());
}
if (other.hasHasErrors()) {
setHasErrors(other.getHasErrors());
}
if (other.hasAgentId()) {
agentId_ = other.agentId_;
bitField0_ |= 0x00004000;
onChanged();
}
if (other.hasBranchName()) {
branchName_ = other.branchName_;
bitField0_ |= 0x00008000;
onChanged();
}
if (other.hasDeploymentId()) {
deploymentId_ = other.deploymentId_;
bitField0_ |= 0x00010000;
onChanged();
}
if (other.hasHasPlanStages()) {
setHasPlanStages(other.getHasPlanStages());
}
if (other.hasMetaQueryHash()) {
metaQueryHash_ = other.metaQueryHash_;
bitField0_ |= 0x00040000;
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: {
operationId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
environmentId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
com.google.protobuf.MapEntry<java.lang.String, java.lang.String>
queryMeta__ = input.readMessage(
QueryMetaDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableQueryMeta().getMutableMap().put(
queryMeta__.getKey(), queryMeta__.getValue());
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
queryName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
queryNameVersion_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
correlationId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 50
case 58: {
java.lang.String s = input.readStringRequireUtf8();
ensureInputFeaturesIsMutable();
inputFeatures_.add(s);
break;
} // case 58
case 66: {
java.lang.String s = input.readStringRequireUtf8();
ensureOutputFeaturesIsMutable();
outputFeatures_.add(s);
break;
} // case 66
case 74: {
java.lang.String s = input.readStringRequireUtf8();
ensureOutputRootFqnsIsMutable();
outputRootFqns_.add(s);
break;
} // case 74
case 82: {
java.lang.String s = input.readStringRequireUtf8();
ensureIntermediateFeaturesIsMutable();
intermediateFeatures_.add(s);
break;
} // case 82
case 90: {
java.lang.String s = input.readStringRequireUtf8();
ensureResolversIsMutable();
resolvers_.add(s);
break;
} // case 90
case 98: {
queryPlanId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000800;
break;
} // case 98
case 104: {
createdAt_ = input.readInt64();
bitField0_ |= 0x00001000;
break;
} // case 104
case 112: {
hasErrors_ = input.readBool();
bitField0_ |= 0x00002000;
break;
} // case 112
case 122: {
agentId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00004000;
break;
} // case 122
case 130: {
branchName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00008000;
break;
} // case 130
case 138: {
deploymentId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00010000;
break;
} // case 138
case 144: {
hasPlanStages_ = input.readBool();
bitField0_ |= 0x00020000;
break;
} // case 144
case 154: {
metaQueryHash_ = input.readStringRequireUtf8();
bitField0_ |= 0x00040000;
break;
} // case 154
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 operationId_ = "";
/**
* <pre>
* Operation unique identifier
* </pre>
*
* <code>string operation_id = 1 [json_name = "operationId"];</code>
* @return The operationId.
*/
public java.lang.String getOperationId() {
java.lang.Object ref = operationId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
operationId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* Operation unique identifier
* </pre>
*
* <code>string operation_id = 1 [json_name = "operationId"];</code>
* @return The bytes for operationId.
*/
public com.google.protobuf.ByteString
getOperationIdBytes() {
java.lang.Object ref = operationId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
operationId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* Operation unique identifier
* </pre>
*
* <code>string operation_id = 1 [json_name = "operationId"];</code>
* @param value The operationId to set.
* @return This builder for chaining.
*/
public Builder setOperationId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
operationId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <pre>
* Operation unique identifier
* </pre>
*
* <code>string operation_id = 1 [json_name = "operationId"];</code>
* @return This builder for chaining.
*/
public Builder clearOperationId() {
operationId_ = getDefaultInstance().getOperationId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* <pre>
* Operation unique identifier
* </pre>
*
* <code>string operation_id = 1 [json_name = "operationId"];</code>
* @param value The bytes for operationId to set.
* @return This builder for chaining.
*/
public Builder setOperationIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
operationId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object environmentId_ = "";
/**
* <pre>
* Environment query belongs to
* </pre>
*
* <code>string environment_id = 2 [json_name = "environmentId"];</code>
* @return The environmentId.
*/
public java.lang.String getEnvironmentId() {
java.lang.Object ref = environmentId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
environmentId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* Environment query belongs to
* </pre>
*
* <code>string environment_id = 2 [json_name = "environmentId"];</code>
* @return The bytes for environmentId.
*/
public com.google.protobuf.ByteString
getEnvironmentIdBytes() {
java.lang.Object ref = environmentId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
environmentId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* Environment query belongs to
* </pre>
*
* <code>string environment_id = 2 [json_name = "environmentId"];</code>
* @param value The environmentId to set.
* @return This builder for chaining.
*/
public Builder setEnvironmentId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
environmentId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <pre>
* Environment query belongs to
* </pre>
*
* <code>string environment_id = 2 [json_name = "environmentId"];</code>
* @return This builder for chaining.
*/
public Builder clearEnvironmentId() {
environmentId_ = getDefaultInstance().getEnvironmentId();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* <pre>
* Environment query belongs to
* </pre>
*
* <code>string environment_id = 2 [json_name = "environmentId"];</code>
* @param value The bytes for environmentId to set.
* @return This builder for chaining.
*/
public Builder setEnvironmentIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
environmentId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> queryMeta_;
private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetQueryMeta() {
if (queryMeta_ == null) {
return com.google.protobuf.MapField.emptyMapField(
QueryMetaDefaultEntryHolder.defaultEntry);
}
return queryMeta_;
}
private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetMutableQueryMeta() {
if (queryMeta_ == null) {
queryMeta_ = com.google.protobuf.MapField.newMapField(
QueryMetaDefaultEntryHolder.defaultEntry);
}
if (!queryMeta_.isMutable()) {
queryMeta_ = queryMeta_.copy();
}
bitField0_ |= 0x00000004;
onChanged();
return queryMeta_;
}
public int getQueryMetaCount() {
return internalGetQueryMeta().getMap().size();
}
/**
* <pre>
* maps to FeatherRequestHeader.meta which can be specified via the client
* </pre>
*
* <code>map<string, string> query_meta = 3 [json_name = "queryMeta"];</code>
*/
@java.lang.Override
public boolean containsQueryMeta(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetQueryMeta().getMap().containsKey(key);
}
/**
* Use {@link #getQueryMetaMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map<java.lang.String, java.lang.String> getQueryMeta() {
return getQueryMetaMap();
}
/**
* <pre>
* maps to FeatherRequestHeader.meta which can be specified via the client
* </pre>
*
* <code>map<string, string> query_meta = 3 [json_name = "queryMeta"];</code>
*/
@java.lang.Override
public java.util.Map<java.lang.String, java.lang.String> getQueryMetaMap() {
return internalGetQueryMeta().getMap();
}
/**
* <pre>
* maps to FeatherRequestHeader.meta which can be specified via the client
* </pre>
*
* <code>map<string, string> query_meta = 3 [json_name = "queryMeta"];</code>
*/
@java.lang.Override
public /* nullable */
java.lang.String getQueryMetaOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetQueryMeta().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <pre>
* maps to FeatherRequestHeader.meta which can be specified via the client
* </pre>
*
* <code>map<string, string> query_meta = 3 [json_name = "queryMeta"];</code>
*/
@java.lang.Override
public java.lang.String getQueryMetaOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetQueryMeta().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearQueryMeta() {
bitField0_ = (bitField0_ & ~0x00000004);
internalGetMutableQueryMeta().getMutableMap()
.clear();
return this;
}
/**
* <pre>
* maps to FeatherRequestHeader.meta which can be specified via the client
* </pre>
*
* <code>map<string, string> query_meta = 3 [json_name = "queryMeta"];</code>
*/
public Builder removeQueryMeta(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableQueryMeta().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map<java.lang.String, java.lang.String>
getMutableQueryMeta() {
bitField0_ |= 0x00000004;
return internalGetMutableQueryMeta().getMutableMap();
}
/**
* <pre>
* maps to FeatherRequestHeader.meta which can be specified via the client
* </pre>
*
* <code>map<string, string> query_meta = 3 [json_name = "queryMeta"];</code>
*/
public Builder putQueryMeta(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) { throw new NullPointerException("map value"); }
internalGetMutableQueryMeta().getMutableMap()
.put(key, value);
bitField0_ |= 0x00000004;
return this;
}
/**
* <pre>
* maps to FeatherRequestHeader.meta which can be specified via the client
* </pre>
*
* <code>map<string, string> query_meta = 3 [json_name = "queryMeta"];</code>
*/
public Builder putAllQueryMeta(
java.util.Map<java.lang.String, java.lang.String> values) {
internalGetMutableQueryMeta().getMutableMap()
.putAll(values);
bitField0_ |= 0x00000004;
return this;
}
private java.lang.Object queryName_ = "";
/**
* <pre>
* maps to FeatherRequestHeader.query_name which can be specified via the client
* </pre>
*
* <code>optional string query_name = 4 [json_name = "queryName"];</code>
* @return Whether the queryName field is set.
*/
public boolean hasQueryName() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* <pre>
* maps to FeatherRequestHeader.query_name which can be specified via the client
* </pre>
*
* <code>optional string query_name = 4 [json_name = "queryName"];</code>
* @return The queryName.
*/
public java.lang.String getQueryName() {
java.lang.Object ref = queryName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
queryName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* maps to FeatherRequestHeader.query_name which can be specified via the client
* </pre>
*
* <code>optional string query_name = 4 [json_name = "queryName"];</code>
* @return The bytes for queryName.
*/
public com.google.protobuf.ByteString
getQueryNameBytes() {
java.lang.Object ref = queryName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
queryName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* maps to FeatherRequestHeader.query_name which can be specified via the client
* </pre>
*
* <code>optional string query_name = 4 [json_name = "queryName"];</code>
* @param value The queryName to set.
* @return This builder for chaining.
*/
public Builder setQueryName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
queryName_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* <pre>
* maps to FeatherRequestHeader.query_name which can be specified via the client
* </pre>
*
* <code>optional string query_name = 4 [json_name = "queryName"];</code>
* @return This builder for chaining.
*/
public Builder clearQueryName() {
queryName_ = getDefaultInstance().getQueryName();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
* <pre>
* maps to FeatherRequestHeader.query_name which can be specified via the client
* </pre>
*
* <code>optional string query_name = 4 [json_name = "queryName"];</code>
* @param value The bytes for queryName to set.
* @return This builder for chaining.
*/
public Builder setQueryNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
queryName_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private java.lang.Object queryNameVersion_ = "";
/**
* <pre>
* maps to FeatherRequestHeader.query_name_version which can be specified via the client
* </pre>
*
* <code>optional string query_name_version = 5 [json_name = "queryNameVersion"];</code>
* @return Whether the queryNameVersion field is set.
*/
public boolean hasQueryNameVersion() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* <pre>
* maps to FeatherRequestHeader.query_name_version which can be specified via the client
* </pre>
*
* <code>optional string query_name_version = 5 [json_name = "queryNameVersion"];</code>
* @return The queryNameVersion.
*/
public java.lang.String getQueryNameVersion() {
java.lang.Object ref = queryNameVersion_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
queryNameVersion_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* maps to FeatherRequestHeader.query_name_version which can be specified via the client
* </pre>
*
* <code>optional string query_name_version = 5 [json_name = "queryNameVersion"];</code>
* @return The bytes for queryNameVersion.
*/
public com.google.protobuf.ByteString
getQueryNameVersionBytes() {
java.lang.Object ref = queryNameVersion_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
queryNameVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* maps to FeatherRequestHeader.query_name_version which can be specified via the client
* </pre>
*
* <code>optional string query_name_version = 5 [json_name = "queryNameVersion"];</code>
* @param value The queryNameVersion to set.
* @return This builder for chaining.
*/
public Builder setQueryNameVersion(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
queryNameVersion_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* <pre>
* maps to FeatherRequestHeader.query_name_version which can be specified via the client
* </pre>
*
* <code>optional string query_name_version = 5 [json_name = "queryNameVersion"];</code>
* @return This builder for chaining.
*/
public Builder clearQueryNameVersion() {
queryNameVersion_ = getDefaultInstance().getQueryNameVersion();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
* <pre>
* maps to FeatherRequestHeader.query_name_version which can be specified via the client
* </pre>
*
* <code>optional string query_name_version = 5 [json_name = "queryNameVersion"];</code>
* @param value The bytes for queryNameVersion to set.
* @return This builder for chaining.
*/
public Builder setQueryNameVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
queryNameVersion_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private java.lang.Object correlationId_ = "";
/**
* <pre>
* maps to FeatherRequestHeader.correlation_id which can be specified via the client
* </pre>
*
* <code>optional string correlation_id = 6 [json_name = "correlationId"];</code>
* @return Whether the correlationId field is set.
*/
public boolean hasCorrelationId() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* <pre>
* maps to FeatherRequestHeader.correlation_id which can be specified via the client
* </pre>
*
* <code>optional string correlation_id = 6 [json_name = "correlationId"];</code>
* @return The correlationId.
*/
public java.lang.String getCorrelationId() {
java.lang.Object ref = correlationId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
correlationId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* maps to FeatherRequestHeader.correlation_id which can be specified via the client
* </pre>
*
* <code>optional string correlation_id = 6 [json_name = "correlationId"];</code>
* @return The bytes for correlationId.
*/
public com.google.protobuf.ByteString
getCorrelationIdBytes() {
java.lang.Object ref = correlationId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
correlationId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* maps to FeatherRequestHeader.correlation_id which can be specified via the client
* </pre>
*
* <code>optional string correlation_id = 6 [json_name = "correlationId"];</code>
* @param value The correlationId to set.
* @return This builder for chaining.
*/
public Builder setCorrelationId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
correlationId_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* <pre>
* maps to FeatherRequestHeader.correlation_id which can be specified via the client
* </pre>
*
* <code>optional string correlation_id = 6 [json_name = "correlationId"];</code>
* @return This builder for chaining.
*/
public Builder clearCorrelationId() {
correlationId_ = getDefaultInstance().getCorrelationId();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
* <pre>
* maps to FeatherRequestHeader.correlation_id which can be specified via the client
* </pre>
*
* <code>optional string correlation_id = 6 [json_name = "correlationId"];</code>
* @param value The bytes for correlationId to set.
* @return This builder for chaining.
*/
public Builder setCorrelationIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
correlationId_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList inputFeatures_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureInputFeaturesIsMutable() {
if (!inputFeatures_.isModifiable()) {
inputFeatures_ = new com.google.protobuf.LazyStringArrayList(inputFeatures_);
}
bitField0_ |= 0x00000040;
}
/**
* <pre>
* parsed input feature fqns
* </pre>
*
* <code>repeated string input_features = 7 [json_name = "inputFeatures"];</code>
* @return A list containing the inputFeatures.
*/
public com.google.protobuf.ProtocolStringList
getInputFeaturesList() {
inputFeatures_.makeImmutable();
return inputFeatures_;
}
/**
* <pre>
* parsed input feature fqns
* </pre>
*
* <code>repeated string input_features = 7 [json_name = "inputFeatures"];</code>
* @return The count of inputFeatures.
*/
public int getInputFeaturesCount() {
return inputFeatures_.size();
}
/**
* <pre>
* parsed input feature fqns
* </pre>
*
* <code>repeated string input_features = 7 [json_name = "inputFeatures"];</code>
* @param index The index of the element to return.
* @return The inputFeatures at the given index.
*/
public java.lang.String getInputFeatures(int index) {
return inputFeatures_.get(index);
}
/**
* <pre>
* parsed input feature fqns
* </pre>
*
* <code>repeated string input_features = 7 [json_name = "inputFeatures"];</code>
* @param index The index of the value to return.
* @return The bytes of the inputFeatures at the given index.
*/
public com.google.protobuf.ByteString
getInputFeaturesBytes(int index) {
return inputFeatures_.getByteString(index);
}
/**
* <pre>
* parsed input feature fqns
* </pre>
*
* <code>repeated string input_features = 7 [json_name = "inputFeatures"];</code>
* @param index The index to set the value at.
* @param value The inputFeatures to set.
* @return This builder for chaining.
*/
public Builder setInputFeatures(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureInputFeaturesIsMutable();
inputFeatures_.set(index, value);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* <pre>
* parsed input feature fqns
* </pre>
*
* <code>repeated string input_features = 7 [json_name = "inputFeatures"];</code>
* @param value The inputFeatures to add.
* @return This builder for chaining.
*/
public Builder addInputFeatures(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureInputFeaturesIsMutable();
inputFeatures_.add(value);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* <pre>
* parsed input feature fqns
* </pre>
*
* <code>repeated string input_features = 7 [json_name = "inputFeatures"];</code>
* @param values The inputFeatures to add.
* @return This builder for chaining.
*/
public Builder addAllInputFeatures(
java.lang.Iterable<java.lang.String> values) {
ensureInputFeaturesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, inputFeatures_);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* <pre>
* parsed input feature fqns
* </pre>
*
* <code>repeated string input_features = 7 [json_name = "inputFeatures"];</code>
* @return This builder for chaining.
*/
public Builder clearInputFeatures() {
inputFeatures_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);;
onChanged();
return this;
}
/**
* <pre>
* parsed input feature fqns
* </pre>
*
* <code>repeated string input_features = 7 [json_name = "inputFeatures"];</code>
* @param value The bytes of the inputFeatures to add.
* @return This builder for chaining.
*/
public Builder addInputFeaturesBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureInputFeaturesIsMutable();
inputFeatures_.add(value);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList outputFeatures_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureOutputFeaturesIsMutable() {
if (!outputFeatures_.isModifiable()) {
outputFeatures_ = new com.google.protobuf.LazyStringArrayList(outputFeatures_);
}
bitField0_ |= 0x00000080;
}
/**
* <pre>
* parsed output feature fqns
* </pre>
*
* <code>repeated string output_features = 8 [json_name = "outputFeatures"];</code>
* @return A list containing the outputFeatures.
*/
public com.google.protobuf.ProtocolStringList
getOutputFeaturesList() {
outputFeatures_.makeImmutable();
return outputFeatures_;
}
/**
* <pre>
* parsed output feature fqns
* </pre>
*
* <code>repeated string output_features = 8 [json_name = "outputFeatures"];</code>
* @return The count of outputFeatures.
*/
public int getOutputFeaturesCount() {
return outputFeatures_.size();
}
/**
* <pre>
* parsed output feature fqns
* </pre>
*
* <code>repeated string output_features = 8 [json_name = "outputFeatures"];</code>
* @param index The index of the element to return.
* @return The outputFeatures at the given index.
*/
public java.lang.String getOutputFeatures(int index) {
return outputFeatures_.get(index);
}
/**
* <pre>
* parsed output feature fqns
* </pre>
*
* <code>repeated string output_features = 8 [json_name = "outputFeatures"];</code>
* @param index The index of the value to return.
* @return The bytes of the outputFeatures at the given index.
*/
public com.google.protobuf.ByteString
getOutputFeaturesBytes(int index) {
return outputFeatures_.getByteString(index);
}
/**
* <pre>
* parsed output feature fqns
* </pre>
*
* <code>repeated string output_features = 8 [json_name = "outputFeatures"];</code>
* @param index The index to set the value at.
* @param value The outputFeatures to set.
* @return This builder for chaining.
*/
public Builder setOutputFeatures(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureOutputFeaturesIsMutable();
outputFeatures_.set(index, value);
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* <pre>
* parsed output feature fqns
* </pre>
*
* <code>repeated string output_features = 8 [json_name = "outputFeatures"];</code>
* @param value The outputFeatures to add.
* @return This builder for chaining.
*/
public Builder addOutputFeatures(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureOutputFeaturesIsMutable();
outputFeatures_.add(value);
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* <pre>
* parsed output feature fqns
* </pre>
*
* <code>repeated string output_features = 8 [json_name = "outputFeatures"];</code>
* @param values The outputFeatures to add.
* @return This builder for chaining.
*/
public Builder addAllOutputFeatures(
java.lang.Iterable<java.lang.String> values) {
ensureOutputFeaturesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, outputFeatures_);
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* <pre>
* parsed output feature fqns
* </pre>
*
* <code>repeated string output_features = 8 [json_name = "outputFeatures"];</code>
* @return This builder for chaining.
*/
public Builder clearOutputFeatures() {
outputFeatures_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);;
onChanged();
return this;
}
/**
* <pre>
* parsed output feature fqns
* </pre>
*
* <code>repeated string output_features = 8 [json_name = "outputFeatures"];</code>
* @param value The bytes of the outputFeatures to add.
* @return This builder for chaining.
*/
public Builder addOutputFeaturesBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureOutputFeaturesIsMutable();
outputFeatures_.add(value);
bitField0_ |= 0x00000080;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList outputRootFqns_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureOutputRootFqnsIsMutable() {
if (!outputRootFqns_.isModifiable()) {
outputRootFqns_ = new com.google.protobuf.LazyStringArrayList(outputRootFqns_);
}
bitField0_ |= 0x00000100;
}
/**
* <pre>
* parsed output feature root fqns
* </pre>
*
* <code>repeated string output_root_fqns = 9 [json_name = "outputRootFqns"];</code>
* @return A list containing the outputRootFqns.
*/
public com.google.protobuf.ProtocolStringList
getOutputRootFqnsList() {
outputRootFqns_.makeImmutable();
return outputRootFqns_;
}
/**
* <pre>
* parsed output feature root fqns
* </pre>
*
* <code>repeated string output_root_fqns = 9 [json_name = "outputRootFqns"];</code>
* @return The count of outputRootFqns.
*/
public int getOutputRootFqnsCount() {
return outputRootFqns_.size();
}
/**
* <pre>
* parsed output feature root fqns
* </pre>
*
* <code>repeated string output_root_fqns = 9 [json_name = "outputRootFqns"];</code>
* @param index The index of the element to return.
* @return The outputRootFqns at the given index.
*/
public java.lang.String getOutputRootFqns(int index) {
return outputRootFqns_.get(index);
}
/**
* <pre>
* parsed output feature root fqns
* </pre>
*
* <code>repeated string output_root_fqns = 9 [json_name = "outputRootFqns"];</code>
* @param index The index of the value to return.
* @return The bytes of the outputRootFqns at the given index.
*/
public com.google.protobuf.ByteString
getOutputRootFqnsBytes(int index) {
return outputRootFqns_.getByteString(index);
}
/**
* <pre>
* parsed output feature root fqns
* </pre>
*
* <code>repeated string output_root_fqns = 9 [json_name = "outputRootFqns"];</code>
* @param index The index to set the value at.
* @param value The outputRootFqns to set.
* @return This builder for chaining.
*/
public Builder setOutputRootFqns(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureOutputRootFqnsIsMutable();
outputRootFqns_.set(index, value);
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
* <pre>
* parsed output feature root fqns
* </pre>
*
* <code>repeated string output_root_fqns = 9 [json_name = "outputRootFqns"];</code>
* @param value The outputRootFqns to add.
* @return This builder for chaining.
*/
public Builder addOutputRootFqns(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureOutputRootFqnsIsMutable();
outputRootFqns_.add(value);
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
* <pre>
* parsed output feature root fqns
* </pre>
*
* <code>repeated string output_root_fqns = 9 [json_name = "outputRootFqns"];</code>
* @param values The outputRootFqns to add.
* @return This builder for chaining.
*/
public Builder addAllOutputRootFqns(
java.lang.Iterable<java.lang.String> values) {
ensureOutputRootFqnsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, outputRootFqns_);
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
* <pre>
* parsed output feature root fqns
* </pre>
*
* <code>repeated string output_root_fqns = 9 [json_name = "outputRootFqns"];</code>
* @return This builder for chaining.
*/
public Builder clearOutputRootFqns() {
outputRootFqns_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000100);;
onChanged();
return this;
}
/**
* <pre>
* parsed output feature root fqns
* </pre>
*
* <code>repeated string output_root_fqns = 9 [json_name = "outputRootFqns"];</code>
* @param value The bytes of the outputRootFqns to add.
* @return This builder for chaining.
*/
public Builder addOutputRootFqnsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureOutputRootFqnsIsMutable();
outputRootFqns_.add(value);
bitField0_ |= 0x00000100;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList intermediateFeatures_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureIntermediateFeaturesIsMutable() {
if (!intermediateFeatures_.isModifiable()) {
intermediateFeatures_ = new com.google.protobuf.LazyStringArrayList(intermediateFeatures_);
}
bitField0_ |= 0x00000200;
}
/**
* <pre>
* intermediate feature fqns currently empty
* </pre>
*
* <code>repeated string intermediate_features = 10 [json_name = "intermediateFeatures"];</code>
* @return A list containing the intermediateFeatures.
*/
public com.google.protobuf.ProtocolStringList
getIntermediateFeaturesList() {
intermediateFeatures_.makeImmutable();
return intermediateFeatures_;
}
/**
* <pre>
* intermediate feature fqns currently empty
* </pre>
*
* <code>repeated string intermediate_features = 10 [json_name = "intermediateFeatures"];</code>
* @return The count of intermediateFeatures.
*/
public int getIntermediateFeaturesCount() {
return intermediateFeatures_.size();
}
/**
* <pre>
* intermediate feature fqns currently empty
* </pre>
*
* <code>repeated string intermediate_features = 10 [json_name = "intermediateFeatures"];</code>
* @param index The index of the element to return.
* @return The intermediateFeatures at the given index.
*/
public java.lang.String getIntermediateFeatures(int index) {
return intermediateFeatures_.get(index);
}
/**
* <pre>
* intermediate feature fqns currently empty
* </pre>
*
* <code>repeated string intermediate_features = 10 [json_name = "intermediateFeatures"];</code>
* @param index The index of the value to return.
* @return The bytes of the intermediateFeatures at the given index.
*/
public com.google.protobuf.ByteString
getIntermediateFeaturesBytes(int index) {
return intermediateFeatures_.getByteString(index);
}
/**
* <pre>
* intermediate feature fqns currently empty
* </pre>
*
* <code>repeated string intermediate_features = 10 [json_name = "intermediateFeatures"];</code>
* @param index The index to set the value at.
* @param value The intermediateFeatures to set.
* @return This builder for chaining.
*/
public Builder setIntermediateFeatures(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureIntermediateFeaturesIsMutable();
intermediateFeatures_.set(index, value);
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
* <pre>
* intermediate feature fqns currently empty
* </pre>
*
* <code>repeated string intermediate_features = 10 [json_name = "intermediateFeatures"];</code>
* @param value The intermediateFeatures to add.
* @return This builder for chaining.
*/
public Builder addIntermediateFeatures(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureIntermediateFeaturesIsMutable();
intermediateFeatures_.add(value);
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
* <pre>
* intermediate feature fqns currently empty
* </pre>
*
* <code>repeated string intermediate_features = 10 [json_name = "intermediateFeatures"];</code>
* @param values The intermediateFeatures to add.
* @return This builder for chaining.
*/
public Builder addAllIntermediateFeatures(
java.lang.Iterable<java.lang.String> values) {
ensureIntermediateFeaturesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, intermediateFeatures_);
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
* <pre>
* intermediate feature fqns currently empty
* </pre>
*
* <code>repeated string intermediate_features = 10 [json_name = "intermediateFeatures"];</code>
* @return This builder for chaining.
*/
public Builder clearIntermediateFeatures() {
intermediateFeatures_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000200);;
onChanged();
return this;
}
/**
* <pre>
* intermediate feature fqns currently empty
* </pre>
*
* <code>repeated string intermediate_features = 10 [json_name = "intermediateFeatures"];</code>
* @param value The bytes of the intermediateFeatures to add.
* @return This builder for chaining.
*/
public Builder addIntermediateFeaturesBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureIntermediateFeaturesIsMutable();
intermediateFeatures_.add(value);
bitField0_ |= 0x00000200;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList resolvers_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureResolversIsMutable() {
if (!resolvers_.isModifiable()) {
resolvers_ = new com.google.protobuf.LazyStringArrayList(resolvers_);
}
bitField0_ |= 0x00000400;
}
/**
* <pre>
* resolver fqns used in plan
* </pre>
*
* <code>repeated string resolvers = 11 [json_name = "resolvers"];</code>
* @return A list containing the resolvers.
*/
public com.google.protobuf.ProtocolStringList
getResolversList() {
resolvers_.makeImmutable();
return resolvers_;
}
/**
* <pre>
* resolver fqns used in plan
* </pre>
*
* <code>repeated string resolvers = 11 [json_name = "resolvers"];</code>
* @return The count of resolvers.
*/
public int getResolversCount() {
return resolvers_.size();
}
/**
* <pre>
* resolver fqns used in plan
* </pre>
*
* <code>repeated string resolvers = 11 [json_name = "resolvers"];</code>
* @param index The index of the element to return.
* @return The resolvers at the given index.
*/
public java.lang.String getResolvers(int index) {
return resolvers_.get(index);
}
/**
* <pre>
* resolver fqns used in plan
* </pre>
*
* <code>repeated string resolvers = 11 [json_name = "resolvers"];</code>
* @param index The index of the value to return.
* @return The bytes of the resolvers at the given index.
*/
public com.google.protobuf.ByteString
getResolversBytes(int index) {
return resolvers_.getByteString(index);
}
/**
* <pre>
* resolver fqns used in plan
* </pre>
*
* <code>repeated string resolvers = 11 [json_name = "resolvers"];</code>
* @param index The index to set the value at.
* @param value The resolvers to set.
* @return This builder for chaining.
*/
public Builder setResolvers(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureResolversIsMutable();
resolvers_.set(index, value);
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
* <pre>
* resolver fqns used in plan
* </pre>
*
* <code>repeated string resolvers = 11 [json_name = "resolvers"];</code>
* @param value The resolvers to add.
* @return This builder for chaining.
*/
public Builder addResolvers(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureResolversIsMutable();
resolvers_.add(value);
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
* <pre>
* resolver fqns used in plan
* </pre>
*
* <code>repeated string resolvers = 11 [json_name = "resolvers"];</code>
* @param values The resolvers to add.
* @return This builder for chaining.
*/
public Builder addAllResolvers(
java.lang.Iterable<java.lang.String> values) {
ensureResolversIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, resolvers_);
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
* <pre>
* resolver fqns used in plan
* </pre>
*
* <code>repeated string resolvers = 11 [json_name = "resolvers"];</code>
* @return This builder for chaining.
*/
public Builder clearResolvers() {
resolvers_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000400);;
onChanged();
return this;
}
/**
* <pre>
* resolver fqns used in plan
* </pre>
*
* <code>repeated string resolvers = 11 [json_name = "resolvers"];</code>
* @param value The bytes of the resolvers to add.
* @return This builder for chaining.
*/
public Builder addResolversBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureResolversIsMutable();
resolvers_.add(value);
bitField0_ |= 0x00000400;
onChanged();
return this;
}
private java.lang.Object queryPlanId_ = "";
/**
* <pre>
* id of final plan
* </pre>
*
* <code>optional string query_plan_id = 12 [json_name = "queryPlanId"];</code>
* @return Whether the queryPlanId field is set.
*/
public boolean hasQueryPlanId() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
* <pre>
* id of final plan
* </pre>
*
* <code>optional string query_plan_id = 12 [json_name = "queryPlanId"];</code>
* @return The queryPlanId.
*/
public java.lang.String getQueryPlanId() {
java.lang.Object ref = queryPlanId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
queryPlanId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* id of final plan
* </pre>
*
* <code>optional string query_plan_id = 12 [json_name = "queryPlanId"];</code>
* @return The bytes for queryPlanId.
*/
public com.google.protobuf.ByteString
getQueryPlanIdBytes() {
java.lang.Object ref = queryPlanId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
queryPlanId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* id of final plan
* </pre>
*
* <code>optional string query_plan_id = 12 [json_name = "queryPlanId"];</code>
* @param value The queryPlanId to set.
* @return This builder for chaining.
*/
public Builder setQueryPlanId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
queryPlanId_ = value;
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
* <pre>
* id of final plan
* </pre>
*
* <code>optional string query_plan_id = 12 [json_name = "queryPlanId"];</code>
* @return This builder for chaining.
*/
public Builder clearQueryPlanId() {
queryPlanId_ = getDefaultInstance().getQueryPlanId();
bitField0_ = (bitField0_ & ~0x00000800);
onChanged();
return this;
}
/**
* <pre>
* id of final plan
* </pre>
*
* <code>optional string query_plan_id = 12 [json_name = "queryPlanId"];</code>
* @param value The bytes for queryPlanId to set.
* @return This builder for chaining.
*/
public Builder setQueryPlanIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
queryPlanId_ = value;
bitField0_ |= 0x00000800;
onChanged();
return this;
}
private long createdAt_ ;
/**
* <pre>
* timestamp
* </pre>
*
* <code>int64 created_at = 13 [json_name = "createdAt", (.gen_bq_schema.bigquery) = { ... }</code>
* @return The createdAt.
*/
@java.lang.Override
public long getCreatedAt() {
return createdAt_;
}
/**
* <pre>
* timestamp
* </pre>
*
* <code>int64 created_at = 13 [json_name = "createdAt", (.gen_bq_schema.bigquery) = { ... }</code>
* @param value The createdAt to set.
* @return This builder for chaining.
*/
public Builder setCreatedAt(long value) {
createdAt_ = value;
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
* <pre>
* timestamp
* </pre>
*
* <code>int64 created_at = 13 [json_name = "createdAt", (.gen_bq_schema.bigquery) = { ... }</code>
* @return This builder for chaining.
*/
public Builder clearCreatedAt() {
bitField0_ = (bitField0_ & ~0x00001000);
createdAt_ = 0L;
onChanged();
return this;
}
private boolean hasErrors_ ;
/**
* <pre>
* if query had errors
* </pre>
*
* <code>optional bool has_errors = 14 [json_name = "hasErrors"];</code>
* @return Whether the hasErrors field is set.
*/
@java.lang.Override
public boolean hasHasErrors() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
* <pre>
* if query had errors
* </pre>
*
* <code>optional bool has_errors = 14 [json_name = "hasErrors"];</code>
* @return The hasErrors.
*/
@java.lang.Override
public boolean getHasErrors() {
return hasErrors_;
}
/**
* <pre>
* if query had errors
* </pre>
*
* <code>optional bool has_errors = 14 [json_name = "hasErrors"];</code>
* @param value The hasErrors to set.
* @return This builder for chaining.
*/
public Builder setHasErrors(boolean value) {
hasErrors_ = value;
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
* <pre>
* if query had errors
* </pre>
*
* <code>optional bool has_errors = 14 [json_name = "hasErrors"];</code>
* @return This builder for chaining.
*/
public Builder clearHasErrors() {
bitField0_ = (bitField0_ & ~0x00002000);
hasErrors_ = false;
onChanged();
return this;
}
private java.lang.Object agentId_ = "";
/**
* <pre>
* aka as requester_id from run context
* </pre>
*
* <code>optional string agent_id = 15 [json_name = "agentId"];</code>
* @return Whether the agentId field is set.
*/
public boolean hasAgentId() {
return ((bitField0_ & 0x00004000) != 0);
}
/**
* <pre>
* aka as requester_id from run context
* </pre>
*
* <code>optional string agent_id = 15 [json_name = "agentId"];</code>
* @return The agentId.
*/
public java.lang.String getAgentId() {
java.lang.Object ref = agentId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
agentId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* aka as requester_id from run context
* </pre>
*
* <code>optional string agent_id = 15 [json_name = "agentId"];</code>
* @return The bytes for agentId.
*/
public com.google.protobuf.ByteString
getAgentIdBytes() {
java.lang.Object ref = agentId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
agentId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* aka as requester_id from run context
* </pre>
*
* <code>optional string agent_id = 15 [json_name = "agentId"];</code>
* @param value The agentId to set.
* @return This builder for chaining.
*/
public Builder setAgentId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
agentId_ = value;
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
* <pre>
* aka as requester_id from run context
* </pre>
*
* <code>optional string agent_id = 15 [json_name = "agentId"];</code>
* @return This builder for chaining.
*/
public Builder clearAgentId() {
agentId_ = getDefaultInstance().getAgentId();
bitField0_ = (bitField0_ & ~0x00004000);
onChanged();
return this;
}
/**
* <pre>
* aka as requester_id from run context
* </pre>
*
* <code>optional string agent_id = 15 [json_name = "agentId"];</code>
* @param value The bytes for agentId to set.
* @return This builder for chaining.
*/
public Builder setAgentIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
agentId_ = value;
bitField0_ |= 0x00004000;
onChanged();
return this;
}
private java.lang.Object branchName_ = "";
/**
* <pre>
* branch query was run on
* </pre>
*
* <code>optional string branch_name = 16 [json_name = "branchName"];</code>
* @return Whether the branchName field is set.
*/
public boolean hasBranchName() {
return ((bitField0_ & 0x00008000) != 0);
}
/**
* <pre>
* branch query was run on
* </pre>
*
* <code>optional string branch_name = 16 [json_name = "branchName"];</code>
* @return The branchName.
*/
public java.lang.String getBranchName() {
java.lang.Object ref = branchName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
branchName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* branch query was run on
* </pre>
*
* <code>optional string branch_name = 16 [json_name = "branchName"];</code>
* @return The bytes for branchName.
*/
public com.google.protobuf.ByteString
getBranchNameBytes() {
java.lang.Object ref = branchName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
branchName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* branch query was run on
* </pre>
*
* <code>optional string branch_name = 16 [json_name = "branchName"];</code>
* @param value The branchName to set.
* @return This builder for chaining.
*/
public Builder setBranchName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
branchName_ = value;
bitField0_ |= 0x00008000;
onChanged();
return this;
}
/**
* <pre>
* branch query was run on
* </pre>
*
* <code>optional string branch_name = 16 [json_name = "branchName"];</code>
* @return This builder for chaining.
*/
public Builder clearBranchName() {
branchName_ = getDefaultInstance().getBranchName();
bitField0_ = (bitField0_ & ~0x00008000);
onChanged();
return this;
}
/**
* <pre>
* branch query was run on
* </pre>
*
* <code>optional string branch_name = 16 [json_name = "branchName"];</code>
* @param value The bytes for branchName to set.
* @return This builder for chaining.
*/
public Builder setBranchNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
branchName_ = value;
bitField0_ |= 0x00008000;
onChanged();
return this;
}
private java.lang.Object deploymentId_ = "";
/**
* <pre>
* deployment query was run on
* </pre>
*
* <code>optional string deployment_id = 17 [json_name = "deploymentId"];</code>
* @return Whether the deploymentId field is set.
*/
public boolean hasDeploymentId() {
return ((bitField0_ & 0x00010000) != 0);
}
/**
* <pre>
* deployment query was run on
* </pre>
*
* <code>optional string deployment_id = 17 [json_name = "deploymentId"];</code>
* @return The deploymentId.
*/
public java.lang.String getDeploymentId() {
java.lang.Object ref = deploymentId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
deploymentId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* deployment query was run on
* </pre>
*
* <code>optional string deployment_id = 17 [json_name = "deploymentId"];</code>
* @return The bytes for deploymentId.
*/
public com.google.protobuf.ByteString
getDeploymentIdBytes() {
java.lang.Object ref = deploymentId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
deploymentId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* deployment query was run on
* </pre>
*
* <code>optional string deployment_id = 17 [json_name = "deploymentId"];</code>
* @param value The deploymentId to set.
* @return This builder for chaining.
*/
public Builder setDeploymentId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
deploymentId_ = value;
bitField0_ |= 0x00010000;
onChanged();
return this;
}
/**
* <pre>
* deployment query was run on
* </pre>
*
* <code>optional string deployment_id = 17 [json_name = "deploymentId"];</code>
* @return This builder for chaining.
*/
public Builder clearDeploymentId() {
deploymentId_ = getDefaultInstance().getDeploymentId();
bitField0_ = (bitField0_ & ~0x00010000);
onChanged();
return this;
}
/**
* <pre>
* deployment query was run on
* </pre>
*
* <code>optional string deployment_id = 17 [json_name = "deploymentId"];</code>
* @param value The bytes for deploymentId to set.
* @return This builder for chaining.
*/
public Builder setDeploymentIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
deploymentId_ = value;
bitField0_ |= 0x00010000;
onChanged();
return this;
}
private boolean hasPlanStages_ ;
/**
* <pre>
* if query was run with plan_stages
* </pre>
*
* <code>optional bool has_plan_stages = 18 [json_name = "hasPlanStages"];</code>
* @return Whether the hasPlanStages field is set.
*/
@java.lang.Override
public boolean hasHasPlanStages() {
return ((bitField0_ & 0x00020000) != 0);
}
/**
* <pre>
* if query was run with plan_stages
* </pre>
*
* <code>optional bool has_plan_stages = 18 [json_name = "hasPlanStages"];</code>
* @return The hasPlanStages.
*/
@java.lang.Override
public boolean getHasPlanStages() {
return hasPlanStages_;
}
/**
* <pre>
* if query was run with plan_stages
* </pre>
*
* <code>optional bool has_plan_stages = 18 [json_name = "hasPlanStages"];</code>
* @param value The hasPlanStages to set.
* @return This builder for chaining.
*/
public Builder setHasPlanStages(boolean value) {
hasPlanStages_ = value;
bitField0_ |= 0x00020000;
onChanged();
return this;
}
/**
* <pre>
* if query was run with plan_stages
* </pre>
*
* <code>optional bool has_plan_stages = 18 [json_name = "hasPlanStages"];</code>
* @return This builder for chaining.
*/
public Builder clearHasPlanStages() {
bitField0_ = (bitField0_ & ~0x00020000);
hasPlanStages_ = false;
onChanged();
return this;
}
private java.lang.Object metaQueryHash_ = "";
/**
* <pre>
* the meta query hash
* </pre>
*
* <code>optional string meta_query_hash = 19 [json_name = "metaQueryHash"];</code>
* @return Whether the metaQueryHash field is set.
*/
public boolean hasMetaQueryHash() {
return ((bitField0_ & 0x00040000) != 0);
}
/**
* <pre>
* the meta query hash
* </pre>
*
* <code>optional string meta_query_hash = 19 [json_name = "metaQueryHash"];</code>
* @return The metaQueryHash.
*/
public java.lang.String getMetaQueryHash() {
java.lang.Object ref = metaQueryHash_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
metaQueryHash_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* the meta query hash
* </pre>
*
* <code>optional string meta_query_hash = 19 [json_name = "metaQueryHash"];</code>
* @return The bytes for metaQueryHash.
*/
public com.google.protobuf.ByteString
getMetaQueryHashBytes() {
java.lang.Object ref = metaQueryHash_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
metaQueryHash_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* the meta query hash
* </pre>
*
* <code>optional string meta_query_hash = 19 [json_name = "metaQueryHash"];</code>
* @param value The metaQueryHash to set.
* @return This builder for chaining.
*/
public Builder setMetaQueryHash(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
metaQueryHash_ = value;
bitField0_ |= 0x00040000;
onChanged();
return this;
}
/**
* <pre>
* the meta query hash
* </pre>
*
* <code>optional string meta_query_hash = 19 [json_name = "metaQueryHash"];</code>
* @return This builder for chaining.
*/
public Builder clearMetaQueryHash() {
metaQueryHash_ = getDefaultInstance().getMetaQueryHash();
bitField0_ = (bitField0_ & ~0x00040000);
onChanged();
return this;
}
/**
* <pre>
* the meta query hash
* </pre>
*
* <code>optional string meta_query_hash = 19 [json_name = "metaQueryHash"];</code>
* @param value The bytes for metaQueryHash to set.
* @return This builder for chaining.
*/
public Builder setMetaQueryHashBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
metaQueryHash_ = value;
bitField0_ |= 0x00040000;
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:chalk.pubsub.v1.QueryMessagePubSub)
}
// @@protoc_insertion_point(class_scope:chalk.pubsub.v1.QueryMessagePubSub)
private static final ai.chalk.protos.chalk.pubsub.v1.QueryMessagePubSub DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.pubsub.v1.QueryMessagePubSub();
}
public static ai.chalk.protos.chalk.pubsub.v1.QueryMessagePubSub getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<QueryMessagePubSub>
PARSER = new com.google.protobuf.AbstractParser<QueryMessagePubSub>() {
@java.lang.Override
public QueryMessagePubSub 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<QueryMessagePubSub> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<QueryMessagePubSub> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.pubsub.v1.QueryMessagePubSub getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/pubsub
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/pubsub/v1/QueryMessagePubSubOrBuilder.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/pubsub/v1/queries.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.pubsub.v1;
public interface QueryMessagePubSubOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.pubsub.v1.QueryMessagePubSub)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* Operation unique identifier
* </pre>
*
* <code>string operation_id = 1 [json_name = "operationId"];</code>
* @return The operationId.
*/
java.lang.String getOperationId();
/**
* <pre>
* Operation unique identifier
* </pre>
*
* <code>string operation_id = 1 [json_name = "operationId"];</code>
* @return The bytes for operationId.
*/
com.google.protobuf.ByteString
getOperationIdBytes();
/**
* <pre>
* Environment query belongs to
* </pre>
*
* <code>string environment_id = 2 [json_name = "environmentId"];</code>
* @return The environmentId.
*/
java.lang.String getEnvironmentId();
/**
* <pre>
* Environment query belongs to
* </pre>
*
* <code>string environment_id = 2 [json_name = "environmentId"];</code>
* @return The bytes for environmentId.
*/
com.google.protobuf.ByteString
getEnvironmentIdBytes();
/**
* <pre>
* maps to FeatherRequestHeader.meta which can be specified via the client
* </pre>
*
* <code>map<string, string> query_meta = 3 [json_name = "queryMeta"];</code>
*/
int getQueryMetaCount();
/**
* <pre>
* maps to FeatherRequestHeader.meta which can be specified via the client
* </pre>
*
* <code>map<string, string> query_meta = 3 [json_name = "queryMeta"];</code>
*/
boolean containsQueryMeta(
java.lang.String key);
/**
* Use {@link #getQueryMetaMap()} instead.
*/
@java.lang.Deprecated
java.util.Map<java.lang.String, java.lang.String>
getQueryMeta();
/**
* <pre>
* maps to FeatherRequestHeader.meta which can be specified via the client
* </pre>
*
* <code>map<string, string> query_meta = 3 [json_name = "queryMeta"];</code>
*/
java.util.Map<java.lang.String, java.lang.String>
getQueryMetaMap();
/**
* <pre>
* maps to FeatherRequestHeader.meta which can be specified via the client
* </pre>
*
* <code>map<string, string> query_meta = 3 [json_name = "queryMeta"];</code>
*/
/* nullable */
java.lang.String getQueryMetaOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue);
/**
* <pre>
* maps to FeatherRequestHeader.meta which can be specified via the client
* </pre>
*
* <code>map<string, string> query_meta = 3 [json_name = "queryMeta"];</code>
*/
java.lang.String getQueryMetaOrThrow(
java.lang.String key);
/**
* <pre>
* maps to FeatherRequestHeader.query_name which can be specified via the client
* </pre>
*
* <code>optional string query_name = 4 [json_name = "queryName"];</code>
* @return Whether the queryName field is set.
*/
boolean hasQueryName();
/**
* <pre>
* maps to FeatherRequestHeader.query_name which can be specified via the client
* </pre>
*
* <code>optional string query_name = 4 [json_name = "queryName"];</code>
* @return The queryName.
*/
java.lang.String getQueryName();
/**
* <pre>
* maps to FeatherRequestHeader.query_name which can be specified via the client
* </pre>
*
* <code>optional string query_name = 4 [json_name = "queryName"];</code>
* @return The bytes for queryName.
*/
com.google.protobuf.ByteString
getQueryNameBytes();
/**
* <pre>
* maps to FeatherRequestHeader.query_name_version which can be specified via the client
* </pre>
*
* <code>optional string query_name_version = 5 [json_name = "queryNameVersion"];</code>
* @return Whether the queryNameVersion field is set.
*/
boolean hasQueryNameVersion();
/**
* <pre>
* maps to FeatherRequestHeader.query_name_version which can be specified via the client
* </pre>
*
* <code>optional string query_name_version = 5 [json_name = "queryNameVersion"];</code>
* @return The queryNameVersion.
*/
java.lang.String getQueryNameVersion();
/**
* <pre>
* maps to FeatherRequestHeader.query_name_version which can be specified via the client
* </pre>
*
* <code>optional string query_name_version = 5 [json_name = "queryNameVersion"];</code>
* @return The bytes for queryNameVersion.
*/
com.google.protobuf.ByteString
getQueryNameVersionBytes();
/**
* <pre>
* maps to FeatherRequestHeader.correlation_id which can be specified via the client
* </pre>
*
* <code>optional string correlation_id = 6 [json_name = "correlationId"];</code>
* @return Whether the correlationId field is set.
*/
boolean hasCorrelationId();
/**
* <pre>
* maps to FeatherRequestHeader.correlation_id which can be specified via the client
* </pre>
*
* <code>optional string correlation_id = 6 [json_name = "correlationId"];</code>
* @return The correlationId.
*/
java.lang.String getCorrelationId();
/**
* <pre>
* maps to FeatherRequestHeader.correlation_id which can be specified via the client
* </pre>
*
* <code>optional string correlation_id = 6 [json_name = "correlationId"];</code>
* @return The bytes for correlationId.
*/
com.google.protobuf.ByteString
getCorrelationIdBytes();
/**
* <pre>
* parsed input feature fqns
* </pre>
*
* <code>repeated string input_features = 7 [json_name = "inputFeatures"];</code>
* @return A list containing the inputFeatures.
*/
java.util.List<java.lang.String>
getInputFeaturesList();
/**
* <pre>
* parsed input feature fqns
* </pre>
*
* <code>repeated string input_features = 7 [json_name = "inputFeatures"];</code>
* @return The count of inputFeatures.
*/
int getInputFeaturesCount();
/**
* <pre>
* parsed input feature fqns
* </pre>
*
* <code>repeated string input_features = 7 [json_name = "inputFeatures"];</code>
* @param index The index of the element to return.
* @return The inputFeatures at the given index.
*/
java.lang.String getInputFeatures(int index);
/**
* <pre>
* parsed input feature fqns
* </pre>
*
* <code>repeated string input_features = 7 [json_name = "inputFeatures"];</code>
* @param index The index of the value to return.
* @return The bytes of the inputFeatures at the given index.
*/
com.google.protobuf.ByteString
getInputFeaturesBytes(int index);
/**
* <pre>
* parsed output feature fqns
* </pre>
*
* <code>repeated string output_features = 8 [json_name = "outputFeatures"];</code>
* @return A list containing the outputFeatures.
*/
java.util.List<java.lang.String>
getOutputFeaturesList();
/**
* <pre>
* parsed output feature fqns
* </pre>
*
* <code>repeated string output_features = 8 [json_name = "outputFeatures"];</code>
* @return The count of outputFeatures.
*/
int getOutputFeaturesCount();
/**
* <pre>
* parsed output feature fqns
* </pre>
*
* <code>repeated string output_features = 8 [json_name = "outputFeatures"];</code>
* @param index The index of the element to return.
* @return The outputFeatures at the given index.
*/
java.lang.String getOutputFeatures(int index);
/**
* <pre>
* parsed output feature fqns
* </pre>
*
* <code>repeated string output_features = 8 [json_name = "outputFeatures"];</code>
* @param index The index of the value to return.
* @return The bytes of the outputFeatures at the given index.
*/
com.google.protobuf.ByteString
getOutputFeaturesBytes(int index);
/**
* <pre>
* parsed output feature root fqns
* </pre>
*
* <code>repeated string output_root_fqns = 9 [json_name = "outputRootFqns"];</code>
* @return A list containing the outputRootFqns.
*/
java.util.List<java.lang.String>
getOutputRootFqnsList();
/**
* <pre>
* parsed output feature root fqns
* </pre>
*
* <code>repeated string output_root_fqns = 9 [json_name = "outputRootFqns"];</code>
* @return The count of outputRootFqns.
*/
int getOutputRootFqnsCount();
/**
* <pre>
* parsed output feature root fqns
* </pre>
*
* <code>repeated string output_root_fqns = 9 [json_name = "outputRootFqns"];</code>
* @param index The index of the element to return.
* @return The outputRootFqns at the given index.
*/
java.lang.String getOutputRootFqns(int index);
/**
* <pre>
* parsed output feature root fqns
* </pre>
*
* <code>repeated string output_root_fqns = 9 [json_name = "outputRootFqns"];</code>
* @param index The index of the value to return.
* @return The bytes of the outputRootFqns at the given index.
*/
com.google.protobuf.ByteString
getOutputRootFqnsBytes(int index);
/**
* <pre>
* intermediate feature fqns currently empty
* </pre>
*
* <code>repeated string intermediate_features = 10 [json_name = "intermediateFeatures"];</code>
* @return A list containing the intermediateFeatures.
*/
java.util.List<java.lang.String>
getIntermediateFeaturesList();
/**
* <pre>
* intermediate feature fqns currently empty
* </pre>
*
* <code>repeated string intermediate_features = 10 [json_name = "intermediateFeatures"];</code>
* @return The count of intermediateFeatures.
*/
int getIntermediateFeaturesCount();
/**
* <pre>
* intermediate feature fqns currently empty
* </pre>
*
* <code>repeated string intermediate_features = 10 [json_name = "intermediateFeatures"];</code>
* @param index The index of the element to return.
* @return The intermediateFeatures at the given index.
*/
java.lang.String getIntermediateFeatures(int index);
/**
* <pre>
* intermediate feature fqns currently empty
* </pre>
*
* <code>repeated string intermediate_features = 10 [json_name = "intermediateFeatures"];</code>
* @param index The index of the value to return.
* @return The bytes of the intermediateFeatures at the given index.
*/
com.google.protobuf.ByteString
getIntermediateFeaturesBytes(int index);
/**
* <pre>
* resolver fqns used in plan
* </pre>
*
* <code>repeated string resolvers = 11 [json_name = "resolvers"];</code>
* @return A list containing the resolvers.
*/
java.util.List<java.lang.String>
getResolversList();
/**
* <pre>
* resolver fqns used in plan
* </pre>
*
* <code>repeated string resolvers = 11 [json_name = "resolvers"];</code>
* @return The count of resolvers.
*/
int getResolversCount();
/**
* <pre>
* resolver fqns used in plan
* </pre>
*
* <code>repeated string resolvers = 11 [json_name = "resolvers"];</code>
* @param index The index of the element to return.
* @return The resolvers at the given index.
*/
java.lang.String getResolvers(int index);
/**
* <pre>
* resolver fqns used in plan
* </pre>
*
* <code>repeated string resolvers = 11 [json_name = "resolvers"];</code>
* @param index The index of the value to return.
* @return The bytes of the resolvers at the given index.
*/
com.google.protobuf.ByteString
getResolversBytes(int index);
/**
* <pre>
* id of final plan
* </pre>
*
* <code>optional string query_plan_id = 12 [json_name = "queryPlanId"];</code>
* @return Whether the queryPlanId field is set.
*/
boolean hasQueryPlanId();
/**
* <pre>
* id of final plan
* </pre>
*
* <code>optional string query_plan_id = 12 [json_name = "queryPlanId"];</code>
* @return The queryPlanId.
*/
java.lang.String getQueryPlanId();
/**
* <pre>
* id of final plan
* </pre>
*
* <code>optional string query_plan_id = 12 [json_name = "queryPlanId"];</code>
* @return The bytes for queryPlanId.
*/
com.google.protobuf.ByteString
getQueryPlanIdBytes();
/**
* <pre>
* timestamp
* </pre>
*
* <code>int64 created_at = 13 [json_name = "createdAt", (.gen_bq_schema.bigquery) = { ... }</code>
* @return The createdAt.
*/
long getCreatedAt();
/**
* <pre>
* if query had errors
* </pre>
*
* <code>optional bool has_errors = 14 [json_name = "hasErrors"];</code>
* @return Whether the hasErrors field is set.
*/
boolean hasHasErrors();
/**
* <pre>
* if query had errors
* </pre>
*
* <code>optional bool has_errors = 14 [json_name = "hasErrors"];</code>
* @return The hasErrors.
*/
boolean getHasErrors();
/**
* <pre>
* aka as requester_id from run context
* </pre>
*
* <code>optional string agent_id = 15 [json_name = "agentId"];</code>
* @return Whether the agentId field is set.
*/
boolean hasAgentId();
/**
* <pre>
* aka as requester_id from run context
* </pre>
*
* <code>optional string agent_id = 15 [json_name = "agentId"];</code>
* @return The agentId.
*/
java.lang.String getAgentId();
/**
* <pre>
* aka as requester_id from run context
* </pre>
*
* <code>optional string agent_id = 15 [json_name = "agentId"];</code>
* @return The bytes for agentId.
*/
com.google.protobuf.ByteString
getAgentIdBytes();
/**
* <pre>
* branch query was run on
* </pre>
*
* <code>optional string branch_name = 16 [json_name = "branchName"];</code>
* @return Whether the branchName field is set.
*/
boolean hasBranchName();
/**
* <pre>
* branch query was run on
* </pre>
*
* <code>optional string branch_name = 16 [json_name = "branchName"];</code>
* @return The branchName.
*/
java.lang.String getBranchName();
/**
* <pre>
* branch query was run on
* </pre>
*
* <code>optional string branch_name = 16 [json_name = "branchName"];</code>
* @return The bytes for branchName.
*/
com.google.protobuf.ByteString
getBranchNameBytes();
/**
* <pre>
* deployment query was run on
* </pre>
*
* <code>optional string deployment_id = 17 [json_name = "deploymentId"];</code>
* @return Whether the deploymentId field is set.
*/
boolean hasDeploymentId();
/**
* <pre>
* deployment query was run on
* </pre>
*
* <code>optional string deployment_id = 17 [json_name = "deploymentId"];</code>
* @return The deploymentId.
*/
java.lang.String getDeploymentId();
/**
* <pre>
* deployment query was run on
* </pre>
*
* <code>optional string deployment_id = 17 [json_name = "deploymentId"];</code>
* @return The bytes for deploymentId.
*/
com.google.protobuf.ByteString
getDeploymentIdBytes();
/**
* <pre>
* if query was run with plan_stages
* </pre>
*
* <code>optional bool has_plan_stages = 18 [json_name = "hasPlanStages"];</code>
* @return Whether the hasPlanStages field is set.
*/
boolean hasHasPlanStages();
/**
* <pre>
* if query was run with plan_stages
* </pre>
*
* <code>optional bool has_plan_stages = 18 [json_name = "hasPlanStages"];</code>
* @return The hasPlanStages.
*/
boolean getHasPlanStages();
/**
* <pre>
* the meta query hash
* </pre>
*
* <code>optional string meta_query_hash = 19 [json_name = "metaQueryHash"];</code>
* @return Whether the metaQueryHash field is set.
*/
boolean hasMetaQueryHash();
/**
* <pre>
* the meta query hash
* </pre>
*
* <code>optional string meta_query_hash = 19 [json_name = "metaQueryHash"];</code>
* @return The metaQueryHash.
*/
java.lang.String getMetaQueryHash();
/**
* <pre>
* the meta query hash
* </pre>
*
* <code>optional string meta_query_hash = 19 [json_name = "metaQueryHash"];</code>
* @return The bytes for metaQueryHash.
*/
com.google.protobuf.ByteString
getMetaQueryHashBytes();
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/AWSCloudConfig.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/environment.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
/**
* Protobuf type {@code chalk.server.v1.AWSCloudConfig}
*/
public final class AWSCloudConfig extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.server.v1.AWSCloudConfig)
AWSCloudConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use AWSCloudConfig.newBuilder() to construct.
private AWSCloudConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private AWSCloudConfig() {
accountId_ = "";
managementRoleArn_ = "";
region_ = "";
externalId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AWSCloudConfig();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.EnvironmentProto.internal_static_chalk_server_v1_AWSCloudConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.EnvironmentProto.internal_static_chalk_server_v1_AWSCloudConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.AWSCloudConfig.class, ai.chalk.protos.chalk.server.v1.AWSCloudConfig.Builder.class);
}
private int bitField0_;
public static final int ACCOUNT_ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object accountId_ = "";
/**
* <code>string account_id = 1 [json_name = "accountId"];</code>
* @return The accountId.
*/
@java.lang.Override
public java.lang.String getAccountId() {
java.lang.Object ref = accountId_;
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();
accountId_ = s;
return s;
}
}
/**
* <code>string account_id = 1 [json_name = "accountId"];</code>
* @return The bytes for accountId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAccountIdBytes() {
java.lang.Object ref = accountId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
accountId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MANAGEMENT_ROLE_ARN_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object managementRoleArn_ = "";
/**
* <code>string management_role_arn = 2 [json_name = "managementRoleArn"];</code>
* @return The managementRoleArn.
*/
@java.lang.Override
public java.lang.String getManagementRoleArn() {
java.lang.Object ref = managementRoleArn_;
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();
managementRoleArn_ = s;
return s;
}
}
/**
* <code>string management_role_arn = 2 [json_name = "managementRoleArn"];</code>
* @return The bytes for managementRoleArn.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getManagementRoleArnBytes() {
java.lang.Object ref = managementRoleArn_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
managementRoleArn_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REGION_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object region_ = "";
/**
* <code>string region = 3 [json_name = "region"];</code>
* @return The region.
*/
@java.lang.Override
public java.lang.String getRegion() {
java.lang.Object ref = region_;
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();
region_ = s;
return s;
}
}
/**
* <code>string region = 3 [json_name = "region"];</code>
* @return The bytes for region.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRegionBytes() {
java.lang.Object ref = region_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
region_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EXTERNAL_ID_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object externalId_ = "";
/**
* <code>optional string external_id = 4 [json_name = "externalId"];</code>
* @return Whether the externalId field is set.
*/
@java.lang.Override
public boolean hasExternalId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <code>optional string external_id = 4 [json_name = "externalId"];</code>
* @return The externalId.
*/
@java.lang.Override
public java.lang.String getExternalId() {
java.lang.Object ref = externalId_;
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();
externalId_ = s;
return s;
}
}
/**
* <code>optional string external_id = 4 [json_name = "externalId"];</code>
* @return The bytes for externalId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getExternalIdBytes() {
java.lang.Object ref = externalId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
externalId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DEPRECATED_CLOUD_WATCH_CONFIG_FIELD_NUMBER = 5;
private ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig deprecatedCloudWatchConfig_;
/**
* <code>.chalk.server.v1.AWSCloudWatchConfig deprecated_cloud_watch_config = 5 [json_name = "deprecatedCloudWatchConfig", deprecated = true];</code>
* @deprecated chalk.server.v1.AWSCloudConfig.deprecated_cloud_watch_config is deprecated.
* See chalk/server/v1/environment.proto;l=52
* @return Whether the deprecatedCloudWatchConfig field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasDeprecatedCloudWatchConfig() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* <code>.chalk.server.v1.AWSCloudWatchConfig deprecated_cloud_watch_config = 5 [json_name = "deprecatedCloudWatchConfig", deprecated = true];</code>
* @deprecated chalk.server.v1.AWSCloudConfig.deprecated_cloud_watch_config is deprecated.
* See chalk/server/v1/environment.proto;l=52
* @return The deprecatedCloudWatchConfig.
*/
@java.lang.Override
@java.lang.Deprecated public ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig getDeprecatedCloudWatchConfig() {
return deprecatedCloudWatchConfig_ == null ? ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig.getDefaultInstance() : deprecatedCloudWatchConfig_;
}
/**
* <code>.chalk.server.v1.AWSCloudWatchConfig deprecated_cloud_watch_config = 5 [json_name = "deprecatedCloudWatchConfig", deprecated = true];</code>
*/
@java.lang.Override
@java.lang.Deprecated public ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfigOrBuilder getDeprecatedCloudWatchConfigOrBuilder() {
return deprecatedCloudWatchConfig_ == null ? ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig.getDefaultInstance() : deprecatedCloudWatchConfig_;
}
public static final int DEPRECATED_SECRET_MANAGER_CONFIG_FIELD_NUMBER = 6;
private ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig deprecatedSecretManagerConfig_;
/**
* <code>.chalk.server.v1.AWSSecretManagerConfig deprecated_secret_manager_config = 6 [json_name = "deprecatedSecretManagerConfig", deprecated = true];</code>
* @deprecated chalk.server.v1.AWSCloudConfig.deprecated_secret_manager_config is deprecated.
* See chalk/server/v1/environment.proto;l=53
* @return Whether the deprecatedSecretManagerConfig field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasDeprecatedSecretManagerConfig() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* <code>.chalk.server.v1.AWSSecretManagerConfig deprecated_secret_manager_config = 6 [json_name = "deprecatedSecretManagerConfig", deprecated = true];</code>
* @deprecated chalk.server.v1.AWSCloudConfig.deprecated_secret_manager_config is deprecated.
* See chalk/server/v1/environment.proto;l=53
* @return The deprecatedSecretManagerConfig.
*/
@java.lang.Override
@java.lang.Deprecated public ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig getDeprecatedSecretManagerConfig() {
return deprecatedSecretManagerConfig_ == null ? ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig.getDefaultInstance() : deprecatedSecretManagerConfig_;
}
/**
* <code>.chalk.server.v1.AWSSecretManagerConfig deprecated_secret_manager_config = 6 [json_name = "deprecatedSecretManagerConfig", deprecated = true];</code>
*/
@java.lang.Override
@java.lang.Deprecated public ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfigOrBuilder getDeprecatedSecretManagerConfigOrBuilder() {
return deprecatedSecretManagerConfig_ == null ? ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig.getDefaultInstance() : deprecatedSecretManagerConfig_;
}
public static final int WORKLOAD_IDENTITY_FIELD_NUMBER = 7;
private ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentity workloadIdentity_;
/**
* <code>.chalk.server.v1.GCPWorkloadIdentity workload_identity = 7 [json_name = "workloadIdentity", deprecated = true];</code>
* @deprecated chalk.server.v1.AWSCloudConfig.workload_identity is deprecated.
* See chalk/server/v1/environment.proto;l=54
* @return Whether the workloadIdentity field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasWorkloadIdentity() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* <code>.chalk.server.v1.GCPWorkloadIdentity workload_identity = 7 [json_name = "workloadIdentity", deprecated = true];</code>
* @deprecated chalk.server.v1.AWSCloudConfig.workload_identity is deprecated.
* See chalk/server/v1/environment.proto;l=54
* @return The workloadIdentity.
*/
@java.lang.Override
@java.lang.Deprecated public ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentity getWorkloadIdentity() {
return workloadIdentity_ == null ? ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentity.getDefaultInstance() : workloadIdentity_;
}
/**
* <code>.chalk.server.v1.GCPWorkloadIdentity workload_identity = 7 [json_name = "workloadIdentity", deprecated = true];</code>
*/
@java.lang.Override
@java.lang.Deprecated public ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentityOrBuilder getWorkloadIdentityOrBuilder() {
return workloadIdentity_ == null ? ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentity.getDefaultInstance() : workloadIdentity_;
}
public static final int DOCKER_BUILD_CONFIG_FIELD_NUMBER = 8;
private ai.chalk.protos.chalk.server.v1.DockerBuildConfig dockerBuildConfig_;
/**
* <code>.chalk.server.v1.DockerBuildConfig docker_build_config = 8 [json_name = "dockerBuildConfig"];</code>
* @return Whether the dockerBuildConfig field is set.
*/
@java.lang.Override
public boolean hasDockerBuildConfig() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* <code>.chalk.server.v1.DockerBuildConfig docker_build_config = 8 [json_name = "dockerBuildConfig"];</code>
* @return The dockerBuildConfig.
*/
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.DockerBuildConfig getDockerBuildConfig() {
return dockerBuildConfig_ == null ? ai.chalk.protos.chalk.server.v1.DockerBuildConfig.getDefaultInstance() : dockerBuildConfig_;
}
/**
* <code>.chalk.server.v1.DockerBuildConfig docker_build_config = 8 [json_name = "dockerBuildConfig"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.DockerBuildConfigOrBuilder getDockerBuildConfigOrBuilder() {
return dockerBuildConfig_ == null ? ai.chalk.protos.chalk.server.v1.DockerBuildConfig.getDefaultInstance() : dockerBuildConfig_;
}
public static final int ELASTICSEARCH_LOG_CONFIG_FIELD_NUMBER = 9;
private ai.chalk.protos.chalk.server.v1.ElasticsearchLogConfig elasticsearchLogConfig_;
/**
* <code>.chalk.server.v1.ElasticsearchLogConfig elasticsearch_log_config = 9 [json_name = "elasticsearchLogConfig"];</code>
* @return Whether the elasticsearchLogConfig field is set.
*/
@java.lang.Override
public boolean hasElasticsearchLogConfig() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* <code>.chalk.server.v1.ElasticsearchLogConfig elasticsearch_log_config = 9 [json_name = "elasticsearchLogConfig"];</code>
* @return The elasticsearchLogConfig.
*/
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.ElasticsearchLogConfig getElasticsearchLogConfig() {
return elasticsearchLogConfig_ == null ? ai.chalk.protos.chalk.server.v1.ElasticsearchLogConfig.getDefaultInstance() : elasticsearchLogConfig_;
}
/**
* <code>.chalk.server.v1.ElasticsearchLogConfig elasticsearch_log_config = 9 [json_name = "elasticsearchLogConfig"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.ElasticsearchLogConfigOrBuilder getElasticsearchLogConfigOrBuilder() {
return elasticsearchLogConfig_ == null ? ai.chalk.protos.chalk.server.v1.ElasticsearchLogConfig.getDefaultInstance() : elasticsearchLogConfig_;
}
public static final int CLOUDWATCH_CONFIG_FIELD_NUMBER = 10;
private ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig cloudwatchConfig_;
/**
* <code>.chalk.server.v1.AWSCloudWatchConfig cloudwatch_config = 10 [json_name = "cloudwatchConfig"];</code>
* @return Whether the cloudwatchConfig field is set.
*/
@java.lang.Override
public boolean hasCloudwatchConfig() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* <code>.chalk.server.v1.AWSCloudWatchConfig cloudwatch_config = 10 [json_name = "cloudwatchConfig"];</code>
* @return The cloudwatchConfig.
*/
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig getCloudwatchConfig() {
return cloudwatchConfig_ == null ? ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig.getDefaultInstance() : cloudwatchConfig_;
}
/**
* <code>.chalk.server.v1.AWSCloudWatchConfig cloudwatch_config = 10 [json_name = "cloudwatchConfig"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfigOrBuilder getCloudwatchConfigOrBuilder() {
return cloudwatchConfig_ == null ? ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig.getDefaultInstance() : cloudwatchConfig_;
}
public static final int SECRETMANAGER_CONFIG_FIELD_NUMBER = 11;
private ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig secretmanagerConfig_;
/**
* <code>.chalk.server.v1.AWSSecretManagerConfig secretmanager_config = 11 [json_name = "secretmanagerConfig"];</code>
* @return Whether the secretmanagerConfig field is set.
*/
@java.lang.Override
public boolean hasSecretmanagerConfig() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* <code>.chalk.server.v1.AWSSecretManagerConfig secretmanager_config = 11 [json_name = "secretmanagerConfig"];</code>
* @return The secretmanagerConfig.
*/
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig getSecretmanagerConfig() {
return secretmanagerConfig_ == null ? ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig.getDefaultInstance() : secretmanagerConfig_;
}
/**
* <code>.chalk.server.v1.AWSSecretManagerConfig secretmanager_config = 11 [json_name = "secretmanagerConfig"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfigOrBuilder getSecretmanagerConfigOrBuilder() {
return secretmanagerConfig_ == null ? ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig.getDefaultInstance() : secretmanagerConfig_;
}
public static final int GCP_WORKLOAD_IDENTITY_FIELD_NUMBER = 12;
private ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentity gcpWorkloadIdentity_;
/**
* <code>.chalk.server.v1.GCPWorkloadIdentity gcp_workload_identity = 12 [json_name = "gcpWorkloadIdentity"];</code>
* @return Whether the gcpWorkloadIdentity field is set.
*/
@java.lang.Override
public boolean hasGcpWorkloadIdentity() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* <code>.chalk.server.v1.GCPWorkloadIdentity gcp_workload_identity = 12 [json_name = "gcpWorkloadIdentity"];</code>
* @return The gcpWorkloadIdentity.
*/
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentity getGcpWorkloadIdentity() {
return gcpWorkloadIdentity_ == null ? ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentity.getDefaultInstance() : gcpWorkloadIdentity_;
}
/**
* <code>.chalk.server.v1.GCPWorkloadIdentity gcp_workload_identity = 12 [json_name = "gcpWorkloadIdentity"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentityOrBuilder getGcpWorkloadIdentityOrBuilder() {
return gcpWorkloadIdentity_ == null ? ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentity.getDefaultInstance() : gcpWorkloadIdentity_;
}
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(accountId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, accountId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(managementRoleArn_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, managementRoleArn_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, region_);
}
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, externalId_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(5, getDeprecatedCloudWatchConfig());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(6, getDeprecatedSecretManagerConfig());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(7, getWorkloadIdentity());
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(8, getDockerBuildConfig());
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeMessage(9, getElasticsearchLogConfig());
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeMessage(10, getCloudwatchConfig());
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeMessage(11, getSecretmanagerConfig());
}
if (((bitField0_ & 0x00000100) != 0)) {
output.writeMessage(12, getGcpWorkloadIdentity());
}
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(accountId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, accountId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(managementRoleArn_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, managementRoleArn_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, region_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, externalId_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getDeprecatedCloudWatchConfig());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getDeprecatedSecretManagerConfig());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getWorkloadIdentity());
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getDockerBuildConfig());
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getElasticsearchLogConfig());
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getCloudwatchConfig());
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, getSecretmanagerConfig());
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, getGcpWorkloadIdentity());
}
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 ai.chalk.protos.chalk.server.v1.AWSCloudConfig)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.server.v1.AWSCloudConfig other = (ai.chalk.protos.chalk.server.v1.AWSCloudConfig) obj;
if (!getAccountId()
.equals(other.getAccountId())) return false;
if (!getManagementRoleArn()
.equals(other.getManagementRoleArn())) return false;
if (!getRegion()
.equals(other.getRegion())) return false;
if (hasExternalId() != other.hasExternalId()) return false;
if (hasExternalId()) {
if (!getExternalId()
.equals(other.getExternalId())) return false;
}
if (hasDeprecatedCloudWatchConfig() != other.hasDeprecatedCloudWatchConfig()) return false;
if (hasDeprecatedCloudWatchConfig()) {
if (!getDeprecatedCloudWatchConfig()
.equals(other.getDeprecatedCloudWatchConfig())) return false;
}
if (hasDeprecatedSecretManagerConfig() != other.hasDeprecatedSecretManagerConfig()) return false;
if (hasDeprecatedSecretManagerConfig()) {
if (!getDeprecatedSecretManagerConfig()
.equals(other.getDeprecatedSecretManagerConfig())) return false;
}
if (hasWorkloadIdentity() != other.hasWorkloadIdentity()) return false;
if (hasWorkloadIdentity()) {
if (!getWorkloadIdentity()
.equals(other.getWorkloadIdentity())) return false;
}
if (hasDockerBuildConfig() != other.hasDockerBuildConfig()) return false;
if (hasDockerBuildConfig()) {
if (!getDockerBuildConfig()
.equals(other.getDockerBuildConfig())) return false;
}
if (hasElasticsearchLogConfig() != other.hasElasticsearchLogConfig()) return false;
if (hasElasticsearchLogConfig()) {
if (!getElasticsearchLogConfig()
.equals(other.getElasticsearchLogConfig())) return false;
}
if (hasCloudwatchConfig() != other.hasCloudwatchConfig()) return false;
if (hasCloudwatchConfig()) {
if (!getCloudwatchConfig()
.equals(other.getCloudwatchConfig())) return false;
}
if (hasSecretmanagerConfig() != other.hasSecretmanagerConfig()) return false;
if (hasSecretmanagerConfig()) {
if (!getSecretmanagerConfig()
.equals(other.getSecretmanagerConfig())) return false;
}
if (hasGcpWorkloadIdentity() != other.hasGcpWorkloadIdentity()) return false;
if (hasGcpWorkloadIdentity()) {
if (!getGcpWorkloadIdentity()
.equals(other.getGcpWorkloadIdentity())) 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) + ACCOUNT_ID_FIELD_NUMBER;
hash = (53 * hash) + getAccountId().hashCode();
hash = (37 * hash) + MANAGEMENT_ROLE_ARN_FIELD_NUMBER;
hash = (53 * hash) + getManagementRoleArn().hashCode();
hash = (37 * hash) + REGION_FIELD_NUMBER;
hash = (53 * hash) + getRegion().hashCode();
if (hasExternalId()) {
hash = (37 * hash) + EXTERNAL_ID_FIELD_NUMBER;
hash = (53 * hash) + getExternalId().hashCode();
}
if (hasDeprecatedCloudWatchConfig()) {
hash = (37 * hash) + DEPRECATED_CLOUD_WATCH_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getDeprecatedCloudWatchConfig().hashCode();
}
if (hasDeprecatedSecretManagerConfig()) {
hash = (37 * hash) + DEPRECATED_SECRET_MANAGER_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getDeprecatedSecretManagerConfig().hashCode();
}
if (hasWorkloadIdentity()) {
hash = (37 * hash) + WORKLOAD_IDENTITY_FIELD_NUMBER;
hash = (53 * hash) + getWorkloadIdentity().hashCode();
}
if (hasDockerBuildConfig()) {
hash = (37 * hash) + DOCKER_BUILD_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getDockerBuildConfig().hashCode();
}
if (hasElasticsearchLogConfig()) {
hash = (37 * hash) + ELASTICSEARCH_LOG_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getElasticsearchLogConfig().hashCode();
}
if (hasCloudwatchConfig()) {
hash = (37 * hash) + CLOUDWATCH_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getCloudwatchConfig().hashCode();
}
if (hasSecretmanagerConfig()) {
hash = (37 * hash) + SECRETMANAGER_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getSecretmanagerConfig().hashCode();
}
if (hasGcpWorkloadIdentity()) {
hash = (37 * hash) + GCP_WORKLOAD_IDENTITY_FIELD_NUMBER;
hash = (53 * hash) + getGcpWorkloadIdentity().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.server.v1.AWSCloudConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.AWSCloudConfig parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.AWSCloudConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.AWSCloudConfig parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.AWSCloudConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.AWSCloudConfig parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.AWSCloudConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.AWSCloudConfig 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 ai.chalk.protos.chalk.server.v1.AWSCloudConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.AWSCloudConfig 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 ai.chalk.protos.chalk.server.v1.AWSCloudConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.AWSCloudConfig 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(ai.chalk.protos.chalk.server.v1.AWSCloudConfig prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code chalk.server.v1.AWSCloudConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.server.v1.AWSCloudConfig)
ai.chalk.protos.chalk.server.v1.AWSCloudConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.EnvironmentProto.internal_static_chalk_server_v1_AWSCloudConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.EnvironmentProto.internal_static_chalk_server_v1_AWSCloudConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.AWSCloudConfig.class, ai.chalk.protos.chalk.server.v1.AWSCloudConfig.Builder.class);
}
// Construct using ai.chalk.protos.chalk.server.v1.AWSCloudConfig.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getDeprecatedCloudWatchConfigFieldBuilder();
getDeprecatedSecretManagerConfigFieldBuilder();
getWorkloadIdentityFieldBuilder();
getDockerBuildConfigFieldBuilder();
getElasticsearchLogConfigFieldBuilder();
getCloudwatchConfigFieldBuilder();
getSecretmanagerConfigFieldBuilder();
getGcpWorkloadIdentityFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
accountId_ = "";
managementRoleArn_ = "";
region_ = "";
externalId_ = "";
deprecatedCloudWatchConfig_ = null;
if (deprecatedCloudWatchConfigBuilder_ != null) {
deprecatedCloudWatchConfigBuilder_.dispose();
deprecatedCloudWatchConfigBuilder_ = null;
}
deprecatedSecretManagerConfig_ = null;
if (deprecatedSecretManagerConfigBuilder_ != null) {
deprecatedSecretManagerConfigBuilder_.dispose();
deprecatedSecretManagerConfigBuilder_ = null;
}
workloadIdentity_ = null;
if (workloadIdentityBuilder_ != null) {
workloadIdentityBuilder_.dispose();
workloadIdentityBuilder_ = null;
}
dockerBuildConfig_ = null;
if (dockerBuildConfigBuilder_ != null) {
dockerBuildConfigBuilder_.dispose();
dockerBuildConfigBuilder_ = null;
}
elasticsearchLogConfig_ = null;
if (elasticsearchLogConfigBuilder_ != null) {
elasticsearchLogConfigBuilder_.dispose();
elasticsearchLogConfigBuilder_ = null;
}
cloudwatchConfig_ = null;
if (cloudwatchConfigBuilder_ != null) {
cloudwatchConfigBuilder_.dispose();
cloudwatchConfigBuilder_ = null;
}
secretmanagerConfig_ = null;
if (secretmanagerConfigBuilder_ != null) {
secretmanagerConfigBuilder_.dispose();
secretmanagerConfigBuilder_ = null;
}
gcpWorkloadIdentity_ = null;
if (gcpWorkloadIdentityBuilder_ != null) {
gcpWorkloadIdentityBuilder_.dispose();
gcpWorkloadIdentityBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.server.v1.EnvironmentProto.internal_static_chalk_server_v1_AWSCloudConfig_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.AWSCloudConfig getDefaultInstanceForType() {
return ai.chalk.protos.chalk.server.v1.AWSCloudConfig.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.AWSCloudConfig build() {
ai.chalk.protos.chalk.server.v1.AWSCloudConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.AWSCloudConfig buildPartial() {
ai.chalk.protos.chalk.server.v1.AWSCloudConfig result = new ai.chalk.protos.chalk.server.v1.AWSCloudConfig(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ai.chalk.protos.chalk.server.v1.AWSCloudConfig result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.accountId_ = accountId_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.managementRoleArn_ = managementRoleArn_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.region_ = region_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000008) != 0)) {
result.externalId_ = externalId_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.deprecatedCloudWatchConfig_ = deprecatedCloudWatchConfigBuilder_ == null
? deprecatedCloudWatchConfig_
: deprecatedCloudWatchConfigBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.deprecatedSecretManagerConfig_ = deprecatedSecretManagerConfigBuilder_ == null
? deprecatedSecretManagerConfig_
: deprecatedSecretManagerConfigBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.workloadIdentity_ = workloadIdentityBuilder_ == null
? workloadIdentity_
: workloadIdentityBuilder_.build();
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.dockerBuildConfig_ = dockerBuildConfigBuilder_ == null
? dockerBuildConfig_
: dockerBuildConfigBuilder_.build();
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.elasticsearchLogConfig_ = elasticsearchLogConfigBuilder_ == null
? elasticsearchLogConfig_
: elasticsearchLogConfigBuilder_.build();
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.cloudwatchConfig_ = cloudwatchConfigBuilder_ == null
? cloudwatchConfig_
: cloudwatchConfigBuilder_.build();
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.secretmanagerConfig_ = secretmanagerConfigBuilder_ == null
? secretmanagerConfig_
: secretmanagerConfigBuilder_.build();
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.gcpWorkloadIdentity_ = gcpWorkloadIdentityBuilder_ == null
? gcpWorkloadIdentity_
: gcpWorkloadIdentityBuilder_.build();
to_bitField0_ |= 0x00000100;
}
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 ai.chalk.protos.chalk.server.v1.AWSCloudConfig) {
return mergeFrom((ai.chalk.protos.chalk.server.v1.AWSCloudConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.server.v1.AWSCloudConfig other) {
if (other == ai.chalk.protos.chalk.server.v1.AWSCloudConfig.getDefaultInstance()) return this;
if (!other.getAccountId().isEmpty()) {
accountId_ = other.accountId_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getManagementRoleArn().isEmpty()) {
managementRoleArn_ = other.managementRoleArn_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getRegion().isEmpty()) {
region_ = other.region_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasExternalId()) {
externalId_ = other.externalId_;
bitField0_ |= 0x00000008;
onChanged();
}
if (other.hasDeprecatedCloudWatchConfig()) {
mergeDeprecatedCloudWatchConfig(other.getDeprecatedCloudWatchConfig());
}
if (other.hasDeprecatedSecretManagerConfig()) {
mergeDeprecatedSecretManagerConfig(other.getDeprecatedSecretManagerConfig());
}
if (other.hasWorkloadIdentity()) {
mergeWorkloadIdentity(other.getWorkloadIdentity());
}
if (other.hasDockerBuildConfig()) {
mergeDockerBuildConfig(other.getDockerBuildConfig());
}
if (other.hasElasticsearchLogConfig()) {
mergeElasticsearchLogConfig(other.getElasticsearchLogConfig());
}
if (other.hasCloudwatchConfig()) {
mergeCloudwatchConfig(other.getCloudwatchConfig());
}
if (other.hasSecretmanagerConfig()) {
mergeSecretmanagerConfig(other.getSecretmanagerConfig());
}
if (other.hasGcpWorkloadIdentity()) {
mergeGcpWorkloadIdentity(other.getGcpWorkloadIdentity());
}
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: {
accountId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
managementRoleArn_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
region_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
externalId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
input.readMessage(
getDeprecatedCloudWatchConfigFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
input.readMessage(
getDeprecatedSecretManagerConfigFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 50
case 58: {
input.readMessage(
getWorkloadIdentityFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000040;
break;
} // case 58
case 66: {
input.readMessage(
getDockerBuildConfigFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000080;
break;
} // case 66
case 74: {
input.readMessage(
getElasticsearchLogConfigFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000100;
break;
} // case 74
case 82: {
input.readMessage(
getCloudwatchConfigFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000200;
break;
} // case 82
case 90: {
input.readMessage(
getSecretmanagerConfigFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000400;
break;
} // case 90
case 98: {
input.readMessage(
getGcpWorkloadIdentityFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000800;
break;
} // case 98
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 accountId_ = "";
/**
* <code>string account_id = 1 [json_name = "accountId"];</code>
* @return The accountId.
*/
public java.lang.String getAccountId() {
java.lang.Object ref = accountId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
accountId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string account_id = 1 [json_name = "accountId"];</code>
* @return The bytes for accountId.
*/
public com.google.protobuf.ByteString
getAccountIdBytes() {
java.lang.Object ref = accountId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
accountId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string account_id = 1 [json_name = "accountId"];</code>
* @param value The accountId to set.
* @return This builder for chaining.
*/
public Builder setAccountId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
accountId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>string account_id = 1 [json_name = "accountId"];</code>
* @return This builder for chaining.
*/
public Builder clearAccountId() {
accountId_ = getDefaultInstance().getAccountId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* <code>string account_id = 1 [json_name = "accountId"];</code>
* @param value The bytes for accountId to set.
* @return This builder for chaining.
*/
public Builder setAccountIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
accountId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object managementRoleArn_ = "";
/**
* <code>string management_role_arn = 2 [json_name = "managementRoleArn"];</code>
* @return The managementRoleArn.
*/
public java.lang.String getManagementRoleArn() {
java.lang.Object ref = managementRoleArn_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
managementRoleArn_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string management_role_arn = 2 [json_name = "managementRoleArn"];</code>
* @return The bytes for managementRoleArn.
*/
public com.google.protobuf.ByteString
getManagementRoleArnBytes() {
java.lang.Object ref = managementRoleArn_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
managementRoleArn_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string management_role_arn = 2 [json_name = "managementRoleArn"];</code>
* @param value The managementRoleArn to set.
* @return This builder for chaining.
*/
public Builder setManagementRoleArn(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
managementRoleArn_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <code>string management_role_arn = 2 [json_name = "managementRoleArn"];</code>
* @return This builder for chaining.
*/
public Builder clearManagementRoleArn() {
managementRoleArn_ = getDefaultInstance().getManagementRoleArn();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* <code>string management_role_arn = 2 [json_name = "managementRoleArn"];</code>
* @param value The bytes for managementRoleArn to set.
* @return This builder for chaining.
*/
public Builder setManagementRoleArnBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
managementRoleArn_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object region_ = "";
/**
* <code>string region = 3 [json_name = "region"];</code>
* @return The region.
*/
public java.lang.String getRegion() {
java.lang.Object ref = region_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
region_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string region = 3 [json_name = "region"];</code>
* @return The bytes for region.
*/
public com.google.protobuf.ByteString
getRegionBytes() {
java.lang.Object ref = region_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
region_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string region = 3 [json_name = "region"];</code>
* @param value The region to set.
* @return This builder for chaining.
*/
public Builder setRegion(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
region_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* <code>string region = 3 [json_name = "region"];</code>
* @return This builder for chaining.
*/
public Builder clearRegion() {
region_ = getDefaultInstance().getRegion();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* <code>string region = 3 [json_name = "region"];</code>
* @param value The bytes for region to set.
* @return This builder for chaining.
*/
public Builder setRegionBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
region_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object externalId_ = "";
/**
* <code>optional string external_id = 4 [json_name = "externalId"];</code>
* @return Whether the externalId field is set.
*/
public boolean hasExternalId() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* <code>optional string external_id = 4 [json_name = "externalId"];</code>
* @return The externalId.
*/
public java.lang.String getExternalId() {
java.lang.Object ref = externalId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
externalId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>optional string external_id = 4 [json_name = "externalId"];</code>
* @return The bytes for externalId.
*/
public com.google.protobuf.ByteString
getExternalIdBytes() {
java.lang.Object ref = externalId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
externalId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>optional string external_id = 4 [json_name = "externalId"];</code>
* @param value The externalId to set.
* @return This builder for chaining.
*/
public Builder setExternalId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
externalId_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* <code>optional string external_id = 4 [json_name = "externalId"];</code>
* @return This builder for chaining.
*/
public Builder clearExternalId() {
externalId_ = getDefaultInstance().getExternalId();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
* <code>optional string external_id = 4 [json_name = "externalId"];</code>
* @param value The bytes for externalId to set.
* @return This builder for chaining.
*/
public Builder setExternalIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
externalId_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig deprecatedCloudWatchConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig, ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig.Builder, ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfigOrBuilder> deprecatedCloudWatchConfigBuilder_;
/**
* <code>.chalk.server.v1.AWSCloudWatchConfig deprecated_cloud_watch_config = 5 [json_name = "deprecatedCloudWatchConfig", deprecated = true];</code>
* @deprecated chalk.server.v1.AWSCloudConfig.deprecated_cloud_watch_config is deprecated.
* See chalk/server/v1/environment.proto;l=52
* @return Whether the deprecatedCloudWatchConfig field is set.
*/
@java.lang.Deprecated public boolean hasDeprecatedCloudWatchConfig() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* <code>.chalk.server.v1.AWSCloudWatchConfig deprecated_cloud_watch_config = 5 [json_name = "deprecatedCloudWatchConfig", deprecated = true];</code>
* @deprecated chalk.server.v1.AWSCloudConfig.deprecated_cloud_watch_config is deprecated.
* See chalk/server/v1/environment.proto;l=52
* @return The deprecatedCloudWatchConfig.
*/
@java.lang.Deprecated public ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig getDeprecatedCloudWatchConfig() {
if (deprecatedCloudWatchConfigBuilder_ == null) {
return deprecatedCloudWatchConfig_ == null ? ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig.getDefaultInstance() : deprecatedCloudWatchConfig_;
} else {
return deprecatedCloudWatchConfigBuilder_.getMessage();
}
}
/**
* <code>.chalk.server.v1.AWSCloudWatchConfig deprecated_cloud_watch_config = 5 [json_name = "deprecatedCloudWatchConfig", deprecated = true];</code>
*/
@java.lang.Deprecated public Builder setDeprecatedCloudWatchConfig(ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig value) {
if (deprecatedCloudWatchConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
deprecatedCloudWatchConfig_ = value;
} else {
deprecatedCloudWatchConfigBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* <code>.chalk.server.v1.AWSCloudWatchConfig deprecated_cloud_watch_config = 5 [json_name = "deprecatedCloudWatchConfig", deprecated = true];</code>
*/
@java.lang.Deprecated public Builder setDeprecatedCloudWatchConfig(
ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig.Builder builderForValue) {
if (deprecatedCloudWatchConfigBuilder_ == null) {
deprecatedCloudWatchConfig_ = builderForValue.build();
} else {
deprecatedCloudWatchConfigBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* <code>.chalk.server.v1.AWSCloudWatchConfig deprecated_cloud_watch_config = 5 [json_name = "deprecatedCloudWatchConfig", deprecated = true];</code>
*/
@java.lang.Deprecated public Builder mergeDeprecatedCloudWatchConfig(ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig value) {
if (deprecatedCloudWatchConfigBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
deprecatedCloudWatchConfig_ != null &&
deprecatedCloudWatchConfig_ != ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig.getDefaultInstance()) {
getDeprecatedCloudWatchConfigBuilder().mergeFrom(value);
} else {
deprecatedCloudWatchConfig_ = value;
}
} else {
deprecatedCloudWatchConfigBuilder_.mergeFrom(value);
}
if (deprecatedCloudWatchConfig_ != null) {
bitField0_ |= 0x00000010;
onChanged();
}
return this;
}
/**
* <code>.chalk.server.v1.AWSCloudWatchConfig deprecated_cloud_watch_config = 5 [json_name = "deprecatedCloudWatchConfig", deprecated = true];</code>
*/
@java.lang.Deprecated public Builder clearDeprecatedCloudWatchConfig() {
bitField0_ = (bitField0_ & ~0x00000010);
deprecatedCloudWatchConfig_ = null;
if (deprecatedCloudWatchConfigBuilder_ != null) {
deprecatedCloudWatchConfigBuilder_.dispose();
deprecatedCloudWatchConfigBuilder_ = null;
}
onChanged();
return this;
}
/**
* <code>.chalk.server.v1.AWSCloudWatchConfig deprecated_cloud_watch_config = 5 [json_name = "deprecatedCloudWatchConfig", deprecated = true];</code>
*/
@java.lang.Deprecated public ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig.Builder getDeprecatedCloudWatchConfigBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getDeprecatedCloudWatchConfigFieldBuilder().getBuilder();
}
/**
* <code>.chalk.server.v1.AWSCloudWatchConfig deprecated_cloud_watch_config = 5 [json_name = "deprecatedCloudWatchConfig", deprecated = true];</code>
*/
@java.lang.Deprecated public ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfigOrBuilder getDeprecatedCloudWatchConfigOrBuilder() {
if (deprecatedCloudWatchConfigBuilder_ != null) {
return deprecatedCloudWatchConfigBuilder_.getMessageOrBuilder();
} else {
return deprecatedCloudWatchConfig_ == null ?
ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig.getDefaultInstance() : deprecatedCloudWatchConfig_;
}
}
/**
* <code>.chalk.server.v1.AWSCloudWatchConfig deprecated_cloud_watch_config = 5 [json_name = "deprecatedCloudWatchConfig", deprecated = true];</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig, ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig.Builder, ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfigOrBuilder>
getDeprecatedCloudWatchConfigFieldBuilder() {
if (deprecatedCloudWatchConfigBuilder_ == null) {
deprecatedCloudWatchConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig, ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig.Builder, ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfigOrBuilder>(
getDeprecatedCloudWatchConfig(),
getParentForChildren(),
isClean());
deprecatedCloudWatchConfig_ = null;
}
return deprecatedCloudWatchConfigBuilder_;
}
private ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig deprecatedSecretManagerConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig, ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig.Builder, ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfigOrBuilder> deprecatedSecretManagerConfigBuilder_;
/**
* <code>.chalk.server.v1.AWSSecretManagerConfig deprecated_secret_manager_config = 6 [json_name = "deprecatedSecretManagerConfig", deprecated = true];</code>
* @deprecated chalk.server.v1.AWSCloudConfig.deprecated_secret_manager_config is deprecated.
* See chalk/server/v1/environment.proto;l=53
* @return Whether the deprecatedSecretManagerConfig field is set.
*/
@java.lang.Deprecated public boolean hasDeprecatedSecretManagerConfig() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* <code>.chalk.server.v1.AWSSecretManagerConfig deprecated_secret_manager_config = 6 [json_name = "deprecatedSecretManagerConfig", deprecated = true];</code>
* @deprecated chalk.server.v1.AWSCloudConfig.deprecated_secret_manager_config is deprecated.
* See chalk/server/v1/environment.proto;l=53
* @return The deprecatedSecretManagerConfig.
*/
@java.lang.Deprecated public ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig getDeprecatedSecretManagerConfig() {
if (deprecatedSecretManagerConfigBuilder_ == null) {
return deprecatedSecretManagerConfig_ == null ? ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig.getDefaultInstance() : deprecatedSecretManagerConfig_;
} else {
return deprecatedSecretManagerConfigBuilder_.getMessage();
}
}
/**
* <code>.chalk.server.v1.AWSSecretManagerConfig deprecated_secret_manager_config = 6 [json_name = "deprecatedSecretManagerConfig", deprecated = true];</code>
*/
@java.lang.Deprecated public Builder setDeprecatedSecretManagerConfig(ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig value) {
if (deprecatedSecretManagerConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
deprecatedSecretManagerConfig_ = value;
} else {
deprecatedSecretManagerConfigBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* <code>.chalk.server.v1.AWSSecretManagerConfig deprecated_secret_manager_config = 6 [json_name = "deprecatedSecretManagerConfig", deprecated = true];</code>
*/
@java.lang.Deprecated public Builder setDeprecatedSecretManagerConfig(
ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig.Builder builderForValue) {
if (deprecatedSecretManagerConfigBuilder_ == null) {
deprecatedSecretManagerConfig_ = builderForValue.build();
} else {
deprecatedSecretManagerConfigBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* <code>.chalk.server.v1.AWSSecretManagerConfig deprecated_secret_manager_config = 6 [json_name = "deprecatedSecretManagerConfig", deprecated = true];</code>
*/
@java.lang.Deprecated public Builder mergeDeprecatedSecretManagerConfig(ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig value) {
if (deprecatedSecretManagerConfigBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0) &&
deprecatedSecretManagerConfig_ != null &&
deprecatedSecretManagerConfig_ != ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig.getDefaultInstance()) {
getDeprecatedSecretManagerConfigBuilder().mergeFrom(value);
} else {
deprecatedSecretManagerConfig_ = value;
}
} else {
deprecatedSecretManagerConfigBuilder_.mergeFrom(value);
}
if (deprecatedSecretManagerConfig_ != null) {
bitField0_ |= 0x00000020;
onChanged();
}
return this;
}
/**
* <code>.chalk.server.v1.AWSSecretManagerConfig deprecated_secret_manager_config = 6 [json_name = "deprecatedSecretManagerConfig", deprecated = true];</code>
*/
@java.lang.Deprecated public Builder clearDeprecatedSecretManagerConfig() {
bitField0_ = (bitField0_ & ~0x00000020);
deprecatedSecretManagerConfig_ = null;
if (deprecatedSecretManagerConfigBuilder_ != null) {
deprecatedSecretManagerConfigBuilder_.dispose();
deprecatedSecretManagerConfigBuilder_ = null;
}
onChanged();
return this;
}
/**
* <code>.chalk.server.v1.AWSSecretManagerConfig deprecated_secret_manager_config = 6 [json_name = "deprecatedSecretManagerConfig", deprecated = true];</code>
*/
@java.lang.Deprecated public ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig.Builder getDeprecatedSecretManagerConfigBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getDeprecatedSecretManagerConfigFieldBuilder().getBuilder();
}
/**
* <code>.chalk.server.v1.AWSSecretManagerConfig deprecated_secret_manager_config = 6 [json_name = "deprecatedSecretManagerConfig", deprecated = true];</code>
*/
@java.lang.Deprecated public ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfigOrBuilder getDeprecatedSecretManagerConfigOrBuilder() {
if (deprecatedSecretManagerConfigBuilder_ != null) {
return deprecatedSecretManagerConfigBuilder_.getMessageOrBuilder();
} else {
return deprecatedSecretManagerConfig_ == null ?
ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig.getDefaultInstance() : deprecatedSecretManagerConfig_;
}
}
/**
* <code>.chalk.server.v1.AWSSecretManagerConfig deprecated_secret_manager_config = 6 [json_name = "deprecatedSecretManagerConfig", deprecated = true];</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig, ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig.Builder, ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfigOrBuilder>
getDeprecatedSecretManagerConfigFieldBuilder() {
if (deprecatedSecretManagerConfigBuilder_ == null) {
deprecatedSecretManagerConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig, ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig.Builder, ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfigOrBuilder>(
getDeprecatedSecretManagerConfig(),
getParentForChildren(),
isClean());
deprecatedSecretManagerConfig_ = null;
}
return deprecatedSecretManagerConfigBuilder_;
}
private ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentity workloadIdentity_;
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentity, ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentity.Builder, ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentityOrBuilder> workloadIdentityBuilder_;
/**
* <code>.chalk.server.v1.GCPWorkloadIdentity workload_identity = 7 [json_name = "workloadIdentity", deprecated = true];</code>
* @deprecated chalk.server.v1.AWSCloudConfig.workload_identity is deprecated.
* See chalk/server/v1/environment.proto;l=54
* @return Whether the workloadIdentity field is set.
*/
@java.lang.Deprecated public boolean hasWorkloadIdentity() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* <code>.chalk.server.v1.GCPWorkloadIdentity workload_identity = 7 [json_name = "workloadIdentity", deprecated = true];</code>
* @deprecated chalk.server.v1.AWSCloudConfig.workload_identity is deprecated.
* See chalk/server/v1/environment.proto;l=54
* @return The workloadIdentity.
*/
@java.lang.Deprecated public ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentity getWorkloadIdentity() {
if (workloadIdentityBuilder_ == null) {
return workloadIdentity_ == null ? ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentity.getDefaultInstance() : workloadIdentity_;
} else {
return workloadIdentityBuilder_.getMessage();
}
}
/**
* <code>.chalk.server.v1.GCPWorkloadIdentity workload_identity = 7 [json_name = "workloadIdentity", deprecated = true];</code>
*/
@java.lang.Deprecated public Builder setWorkloadIdentity(ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentity value) {
if (workloadIdentityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
workloadIdentity_ = value;
} else {
workloadIdentityBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* <code>.chalk.server.v1.GCPWorkloadIdentity workload_identity = 7 [json_name = "workloadIdentity", deprecated = true];</code>
*/
@java.lang.Deprecated public Builder setWorkloadIdentity(
ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentity.Builder builderForValue) {
if (workloadIdentityBuilder_ == null) {
workloadIdentity_ = builderForValue.build();
} else {
workloadIdentityBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* <code>.chalk.server.v1.GCPWorkloadIdentity workload_identity = 7 [json_name = "workloadIdentity", deprecated = true];</code>
*/
@java.lang.Deprecated public Builder mergeWorkloadIdentity(ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentity value) {
if (workloadIdentityBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0) &&
workloadIdentity_ != null &&
workloadIdentity_ != ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentity.getDefaultInstance()) {
getWorkloadIdentityBuilder().mergeFrom(value);
} else {
workloadIdentity_ = value;
}
} else {
workloadIdentityBuilder_.mergeFrom(value);
}
if (workloadIdentity_ != null) {
bitField0_ |= 0x00000040;
onChanged();
}
return this;
}
/**
* <code>.chalk.server.v1.GCPWorkloadIdentity workload_identity = 7 [json_name = "workloadIdentity", deprecated = true];</code>
*/
@java.lang.Deprecated public Builder clearWorkloadIdentity() {
bitField0_ = (bitField0_ & ~0x00000040);
workloadIdentity_ = null;
if (workloadIdentityBuilder_ != null) {
workloadIdentityBuilder_.dispose();
workloadIdentityBuilder_ = null;
}
onChanged();
return this;
}
/**
* <code>.chalk.server.v1.GCPWorkloadIdentity workload_identity = 7 [json_name = "workloadIdentity", deprecated = true];</code>
*/
@java.lang.Deprecated public ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentity.Builder getWorkloadIdentityBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getWorkloadIdentityFieldBuilder().getBuilder();
}
/**
* <code>.chalk.server.v1.GCPWorkloadIdentity workload_identity = 7 [json_name = "workloadIdentity", deprecated = true];</code>
*/
@java.lang.Deprecated public ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentityOrBuilder getWorkloadIdentityOrBuilder() {
if (workloadIdentityBuilder_ != null) {
return workloadIdentityBuilder_.getMessageOrBuilder();
} else {
return workloadIdentity_ == null ?
ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentity.getDefaultInstance() : workloadIdentity_;
}
}
/**
* <code>.chalk.server.v1.GCPWorkloadIdentity workload_identity = 7 [json_name = "workloadIdentity", deprecated = true];</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentity, ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentity.Builder, ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentityOrBuilder>
getWorkloadIdentityFieldBuilder() {
if (workloadIdentityBuilder_ == null) {
workloadIdentityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentity, ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentity.Builder, ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentityOrBuilder>(
getWorkloadIdentity(),
getParentForChildren(),
isClean());
workloadIdentity_ = null;
}
return workloadIdentityBuilder_;
}
private ai.chalk.protos.chalk.server.v1.DockerBuildConfig dockerBuildConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.DockerBuildConfig, ai.chalk.protos.chalk.server.v1.DockerBuildConfig.Builder, ai.chalk.protos.chalk.server.v1.DockerBuildConfigOrBuilder> dockerBuildConfigBuilder_;
/**
* <code>.chalk.server.v1.DockerBuildConfig docker_build_config = 8 [json_name = "dockerBuildConfig"];</code>
* @return Whether the dockerBuildConfig field is set.
*/
public boolean hasDockerBuildConfig() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* <code>.chalk.server.v1.DockerBuildConfig docker_build_config = 8 [json_name = "dockerBuildConfig"];</code>
* @return The dockerBuildConfig.
*/
public ai.chalk.protos.chalk.server.v1.DockerBuildConfig getDockerBuildConfig() {
if (dockerBuildConfigBuilder_ == null) {
return dockerBuildConfig_ == null ? ai.chalk.protos.chalk.server.v1.DockerBuildConfig.getDefaultInstance() : dockerBuildConfig_;
} else {
return dockerBuildConfigBuilder_.getMessage();
}
}
/**
* <code>.chalk.server.v1.DockerBuildConfig docker_build_config = 8 [json_name = "dockerBuildConfig"];</code>
*/
public Builder setDockerBuildConfig(ai.chalk.protos.chalk.server.v1.DockerBuildConfig value) {
if (dockerBuildConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
dockerBuildConfig_ = value;
} else {
dockerBuildConfigBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* <code>.chalk.server.v1.DockerBuildConfig docker_build_config = 8 [json_name = "dockerBuildConfig"];</code>
*/
public Builder setDockerBuildConfig(
ai.chalk.protos.chalk.server.v1.DockerBuildConfig.Builder builderForValue) {
if (dockerBuildConfigBuilder_ == null) {
dockerBuildConfig_ = builderForValue.build();
} else {
dockerBuildConfigBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* <code>.chalk.server.v1.DockerBuildConfig docker_build_config = 8 [json_name = "dockerBuildConfig"];</code>
*/
public Builder mergeDockerBuildConfig(ai.chalk.protos.chalk.server.v1.DockerBuildConfig value) {
if (dockerBuildConfigBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0) &&
dockerBuildConfig_ != null &&
dockerBuildConfig_ != ai.chalk.protos.chalk.server.v1.DockerBuildConfig.getDefaultInstance()) {
getDockerBuildConfigBuilder().mergeFrom(value);
} else {
dockerBuildConfig_ = value;
}
} else {
dockerBuildConfigBuilder_.mergeFrom(value);
}
if (dockerBuildConfig_ != null) {
bitField0_ |= 0x00000080;
onChanged();
}
return this;
}
/**
* <code>.chalk.server.v1.DockerBuildConfig docker_build_config = 8 [json_name = "dockerBuildConfig"];</code>
*/
public Builder clearDockerBuildConfig() {
bitField0_ = (bitField0_ & ~0x00000080);
dockerBuildConfig_ = null;
if (dockerBuildConfigBuilder_ != null) {
dockerBuildConfigBuilder_.dispose();
dockerBuildConfigBuilder_ = null;
}
onChanged();
return this;
}
/**
* <code>.chalk.server.v1.DockerBuildConfig docker_build_config = 8 [json_name = "dockerBuildConfig"];</code>
*/
public ai.chalk.protos.chalk.server.v1.DockerBuildConfig.Builder getDockerBuildConfigBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getDockerBuildConfigFieldBuilder().getBuilder();
}
/**
* <code>.chalk.server.v1.DockerBuildConfig docker_build_config = 8 [json_name = "dockerBuildConfig"];</code>
*/
public ai.chalk.protos.chalk.server.v1.DockerBuildConfigOrBuilder getDockerBuildConfigOrBuilder() {
if (dockerBuildConfigBuilder_ != null) {
return dockerBuildConfigBuilder_.getMessageOrBuilder();
} else {
return dockerBuildConfig_ == null ?
ai.chalk.protos.chalk.server.v1.DockerBuildConfig.getDefaultInstance() : dockerBuildConfig_;
}
}
/**
* <code>.chalk.server.v1.DockerBuildConfig docker_build_config = 8 [json_name = "dockerBuildConfig"];</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.DockerBuildConfig, ai.chalk.protos.chalk.server.v1.DockerBuildConfig.Builder, ai.chalk.protos.chalk.server.v1.DockerBuildConfigOrBuilder>
getDockerBuildConfigFieldBuilder() {
if (dockerBuildConfigBuilder_ == null) {
dockerBuildConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.DockerBuildConfig, ai.chalk.protos.chalk.server.v1.DockerBuildConfig.Builder, ai.chalk.protos.chalk.server.v1.DockerBuildConfigOrBuilder>(
getDockerBuildConfig(),
getParentForChildren(),
isClean());
dockerBuildConfig_ = null;
}
return dockerBuildConfigBuilder_;
}
private ai.chalk.protos.chalk.server.v1.ElasticsearchLogConfig elasticsearchLogConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.ElasticsearchLogConfig, ai.chalk.protos.chalk.server.v1.ElasticsearchLogConfig.Builder, ai.chalk.protos.chalk.server.v1.ElasticsearchLogConfigOrBuilder> elasticsearchLogConfigBuilder_;
/**
* <code>.chalk.server.v1.ElasticsearchLogConfig elasticsearch_log_config = 9 [json_name = "elasticsearchLogConfig"];</code>
* @return Whether the elasticsearchLogConfig field is set.
*/
public boolean hasElasticsearchLogConfig() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* <code>.chalk.server.v1.ElasticsearchLogConfig elasticsearch_log_config = 9 [json_name = "elasticsearchLogConfig"];</code>
* @return The elasticsearchLogConfig.
*/
public ai.chalk.protos.chalk.server.v1.ElasticsearchLogConfig getElasticsearchLogConfig() {
if (elasticsearchLogConfigBuilder_ == null) {
return elasticsearchLogConfig_ == null ? ai.chalk.protos.chalk.server.v1.ElasticsearchLogConfig.getDefaultInstance() : elasticsearchLogConfig_;
} else {
return elasticsearchLogConfigBuilder_.getMessage();
}
}
/**
* <code>.chalk.server.v1.ElasticsearchLogConfig elasticsearch_log_config = 9 [json_name = "elasticsearchLogConfig"];</code>
*/
public Builder setElasticsearchLogConfig(ai.chalk.protos.chalk.server.v1.ElasticsearchLogConfig value) {
if (elasticsearchLogConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
elasticsearchLogConfig_ = value;
} else {
elasticsearchLogConfigBuilder_.setMessage(value);
}
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
* <code>.chalk.server.v1.ElasticsearchLogConfig elasticsearch_log_config = 9 [json_name = "elasticsearchLogConfig"];</code>
*/
public Builder setElasticsearchLogConfig(
ai.chalk.protos.chalk.server.v1.ElasticsearchLogConfig.Builder builderForValue) {
if (elasticsearchLogConfigBuilder_ == null) {
elasticsearchLogConfig_ = builderForValue.build();
} else {
elasticsearchLogConfigBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
* <code>.chalk.server.v1.ElasticsearchLogConfig elasticsearch_log_config = 9 [json_name = "elasticsearchLogConfig"];</code>
*/
public Builder mergeElasticsearchLogConfig(ai.chalk.protos.chalk.server.v1.ElasticsearchLogConfig value) {
if (elasticsearchLogConfigBuilder_ == null) {
if (((bitField0_ & 0x00000100) != 0) &&
elasticsearchLogConfig_ != null &&
elasticsearchLogConfig_ != ai.chalk.protos.chalk.server.v1.ElasticsearchLogConfig.getDefaultInstance()) {
getElasticsearchLogConfigBuilder().mergeFrom(value);
} else {
elasticsearchLogConfig_ = value;
}
} else {
elasticsearchLogConfigBuilder_.mergeFrom(value);
}
if (elasticsearchLogConfig_ != null) {
bitField0_ |= 0x00000100;
onChanged();
}
return this;
}
/**
* <code>.chalk.server.v1.ElasticsearchLogConfig elasticsearch_log_config = 9 [json_name = "elasticsearchLogConfig"];</code>
*/
public Builder clearElasticsearchLogConfig() {
bitField0_ = (bitField0_ & ~0x00000100);
elasticsearchLogConfig_ = null;
if (elasticsearchLogConfigBuilder_ != null) {
elasticsearchLogConfigBuilder_.dispose();
elasticsearchLogConfigBuilder_ = null;
}
onChanged();
return this;
}
/**
* <code>.chalk.server.v1.ElasticsearchLogConfig elasticsearch_log_config = 9 [json_name = "elasticsearchLogConfig"];</code>
*/
public ai.chalk.protos.chalk.server.v1.ElasticsearchLogConfig.Builder getElasticsearchLogConfigBuilder() {
bitField0_ |= 0x00000100;
onChanged();
return getElasticsearchLogConfigFieldBuilder().getBuilder();
}
/**
* <code>.chalk.server.v1.ElasticsearchLogConfig elasticsearch_log_config = 9 [json_name = "elasticsearchLogConfig"];</code>
*/
public ai.chalk.protos.chalk.server.v1.ElasticsearchLogConfigOrBuilder getElasticsearchLogConfigOrBuilder() {
if (elasticsearchLogConfigBuilder_ != null) {
return elasticsearchLogConfigBuilder_.getMessageOrBuilder();
} else {
return elasticsearchLogConfig_ == null ?
ai.chalk.protos.chalk.server.v1.ElasticsearchLogConfig.getDefaultInstance() : elasticsearchLogConfig_;
}
}
/**
* <code>.chalk.server.v1.ElasticsearchLogConfig elasticsearch_log_config = 9 [json_name = "elasticsearchLogConfig"];</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.ElasticsearchLogConfig, ai.chalk.protos.chalk.server.v1.ElasticsearchLogConfig.Builder, ai.chalk.protos.chalk.server.v1.ElasticsearchLogConfigOrBuilder>
getElasticsearchLogConfigFieldBuilder() {
if (elasticsearchLogConfigBuilder_ == null) {
elasticsearchLogConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.ElasticsearchLogConfig, ai.chalk.protos.chalk.server.v1.ElasticsearchLogConfig.Builder, ai.chalk.protos.chalk.server.v1.ElasticsearchLogConfigOrBuilder>(
getElasticsearchLogConfig(),
getParentForChildren(),
isClean());
elasticsearchLogConfig_ = null;
}
return elasticsearchLogConfigBuilder_;
}
private ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig cloudwatchConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig, ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig.Builder, ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfigOrBuilder> cloudwatchConfigBuilder_;
/**
* <code>.chalk.server.v1.AWSCloudWatchConfig cloudwatch_config = 10 [json_name = "cloudwatchConfig"];</code>
* @return Whether the cloudwatchConfig field is set.
*/
public boolean hasCloudwatchConfig() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* <code>.chalk.server.v1.AWSCloudWatchConfig cloudwatch_config = 10 [json_name = "cloudwatchConfig"];</code>
* @return The cloudwatchConfig.
*/
public ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig getCloudwatchConfig() {
if (cloudwatchConfigBuilder_ == null) {
return cloudwatchConfig_ == null ? ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig.getDefaultInstance() : cloudwatchConfig_;
} else {
return cloudwatchConfigBuilder_.getMessage();
}
}
/**
* <code>.chalk.server.v1.AWSCloudWatchConfig cloudwatch_config = 10 [json_name = "cloudwatchConfig"];</code>
*/
public Builder setCloudwatchConfig(ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig value) {
if (cloudwatchConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
cloudwatchConfig_ = value;
} else {
cloudwatchConfigBuilder_.setMessage(value);
}
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
* <code>.chalk.server.v1.AWSCloudWatchConfig cloudwatch_config = 10 [json_name = "cloudwatchConfig"];</code>
*/
public Builder setCloudwatchConfig(
ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig.Builder builderForValue) {
if (cloudwatchConfigBuilder_ == null) {
cloudwatchConfig_ = builderForValue.build();
} else {
cloudwatchConfigBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
* <code>.chalk.server.v1.AWSCloudWatchConfig cloudwatch_config = 10 [json_name = "cloudwatchConfig"];</code>
*/
public Builder mergeCloudwatchConfig(ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig value) {
if (cloudwatchConfigBuilder_ == null) {
if (((bitField0_ & 0x00000200) != 0) &&
cloudwatchConfig_ != null &&
cloudwatchConfig_ != ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig.getDefaultInstance()) {
getCloudwatchConfigBuilder().mergeFrom(value);
} else {
cloudwatchConfig_ = value;
}
} else {
cloudwatchConfigBuilder_.mergeFrom(value);
}
if (cloudwatchConfig_ != null) {
bitField0_ |= 0x00000200;
onChanged();
}
return this;
}
/**
* <code>.chalk.server.v1.AWSCloudWatchConfig cloudwatch_config = 10 [json_name = "cloudwatchConfig"];</code>
*/
public Builder clearCloudwatchConfig() {
bitField0_ = (bitField0_ & ~0x00000200);
cloudwatchConfig_ = null;
if (cloudwatchConfigBuilder_ != null) {
cloudwatchConfigBuilder_.dispose();
cloudwatchConfigBuilder_ = null;
}
onChanged();
return this;
}
/**
* <code>.chalk.server.v1.AWSCloudWatchConfig cloudwatch_config = 10 [json_name = "cloudwatchConfig"];</code>
*/
public ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig.Builder getCloudwatchConfigBuilder() {
bitField0_ |= 0x00000200;
onChanged();
return getCloudwatchConfigFieldBuilder().getBuilder();
}
/**
* <code>.chalk.server.v1.AWSCloudWatchConfig cloudwatch_config = 10 [json_name = "cloudwatchConfig"];</code>
*/
public ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfigOrBuilder getCloudwatchConfigOrBuilder() {
if (cloudwatchConfigBuilder_ != null) {
return cloudwatchConfigBuilder_.getMessageOrBuilder();
} else {
return cloudwatchConfig_ == null ?
ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig.getDefaultInstance() : cloudwatchConfig_;
}
}
/**
* <code>.chalk.server.v1.AWSCloudWatchConfig cloudwatch_config = 10 [json_name = "cloudwatchConfig"];</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig, ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig.Builder, ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfigOrBuilder>
getCloudwatchConfigFieldBuilder() {
if (cloudwatchConfigBuilder_ == null) {
cloudwatchConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig, ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig.Builder, ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfigOrBuilder>(
getCloudwatchConfig(),
getParentForChildren(),
isClean());
cloudwatchConfig_ = null;
}
return cloudwatchConfigBuilder_;
}
private ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig secretmanagerConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig, ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig.Builder, ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfigOrBuilder> secretmanagerConfigBuilder_;
/**
* <code>.chalk.server.v1.AWSSecretManagerConfig secretmanager_config = 11 [json_name = "secretmanagerConfig"];</code>
* @return Whether the secretmanagerConfig field is set.
*/
public boolean hasSecretmanagerConfig() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
* <code>.chalk.server.v1.AWSSecretManagerConfig secretmanager_config = 11 [json_name = "secretmanagerConfig"];</code>
* @return The secretmanagerConfig.
*/
public ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig getSecretmanagerConfig() {
if (secretmanagerConfigBuilder_ == null) {
return secretmanagerConfig_ == null ? ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig.getDefaultInstance() : secretmanagerConfig_;
} else {
return secretmanagerConfigBuilder_.getMessage();
}
}
/**
* <code>.chalk.server.v1.AWSSecretManagerConfig secretmanager_config = 11 [json_name = "secretmanagerConfig"];</code>
*/
public Builder setSecretmanagerConfig(ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig value) {
if (secretmanagerConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
secretmanagerConfig_ = value;
} else {
secretmanagerConfigBuilder_.setMessage(value);
}
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
* <code>.chalk.server.v1.AWSSecretManagerConfig secretmanager_config = 11 [json_name = "secretmanagerConfig"];</code>
*/
public Builder setSecretmanagerConfig(
ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig.Builder builderForValue) {
if (secretmanagerConfigBuilder_ == null) {
secretmanagerConfig_ = builderForValue.build();
} else {
secretmanagerConfigBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
* <code>.chalk.server.v1.AWSSecretManagerConfig secretmanager_config = 11 [json_name = "secretmanagerConfig"];</code>
*/
public Builder mergeSecretmanagerConfig(ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig value) {
if (secretmanagerConfigBuilder_ == null) {
if (((bitField0_ & 0x00000400) != 0) &&
secretmanagerConfig_ != null &&
secretmanagerConfig_ != ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig.getDefaultInstance()) {
getSecretmanagerConfigBuilder().mergeFrom(value);
} else {
secretmanagerConfig_ = value;
}
} else {
secretmanagerConfigBuilder_.mergeFrom(value);
}
if (secretmanagerConfig_ != null) {
bitField0_ |= 0x00000400;
onChanged();
}
return this;
}
/**
* <code>.chalk.server.v1.AWSSecretManagerConfig secretmanager_config = 11 [json_name = "secretmanagerConfig"];</code>
*/
public Builder clearSecretmanagerConfig() {
bitField0_ = (bitField0_ & ~0x00000400);
secretmanagerConfig_ = null;
if (secretmanagerConfigBuilder_ != null) {
secretmanagerConfigBuilder_.dispose();
secretmanagerConfigBuilder_ = null;
}
onChanged();
return this;
}
/**
* <code>.chalk.server.v1.AWSSecretManagerConfig secretmanager_config = 11 [json_name = "secretmanagerConfig"];</code>
*/
public ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig.Builder getSecretmanagerConfigBuilder() {
bitField0_ |= 0x00000400;
onChanged();
return getSecretmanagerConfigFieldBuilder().getBuilder();
}
/**
* <code>.chalk.server.v1.AWSSecretManagerConfig secretmanager_config = 11 [json_name = "secretmanagerConfig"];</code>
*/
public ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfigOrBuilder getSecretmanagerConfigOrBuilder() {
if (secretmanagerConfigBuilder_ != null) {
return secretmanagerConfigBuilder_.getMessageOrBuilder();
} else {
return secretmanagerConfig_ == null ?
ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig.getDefaultInstance() : secretmanagerConfig_;
}
}
/**
* <code>.chalk.server.v1.AWSSecretManagerConfig secretmanager_config = 11 [json_name = "secretmanagerConfig"];</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig, ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig.Builder, ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfigOrBuilder>
getSecretmanagerConfigFieldBuilder() {
if (secretmanagerConfigBuilder_ == null) {
secretmanagerConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig, ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig.Builder, ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfigOrBuilder>(
getSecretmanagerConfig(),
getParentForChildren(),
isClean());
secretmanagerConfig_ = null;
}
return secretmanagerConfigBuilder_;
}
private ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentity gcpWorkloadIdentity_;
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentity, ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentity.Builder, ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentityOrBuilder> gcpWorkloadIdentityBuilder_;
/**
* <code>.chalk.server.v1.GCPWorkloadIdentity gcp_workload_identity = 12 [json_name = "gcpWorkloadIdentity"];</code>
* @return Whether the gcpWorkloadIdentity field is set.
*/
public boolean hasGcpWorkloadIdentity() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
* <code>.chalk.server.v1.GCPWorkloadIdentity gcp_workload_identity = 12 [json_name = "gcpWorkloadIdentity"];</code>
* @return The gcpWorkloadIdentity.
*/
public ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentity getGcpWorkloadIdentity() {
if (gcpWorkloadIdentityBuilder_ == null) {
return gcpWorkloadIdentity_ == null ? ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentity.getDefaultInstance() : gcpWorkloadIdentity_;
} else {
return gcpWorkloadIdentityBuilder_.getMessage();
}
}
/**
* <code>.chalk.server.v1.GCPWorkloadIdentity gcp_workload_identity = 12 [json_name = "gcpWorkloadIdentity"];</code>
*/
public Builder setGcpWorkloadIdentity(ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentity value) {
if (gcpWorkloadIdentityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
gcpWorkloadIdentity_ = value;
} else {
gcpWorkloadIdentityBuilder_.setMessage(value);
}
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
* <code>.chalk.server.v1.GCPWorkloadIdentity gcp_workload_identity = 12 [json_name = "gcpWorkloadIdentity"];</code>
*/
public Builder setGcpWorkloadIdentity(
ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentity.Builder builderForValue) {
if (gcpWorkloadIdentityBuilder_ == null) {
gcpWorkloadIdentity_ = builderForValue.build();
} else {
gcpWorkloadIdentityBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
* <code>.chalk.server.v1.GCPWorkloadIdentity gcp_workload_identity = 12 [json_name = "gcpWorkloadIdentity"];</code>
*/
public Builder mergeGcpWorkloadIdentity(ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentity value) {
if (gcpWorkloadIdentityBuilder_ == null) {
if (((bitField0_ & 0x00000800) != 0) &&
gcpWorkloadIdentity_ != null &&
gcpWorkloadIdentity_ != ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentity.getDefaultInstance()) {
getGcpWorkloadIdentityBuilder().mergeFrom(value);
} else {
gcpWorkloadIdentity_ = value;
}
} else {
gcpWorkloadIdentityBuilder_.mergeFrom(value);
}
if (gcpWorkloadIdentity_ != null) {
bitField0_ |= 0x00000800;
onChanged();
}
return this;
}
/**
* <code>.chalk.server.v1.GCPWorkloadIdentity gcp_workload_identity = 12 [json_name = "gcpWorkloadIdentity"];</code>
*/
public Builder clearGcpWorkloadIdentity() {
bitField0_ = (bitField0_ & ~0x00000800);
gcpWorkloadIdentity_ = null;
if (gcpWorkloadIdentityBuilder_ != null) {
gcpWorkloadIdentityBuilder_.dispose();
gcpWorkloadIdentityBuilder_ = null;
}
onChanged();
return this;
}
/**
* <code>.chalk.server.v1.GCPWorkloadIdentity gcp_workload_identity = 12 [json_name = "gcpWorkloadIdentity"];</code>
*/
public ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentity.Builder getGcpWorkloadIdentityBuilder() {
bitField0_ |= 0x00000800;
onChanged();
return getGcpWorkloadIdentityFieldBuilder().getBuilder();
}
/**
* <code>.chalk.server.v1.GCPWorkloadIdentity gcp_workload_identity = 12 [json_name = "gcpWorkloadIdentity"];</code>
*/
public ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentityOrBuilder getGcpWorkloadIdentityOrBuilder() {
if (gcpWorkloadIdentityBuilder_ != null) {
return gcpWorkloadIdentityBuilder_.getMessageOrBuilder();
} else {
return gcpWorkloadIdentity_ == null ?
ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentity.getDefaultInstance() : gcpWorkloadIdentity_;
}
}
/**
* <code>.chalk.server.v1.GCPWorkloadIdentity gcp_workload_identity = 12 [json_name = "gcpWorkloadIdentity"];</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentity, ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentity.Builder, ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentityOrBuilder>
getGcpWorkloadIdentityFieldBuilder() {
if (gcpWorkloadIdentityBuilder_ == null) {
gcpWorkloadIdentityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentity, ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentity.Builder, ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentityOrBuilder>(
getGcpWorkloadIdentity(),
getParentForChildren(),
isClean());
gcpWorkloadIdentity_ = null;
}
return gcpWorkloadIdentityBuilder_;
}
@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:chalk.server.v1.AWSCloudConfig)
}
// @@protoc_insertion_point(class_scope:chalk.server.v1.AWSCloudConfig)
private static final ai.chalk.protos.chalk.server.v1.AWSCloudConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.server.v1.AWSCloudConfig();
}
public static ai.chalk.protos.chalk.server.v1.AWSCloudConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<AWSCloudConfig>
PARSER = new com.google.protobuf.AbstractParser<AWSCloudConfig>() {
@java.lang.Override
public AWSCloudConfig 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<AWSCloudConfig> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<AWSCloudConfig> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.AWSCloudConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/AWSCloudConfigOrBuilder.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/environment.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
public interface AWSCloudConfigOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.server.v1.AWSCloudConfig)
com.google.protobuf.MessageOrBuilder {
/**
* <code>string account_id = 1 [json_name = "accountId"];</code>
* @return The accountId.
*/
java.lang.String getAccountId();
/**
* <code>string account_id = 1 [json_name = "accountId"];</code>
* @return The bytes for accountId.
*/
com.google.protobuf.ByteString
getAccountIdBytes();
/**
* <code>string management_role_arn = 2 [json_name = "managementRoleArn"];</code>
* @return The managementRoleArn.
*/
java.lang.String getManagementRoleArn();
/**
* <code>string management_role_arn = 2 [json_name = "managementRoleArn"];</code>
* @return The bytes for managementRoleArn.
*/
com.google.protobuf.ByteString
getManagementRoleArnBytes();
/**
* <code>string region = 3 [json_name = "region"];</code>
* @return The region.
*/
java.lang.String getRegion();
/**
* <code>string region = 3 [json_name = "region"];</code>
* @return The bytes for region.
*/
com.google.protobuf.ByteString
getRegionBytes();
/**
* <code>optional string external_id = 4 [json_name = "externalId"];</code>
* @return Whether the externalId field is set.
*/
boolean hasExternalId();
/**
* <code>optional string external_id = 4 [json_name = "externalId"];</code>
* @return The externalId.
*/
java.lang.String getExternalId();
/**
* <code>optional string external_id = 4 [json_name = "externalId"];</code>
* @return The bytes for externalId.
*/
com.google.protobuf.ByteString
getExternalIdBytes();
/**
* <code>.chalk.server.v1.AWSCloudWatchConfig deprecated_cloud_watch_config = 5 [json_name = "deprecatedCloudWatchConfig", deprecated = true];</code>
* @deprecated chalk.server.v1.AWSCloudConfig.deprecated_cloud_watch_config is deprecated.
* See chalk/server/v1/environment.proto;l=52
* @return Whether the deprecatedCloudWatchConfig field is set.
*/
@java.lang.Deprecated boolean hasDeprecatedCloudWatchConfig();
/**
* <code>.chalk.server.v1.AWSCloudWatchConfig deprecated_cloud_watch_config = 5 [json_name = "deprecatedCloudWatchConfig", deprecated = true];</code>
* @deprecated chalk.server.v1.AWSCloudConfig.deprecated_cloud_watch_config is deprecated.
* See chalk/server/v1/environment.proto;l=52
* @return The deprecatedCloudWatchConfig.
*/
@java.lang.Deprecated ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig getDeprecatedCloudWatchConfig();
/**
* <code>.chalk.server.v1.AWSCloudWatchConfig deprecated_cloud_watch_config = 5 [json_name = "deprecatedCloudWatchConfig", deprecated = true];</code>
*/
@java.lang.Deprecated ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfigOrBuilder getDeprecatedCloudWatchConfigOrBuilder();
/**
* <code>.chalk.server.v1.AWSSecretManagerConfig deprecated_secret_manager_config = 6 [json_name = "deprecatedSecretManagerConfig", deprecated = true];</code>
* @deprecated chalk.server.v1.AWSCloudConfig.deprecated_secret_manager_config is deprecated.
* See chalk/server/v1/environment.proto;l=53
* @return Whether the deprecatedSecretManagerConfig field is set.
*/
@java.lang.Deprecated boolean hasDeprecatedSecretManagerConfig();
/**
* <code>.chalk.server.v1.AWSSecretManagerConfig deprecated_secret_manager_config = 6 [json_name = "deprecatedSecretManagerConfig", deprecated = true];</code>
* @deprecated chalk.server.v1.AWSCloudConfig.deprecated_secret_manager_config is deprecated.
* See chalk/server/v1/environment.proto;l=53
* @return The deprecatedSecretManagerConfig.
*/
@java.lang.Deprecated ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig getDeprecatedSecretManagerConfig();
/**
* <code>.chalk.server.v1.AWSSecretManagerConfig deprecated_secret_manager_config = 6 [json_name = "deprecatedSecretManagerConfig", deprecated = true];</code>
*/
@java.lang.Deprecated ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfigOrBuilder getDeprecatedSecretManagerConfigOrBuilder();
/**
* <code>.chalk.server.v1.GCPWorkloadIdentity workload_identity = 7 [json_name = "workloadIdentity", deprecated = true];</code>
* @deprecated chalk.server.v1.AWSCloudConfig.workload_identity is deprecated.
* See chalk/server/v1/environment.proto;l=54
* @return Whether the workloadIdentity field is set.
*/
@java.lang.Deprecated boolean hasWorkloadIdentity();
/**
* <code>.chalk.server.v1.GCPWorkloadIdentity workload_identity = 7 [json_name = "workloadIdentity", deprecated = true];</code>
* @deprecated chalk.server.v1.AWSCloudConfig.workload_identity is deprecated.
* See chalk/server/v1/environment.proto;l=54
* @return The workloadIdentity.
*/
@java.lang.Deprecated ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentity getWorkloadIdentity();
/**
* <code>.chalk.server.v1.GCPWorkloadIdentity workload_identity = 7 [json_name = "workloadIdentity", deprecated = true];</code>
*/
@java.lang.Deprecated ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentityOrBuilder getWorkloadIdentityOrBuilder();
/**
* <code>.chalk.server.v1.DockerBuildConfig docker_build_config = 8 [json_name = "dockerBuildConfig"];</code>
* @return Whether the dockerBuildConfig field is set.
*/
boolean hasDockerBuildConfig();
/**
* <code>.chalk.server.v1.DockerBuildConfig docker_build_config = 8 [json_name = "dockerBuildConfig"];</code>
* @return The dockerBuildConfig.
*/
ai.chalk.protos.chalk.server.v1.DockerBuildConfig getDockerBuildConfig();
/**
* <code>.chalk.server.v1.DockerBuildConfig docker_build_config = 8 [json_name = "dockerBuildConfig"];</code>
*/
ai.chalk.protos.chalk.server.v1.DockerBuildConfigOrBuilder getDockerBuildConfigOrBuilder();
/**
* <code>.chalk.server.v1.ElasticsearchLogConfig elasticsearch_log_config = 9 [json_name = "elasticsearchLogConfig"];</code>
* @return Whether the elasticsearchLogConfig field is set.
*/
boolean hasElasticsearchLogConfig();
/**
* <code>.chalk.server.v1.ElasticsearchLogConfig elasticsearch_log_config = 9 [json_name = "elasticsearchLogConfig"];</code>
* @return The elasticsearchLogConfig.
*/
ai.chalk.protos.chalk.server.v1.ElasticsearchLogConfig getElasticsearchLogConfig();
/**
* <code>.chalk.server.v1.ElasticsearchLogConfig elasticsearch_log_config = 9 [json_name = "elasticsearchLogConfig"];</code>
*/
ai.chalk.protos.chalk.server.v1.ElasticsearchLogConfigOrBuilder getElasticsearchLogConfigOrBuilder();
/**
* <code>.chalk.server.v1.AWSCloudWatchConfig cloudwatch_config = 10 [json_name = "cloudwatchConfig"];</code>
* @return Whether the cloudwatchConfig field is set.
*/
boolean hasCloudwatchConfig();
/**
* <code>.chalk.server.v1.AWSCloudWatchConfig cloudwatch_config = 10 [json_name = "cloudwatchConfig"];</code>
* @return The cloudwatchConfig.
*/
ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig getCloudwatchConfig();
/**
* <code>.chalk.server.v1.AWSCloudWatchConfig cloudwatch_config = 10 [json_name = "cloudwatchConfig"];</code>
*/
ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfigOrBuilder getCloudwatchConfigOrBuilder();
/**
* <code>.chalk.server.v1.AWSSecretManagerConfig secretmanager_config = 11 [json_name = "secretmanagerConfig"];</code>
* @return Whether the secretmanagerConfig field is set.
*/
boolean hasSecretmanagerConfig();
/**
* <code>.chalk.server.v1.AWSSecretManagerConfig secretmanager_config = 11 [json_name = "secretmanagerConfig"];</code>
* @return The secretmanagerConfig.
*/
ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig getSecretmanagerConfig();
/**
* <code>.chalk.server.v1.AWSSecretManagerConfig secretmanager_config = 11 [json_name = "secretmanagerConfig"];</code>
*/
ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfigOrBuilder getSecretmanagerConfigOrBuilder();
/**
* <code>.chalk.server.v1.GCPWorkloadIdentity gcp_workload_identity = 12 [json_name = "gcpWorkloadIdentity"];</code>
* @return Whether the gcpWorkloadIdentity field is set.
*/
boolean hasGcpWorkloadIdentity();
/**
* <code>.chalk.server.v1.GCPWorkloadIdentity gcp_workload_identity = 12 [json_name = "gcpWorkloadIdentity"];</code>
* @return The gcpWorkloadIdentity.
*/
ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentity getGcpWorkloadIdentity();
/**
* <code>.chalk.server.v1.GCPWorkloadIdentity gcp_workload_identity = 12 [json_name = "gcpWorkloadIdentity"];</code>
*/
ai.chalk.protos.chalk.server.v1.GCPWorkloadIdentityOrBuilder getGcpWorkloadIdentityOrBuilder();
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/AWSCloudWatchConfig.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/environment.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
/**
* Protobuf type {@code chalk.server.v1.AWSCloudWatchConfig}
*/
public final class AWSCloudWatchConfig extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.server.v1.AWSCloudWatchConfig)
AWSCloudWatchConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use AWSCloudWatchConfig.newBuilder() to construct.
private AWSCloudWatchConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private AWSCloudWatchConfig() {
logGroupPath_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AWSCloudWatchConfig();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.EnvironmentProto.internal_static_chalk_server_v1_AWSCloudWatchConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.EnvironmentProto.internal_static_chalk_server_v1_AWSCloudWatchConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig.class, ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig.Builder.class);
}
private int bitField0_;
public static final int LOG_GROUP_PATH_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object logGroupPath_ = "";
/**
* <code>optional string log_group_path = 1 [json_name = "logGroupPath"];</code>
* @return Whether the logGroupPath field is set.
*/
@java.lang.Override
public boolean hasLogGroupPath() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <code>optional string log_group_path = 1 [json_name = "logGroupPath"];</code>
* @return The logGroupPath.
*/
@java.lang.Override
public java.lang.String getLogGroupPath() {
java.lang.Object ref = logGroupPath_;
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();
logGroupPath_ = s;
return s;
}
}
/**
* <code>optional string log_group_path = 1 [json_name = "logGroupPath"];</code>
* @return The bytes for logGroupPath.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLogGroupPathBytes() {
java.lang.Object ref = logGroupPath_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
logGroupPath_ = 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 (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, logGroupPath_);
}
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.GeneratedMessageV3.computeStringSize(1, logGroupPath_);
}
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 ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig other = (ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig) obj;
if (hasLogGroupPath() != other.hasLogGroupPath()) return false;
if (hasLogGroupPath()) {
if (!getLogGroupPath()
.equals(other.getLogGroupPath())) 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 (hasLogGroupPath()) {
hash = (37 * hash) + LOG_GROUP_PATH_FIELD_NUMBER;
hash = (53 * hash) + getLogGroupPath().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig 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 ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig 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 ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig 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(ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code chalk.server.v1.AWSCloudWatchConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.server.v1.AWSCloudWatchConfig)
ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.EnvironmentProto.internal_static_chalk_server_v1_AWSCloudWatchConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.EnvironmentProto.internal_static_chalk_server_v1_AWSCloudWatchConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig.class, ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig.Builder.class);
}
// Construct using ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
logGroupPath_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.server.v1.EnvironmentProto.internal_static_chalk_server_v1_AWSCloudWatchConfig_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig getDefaultInstanceForType() {
return ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig build() {
ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig buildPartial() {
ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig result = new ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.logGroupPath_ = logGroupPath_;
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig) {
return mergeFrom((ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig other) {
if (other == ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig.getDefaultInstance()) return this;
if (other.hasLogGroupPath()) {
logGroupPath_ = other.logGroupPath_;
bitField0_ |= 0x00000001;
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: {
logGroupPath_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
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 logGroupPath_ = "";
/**
* <code>optional string log_group_path = 1 [json_name = "logGroupPath"];</code>
* @return Whether the logGroupPath field is set.
*/
public boolean hasLogGroupPath() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <code>optional string log_group_path = 1 [json_name = "logGroupPath"];</code>
* @return The logGroupPath.
*/
public java.lang.String getLogGroupPath() {
java.lang.Object ref = logGroupPath_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
logGroupPath_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>optional string log_group_path = 1 [json_name = "logGroupPath"];</code>
* @return The bytes for logGroupPath.
*/
public com.google.protobuf.ByteString
getLogGroupPathBytes() {
java.lang.Object ref = logGroupPath_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
logGroupPath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>optional string log_group_path = 1 [json_name = "logGroupPath"];</code>
* @param value The logGroupPath to set.
* @return This builder for chaining.
*/
public Builder setLogGroupPath(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
logGroupPath_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>optional string log_group_path = 1 [json_name = "logGroupPath"];</code>
* @return This builder for chaining.
*/
public Builder clearLogGroupPath() {
logGroupPath_ = getDefaultInstance().getLogGroupPath();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* <code>optional string log_group_path = 1 [json_name = "logGroupPath"];</code>
* @param value The bytes for logGroupPath to set.
* @return This builder for chaining.
*/
public Builder setLogGroupPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
logGroupPath_ = value;
bitField0_ |= 0x00000001;
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:chalk.server.v1.AWSCloudWatchConfig)
}
// @@protoc_insertion_point(class_scope:chalk.server.v1.AWSCloudWatchConfig)
private static final ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig();
}
public static ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<AWSCloudWatchConfig>
PARSER = new com.google.protobuf.AbstractParser<AWSCloudWatchConfig>() {
@java.lang.Override
public AWSCloudWatchConfig 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<AWSCloudWatchConfig> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<AWSCloudWatchConfig> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.AWSCloudWatchConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/AWSCloudWatchConfigOrBuilder.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/environment.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
public interface AWSCloudWatchConfigOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.server.v1.AWSCloudWatchConfig)
com.google.protobuf.MessageOrBuilder {
/**
* <code>optional string log_group_path = 1 [json_name = "logGroupPath"];</code>
* @return Whether the logGroupPath field is set.
*/
boolean hasLogGroupPath();
/**
* <code>optional string log_group_path = 1 [json_name = "logGroupPath"];</code>
* @return The logGroupPath.
*/
java.lang.String getLogGroupPath();
/**
* <code>optional string log_group_path = 1 [json_name = "logGroupPath"];</code>
* @return The bytes for logGroupPath.
*/
com.google.protobuf.ByteString
getLogGroupPathBytes();
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/AWSSecretManagerConfig.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/environment.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
/**
* Protobuf type {@code chalk.server.v1.AWSSecretManagerConfig}
*/
public final class AWSSecretManagerConfig extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.server.v1.AWSSecretManagerConfig)
AWSSecretManagerConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use AWSSecretManagerConfig.newBuilder() to construct.
private AWSSecretManagerConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private AWSSecretManagerConfig() {
secretKmsArn_ = "";
secretPrefix_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AWSSecretManagerConfig();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.EnvironmentProto.internal_static_chalk_server_v1_AWSSecretManagerConfig_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 2:
return internalGetSecretTags();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.EnvironmentProto.internal_static_chalk_server_v1_AWSSecretManagerConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig.class, ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig.Builder.class);
}
private int bitField0_;
public static final int SECRET_KMS_ARN_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object secretKmsArn_ = "";
/**
* <code>optional string secret_kms_arn = 1 [json_name = "secretKmsArn"];</code>
* @return Whether the secretKmsArn field is set.
*/
@java.lang.Override
public boolean hasSecretKmsArn() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <code>optional string secret_kms_arn = 1 [json_name = "secretKmsArn"];</code>
* @return The secretKmsArn.
*/
@java.lang.Override
public java.lang.String getSecretKmsArn() {
java.lang.Object ref = secretKmsArn_;
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();
secretKmsArn_ = s;
return s;
}
}
/**
* <code>optional string secret_kms_arn = 1 [json_name = "secretKmsArn"];</code>
* @return The bytes for secretKmsArn.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSecretKmsArnBytes() {
java.lang.Object ref = secretKmsArn_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
secretKmsArn_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SECRET_TAGS_FIELD_NUMBER = 2;
private static final class SecretTagsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.<java.lang.String, java.lang.String>newDefaultInstance(
ai.chalk.protos.chalk.server.v1.EnvironmentProto.internal_static_chalk_server_v1_AWSSecretManagerConfig_SecretTagsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> secretTags_;
private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetSecretTags() {
if (secretTags_ == null) {
return com.google.protobuf.MapField.emptyMapField(
SecretTagsDefaultEntryHolder.defaultEntry);
}
return secretTags_;
}
public int getSecretTagsCount() {
return internalGetSecretTags().getMap().size();
}
/**
* <code>map<string, string> secret_tags = 2 [json_name = "secretTags"];</code>
*/
@java.lang.Override
public boolean containsSecretTags(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetSecretTags().getMap().containsKey(key);
}
/**
* Use {@link #getSecretTagsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map<java.lang.String, java.lang.String> getSecretTags() {
return getSecretTagsMap();
}
/**
* <code>map<string, string> secret_tags = 2 [json_name = "secretTags"];</code>
*/
@java.lang.Override
public java.util.Map<java.lang.String, java.lang.String> getSecretTagsMap() {
return internalGetSecretTags().getMap();
}
/**
* <code>map<string, string> secret_tags = 2 [json_name = "secretTags"];</code>
*/
@java.lang.Override
public /* nullable */
java.lang.String getSecretTagsOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetSecretTags().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <code>map<string, string> secret_tags = 2 [json_name = "secretTags"];</code>
*/
@java.lang.Override
public java.lang.String getSecretTagsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetSecretTags().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int SECRET_PREFIX_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object secretPrefix_ = "";
/**
* <code>optional string secret_prefix = 3 [json_name = "secretPrefix"];</code>
* @return Whether the secretPrefix field is set.
*/
@java.lang.Override
public boolean hasSecretPrefix() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* <code>optional string secret_prefix = 3 [json_name = "secretPrefix"];</code>
* @return The secretPrefix.
*/
@java.lang.Override
public java.lang.String getSecretPrefix() {
java.lang.Object ref = secretPrefix_;
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();
secretPrefix_ = s;
return s;
}
}
/**
* <code>optional string secret_prefix = 3 [json_name = "secretPrefix"];</code>
* @return The bytes for secretPrefix.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSecretPrefixBytes() {
java.lang.Object ref = secretPrefix_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
secretPrefix_ = 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 (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, secretKmsArn_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetSecretTags(),
SecretTagsDefaultEntryHolder.defaultEntry,
2);
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, secretPrefix_);
}
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.GeneratedMessageV3.computeStringSize(1, secretKmsArn_);
}
for (java.util.Map.Entry<java.lang.String, java.lang.String> entry
: internalGetSecretTags().getMap().entrySet()) {
com.google.protobuf.MapEntry<java.lang.String, java.lang.String>
secretTags__ = SecretTagsDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, secretTags__);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, secretPrefix_);
}
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 ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig other = (ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig) obj;
if (hasSecretKmsArn() != other.hasSecretKmsArn()) return false;
if (hasSecretKmsArn()) {
if (!getSecretKmsArn()
.equals(other.getSecretKmsArn())) return false;
}
if (!internalGetSecretTags().equals(
other.internalGetSecretTags())) return false;
if (hasSecretPrefix() != other.hasSecretPrefix()) return false;
if (hasSecretPrefix()) {
if (!getSecretPrefix()
.equals(other.getSecretPrefix())) 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 (hasSecretKmsArn()) {
hash = (37 * hash) + SECRET_KMS_ARN_FIELD_NUMBER;
hash = (53 * hash) + getSecretKmsArn().hashCode();
}
if (!internalGetSecretTags().getMap().isEmpty()) {
hash = (37 * hash) + SECRET_TAGS_FIELD_NUMBER;
hash = (53 * hash) + internalGetSecretTags().hashCode();
}
if (hasSecretPrefix()) {
hash = (37 * hash) + SECRET_PREFIX_FIELD_NUMBER;
hash = (53 * hash) + getSecretPrefix().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig 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 ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig 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 ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig 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(ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code chalk.server.v1.AWSSecretManagerConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.server.v1.AWSSecretManagerConfig)
ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.EnvironmentProto.internal_static_chalk_server_v1_AWSSecretManagerConfig_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 2:
return internalGetSecretTags();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
int number) {
switch (number) {
case 2:
return internalGetMutableSecretTags();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.EnvironmentProto.internal_static_chalk_server_v1_AWSSecretManagerConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig.class, ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig.Builder.class);
}
// Construct using ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
secretKmsArn_ = "";
internalGetMutableSecretTags().clear();
secretPrefix_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.server.v1.EnvironmentProto.internal_static_chalk_server_v1_AWSSecretManagerConfig_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig getDefaultInstanceForType() {
return ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig build() {
ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig buildPartial() {
ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig result = new ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.secretKmsArn_ = secretKmsArn_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.secretTags_ = internalGetSecretTags();
result.secretTags_.makeImmutable();
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.secretPrefix_ = secretPrefix_;
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 ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig) {
return mergeFrom((ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig other) {
if (other == ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig.getDefaultInstance()) return this;
if (other.hasSecretKmsArn()) {
secretKmsArn_ = other.secretKmsArn_;
bitField0_ |= 0x00000001;
onChanged();
}
internalGetMutableSecretTags().mergeFrom(
other.internalGetSecretTags());
bitField0_ |= 0x00000002;
if (other.hasSecretPrefix()) {
secretPrefix_ = other.secretPrefix_;
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: {
secretKmsArn_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
com.google.protobuf.MapEntry<java.lang.String, java.lang.String>
secretTags__ = input.readMessage(
SecretTagsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableSecretTags().getMutableMap().put(
secretTags__.getKey(), secretTags__.getValue());
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
secretPrefix_ = 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 secretKmsArn_ = "";
/**
* <code>optional string secret_kms_arn = 1 [json_name = "secretKmsArn"];</code>
* @return Whether the secretKmsArn field is set.
*/
public boolean hasSecretKmsArn() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <code>optional string secret_kms_arn = 1 [json_name = "secretKmsArn"];</code>
* @return The secretKmsArn.
*/
public java.lang.String getSecretKmsArn() {
java.lang.Object ref = secretKmsArn_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
secretKmsArn_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>optional string secret_kms_arn = 1 [json_name = "secretKmsArn"];</code>
* @return The bytes for secretKmsArn.
*/
public com.google.protobuf.ByteString
getSecretKmsArnBytes() {
java.lang.Object ref = secretKmsArn_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
secretKmsArn_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>optional string secret_kms_arn = 1 [json_name = "secretKmsArn"];</code>
* @param value The secretKmsArn to set.
* @return This builder for chaining.
*/
public Builder setSecretKmsArn(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
secretKmsArn_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>optional string secret_kms_arn = 1 [json_name = "secretKmsArn"];</code>
* @return This builder for chaining.
*/
public Builder clearSecretKmsArn() {
secretKmsArn_ = getDefaultInstance().getSecretKmsArn();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* <code>optional string secret_kms_arn = 1 [json_name = "secretKmsArn"];</code>
* @param value The bytes for secretKmsArn to set.
* @return This builder for chaining.
*/
public Builder setSecretKmsArnBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
secretKmsArn_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> secretTags_;
private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetSecretTags() {
if (secretTags_ == null) {
return com.google.protobuf.MapField.emptyMapField(
SecretTagsDefaultEntryHolder.defaultEntry);
}
return secretTags_;
}
private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetMutableSecretTags() {
if (secretTags_ == null) {
secretTags_ = com.google.protobuf.MapField.newMapField(
SecretTagsDefaultEntryHolder.defaultEntry);
}
if (!secretTags_.isMutable()) {
secretTags_ = secretTags_.copy();
}
bitField0_ |= 0x00000002;
onChanged();
return secretTags_;
}
public int getSecretTagsCount() {
return internalGetSecretTags().getMap().size();
}
/**
* <code>map<string, string> secret_tags = 2 [json_name = "secretTags"];</code>
*/
@java.lang.Override
public boolean containsSecretTags(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetSecretTags().getMap().containsKey(key);
}
/**
* Use {@link #getSecretTagsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map<java.lang.String, java.lang.String> getSecretTags() {
return getSecretTagsMap();
}
/**
* <code>map<string, string> secret_tags = 2 [json_name = "secretTags"];</code>
*/
@java.lang.Override
public java.util.Map<java.lang.String, java.lang.String> getSecretTagsMap() {
return internalGetSecretTags().getMap();
}
/**
* <code>map<string, string> secret_tags = 2 [json_name = "secretTags"];</code>
*/
@java.lang.Override
public /* nullable */
java.lang.String getSecretTagsOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetSecretTags().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <code>map<string, string> secret_tags = 2 [json_name = "secretTags"];</code>
*/
@java.lang.Override
public java.lang.String getSecretTagsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetSecretTags().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearSecretTags() {
bitField0_ = (bitField0_ & ~0x00000002);
internalGetMutableSecretTags().getMutableMap()
.clear();
return this;
}
/**
* <code>map<string, string> secret_tags = 2 [json_name = "secretTags"];</code>
*/
public Builder removeSecretTags(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableSecretTags().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map<java.lang.String, java.lang.String>
getMutableSecretTags() {
bitField0_ |= 0x00000002;
return internalGetMutableSecretTags().getMutableMap();
}
/**
* <code>map<string, string> secret_tags = 2 [json_name = "secretTags"];</code>
*/
public Builder putSecretTags(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) { throw new NullPointerException("map value"); }
internalGetMutableSecretTags().getMutableMap()
.put(key, value);
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>map<string, string> secret_tags = 2 [json_name = "secretTags"];</code>
*/
public Builder putAllSecretTags(
java.util.Map<java.lang.String, java.lang.String> values) {
internalGetMutableSecretTags().getMutableMap()
.putAll(values);
bitField0_ |= 0x00000002;
return this;
}
private java.lang.Object secretPrefix_ = "";
/**
* <code>optional string secret_prefix = 3 [json_name = "secretPrefix"];</code>
* @return Whether the secretPrefix field is set.
*/
public boolean hasSecretPrefix() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* <code>optional string secret_prefix = 3 [json_name = "secretPrefix"];</code>
* @return The secretPrefix.
*/
public java.lang.String getSecretPrefix() {
java.lang.Object ref = secretPrefix_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
secretPrefix_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>optional string secret_prefix = 3 [json_name = "secretPrefix"];</code>
* @return The bytes for secretPrefix.
*/
public com.google.protobuf.ByteString
getSecretPrefixBytes() {
java.lang.Object ref = secretPrefix_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
secretPrefix_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>optional string secret_prefix = 3 [json_name = "secretPrefix"];</code>
* @param value The secretPrefix to set.
* @return This builder for chaining.
*/
public Builder setSecretPrefix(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
secretPrefix_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* <code>optional string secret_prefix = 3 [json_name = "secretPrefix"];</code>
* @return This builder for chaining.
*/
public Builder clearSecretPrefix() {
secretPrefix_ = getDefaultInstance().getSecretPrefix();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* <code>optional string secret_prefix = 3 [json_name = "secretPrefix"];</code>
* @param value The bytes for secretPrefix to set.
* @return This builder for chaining.
*/
public Builder setSecretPrefixBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
secretPrefix_ = 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:chalk.server.v1.AWSSecretManagerConfig)
}
// @@protoc_insertion_point(class_scope:chalk.server.v1.AWSSecretManagerConfig)
private static final ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig();
}
public static ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<AWSSecretManagerConfig>
PARSER = new com.google.protobuf.AbstractParser<AWSSecretManagerConfig>() {
@java.lang.Override
public AWSSecretManagerConfig 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<AWSSecretManagerConfig> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<AWSSecretManagerConfig> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.AWSSecretManagerConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/AWSSecretManagerConfigOrBuilder.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/environment.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
public interface AWSSecretManagerConfigOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.server.v1.AWSSecretManagerConfig)
com.google.protobuf.MessageOrBuilder {
/**
* <code>optional string secret_kms_arn = 1 [json_name = "secretKmsArn"];</code>
* @return Whether the secretKmsArn field is set.
*/
boolean hasSecretKmsArn();
/**
* <code>optional string secret_kms_arn = 1 [json_name = "secretKmsArn"];</code>
* @return The secretKmsArn.
*/
java.lang.String getSecretKmsArn();
/**
* <code>optional string secret_kms_arn = 1 [json_name = "secretKmsArn"];</code>
* @return The bytes for secretKmsArn.
*/
com.google.protobuf.ByteString
getSecretKmsArnBytes();
/**
* <code>map<string, string> secret_tags = 2 [json_name = "secretTags"];</code>
*/
int getSecretTagsCount();
/**
* <code>map<string, string> secret_tags = 2 [json_name = "secretTags"];</code>
*/
boolean containsSecretTags(
java.lang.String key);
/**
* Use {@link #getSecretTagsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map<java.lang.String, java.lang.String>
getSecretTags();
/**
* <code>map<string, string> secret_tags = 2 [json_name = "secretTags"];</code>
*/
java.util.Map<java.lang.String, java.lang.String>
getSecretTagsMap();
/**
* <code>map<string, string> secret_tags = 2 [json_name = "secretTags"];</code>
*/
/* nullable */
java.lang.String getSecretTagsOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue);
/**
* <code>map<string, string> secret_tags = 2 [json_name = "secretTags"];</code>
*/
java.lang.String getSecretTagsOrThrow(
java.lang.String key);
/**
* <code>optional string secret_prefix = 3 [json_name = "secretPrefix"];</code>
* @return Whether the secretPrefix field is set.
*/
boolean hasSecretPrefix();
/**
* <code>optional string secret_prefix = 3 [json_name = "secretPrefix"];</code>
* @return The secretPrefix.
*/
java.lang.String getSecretPrefix();
/**
* <code>optional string secret_prefix = 3 [json_name = "secretPrefix"];</code>
* @return The bytes for secretPrefix.
*/
com.google.protobuf.ByteString
getSecretPrefixBytes();
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/ActivateDeploymentRequest.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/builder.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
/**
* Protobuf type {@code chalk.server.v1.ActivateDeploymentRequest}
*/
public final class ActivateDeploymentRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.server.v1.ActivateDeploymentRequest)
ActivateDeploymentRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ActivateDeploymentRequest.newBuilder() to construct.
private ActivateDeploymentRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ActivateDeploymentRequest() {
existingDeploymentId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ActivateDeploymentRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_ActivateDeploymentRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_ActivateDeploymentRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequest.class, ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequest.Builder.class);
}
public static final int EXISTING_DEPLOYMENT_ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object existingDeploymentId_ = "";
/**
* <code>string existing_deployment_id = 1 [json_name = "existingDeploymentId"];</code>
* @return The existingDeploymentId.
*/
@java.lang.Override
public java.lang.String getExistingDeploymentId() {
java.lang.Object ref = existingDeploymentId_;
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();
existingDeploymentId_ = s;
return s;
}
}
/**
* <code>string existing_deployment_id = 1 [json_name = "existingDeploymentId"];</code>
* @return The bytes for existingDeploymentId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getExistingDeploymentIdBytes() {
java.lang.Object ref = existingDeploymentId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
existingDeploymentId_ = 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(existingDeploymentId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, existingDeploymentId_);
}
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(existingDeploymentId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, existingDeploymentId_);
}
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 ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequest)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequest other = (ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequest) obj;
if (!getExistingDeploymentId()
.equals(other.getExistingDeploymentId())) 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) + EXISTING_DEPLOYMENT_ID_FIELD_NUMBER;
hash = (53 * hash) + getExistingDeploymentId().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequest 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 ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequest 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 ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequest 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(ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code chalk.server.v1.ActivateDeploymentRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.server.v1.ActivateDeploymentRequest)
ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_ActivateDeploymentRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_ActivateDeploymentRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequest.class, ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequest.Builder.class);
}
// Construct using ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
existingDeploymentId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_ActivateDeploymentRequest_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequest getDefaultInstanceForType() {
return ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequest.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequest build() {
ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequest buildPartial() {
ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequest result = new ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.existingDeploymentId_ = existingDeploymentId_;
}
}
@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 ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequest) {
return mergeFrom((ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequest other) {
if (other == ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequest.getDefaultInstance()) return this;
if (!other.getExistingDeploymentId().isEmpty()) {
existingDeploymentId_ = other.existingDeploymentId_;
bitField0_ |= 0x00000001;
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: {
existingDeploymentId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
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 existingDeploymentId_ = "";
/**
* <code>string existing_deployment_id = 1 [json_name = "existingDeploymentId"];</code>
* @return The existingDeploymentId.
*/
public java.lang.String getExistingDeploymentId() {
java.lang.Object ref = existingDeploymentId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
existingDeploymentId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string existing_deployment_id = 1 [json_name = "existingDeploymentId"];</code>
* @return The bytes for existingDeploymentId.
*/
public com.google.protobuf.ByteString
getExistingDeploymentIdBytes() {
java.lang.Object ref = existingDeploymentId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
existingDeploymentId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string existing_deployment_id = 1 [json_name = "existingDeploymentId"];</code>
* @param value The existingDeploymentId to set.
* @return This builder for chaining.
*/
public Builder setExistingDeploymentId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
existingDeploymentId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>string existing_deployment_id = 1 [json_name = "existingDeploymentId"];</code>
* @return This builder for chaining.
*/
public Builder clearExistingDeploymentId() {
existingDeploymentId_ = getDefaultInstance().getExistingDeploymentId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* <code>string existing_deployment_id = 1 [json_name = "existingDeploymentId"];</code>
* @param value The bytes for existingDeploymentId to set.
* @return This builder for chaining.
*/
public Builder setExistingDeploymentIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
existingDeploymentId_ = value;
bitField0_ |= 0x00000001;
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:chalk.server.v1.ActivateDeploymentRequest)
}
// @@protoc_insertion_point(class_scope:chalk.server.v1.ActivateDeploymentRequest)
private static final ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequest();
}
public static ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<ActivateDeploymentRequest>
PARSER = new com.google.protobuf.AbstractParser<ActivateDeploymentRequest>() {
@java.lang.Override
public ActivateDeploymentRequest 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<ActivateDeploymentRequest> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<ActivateDeploymentRequest> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/ActivateDeploymentRequestOrBuilder.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/builder.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
public interface ActivateDeploymentRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.server.v1.ActivateDeploymentRequest)
com.google.protobuf.MessageOrBuilder {
/**
* <code>string existing_deployment_id = 1 [json_name = "existingDeploymentId"];</code>
* @return The existingDeploymentId.
*/
java.lang.String getExistingDeploymentId();
/**
* <code>string existing_deployment_id = 1 [json_name = "existingDeploymentId"];</code>
* @return The bytes for existingDeploymentId.
*/
com.google.protobuf.ByteString
getExistingDeploymentIdBytes();
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/ActivateDeploymentResponse.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/builder.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
/**
* Protobuf type {@code chalk.server.v1.ActivateDeploymentResponse}
*/
public final class ActivateDeploymentResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.server.v1.ActivateDeploymentResponse)
ActivateDeploymentResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ActivateDeploymentResponse.newBuilder() to construct.
private ActivateDeploymentResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ActivateDeploymentResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ActivateDeploymentResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_ActivateDeploymentResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_ActivateDeploymentResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.ActivateDeploymentResponse.class, ai.chalk.protos.chalk.server.v1.ActivateDeploymentResponse.Builder.class);
}
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 {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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 ai.chalk.protos.chalk.server.v1.ActivateDeploymentResponse)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.server.v1.ActivateDeploymentResponse other = (ai.chalk.protos.chalk.server.v1.ActivateDeploymentResponse) obj;
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 = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.server.v1.ActivateDeploymentResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.ActivateDeploymentResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.ActivateDeploymentResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.ActivateDeploymentResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.ActivateDeploymentResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.ActivateDeploymentResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.ActivateDeploymentResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.ActivateDeploymentResponse 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 ai.chalk.protos.chalk.server.v1.ActivateDeploymentResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.ActivateDeploymentResponse 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 ai.chalk.protos.chalk.server.v1.ActivateDeploymentResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.ActivateDeploymentResponse 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(ai.chalk.protos.chalk.server.v1.ActivateDeploymentResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code chalk.server.v1.ActivateDeploymentResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.server.v1.ActivateDeploymentResponse)
ai.chalk.protos.chalk.server.v1.ActivateDeploymentResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_ActivateDeploymentResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_ActivateDeploymentResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.ActivateDeploymentResponse.class, ai.chalk.protos.chalk.server.v1.ActivateDeploymentResponse.Builder.class);
}
// Construct using ai.chalk.protos.chalk.server.v1.ActivateDeploymentResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_ActivateDeploymentResponse_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.ActivateDeploymentResponse getDefaultInstanceForType() {
return ai.chalk.protos.chalk.server.v1.ActivateDeploymentResponse.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.ActivateDeploymentResponse build() {
ai.chalk.protos.chalk.server.v1.ActivateDeploymentResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.ActivateDeploymentResponse buildPartial() {
ai.chalk.protos.chalk.server.v1.ActivateDeploymentResponse result = new ai.chalk.protos.chalk.server.v1.ActivateDeploymentResponse(this);
onBuilt();
return result;
}
@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 ai.chalk.protos.chalk.server.v1.ActivateDeploymentResponse) {
return mergeFrom((ai.chalk.protos.chalk.server.v1.ActivateDeploymentResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.server.v1.ActivateDeploymentResponse other) {
if (other == ai.chalk.protos.chalk.server.v1.ActivateDeploymentResponse.getDefaultInstance()) return this;
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;
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;
}
@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:chalk.server.v1.ActivateDeploymentResponse)
}
// @@protoc_insertion_point(class_scope:chalk.server.v1.ActivateDeploymentResponse)
private static final ai.chalk.protos.chalk.server.v1.ActivateDeploymentResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.server.v1.ActivateDeploymentResponse();
}
public static ai.chalk.protos.chalk.server.v1.ActivateDeploymentResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<ActivateDeploymentResponse>
PARSER = new com.google.protobuf.AbstractParser<ActivateDeploymentResponse>() {
@java.lang.Override
public ActivateDeploymentResponse 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<ActivateDeploymentResponse> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<ActivateDeploymentResponse> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.ActivateDeploymentResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/ActivateDeploymentResponseOrBuilder.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/builder.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
public interface ActivateDeploymentResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.server.v1.ActivateDeploymentResponse)
com.google.protobuf.MessageOrBuilder {
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/AddPagerDutyIntegrationRequest.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/monitoring.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
/**
* Protobuf type {@code chalk.server.v1.AddPagerDutyIntegrationRequest}
*/
public final class AddPagerDutyIntegrationRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.server.v1.AddPagerDutyIntegrationRequest)
AddPagerDutyIntegrationRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use AddPagerDutyIntegrationRequest.newBuilder() to construct.
private AddPagerDutyIntegrationRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private AddPagerDutyIntegrationRequest() {
name_ = "";
token_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AddPagerDutyIntegrationRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.MonitoringProto.internal_static_chalk_server_v1_AddPagerDutyIntegrationRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.MonitoringProto.internal_static_chalk_server_v1_AddPagerDutyIntegrationRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationRequest.class, ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationRequest.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
* <code>optional string name = 2 [json_name = "name"];</code>
* @return Whether the name field is set.
*/
@java.lang.Override
public boolean hasName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <code>optional string name = 2 [json_name = "name"];</code>
* @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;
}
}
/**
* <code>optional string name = 2 [json_name = "name"];</code>
* @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 TOKEN_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object token_ = "";
/**
* <code>string token = 3 [json_name = "token"];</code>
* @return The token.
*/
@java.lang.Override
public java.lang.String getToken() {
java.lang.Object ref = token_;
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();
token_ = s;
return s;
}
}
/**
* <code>string token = 3 [json_name = "token"];</code>
* @return The bytes for token.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTokenBytes() {
java.lang.Object ref = token_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
token_ = 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 (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(token_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, token_);
}
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.GeneratedMessageV3.computeStringSize(2, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(token_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, token_);
}
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 ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationRequest)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationRequest other = (ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationRequest) obj;
if (hasName() != other.hasName()) return false;
if (hasName()) {
if (!getName()
.equals(other.getName())) return false;
}
if (!getToken()
.equals(other.getToken())) 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 (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
hash = (37 * hash) + TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getToken().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationRequest 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 ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationRequest 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 ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationRequest 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(ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code chalk.server.v1.AddPagerDutyIntegrationRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.server.v1.AddPagerDutyIntegrationRequest)
ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.MonitoringProto.internal_static_chalk_server_v1_AddPagerDutyIntegrationRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.MonitoringProto.internal_static_chalk_server_v1_AddPagerDutyIntegrationRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationRequest.class, ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationRequest.Builder.class);
}
// Construct using ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
token_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.server.v1.MonitoringProto.internal_static_chalk_server_v1_AddPagerDutyIntegrationRequest_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationRequest getDefaultInstanceForType() {
return ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationRequest.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationRequest build() {
ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationRequest buildPartial() {
ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationRequest result = new ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationRequest result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.token_ = token_;
}
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 ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationRequest) {
return mergeFrom((ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationRequest other) {
if (other == ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationRequest.getDefaultInstance()) return this;
if (other.hasName()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getToken().isEmpty()) {
token_ = other.token_;
bitField0_ |= 0x00000002;
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 18: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 18
case 26: {
token_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
* <code>optional string name = 2 [json_name = "name"];</code>
* @return Whether the name field is set.
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <code>optional string name = 2 [json_name = "name"];</code>
* @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;
}
}
/**
* <code>optional string name = 2 [json_name = "name"];</code>
* @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;
}
}
/**
* <code>optional string name = 2 [json_name = "name"];</code>
* @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;
}
/**
* <code>optional string name = 2 [json_name = "name"];</code>
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* <code>optional string name = 2 [json_name = "name"];</code>
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object token_ = "";
/**
* <code>string token = 3 [json_name = "token"];</code>
* @return The token.
*/
public java.lang.String getToken() {
java.lang.Object ref = token_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
token_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string token = 3 [json_name = "token"];</code>
* @return The bytes for token.
*/
public com.google.protobuf.ByteString
getTokenBytes() {
java.lang.Object ref = token_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
token_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string token = 3 [json_name = "token"];</code>
* @param value The token to set.
* @return This builder for chaining.
*/
public Builder setToken(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
token_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <code>string token = 3 [json_name = "token"];</code>
* @return This builder for chaining.
*/
public Builder clearToken() {
token_ = getDefaultInstance().getToken();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* <code>string token = 3 [json_name = "token"];</code>
* @param value The bytes for token to set.
* @return This builder for chaining.
*/
public Builder setTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
token_ = value;
bitField0_ |= 0x00000002;
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:chalk.server.v1.AddPagerDutyIntegrationRequest)
}
// @@protoc_insertion_point(class_scope:chalk.server.v1.AddPagerDutyIntegrationRequest)
private static final ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationRequest();
}
public static ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<AddPagerDutyIntegrationRequest>
PARSER = new com.google.protobuf.AbstractParser<AddPagerDutyIntegrationRequest>() {
@java.lang.Override
public AddPagerDutyIntegrationRequest 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<AddPagerDutyIntegrationRequest> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<AddPagerDutyIntegrationRequest> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/AddPagerDutyIntegrationRequestOrBuilder.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/monitoring.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
public interface AddPagerDutyIntegrationRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.server.v1.AddPagerDutyIntegrationRequest)
com.google.protobuf.MessageOrBuilder {
/**
* <code>optional string name = 2 [json_name = "name"];</code>
* @return Whether the name field is set.
*/
boolean hasName();
/**
* <code>optional string name = 2 [json_name = "name"];</code>
* @return The name.
*/
java.lang.String getName();
/**
* <code>optional string name = 2 [json_name = "name"];</code>
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* <code>string token = 3 [json_name = "token"];</code>
* @return The token.
*/
java.lang.String getToken();
/**
* <code>string token = 3 [json_name = "token"];</code>
* @return The bytes for token.
*/
com.google.protobuf.ByteString
getTokenBytes();
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/AddPagerDutyIntegrationResponse.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/monitoring.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
/**
* Protobuf type {@code chalk.server.v1.AddPagerDutyIntegrationResponse}
*/
public final class AddPagerDutyIntegrationResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.server.v1.AddPagerDutyIntegrationResponse)
AddPagerDutyIntegrationResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use AddPagerDutyIntegrationResponse.newBuilder() to construct.
private AddPagerDutyIntegrationResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private AddPagerDutyIntegrationResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AddPagerDutyIntegrationResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.MonitoringProto.internal_static_chalk_server_v1_AddPagerDutyIntegrationResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.MonitoringProto.internal_static_chalk_server_v1_AddPagerDutyIntegrationResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationResponse.class, ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationResponse.Builder.class);
}
private int bitField0_;
public static final int INTEGRATION_FIELD_NUMBER = 1;
private ai.chalk.protos.chalk.server.v1.PagerDutyIntegration integration_;
/**
* <code>.chalk.server.v1.PagerDutyIntegration integration = 1 [json_name = "integration"];</code>
* @return Whether the integration field is set.
*/
@java.lang.Override
public boolean hasIntegration() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <code>.chalk.server.v1.PagerDutyIntegration integration = 1 [json_name = "integration"];</code>
* @return The integration.
*/
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.PagerDutyIntegration getIntegration() {
return integration_ == null ? ai.chalk.protos.chalk.server.v1.PagerDutyIntegration.getDefaultInstance() : integration_;
}
/**
* <code>.chalk.server.v1.PagerDutyIntegration integration = 1 [json_name = "integration"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.PagerDutyIntegrationOrBuilder getIntegrationOrBuilder() {
return integration_ == null ? ai.chalk.protos.chalk.server.v1.PagerDutyIntegration.getDefaultInstance() : integration_;
}
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, getIntegration());
}
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, getIntegration());
}
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 ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationResponse)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationResponse other = (ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationResponse) obj;
if (hasIntegration() != other.hasIntegration()) return false;
if (hasIntegration()) {
if (!getIntegration()
.equals(other.getIntegration())) 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 (hasIntegration()) {
hash = (37 * hash) + INTEGRATION_FIELD_NUMBER;
hash = (53 * hash) + getIntegration().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationResponse 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 ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationResponse 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 ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationResponse 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(ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code chalk.server.v1.AddPagerDutyIntegrationResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.server.v1.AddPagerDutyIntegrationResponse)
ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.MonitoringProto.internal_static_chalk_server_v1_AddPagerDutyIntegrationResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.MonitoringProto.internal_static_chalk_server_v1_AddPagerDutyIntegrationResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationResponse.class, ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationResponse.Builder.class);
}
// Construct using ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getIntegrationFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
integration_ = null;
if (integrationBuilder_ != null) {
integrationBuilder_.dispose();
integrationBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.server.v1.MonitoringProto.internal_static_chalk_server_v1_AddPagerDutyIntegrationResponse_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationResponse getDefaultInstanceForType() {
return ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationResponse.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationResponse build() {
ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationResponse buildPartial() {
ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationResponse result = new ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationResponse result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.integration_ = integrationBuilder_ == null
? integration_
: integrationBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationResponse) {
return mergeFrom((ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationResponse other) {
if (other == ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationResponse.getDefaultInstance()) return this;
if (other.hasIntegration()) {
mergeIntegration(other.getIntegration());
}
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(
getIntegrationFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
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 ai.chalk.protos.chalk.server.v1.PagerDutyIntegration integration_;
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.PagerDutyIntegration, ai.chalk.protos.chalk.server.v1.PagerDutyIntegration.Builder, ai.chalk.protos.chalk.server.v1.PagerDutyIntegrationOrBuilder> integrationBuilder_;
/**
* <code>.chalk.server.v1.PagerDutyIntegration integration = 1 [json_name = "integration"];</code>
* @return Whether the integration field is set.
*/
public boolean hasIntegration() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <code>.chalk.server.v1.PagerDutyIntegration integration = 1 [json_name = "integration"];</code>
* @return The integration.
*/
public ai.chalk.protos.chalk.server.v1.PagerDutyIntegration getIntegration() {
if (integrationBuilder_ == null) {
return integration_ == null ? ai.chalk.protos.chalk.server.v1.PagerDutyIntegration.getDefaultInstance() : integration_;
} else {
return integrationBuilder_.getMessage();
}
}
/**
* <code>.chalk.server.v1.PagerDutyIntegration integration = 1 [json_name = "integration"];</code>
*/
public Builder setIntegration(ai.chalk.protos.chalk.server.v1.PagerDutyIntegration value) {
if (integrationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
integration_ = value;
} else {
integrationBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>.chalk.server.v1.PagerDutyIntegration integration = 1 [json_name = "integration"];</code>
*/
public Builder setIntegration(
ai.chalk.protos.chalk.server.v1.PagerDutyIntegration.Builder builderForValue) {
if (integrationBuilder_ == null) {
integration_ = builderForValue.build();
} else {
integrationBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>.chalk.server.v1.PagerDutyIntegration integration = 1 [json_name = "integration"];</code>
*/
public Builder mergeIntegration(ai.chalk.protos.chalk.server.v1.PagerDutyIntegration value) {
if (integrationBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
integration_ != null &&
integration_ != ai.chalk.protos.chalk.server.v1.PagerDutyIntegration.getDefaultInstance()) {
getIntegrationBuilder().mergeFrom(value);
} else {
integration_ = value;
}
} else {
integrationBuilder_.mergeFrom(value);
}
if (integration_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* <code>.chalk.server.v1.PagerDutyIntegration integration = 1 [json_name = "integration"];</code>
*/
public Builder clearIntegration() {
bitField0_ = (bitField0_ & ~0x00000001);
integration_ = null;
if (integrationBuilder_ != null) {
integrationBuilder_.dispose();
integrationBuilder_ = null;
}
onChanged();
return this;
}
/**
* <code>.chalk.server.v1.PagerDutyIntegration integration = 1 [json_name = "integration"];</code>
*/
public ai.chalk.protos.chalk.server.v1.PagerDutyIntegration.Builder getIntegrationBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getIntegrationFieldBuilder().getBuilder();
}
/**
* <code>.chalk.server.v1.PagerDutyIntegration integration = 1 [json_name = "integration"];</code>
*/
public ai.chalk.protos.chalk.server.v1.PagerDutyIntegrationOrBuilder getIntegrationOrBuilder() {
if (integrationBuilder_ != null) {
return integrationBuilder_.getMessageOrBuilder();
} else {
return integration_ == null ?
ai.chalk.protos.chalk.server.v1.PagerDutyIntegration.getDefaultInstance() : integration_;
}
}
/**
* <code>.chalk.server.v1.PagerDutyIntegration integration = 1 [json_name = "integration"];</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.PagerDutyIntegration, ai.chalk.protos.chalk.server.v1.PagerDutyIntegration.Builder, ai.chalk.protos.chalk.server.v1.PagerDutyIntegrationOrBuilder>
getIntegrationFieldBuilder() {
if (integrationBuilder_ == null) {
integrationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.PagerDutyIntegration, ai.chalk.protos.chalk.server.v1.PagerDutyIntegration.Builder, ai.chalk.protos.chalk.server.v1.PagerDutyIntegrationOrBuilder>(
getIntegration(),
getParentForChildren(),
isClean());
integration_ = null;
}
return integrationBuilder_;
}
@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:chalk.server.v1.AddPagerDutyIntegrationResponse)
}
// @@protoc_insertion_point(class_scope:chalk.server.v1.AddPagerDutyIntegrationResponse)
private static final ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationResponse();
}
public static ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<AddPagerDutyIntegrationResponse>
PARSER = new com.google.protobuf.AbstractParser<AddPagerDutyIntegrationResponse>() {
@java.lang.Override
public AddPagerDutyIntegrationResponse 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<AddPagerDutyIntegrationResponse> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<AddPagerDutyIntegrationResponse> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.AddPagerDutyIntegrationResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/AddPagerDutyIntegrationResponseOrBuilder.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/monitoring.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
public interface AddPagerDutyIntegrationResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.server.v1.AddPagerDutyIntegrationResponse)
com.google.protobuf.MessageOrBuilder {
/**
* <code>.chalk.server.v1.PagerDutyIntegration integration = 1 [json_name = "integration"];</code>
* @return Whether the integration field is set.
*/
boolean hasIntegration();
/**
* <code>.chalk.server.v1.PagerDutyIntegration integration = 1 [json_name = "integration"];</code>
* @return The integration.
*/
ai.chalk.protos.chalk.server.v1.PagerDutyIntegration getIntegration();
/**
* <code>.chalk.server.v1.PagerDutyIntegration integration = 1 [json_name = "integration"];</code>
*/
ai.chalk.protos.chalk.server.v1.PagerDutyIntegrationOrBuilder getIntegrationOrBuilder();
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/AuditLog.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/audit.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
/**
* Protobuf type {@code chalk.server.v1.AuditLog}
*/
public final class AuditLog extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.server.v1.AuditLog)
AuditLogOrBuilder {
private static final long serialVersionUID = 0L;
// Use AuditLog.newBuilder() to construct.
private AuditLog(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private AuditLog() {
description_ = "";
endpoint_ = "";
code_ = 0;
ip_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AuditLog();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.AuditProto.internal_static_chalk_server_v1_AuditLog_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 7:
return internalGetRequest();
case 8:
return internalGetResponse();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.AuditProto.internal_static_chalk_server_v1_AuditLog_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.AuditLog.class, ai.chalk.protos.chalk.server.v1.AuditLog.Builder.class);
}
private int bitField0_;
public static final int AGENT_FIELD_NUMBER = 1;
private ai.chalk.protos.chalk.auth.v1.Agent agent_;
/**
* <pre>
* The agent who made the request.
* </pre>
*
* <code>.chalk.auth.v1.Agent agent = 1 [json_name = "agent"];</code>
* @return Whether the agent field is set.
*/
@java.lang.Override
public boolean hasAgent() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <pre>
* The agent who made the request.
* </pre>
*
* <code>.chalk.auth.v1.Agent agent = 1 [json_name = "agent"];</code>
* @return The agent.
*/
@java.lang.Override
public ai.chalk.protos.chalk.auth.v1.Agent getAgent() {
return agent_ == null ? ai.chalk.protos.chalk.auth.v1.Agent.getDefaultInstance() : agent_;
}
/**
* <pre>
* The agent who made the request.
* </pre>
*
* <code>.chalk.auth.v1.Agent agent = 1 [json_name = "agent"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.auth.v1.AgentOrBuilder getAgentOrBuilder() {
return agent_ == null ? ai.chalk.protos.chalk.auth.v1.Agent.getDefaultInstance() : agent_;
}
public static final int DESCRIPTION_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object description_ = "";
/**
* <pre>
* A description of the request, taken from the service endpoint
* </pre>
*
* <code>optional string description = 2 [json_name = "description"];</code>
* @return Whether the description field is set.
*/
@java.lang.Override
public boolean hasDescription() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* <pre>
* A description of the request, taken from the service endpoint
* </pre>
*
* <code>optional string description = 2 [json_name = "description"];</code>
* @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;
}
}
/**
* <pre>
* A description of the request, taken from the service endpoint
* </pre>
*
* <code>optional string description = 2 [json_name = "description"];</code>
* @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 ENDPOINT_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object endpoint_ = "";
/**
* <pre>
* The service endpoint that was called
* </pre>
*
* <code>string endpoint = 3 [json_name = "endpoint"];</code>
* @return The endpoint.
*/
@java.lang.Override
public java.lang.String getEndpoint() {
java.lang.Object ref = endpoint_;
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();
endpoint_ = s;
return s;
}
}
/**
* <pre>
* The service endpoint that was called
* </pre>
*
* <code>string endpoint = 3 [json_name = "endpoint"];</code>
* @return The bytes for endpoint.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getEndpointBytes() {
java.lang.Object ref = endpoint_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
endpoint_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int AT_FIELD_NUMBER = 4;
private com.google.protobuf.Timestamp at_;
/**
* <pre>
* The time the request was made.
* </pre>
*
* <code>.google.protobuf.Timestamp at = 4 [json_name = "at"];</code>
* @return Whether the at field is set.
*/
@java.lang.Override
public boolean hasAt() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* <pre>
* The time the request was made.
* </pre>
*
* <code>.google.protobuf.Timestamp at = 4 [json_name = "at"];</code>
* @return The at.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getAt() {
return at_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : at_;
}
/**
* <pre>
* The time the request was made.
* </pre>
*
* <code>.google.protobuf.Timestamp at = 4 [json_name = "at"];</code>
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getAtOrBuilder() {
return at_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : at_;
}
public static final int TRACE_ID_FIELD_NUMBER = 5;
private long traceId_ = 0L;
/**
* <pre>
* The trace ID of the request, if available.
* </pre>
*
* <code>optional uint64 trace_id = 5 [json_name = "traceId"];</code>
* @return Whether the traceId field is set.
*/
@java.lang.Override
public boolean hasTraceId() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* <pre>
* The trace ID of the request, if available.
* </pre>
*
* <code>optional uint64 trace_id = 5 [json_name = "traceId"];</code>
* @return The traceId.
*/
@java.lang.Override
public long getTraceId() {
return traceId_;
}
public static final int CODE_FIELD_NUMBER = 6;
private int code_ = 0;
/**
* <pre>
* The status of the request.
* </pre>
*
* <code>optional .google.rpc.Code code = 6 [json_name = "code"];</code>
* @return Whether the code field is set.
*/
@java.lang.Override public boolean hasCode() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* <pre>
* The status of the request.
* </pre>
*
* <code>optional .google.rpc.Code code = 6 [json_name = "code"];</code>
* @return The enum numeric value on the wire for code.
*/
@java.lang.Override public int getCodeValue() {
return code_;
}
/**
* <pre>
* The status of the request.
* </pre>
*
* <code>optional .google.rpc.Code code = 6 [json_name = "code"];</code>
* @return The code.
*/
@java.lang.Override public com.google.rpc.Code getCode() {
com.google.rpc.Code result = com.google.rpc.Code.forNumber(code_);
return result == null ? com.google.rpc.Code.UNRECOGNIZED : result;
}
public static final int REQUEST_FIELD_NUMBER = 7;
private static final class RequestDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, com.google.protobuf.Value> defaultEntry =
com.google.protobuf.MapEntry
.<java.lang.String, com.google.protobuf.Value>newDefaultInstance(
ai.chalk.protos.chalk.server.v1.AuditProto.internal_static_chalk_server_v1_AuditLog_RequestEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
com.google.protobuf.Value.getDefaultInstance());
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField<
java.lang.String, com.google.protobuf.Value> request_;
private com.google.protobuf.MapField<java.lang.String, com.google.protobuf.Value>
internalGetRequest() {
if (request_ == null) {
return com.google.protobuf.MapField.emptyMapField(
RequestDefaultEntryHolder.defaultEntry);
}
return request_;
}
public int getRequestCount() {
return internalGetRequest().getMap().size();
}
/**
* <pre>
* The serialized request
* </pre>
*
* <code>map<string, .google.protobuf.Value> request = 7 [json_name = "request"];</code>
*/
@java.lang.Override
public boolean containsRequest(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetRequest().getMap().containsKey(key);
}
/**
* Use {@link #getRequestMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map<java.lang.String, com.google.protobuf.Value> getRequest() {
return getRequestMap();
}
/**
* <pre>
* The serialized request
* </pre>
*
* <code>map<string, .google.protobuf.Value> request = 7 [json_name = "request"];</code>
*/
@java.lang.Override
public java.util.Map<java.lang.String, com.google.protobuf.Value> getRequestMap() {
return internalGetRequest().getMap();
}
/**
* <pre>
* The serialized request
* </pre>
*
* <code>map<string, .google.protobuf.Value> request = 7 [json_name = "request"];</code>
*/
@java.lang.Override
public /* nullable */
com.google.protobuf.Value getRequestOrDefault(
java.lang.String key,
/* nullable */
com.google.protobuf.Value defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, com.google.protobuf.Value> map =
internalGetRequest().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <pre>
* The serialized request
* </pre>
*
* <code>map<string, .google.protobuf.Value> request = 7 [json_name = "request"];</code>
*/
@java.lang.Override
public com.google.protobuf.Value getRequestOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, com.google.protobuf.Value> map =
internalGetRequest().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int RESPONSE_FIELD_NUMBER = 8;
private static final class ResponseDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, com.google.protobuf.Value> defaultEntry =
com.google.protobuf.MapEntry
.<java.lang.String, com.google.protobuf.Value>newDefaultInstance(
ai.chalk.protos.chalk.server.v1.AuditProto.internal_static_chalk_server_v1_AuditLog_ResponseEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
com.google.protobuf.Value.getDefaultInstance());
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField<
java.lang.String, com.google.protobuf.Value> response_;
private com.google.protobuf.MapField<java.lang.String, com.google.protobuf.Value>
internalGetResponse() {
if (response_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ResponseDefaultEntryHolder.defaultEntry);
}
return response_;
}
public int getResponseCount() {
return internalGetResponse().getMap().size();
}
/**
* <pre>
* The serialized response
* </pre>
*
* <code>map<string, .google.protobuf.Value> response = 8 [json_name = "response"];</code>
*/
@java.lang.Override
public boolean containsResponse(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetResponse().getMap().containsKey(key);
}
/**
* Use {@link #getResponseMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map<java.lang.String, com.google.protobuf.Value> getResponse() {
return getResponseMap();
}
/**
* <pre>
* The serialized response
* </pre>
*
* <code>map<string, .google.protobuf.Value> response = 8 [json_name = "response"];</code>
*/
@java.lang.Override
public java.util.Map<java.lang.String, com.google.protobuf.Value> getResponseMap() {
return internalGetResponse().getMap();
}
/**
* <pre>
* The serialized response
* </pre>
*
* <code>map<string, .google.protobuf.Value> response = 8 [json_name = "response"];</code>
*/
@java.lang.Override
public /* nullable */
com.google.protobuf.Value getResponseOrDefault(
java.lang.String key,
/* nullable */
com.google.protobuf.Value defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, com.google.protobuf.Value> map =
internalGetResponse().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <pre>
* The serialized response
* </pre>
*
* <code>map<string, .google.protobuf.Value> response = 8 [json_name = "response"];</code>
*/
@java.lang.Override
public com.google.protobuf.Value getResponseOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, com.google.protobuf.Value> map =
internalGetResponse().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int IP_FIELD_NUMBER = 9;
@SuppressWarnings("serial")
private volatile java.lang.Object ip_ = "";
/**
* <pre>
* The IP address of the client
* </pre>
*
* <code>optional string ip = 9 [json_name = "ip"];</code>
* @return Whether the ip field is set.
*/
@java.lang.Override
public boolean hasIp() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* <pre>
* The IP address of the client
* </pre>
*
* <code>optional string ip = 9 [json_name = "ip"];</code>
* @return The ip.
*/
@java.lang.Override
public java.lang.String getIp() {
java.lang.Object ref = ip_;
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();
ip_ = s;
return s;
}
}
/**
* <pre>
* The IP address of the client
* </pre>
*
* <code>optional string ip = 9 [json_name = "ip"];</code>
* @return The bytes for ip.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIpBytes() {
java.lang.Object ref = ip_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
ip_ = 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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getAgent());
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpoint_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, endpoint_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(4, getAt());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeUInt64(5, traceId_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeEnum(6, code_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetRequest(),
RequestDefaultEntryHolder.defaultEntry,
7);
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetResponse(),
ResponseDefaultEntryHolder.defaultEntry,
8);
if (((bitField0_ & 0x00000020) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, ip_);
}
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, getAgent());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpoint_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, endpoint_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getAt());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(5, traceId_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(6, code_);
}
for (java.util.Map.Entry<java.lang.String, com.google.protobuf.Value> entry
: internalGetRequest().getMap().entrySet()) {
com.google.protobuf.MapEntry<java.lang.String, com.google.protobuf.Value>
request__ = RequestDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, request__);
}
for (java.util.Map.Entry<java.lang.String, com.google.protobuf.Value> entry
: internalGetResponse().getMap().entrySet()) {
com.google.protobuf.MapEntry<java.lang.String, com.google.protobuf.Value>
response__ = ResponseDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, response__);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, ip_);
}
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 ai.chalk.protos.chalk.server.v1.AuditLog)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.server.v1.AuditLog other = (ai.chalk.protos.chalk.server.v1.AuditLog) obj;
if (hasAgent() != other.hasAgent()) return false;
if (hasAgent()) {
if (!getAgent()
.equals(other.getAgent())) return false;
}
if (hasDescription() != other.hasDescription()) return false;
if (hasDescription()) {
if (!getDescription()
.equals(other.getDescription())) return false;
}
if (!getEndpoint()
.equals(other.getEndpoint())) return false;
if (hasAt() != other.hasAt()) return false;
if (hasAt()) {
if (!getAt()
.equals(other.getAt())) return false;
}
if (hasTraceId() != other.hasTraceId()) return false;
if (hasTraceId()) {
if (getTraceId()
!= other.getTraceId()) return false;
}
if (hasCode() != other.hasCode()) return false;
if (hasCode()) {
if (code_ != other.code_) return false;
}
if (!internalGetRequest().equals(
other.internalGetRequest())) return false;
if (!internalGetResponse().equals(
other.internalGetResponse())) return false;
if (hasIp() != other.hasIp()) return false;
if (hasIp()) {
if (!getIp()
.equals(other.getIp())) 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 (hasAgent()) {
hash = (37 * hash) + AGENT_FIELD_NUMBER;
hash = (53 * hash) + getAgent().hashCode();
}
if (hasDescription()) {
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
}
hash = (37 * hash) + ENDPOINT_FIELD_NUMBER;
hash = (53 * hash) + getEndpoint().hashCode();
if (hasAt()) {
hash = (37 * hash) + AT_FIELD_NUMBER;
hash = (53 * hash) + getAt().hashCode();
}
if (hasTraceId()) {
hash = (37 * hash) + TRACE_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTraceId());
}
if (hasCode()) {
hash = (37 * hash) + CODE_FIELD_NUMBER;
hash = (53 * hash) + code_;
}
if (!internalGetRequest().getMap().isEmpty()) {
hash = (37 * hash) + REQUEST_FIELD_NUMBER;
hash = (53 * hash) + internalGetRequest().hashCode();
}
if (!internalGetResponse().getMap().isEmpty()) {
hash = (37 * hash) + RESPONSE_FIELD_NUMBER;
hash = (53 * hash) + internalGetResponse().hashCode();
}
if (hasIp()) {
hash = (37 * hash) + IP_FIELD_NUMBER;
hash = (53 * hash) + getIp().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.server.v1.AuditLog parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.AuditLog parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.AuditLog parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.AuditLog parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.AuditLog parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.AuditLog parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.AuditLog parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.AuditLog 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 ai.chalk.protos.chalk.server.v1.AuditLog parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.AuditLog 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 ai.chalk.protos.chalk.server.v1.AuditLog parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.AuditLog 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(ai.chalk.protos.chalk.server.v1.AuditLog prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code chalk.server.v1.AuditLog}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.server.v1.AuditLog)
ai.chalk.protos.chalk.server.v1.AuditLogOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.AuditProto.internal_static_chalk_server_v1_AuditLog_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 7:
return internalGetRequest();
case 8:
return internalGetResponse();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
int number) {
switch (number) {
case 7:
return internalGetMutableRequest();
case 8:
return internalGetMutableResponse();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.AuditProto.internal_static_chalk_server_v1_AuditLog_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.AuditLog.class, ai.chalk.protos.chalk.server.v1.AuditLog.Builder.class);
}
// Construct using ai.chalk.protos.chalk.server.v1.AuditLog.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAgentFieldBuilder();
getAtFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
agent_ = null;
if (agentBuilder_ != null) {
agentBuilder_.dispose();
agentBuilder_ = null;
}
description_ = "";
endpoint_ = "";
at_ = null;
if (atBuilder_ != null) {
atBuilder_.dispose();
atBuilder_ = null;
}
traceId_ = 0L;
code_ = 0;
internalGetMutableRequest().clear();
internalGetMutableResponse().clear();
ip_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.server.v1.AuditProto.internal_static_chalk_server_v1_AuditLog_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.AuditLog getDefaultInstanceForType() {
return ai.chalk.protos.chalk.server.v1.AuditLog.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.AuditLog build() {
ai.chalk.protos.chalk.server.v1.AuditLog result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.AuditLog buildPartial() {
ai.chalk.protos.chalk.server.v1.AuditLog result = new ai.chalk.protos.chalk.server.v1.AuditLog(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ai.chalk.protos.chalk.server.v1.AuditLog result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.agent_ = agentBuilder_ == null
? agent_
: agentBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.description_ = description_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.endpoint_ = endpoint_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.at_ = atBuilder_ == null
? at_
: atBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.traceId_ = traceId_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.code_ = code_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.request_ = internalGetRequest().build(RequestDefaultEntryHolder.defaultEntry);
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.response_ = internalGetResponse().build(ResponseDefaultEntryHolder.defaultEntry);
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.ip_ = ip_;
to_bitField0_ |= 0x00000020;
}
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 ai.chalk.protos.chalk.server.v1.AuditLog) {
return mergeFrom((ai.chalk.protos.chalk.server.v1.AuditLog)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.server.v1.AuditLog other) {
if (other == ai.chalk.protos.chalk.server.v1.AuditLog.getDefaultInstance()) return this;
if (other.hasAgent()) {
mergeAgent(other.getAgent());
}
if (other.hasDescription()) {
description_ = other.description_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getEndpoint().isEmpty()) {
endpoint_ = other.endpoint_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasAt()) {
mergeAt(other.getAt());
}
if (other.hasTraceId()) {
setTraceId(other.getTraceId());
}
if (other.hasCode()) {
setCode(other.getCode());
}
internalGetMutableRequest().mergeFrom(
other.internalGetRequest());
bitField0_ |= 0x00000040;
internalGetMutableResponse().mergeFrom(
other.internalGetResponse());
bitField0_ |= 0x00000080;
if (other.hasIp()) {
ip_ = other.ip_;
bitField0_ |= 0x00000100;
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: {
input.readMessage(
getAgentFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
description_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
endpoint_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
input.readMessage(
getAtFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 40: {
traceId_ = input.readUInt64();
bitField0_ |= 0x00000010;
break;
} // case 40
case 48: {
code_ = input.readEnum();
bitField0_ |= 0x00000020;
break;
} // case 48
case 58: {
com.google.protobuf.MapEntry<java.lang.String, com.google.protobuf.Value>
request__ = input.readMessage(
RequestDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableRequest().ensureBuilderMap().put(
request__.getKey(), request__.getValue());
bitField0_ |= 0x00000040;
break;
} // case 58
case 66: {
com.google.protobuf.MapEntry<java.lang.String, com.google.protobuf.Value>
response__ = input.readMessage(
ResponseDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableResponse().ensureBuilderMap().put(
response__.getKey(), response__.getValue());
bitField0_ |= 0x00000080;
break;
} // case 66
case 74: {
ip_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000100;
break;
} // case 74
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 ai.chalk.protos.chalk.auth.v1.Agent agent_;
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.auth.v1.Agent, ai.chalk.protos.chalk.auth.v1.Agent.Builder, ai.chalk.protos.chalk.auth.v1.AgentOrBuilder> agentBuilder_;
/**
* <pre>
* The agent who made the request.
* </pre>
*
* <code>.chalk.auth.v1.Agent agent = 1 [json_name = "agent"];</code>
* @return Whether the agent field is set.
*/
public boolean hasAgent() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <pre>
* The agent who made the request.
* </pre>
*
* <code>.chalk.auth.v1.Agent agent = 1 [json_name = "agent"];</code>
* @return The agent.
*/
public ai.chalk.protos.chalk.auth.v1.Agent getAgent() {
if (agentBuilder_ == null) {
return agent_ == null ? ai.chalk.protos.chalk.auth.v1.Agent.getDefaultInstance() : agent_;
} else {
return agentBuilder_.getMessage();
}
}
/**
* <pre>
* The agent who made the request.
* </pre>
*
* <code>.chalk.auth.v1.Agent agent = 1 [json_name = "agent"];</code>
*/
public Builder setAgent(ai.chalk.protos.chalk.auth.v1.Agent value) {
if (agentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
agent_ = value;
} else {
agentBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <pre>
* The agent who made the request.
* </pre>
*
* <code>.chalk.auth.v1.Agent agent = 1 [json_name = "agent"];</code>
*/
public Builder setAgent(
ai.chalk.protos.chalk.auth.v1.Agent.Builder builderForValue) {
if (agentBuilder_ == null) {
agent_ = builderForValue.build();
} else {
agentBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <pre>
* The agent who made the request.
* </pre>
*
* <code>.chalk.auth.v1.Agent agent = 1 [json_name = "agent"];</code>
*/
public Builder mergeAgent(ai.chalk.protos.chalk.auth.v1.Agent value) {
if (agentBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
agent_ != null &&
agent_ != ai.chalk.protos.chalk.auth.v1.Agent.getDefaultInstance()) {
getAgentBuilder().mergeFrom(value);
} else {
agent_ = value;
}
} else {
agentBuilder_.mergeFrom(value);
}
if (agent_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* <pre>
* The agent who made the request.
* </pre>
*
* <code>.chalk.auth.v1.Agent agent = 1 [json_name = "agent"];</code>
*/
public Builder clearAgent() {
bitField0_ = (bitField0_ & ~0x00000001);
agent_ = null;
if (agentBuilder_ != null) {
agentBuilder_.dispose();
agentBuilder_ = null;
}
onChanged();
return this;
}
/**
* <pre>
* The agent who made the request.
* </pre>
*
* <code>.chalk.auth.v1.Agent agent = 1 [json_name = "agent"];</code>
*/
public ai.chalk.protos.chalk.auth.v1.Agent.Builder getAgentBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getAgentFieldBuilder().getBuilder();
}
/**
* <pre>
* The agent who made the request.
* </pre>
*
* <code>.chalk.auth.v1.Agent agent = 1 [json_name = "agent"];</code>
*/
public ai.chalk.protos.chalk.auth.v1.AgentOrBuilder getAgentOrBuilder() {
if (agentBuilder_ != null) {
return agentBuilder_.getMessageOrBuilder();
} else {
return agent_ == null ?
ai.chalk.protos.chalk.auth.v1.Agent.getDefaultInstance() : agent_;
}
}
/**
* <pre>
* The agent who made the request.
* </pre>
*
* <code>.chalk.auth.v1.Agent agent = 1 [json_name = "agent"];</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.auth.v1.Agent, ai.chalk.protos.chalk.auth.v1.Agent.Builder, ai.chalk.protos.chalk.auth.v1.AgentOrBuilder>
getAgentFieldBuilder() {
if (agentBuilder_ == null) {
agentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.auth.v1.Agent, ai.chalk.protos.chalk.auth.v1.Agent.Builder, ai.chalk.protos.chalk.auth.v1.AgentOrBuilder>(
getAgent(),
getParentForChildren(),
isClean());
agent_ = null;
}
return agentBuilder_;
}
private java.lang.Object description_ = "";
/**
* <pre>
* A description of the request, taken from the service endpoint
* </pre>
*
* <code>optional string description = 2 [json_name = "description"];</code>
* @return Whether the description field is set.
*/
public boolean hasDescription() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* <pre>
* A description of the request, taken from the service endpoint
* </pre>
*
* <code>optional string description = 2 [json_name = "description"];</code>
* @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;
}
}
/**
* <pre>
* A description of the request, taken from the service endpoint
* </pre>
*
* <code>optional string description = 2 [json_name = "description"];</code>
* @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;
}
}
/**
* <pre>
* A description of the request, taken from the service endpoint
* </pre>
*
* <code>optional string description = 2 [json_name = "description"];</code>
* @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_ |= 0x00000002;
onChanged();
return this;
}
/**
* <pre>
* A description of the request, taken from the service endpoint
* </pre>
*
* <code>optional string description = 2 [json_name = "description"];</code>
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* <pre>
* A description of the request, taken from the service endpoint
* </pre>
*
* <code>optional string description = 2 [json_name = "description"];</code>
* @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_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object endpoint_ = "";
/**
* <pre>
* The service endpoint that was called
* </pre>
*
* <code>string endpoint = 3 [json_name = "endpoint"];</code>
* @return The endpoint.
*/
public java.lang.String getEndpoint() {
java.lang.Object ref = endpoint_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
endpoint_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* The service endpoint that was called
* </pre>
*
* <code>string endpoint = 3 [json_name = "endpoint"];</code>
* @return The bytes for endpoint.
*/
public com.google.protobuf.ByteString
getEndpointBytes() {
java.lang.Object ref = endpoint_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
endpoint_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* The service endpoint that was called
* </pre>
*
* <code>string endpoint = 3 [json_name = "endpoint"];</code>
* @param value The endpoint to set.
* @return This builder for chaining.
*/
public Builder setEndpoint(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
endpoint_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* <pre>
* The service endpoint that was called
* </pre>
*
* <code>string endpoint = 3 [json_name = "endpoint"];</code>
* @return This builder for chaining.
*/
public Builder clearEndpoint() {
endpoint_ = getDefaultInstance().getEndpoint();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* <pre>
* The service endpoint that was called
* </pre>
*
* <code>string endpoint = 3 [json_name = "endpoint"];</code>
* @param value The bytes for endpoint to set.
* @return This builder for chaining.
*/
public Builder setEndpointBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
endpoint_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private com.google.protobuf.Timestamp at_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> atBuilder_;
/**
* <pre>
* The time the request was made.
* </pre>
*
* <code>.google.protobuf.Timestamp at = 4 [json_name = "at"];</code>
* @return Whether the at field is set.
*/
public boolean hasAt() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* <pre>
* The time the request was made.
* </pre>
*
* <code>.google.protobuf.Timestamp at = 4 [json_name = "at"];</code>
* @return The at.
*/
public com.google.protobuf.Timestamp getAt() {
if (atBuilder_ == null) {
return at_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : at_;
} else {
return atBuilder_.getMessage();
}
}
/**
* <pre>
* The time the request was made.
* </pre>
*
* <code>.google.protobuf.Timestamp at = 4 [json_name = "at"];</code>
*/
public Builder setAt(com.google.protobuf.Timestamp value) {
if (atBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
at_ = value;
} else {
atBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* <pre>
* The time the request was made.
* </pre>
*
* <code>.google.protobuf.Timestamp at = 4 [json_name = "at"];</code>
*/
public Builder setAt(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (atBuilder_ == null) {
at_ = builderForValue.build();
} else {
atBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* <pre>
* The time the request was made.
* </pre>
*
* <code>.google.protobuf.Timestamp at = 4 [json_name = "at"];</code>
*/
public Builder mergeAt(com.google.protobuf.Timestamp value) {
if (atBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
at_ != null &&
at_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getAtBuilder().mergeFrom(value);
} else {
at_ = value;
}
} else {
atBuilder_.mergeFrom(value);
}
if (at_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
* <pre>
* The time the request was made.
* </pre>
*
* <code>.google.protobuf.Timestamp at = 4 [json_name = "at"];</code>
*/
public Builder clearAt() {
bitField0_ = (bitField0_ & ~0x00000008);
at_ = null;
if (atBuilder_ != null) {
atBuilder_.dispose();
atBuilder_ = null;
}
onChanged();
return this;
}
/**
* <pre>
* The time the request was made.
* </pre>
*
* <code>.google.protobuf.Timestamp at = 4 [json_name = "at"];</code>
*/
public com.google.protobuf.Timestamp.Builder getAtBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getAtFieldBuilder().getBuilder();
}
/**
* <pre>
* The time the request was made.
* </pre>
*
* <code>.google.protobuf.Timestamp at = 4 [json_name = "at"];</code>
*/
public com.google.protobuf.TimestampOrBuilder getAtOrBuilder() {
if (atBuilder_ != null) {
return atBuilder_.getMessageOrBuilder();
} else {
return at_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : at_;
}
}
/**
* <pre>
* The time the request was made.
* </pre>
*
* <code>.google.protobuf.Timestamp at = 4 [json_name = "at"];</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getAtFieldBuilder() {
if (atBuilder_ == null) {
atBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getAt(),
getParentForChildren(),
isClean());
at_ = null;
}
return atBuilder_;
}
private long traceId_ ;
/**
* <pre>
* The trace ID of the request, if available.
* </pre>
*
* <code>optional uint64 trace_id = 5 [json_name = "traceId"];</code>
* @return Whether the traceId field is set.
*/
@java.lang.Override
public boolean hasTraceId() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* <pre>
* The trace ID of the request, if available.
* </pre>
*
* <code>optional uint64 trace_id = 5 [json_name = "traceId"];</code>
* @return The traceId.
*/
@java.lang.Override
public long getTraceId() {
return traceId_;
}
/**
* <pre>
* The trace ID of the request, if available.
* </pre>
*
* <code>optional uint64 trace_id = 5 [json_name = "traceId"];</code>
* @param value The traceId to set.
* @return This builder for chaining.
*/
public Builder setTraceId(long value) {
traceId_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* <pre>
* The trace ID of the request, if available.
* </pre>
*
* <code>optional uint64 trace_id = 5 [json_name = "traceId"];</code>
* @return This builder for chaining.
*/
public Builder clearTraceId() {
bitField0_ = (bitField0_ & ~0x00000010);
traceId_ = 0L;
onChanged();
return this;
}
private int code_ = 0;
/**
* <pre>
* The status of the request.
* </pre>
*
* <code>optional .google.rpc.Code code = 6 [json_name = "code"];</code>
* @return Whether the code field is set.
*/
@java.lang.Override public boolean hasCode() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* <pre>
* The status of the request.
* </pre>
*
* <code>optional .google.rpc.Code code = 6 [json_name = "code"];</code>
* @return The enum numeric value on the wire for code.
*/
@java.lang.Override public int getCodeValue() {
return code_;
}
/**
* <pre>
* The status of the request.
* </pre>
*
* <code>optional .google.rpc.Code code = 6 [json_name = "code"];</code>
* @param value The enum numeric value on the wire for code to set.
* @return This builder for chaining.
*/
public Builder setCodeValue(int value) {
code_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* <pre>
* The status of the request.
* </pre>
*
* <code>optional .google.rpc.Code code = 6 [json_name = "code"];</code>
* @return The code.
*/
@java.lang.Override
public com.google.rpc.Code getCode() {
com.google.rpc.Code result = com.google.rpc.Code.forNumber(code_);
return result == null ? com.google.rpc.Code.UNRECOGNIZED : result;
}
/**
* <pre>
* The status of the request.
* </pre>
*
* <code>optional .google.rpc.Code code = 6 [json_name = "code"];</code>
* @param value The code to set.
* @return This builder for chaining.
*/
public Builder setCode(com.google.rpc.Code value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
code_ = value.getNumber();
onChanged();
return this;
}
/**
* <pre>
* The status of the request.
* </pre>
*
* <code>optional .google.rpc.Code code = 6 [json_name = "code"];</code>
* @return This builder for chaining.
*/
public Builder clearCode() {
bitField0_ = (bitField0_ & ~0x00000020);
code_ = 0;
onChanged();
return this;
}
private static final class RequestConverter implements com.google.protobuf.MapFieldBuilder.Converter<java.lang.String, com.google.protobuf.ValueOrBuilder, com.google.protobuf.Value> {
@java.lang.Override
public com.google.protobuf.Value build(com.google.protobuf.ValueOrBuilder val) {
if (val instanceof com.google.protobuf.Value) { return (com.google.protobuf.Value) val; }
return ((com.google.protobuf.Value.Builder) val).build();
}
@java.lang.Override
public com.google.protobuf.MapEntry<java.lang.String, com.google.protobuf.Value> defaultEntry() {
return RequestDefaultEntryHolder.defaultEntry;
}
};
private static final RequestConverter requestConverter = new RequestConverter();
private com.google.protobuf.MapFieldBuilder<
java.lang.String, com.google.protobuf.ValueOrBuilder, com.google.protobuf.Value, com.google.protobuf.Value.Builder> request_;
private com.google.protobuf.MapFieldBuilder<java.lang.String, com.google.protobuf.ValueOrBuilder, com.google.protobuf.Value, com.google.protobuf.Value.Builder>
internalGetRequest() {
if (request_ == null) {
return new com.google.protobuf.MapFieldBuilder<>(requestConverter);
}
return request_;
}
private com.google.protobuf.MapFieldBuilder<java.lang.String, com.google.protobuf.ValueOrBuilder, com.google.protobuf.Value, com.google.protobuf.Value.Builder>
internalGetMutableRequest() {
if (request_ == null) {
request_ = new com.google.protobuf.MapFieldBuilder<>(requestConverter);
}
bitField0_ |= 0x00000040;
onChanged();
return request_;
}
public int getRequestCount() {
return internalGetRequest().ensureBuilderMap().size();
}
/**
* <pre>
* The serialized request
* </pre>
*
* <code>map<string, .google.protobuf.Value> request = 7 [json_name = "request"];</code>
*/
@java.lang.Override
public boolean containsRequest(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetRequest().ensureBuilderMap().containsKey(key);
}
/**
* Use {@link #getRequestMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map<java.lang.String, com.google.protobuf.Value> getRequest() {
return getRequestMap();
}
/**
* <pre>
* The serialized request
* </pre>
*
* <code>map<string, .google.protobuf.Value> request = 7 [json_name = "request"];</code>
*/
@java.lang.Override
public java.util.Map<java.lang.String, com.google.protobuf.Value> getRequestMap() {
return internalGetRequest().getImmutableMap();
}
/**
* <pre>
* The serialized request
* </pre>
*
* <code>map<string, .google.protobuf.Value> request = 7 [json_name = "request"];</code>
*/
@java.lang.Override
public /* nullable */
com.google.protobuf.Value getRequestOrDefault(
java.lang.String key,
/* nullable */
com.google.protobuf.Value defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, com.google.protobuf.ValueOrBuilder> map = internalGetMutableRequest().ensureBuilderMap();
return map.containsKey(key) ? requestConverter.build(map.get(key)) : defaultValue;
}
/**
* <pre>
* The serialized request
* </pre>
*
* <code>map<string, .google.protobuf.Value> request = 7 [json_name = "request"];</code>
*/
@java.lang.Override
public com.google.protobuf.Value getRequestOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, com.google.protobuf.ValueOrBuilder> map = internalGetMutableRequest().ensureBuilderMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return requestConverter.build(map.get(key));
}
public Builder clearRequest() {
bitField0_ = (bitField0_ & ~0x00000040);
internalGetMutableRequest().clear();
return this;
}
/**
* <pre>
* The serialized request
* </pre>
*
* <code>map<string, .google.protobuf.Value> request = 7 [json_name = "request"];</code>
*/
public Builder removeRequest(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableRequest().ensureBuilderMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map<java.lang.String, com.google.protobuf.Value>
getMutableRequest() {
bitField0_ |= 0x00000040;
return internalGetMutableRequest().ensureMessageMap();
}
/**
* <pre>
* The serialized request
* </pre>
*
* <code>map<string, .google.protobuf.Value> request = 7 [json_name = "request"];</code>
*/
public Builder putRequest(
java.lang.String key,
com.google.protobuf.Value value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) { throw new NullPointerException("map value"); }
internalGetMutableRequest().ensureBuilderMap()
.put(key, value);
bitField0_ |= 0x00000040;
return this;
}
/**
* <pre>
* The serialized request
* </pre>
*
* <code>map<string, .google.protobuf.Value> request = 7 [json_name = "request"];</code>
*/
public Builder putAllRequest(
java.util.Map<java.lang.String, com.google.protobuf.Value> values) {
for (java.util.Map.Entry<java.lang.String, com.google.protobuf.Value> e : values.entrySet()) {
if (e.getKey() == null || e.getValue() == null) {
throw new NullPointerException();
}
}
internalGetMutableRequest().ensureBuilderMap()
.putAll(values);
bitField0_ |= 0x00000040;
return this;
}
/**
* <pre>
* The serialized request
* </pre>
*
* <code>map<string, .google.protobuf.Value> request = 7 [json_name = "request"];</code>
*/
public com.google.protobuf.Value.Builder putRequestBuilderIfAbsent(
java.lang.String key) {
java.util.Map<java.lang.String, com.google.protobuf.ValueOrBuilder> builderMap = internalGetMutableRequest().ensureBuilderMap();
com.google.protobuf.ValueOrBuilder entry = builderMap.get(key);
if (entry == null) {
entry = com.google.protobuf.Value.newBuilder();
builderMap.put(key, entry);
}
if (entry instanceof com.google.protobuf.Value) {
entry = ((com.google.protobuf.Value) entry).toBuilder();
builderMap.put(key, entry);
}
return (com.google.protobuf.Value.Builder) entry;
}
private static final class ResponseConverter implements com.google.protobuf.MapFieldBuilder.Converter<java.lang.String, com.google.protobuf.ValueOrBuilder, com.google.protobuf.Value> {
@java.lang.Override
public com.google.protobuf.Value build(com.google.protobuf.ValueOrBuilder val) {
if (val instanceof com.google.protobuf.Value) { return (com.google.protobuf.Value) val; }
return ((com.google.protobuf.Value.Builder) val).build();
}
@java.lang.Override
public com.google.protobuf.MapEntry<java.lang.String, com.google.protobuf.Value> defaultEntry() {
return ResponseDefaultEntryHolder.defaultEntry;
}
};
private static final ResponseConverter responseConverter = new ResponseConverter();
private com.google.protobuf.MapFieldBuilder<
java.lang.String, com.google.protobuf.ValueOrBuilder, com.google.protobuf.Value, com.google.protobuf.Value.Builder> response_;
private com.google.protobuf.MapFieldBuilder<java.lang.String, com.google.protobuf.ValueOrBuilder, com.google.protobuf.Value, com.google.protobuf.Value.Builder>
internalGetResponse() {
if (response_ == null) {
return new com.google.protobuf.MapFieldBuilder<>(responseConverter);
}
return response_;
}
private com.google.protobuf.MapFieldBuilder<java.lang.String, com.google.protobuf.ValueOrBuilder, com.google.protobuf.Value, com.google.protobuf.Value.Builder>
internalGetMutableResponse() {
if (response_ == null) {
response_ = new com.google.protobuf.MapFieldBuilder<>(responseConverter);
}
bitField0_ |= 0x00000080;
onChanged();
return response_;
}
public int getResponseCount() {
return internalGetResponse().ensureBuilderMap().size();
}
/**
* <pre>
* The serialized response
* </pre>
*
* <code>map<string, .google.protobuf.Value> response = 8 [json_name = "response"];</code>
*/
@java.lang.Override
public boolean containsResponse(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetResponse().ensureBuilderMap().containsKey(key);
}
/**
* Use {@link #getResponseMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map<java.lang.String, com.google.protobuf.Value> getResponse() {
return getResponseMap();
}
/**
* <pre>
* The serialized response
* </pre>
*
* <code>map<string, .google.protobuf.Value> response = 8 [json_name = "response"];</code>
*/
@java.lang.Override
public java.util.Map<java.lang.String, com.google.protobuf.Value> getResponseMap() {
return internalGetResponse().getImmutableMap();
}
/**
* <pre>
* The serialized response
* </pre>
*
* <code>map<string, .google.protobuf.Value> response = 8 [json_name = "response"];</code>
*/
@java.lang.Override
public /* nullable */
com.google.protobuf.Value getResponseOrDefault(
java.lang.String key,
/* nullable */
com.google.protobuf.Value defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, com.google.protobuf.ValueOrBuilder> map = internalGetMutableResponse().ensureBuilderMap();
return map.containsKey(key) ? responseConverter.build(map.get(key)) : defaultValue;
}
/**
* <pre>
* The serialized response
* </pre>
*
* <code>map<string, .google.protobuf.Value> response = 8 [json_name = "response"];</code>
*/
@java.lang.Override
public com.google.protobuf.Value getResponseOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, com.google.protobuf.ValueOrBuilder> map = internalGetMutableResponse().ensureBuilderMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return responseConverter.build(map.get(key));
}
public Builder clearResponse() {
bitField0_ = (bitField0_ & ~0x00000080);
internalGetMutableResponse().clear();
return this;
}
/**
* <pre>
* The serialized response
* </pre>
*
* <code>map<string, .google.protobuf.Value> response = 8 [json_name = "response"];</code>
*/
public Builder removeResponse(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableResponse().ensureBuilderMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map<java.lang.String, com.google.protobuf.Value>
getMutableResponse() {
bitField0_ |= 0x00000080;
return internalGetMutableResponse().ensureMessageMap();
}
/**
* <pre>
* The serialized response
* </pre>
*
* <code>map<string, .google.protobuf.Value> response = 8 [json_name = "response"];</code>
*/
public Builder putResponse(
java.lang.String key,
com.google.protobuf.Value value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) { throw new NullPointerException("map value"); }
internalGetMutableResponse().ensureBuilderMap()
.put(key, value);
bitField0_ |= 0x00000080;
return this;
}
/**
* <pre>
* The serialized response
* </pre>
*
* <code>map<string, .google.protobuf.Value> response = 8 [json_name = "response"];</code>
*/
public Builder putAllResponse(
java.util.Map<java.lang.String, com.google.protobuf.Value> values) {
for (java.util.Map.Entry<java.lang.String, com.google.protobuf.Value> e : values.entrySet()) {
if (e.getKey() == null || e.getValue() == null) {
throw new NullPointerException();
}
}
internalGetMutableResponse().ensureBuilderMap()
.putAll(values);
bitField0_ |= 0x00000080;
return this;
}
/**
* <pre>
* The serialized response
* </pre>
*
* <code>map<string, .google.protobuf.Value> response = 8 [json_name = "response"];</code>
*/
public com.google.protobuf.Value.Builder putResponseBuilderIfAbsent(
java.lang.String key) {
java.util.Map<java.lang.String, com.google.protobuf.ValueOrBuilder> builderMap = internalGetMutableResponse().ensureBuilderMap();
com.google.protobuf.ValueOrBuilder entry = builderMap.get(key);
if (entry == null) {
entry = com.google.protobuf.Value.newBuilder();
builderMap.put(key, entry);
}
if (entry instanceof com.google.protobuf.Value) {
entry = ((com.google.protobuf.Value) entry).toBuilder();
builderMap.put(key, entry);
}
return (com.google.protobuf.Value.Builder) entry;
}
private java.lang.Object ip_ = "";
/**
* <pre>
* The IP address of the client
* </pre>
*
* <code>optional string ip = 9 [json_name = "ip"];</code>
* @return Whether the ip field is set.
*/
public boolean hasIp() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* <pre>
* The IP address of the client
* </pre>
*
* <code>optional string ip = 9 [json_name = "ip"];</code>
* @return The ip.
*/
public java.lang.String getIp() {
java.lang.Object ref = ip_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
ip_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* The IP address of the client
* </pre>
*
* <code>optional string ip = 9 [json_name = "ip"];</code>
* @return The bytes for ip.
*/
public com.google.protobuf.ByteString
getIpBytes() {
java.lang.Object ref = ip_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
ip_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* The IP address of the client
* </pre>
*
* <code>optional string ip = 9 [json_name = "ip"];</code>
* @param value The ip to set.
* @return This builder for chaining.
*/
public Builder setIp(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ip_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
* <pre>
* The IP address of the client
* </pre>
*
* <code>optional string ip = 9 [json_name = "ip"];</code>
* @return This builder for chaining.
*/
public Builder clearIp() {
ip_ = getDefaultInstance().getIp();
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
/**
* <pre>
* The IP address of the client
* </pre>
*
* <code>optional string ip = 9 [json_name = "ip"];</code>
* @param value The bytes for ip to set.
* @return This builder for chaining.
*/
public Builder setIpBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ip_ = value;
bitField0_ |= 0x00000100;
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:chalk.server.v1.AuditLog)
}
// @@protoc_insertion_point(class_scope:chalk.server.v1.AuditLog)
private static final ai.chalk.protos.chalk.server.v1.AuditLog DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.server.v1.AuditLog();
}
public static ai.chalk.protos.chalk.server.v1.AuditLog getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<AuditLog>
PARSER = new com.google.protobuf.AbstractParser<AuditLog>() {
@java.lang.Override
public AuditLog 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<AuditLog> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<AuditLog> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.AuditLog getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/AuditLogOrBuilder.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/audit.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
public interface AuditLogOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.server.v1.AuditLog)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* The agent who made the request.
* </pre>
*
* <code>.chalk.auth.v1.Agent agent = 1 [json_name = "agent"];</code>
* @return Whether the agent field is set.
*/
boolean hasAgent();
/**
* <pre>
* The agent who made the request.
* </pre>
*
* <code>.chalk.auth.v1.Agent agent = 1 [json_name = "agent"];</code>
* @return The agent.
*/
ai.chalk.protos.chalk.auth.v1.Agent getAgent();
/**
* <pre>
* The agent who made the request.
* </pre>
*
* <code>.chalk.auth.v1.Agent agent = 1 [json_name = "agent"];</code>
*/
ai.chalk.protos.chalk.auth.v1.AgentOrBuilder getAgentOrBuilder();
/**
* <pre>
* A description of the request, taken from the service endpoint
* </pre>
*
* <code>optional string description = 2 [json_name = "description"];</code>
* @return Whether the description field is set.
*/
boolean hasDescription();
/**
* <pre>
* A description of the request, taken from the service endpoint
* </pre>
*
* <code>optional string description = 2 [json_name = "description"];</code>
* @return The description.
*/
java.lang.String getDescription();
/**
* <pre>
* A description of the request, taken from the service endpoint
* </pre>
*
* <code>optional string description = 2 [json_name = "description"];</code>
* @return The bytes for description.
*/
com.google.protobuf.ByteString
getDescriptionBytes();
/**
* <pre>
* The service endpoint that was called
* </pre>
*
* <code>string endpoint = 3 [json_name = "endpoint"];</code>
* @return The endpoint.
*/
java.lang.String getEndpoint();
/**
* <pre>
* The service endpoint that was called
* </pre>
*
* <code>string endpoint = 3 [json_name = "endpoint"];</code>
* @return The bytes for endpoint.
*/
com.google.protobuf.ByteString
getEndpointBytes();
/**
* <pre>
* The time the request was made.
* </pre>
*
* <code>.google.protobuf.Timestamp at = 4 [json_name = "at"];</code>
* @return Whether the at field is set.
*/
boolean hasAt();
/**
* <pre>
* The time the request was made.
* </pre>
*
* <code>.google.protobuf.Timestamp at = 4 [json_name = "at"];</code>
* @return The at.
*/
com.google.protobuf.Timestamp getAt();
/**
* <pre>
* The time the request was made.
* </pre>
*
* <code>.google.protobuf.Timestamp at = 4 [json_name = "at"];</code>
*/
com.google.protobuf.TimestampOrBuilder getAtOrBuilder();
/**
* <pre>
* The trace ID of the request, if available.
* </pre>
*
* <code>optional uint64 trace_id = 5 [json_name = "traceId"];</code>
* @return Whether the traceId field is set.
*/
boolean hasTraceId();
/**
* <pre>
* The trace ID of the request, if available.
* </pre>
*
* <code>optional uint64 trace_id = 5 [json_name = "traceId"];</code>
* @return The traceId.
*/
long getTraceId();
/**
* <pre>
* The status of the request.
* </pre>
*
* <code>optional .google.rpc.Code code = 6 [json_name = "code"];</code>
* @return Whether the code field is set.
*/
boolean hasCode();
/**
* <pre>
* The status of the request.
* </pre>
*
* <code>optional .google.rpc.Code code = 6 [json_name = "code"];</code>
* @return The enum numeric value on the wire for code.
*/
int getCodeValue();
/**
* <pre>
* The status of the request.
* </pre>
*
* <code>optional .google.rpc.Code code = 6 [json_name = "code"];</code>
* @return The code.
*/
com.google.rpc.Code getCode();
/**
* <pre>
* The serialized request
* </pre>
*
* <code>map<string, .google.protobuf.Value> request = 7 [json_name = "request"];</code>
*/
int getRequestCount();
/**
* <pre>
* The serialized request
* </pre>
*
* <code>map<string, .google.protobuf.Value> request = 7 [json_name = "request"];</code>
*/
boolean containsRequest(
java.lang.String key);
/**
* Use {@link #getRequestMap()} instead.
*/
@java.lang.Deprecated
java.util.Map<java.lang.String, com.google.protobuf.Value>
getRequest();
/**
* <pre>
* The serialized request
* </pre>
*
* <code>map<string, .google.protobuf.Value> request = 7 [json_name = "request"];</code>
*/
java.util.Map<java.lang.String, com.google.protobuf.Value>
getRequestMap();
/**
* <pre>
* The serialized request
* </pre>
*
* <code>map<string, .google.protobuf.Value> request = 7 [json_name = "request"];</code>
*/
/* nullable */
com.google.protobuf.Value getRequestOrDefault(
java.lang.String key,
/* nullable */
com.google.protobuf.Value defaultValue);
/**
* <pre>
* The serialized request
* </pre>
*
* <code>map<string, .google.protobuf.Value> request = 7 [json_name = "request"];</code>
*/
com.google.protobuf.Value getRequestOrThrow(
java.lang.String key);
/**
* <pre>
* The serialized response
* </pre>
*
* <code>map<string, .google.protobuf.Value> response = 8 [json_name = "response"];</code>
*/
int getResponseCount();
/**
* <pre>
* The serialized response
* </pre>
*
* <code>map<string, .google.protobuf.Value> response = 8 [json_name = "response"];</code>
*/
boolean containsResponse(
java.lang.String key);
/**
* Use {@link #getResponseMap()} instead.
*/
@java.lang.Deprecated
java.util.Map<java.lang.String, com.google.protobuf.Value>
getResponse();
/**
* <pre>
* The serialized response
* </pre>
*
* <code>map<string, .google.protobuf.Value> response = 8 [json_name = "response"];</code>
*/
java.util.Map<java.lang.String, com.google.protobuf.Value>
getResponseMap();
/**
* <pre>
* The serialized response
* </pre>
*
* <code>map<string, .google.protobuf.Value> response = 8 [json_name = "response"];</code>
*/
/* nullable */
com.google.protobuf.Value getResponseOrDefault(
java.lang.String key,
/* nullable */
com.google.protobuf.Value defaultValue);
/**
* <pre>
* The serialized response
* </pre>
*
* <code>map<string, .google.protobuf.Value> response = 8 [json_name = "response"];</code>
*/
com.google.protobuf.Value getResponseOrThrow(
java.lang.String key);
/**
* <pre>
* The IP address of the client
* </pre>
*
* <code>optional string ip = 9 [json_name = "ip"];</code>
* @return Whether the ip field is set.
*/
boolean hasIp();
/**
* <pre>
* The IP address of the client
* </pre>
*
* <code>optional string ip = 9 [json_name = "ip"];</code>
* @return The ip.
*/
java.lang.String getIp();
/**
* <pre>
* The IP address of the client
* </pre>
*
* <code>optional string ip = 9 [json_name = "ip"];</code>
* @return The bytes for ip.
*/
com.google.protobuf.ByteString
getIpBytes();
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/AuditProto.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/audit.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
public final class AuditProto {
private AuditProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_AuditLog_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_AuditLog_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_AuditLog_RequestEntry_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_AuditLog_RequestEntry_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_AuditLog_ResponseEntry_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_AuditLog_ResponseEntry_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_GetAuditLogsRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_GetAuditLogsRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_GetAuditLogsResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_GetAuditLogsResponse_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\033chalk/server/v1/audit.proto\022\017chalk.ser" +
"ver.v1\032\031chalk/auth/v1/agent.proto\032\037chalk" +
"/auth/v1/permissions.proto\032\034google/proto" +
"buf/struct.proto\032\037google/protobuf/timest" +
"amp.proto\032\025google/rpc/code.proto\"\342\004\n\010Aud" +
"itLog\022*\n\005agent\030\001 \001(\0132\024.chalk.auth.v1.Age" +
"ntR\005agent\022%\n\013description\030\002 \001(\tH\000R\013descri" +
"ption\210\001\001\022\032\n\010endpoint\030\003 \001(\tR\010endpoint\022*\n\002" +
"at\030\004 \001(\0132\032.google.protobuf.TimestampR\002at" +
"\022\036\n\010trace_id\030\005 \001(\004H\001R\007traceId\210\001\001\022)\n\004code" +
"\030\006 \001(\0162\020.google.rpc.CodeH\002R\004code\210\001\001\022@\n\007r" +
"equest\030\007 \003(\0132&.chalk.server.v1.AuditLog." +
"RequestEntryR\007request\022C\n\010response\030\010 \003(\0132" +
"\'.chalk.server.v1.AuditLog.ResponseEntry" +
"R\010response\022\023\n\002ip\030\t \001(\tH\003R\002ip\210\001\001\032R\n\014Reque" +
"stEntry\022\020\n\003key\030\001 \001(\tR\003key\022,\n\005value\030\002 \001(\013" +
"2\026.google.protobuf.ValueR\005value:\0028\001\032S\n\rR" +
"esponseEntry\022\020\n\003key\030\001 \001(\tR\003key\022,\n\005value\030" +
"\002 \001(\0132\026.google.protobuf.ValueR\005value:\0028\001" +
"B\016\n\014_descriptionB\013\n\t_trace_idB\007\n\005_codeB\005" +
"\n\003_ip\"\025\n\023GetAuditLogsRequest\"E\n\024GetAudit" +
"LogsResponse\022-\n\004logs\030\001 \003(\0132\031.chalk.serve" +
"r.v1.AuditLogR\004logs2p\n\014AuditService\022`\n\014G" +
"etAuditLogs\022$.chalk.server.v1.GetAuditLo" +
"gsRequest\032%.chalk.server.v1.GetAuditLogs" +
"Response\"\003\200}\006B\237\001\n\037ai.chalk.protos.chalk." +
"server.v1B\nAuditProtoP\001Z\022server/v1;serve" +
"rv1\242\002\003CSX\252\002\017Chalk.Server.V1\312\002\017Chalk\\Serv" +
"er\\V1\342\002\033Chalk\\Server\\V1\\GPBMetadata\352\002\021Ch" +
"alk::Server::V1b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
ai.chalk.protos.chalk.auth.v1.AgentProto.getDescriptor(),
ai.chalk.protos.chalk.auth.v1.PermissionsProto.getDescriptor(),
com.google.protobuf.StructProto.getDescriptor(),
com.google.protobuf.TimestampProto.getDescriptor(),
com.google.rpc.CodeProto.getDescriptor(),
});
internal_static_chalk_server_v1_AuditLog_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_chalk_server_v1_AuditLog_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_AuditLog_descriptor,
new java.lang.String[] { "Agent", "Description", "Endpoint", "At", "TraceId", "Code", "Request", "Response", "Ip", });
internal_static_chalk_server_v1_AuditLog_RequestEntry_descriptor =
internal_static_chalk_server_v1_AuditLog_descriptor.getNestedTypes().get(0);
internal_static_chalk_server_v1_AuditLog_RequestEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_AuditLog_RequestEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_chalk_server_v1_AuditLog_ResponseEntry_descriptor =
internal_static_chalk_server_v1_AuditLog_descriptor.getNestedTypes().get(1);
internal_static_chalk_server_v1_AuditLog_ResponseEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_AuditLog_ResponseEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_chalk_server_v1_GetAuditLogsRequest_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_chalk_server_v1_GetAuditLogsRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_GetAuditLogsRequest_descriptor,
new java.lang.String[] { });
internal_static_chalk_server_v1_GetAuditLogsResponse_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_chalk_server_v1_GetAuditLogsResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_GetAuditLogsResponse_descriptor,
new java.lang.String[] { "Logs", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(ai.chalk.protos.chalk.auth.v1.PermissionsProto.permission);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
ai.chalk.protos.chalk.auth.v1.AgentProto.getDescriptor();
ai.chalk.protos.chalk.auth.v1.PermissionsProto.getDescriptor();
com.google.protobuf.StructProto.getDescriptor();
com.google.protobuf.TimestampProto.getDescriptor();
com.google.rpc.CodeProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/AuditServiceGrpc.java
|
package ai.chalk.protos.chalk.server.v1;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.64.0)",
comments = "Source: chalk/server/v1/audit.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class AuditServiceGrpc {
private AuditServiceGrpc() {}
public static final java.lang.String SERVICE_NAME = "chalk.server.v1.AuditService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetAuditLogsRequest,
ai.chalk.protos.chalk.server.v1.GetAuditLogsResponse> getGetAuditLogsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetAuditLogs",
requestType = ai.chalk.protos.chalk.server.v1.GetAuditLogsRequest.class,
responseType = ai.chalk.protos.chalk.server.v1.GetAuditLogsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetAuditLogsRequest,
ai.chalk.protos.chalk.server.v1.GetAuditLogsResponse> getGetAuditLogsMethod() {
io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetAuditLogsRequest, ai.chalk.protos.chalk.server.v1.GetAuditLogsResponse> getGetAuditLogsMethod;
if ((getGetAuditLogsMethod = AuditServiceGrpc.getGetAuditLogsMethod) == null) {
synchronized (AuditServiceGrpc.class) {
if ((getGetAuditLogsMethod = AuditServiceGrpc.getGetAuditLogsMethod) == null) {
AuditServiceGrpc.getGetAuditLogsMethod = getGetAuditLogsMethod =
io.grpc.MethodDescriptor.<ai.chalk.protos.chalk.server.v1.GetAuditLogsRequest, ai.chalk.protos.chalk.server.v1.GetAuditLogsResponse>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAuditLogs"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.GetAuditLogsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.GetAuditLogsResponse.getDefaultInstance()))
.setSchemaDescriptor(new AuditServiceMethodDescriptorSupplier("GetAuditLogs"))
.build();
}
}
}
return getGetAuditLogsMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static AuditServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<AuditServiceStub> factory =
new io.grpc.stub.AbstractStub.StubFactory<AuditServiceStub>() {
@java.lang.Override
public AuditServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AuditServiceStub(channel, callOptions);
}
};
return AuditServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static AuditServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<AuditServiceBlockingStub> factory =
new io.grpc.stub.AbstractStub.StubFactory<AuditServiceBlockingStub>() {
@java.lang.Override
public AuditServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AuditServiceBlockingStub(channel, callOptions);
}
};
return AuditServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static AuditServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<AuditServiceFutureStub> factory =
new io.grpc.stub.AbstractStub.StubFactory<AuditServiceFutureStub>() {
@java.lang.Override
public AuditServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AuditServiceFutureStub(channel, callOptions);
}
};
return AuditServiceFutureStub.newStub(factory, channel);
}
/**
*/
public interface AsyncService {
/**
*/
default void getAuditLogs(ai.chalk.protos.chalk.server.v1.GetAuditLogsRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetAuditLogsResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAuditLogsMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service AuditService.
*/
public static abstract class AuditServiceImplBase
implements io.grpc.BindableService, AsyncService {
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return AuditServiceGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service AuditService.
*/
public static final class AuditServiceStub
extends io.grpc.stub.AbstractAsyncStub<AuditServiceStub> {
private AuditServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected AuditServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AuditServiceStub(channel, callOptions);
}
/**
*/
public void getAuditLogs(ai.chalk.protos.chalk.server.v1.GetAuditLogsRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetAuditLogsResponse> responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetAuditLogsMethod(), getCallOptions()), request, responseObserver);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service AuditService.
*/
public static final class AuditServiceBlockingStub
extends io.grpc.stub.AbstractBlockingStub<AuditServiceBlockingStub> {
private AuditServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected AuditServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AuditServiceBlockingStub(channel, callOptions);
}
/**
*/
public ai.chalk.protos.chalk.server.v1.GetAuditLogsResponse getAuditLogs(ai.chalk.protos.chalk.server.v1.GetAuditLogsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetAuditLogsMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service AuditService.
*/
public static final class AuditServiceFutureStub
extends io.grpc.stub.AbstractFutureStub<AuditServiceFutureStub> {
private AuditServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected AuditServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AuditServiceFutureStub(channel, callOptions);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<ai.chalk.protos.chalk.server.v1.GetAuditLogsResponse> getAuditLogs(
ai.chalk.protos.chalk.server.v1.GetAuditLogsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetAuditLogsMethod(), getCallOptions()), request);
}
}
private static final int METHODID_GET_AUDIT_LOGS = 0;
private static final class MethodHandlers<Req, Resp> implements
io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
private final AsyncService serviceImpl;
private final int methodId;
MethodHandlers(AsyncService serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
switch (methodId) {
case METHODID_GET_AUDIT_LOGS:
serviceImpl.getAuditLogs((ai.chalk.protos.chalk.server.v1.GetAuditLogsRequest) request,
(io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetAuditLogsResponse>) responseObserver);
break;
default:
throw new AssertionError();
}
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public io.grpc.stub.StreamObserver<Req> invoke(
io.grpc.stub.StreamObserver<Resp> responseObserver) {
switch (methodId) {
default:
throw new AssertionError();
}
}
}
public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getGetAuditLogsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
ai.chalk.protos.chalk.server.v1.GetAuditLogsRequest,
ai.chalk.protos.chalk.server.v1.GetAuditLogsResponse>(
service, METHODID_GET_AUDIT_LOGS)))
.build();
}
private static abstract class AuditServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
AuditServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return ai.chalk.protos.chalk.server.v1.AuditProto.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("AuditService");
}
}
private static final class AuditServiceFileDescriptorSupplier
extends AuditServiceBaseDescriptorSupplier {
AuditServiceFileDescriptorSupplier() {}
}
private static final class AuditServiceMethodDescriptorSupplier
extends AuditServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final java.lang.String methodName;
AuditServiceMethodDescriptorSupplier(java.lang.String methodName) {
this.methodName = methodName;
}
@java.lang.Override
public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
return getServiceDescriptor().findMethodByName(methodName);
}
}
private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
public static io.grpc.ServiceDescriptor getServiceDescriptor() {
io.grpc.ServiceDescriptor result = serviceDescriptor;
if (result == null) {
synchronized (AuditServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new AuditServiceFileDescriptorSupplier())
.addMethod(getGetAuditLogsMethod())
.build();
}
}
}
return result;
}
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/AuthProto.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/auth.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
public final class AuthProto {
private AuthProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_GetTokenRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_GetTokenRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_GetTokenResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_GetTokenResponse_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_GetTokenResponse_EnginesEntry_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_GetTokenResponse_EnginesEntry_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_GetTokenResponse_GrpcEnginesEntry_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_GetTokenResponse_GrpcEnginesEntry_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_GetTokenResponse_EnvironmentIdToNameEntry_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_GetTokenResponse_EnvironmentIdToNameEntry_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_UpdateLinkSessionRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_UpdateLinkSessionRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_UpdateLinkSessionResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_UpdateLinkSessionResponse_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\032chalk/server/v1/auth.proto\022\017chalk.serv" +
"er.v1\032\031chalk/auth/v1/audit.proto\032\037chalk/" +
"auth/v1/permissions.proto\032\032chalk/server/" +
"v1/link.proto\032\036chalk/utils/v1/sensitive." +
"proto\032 google/protobuf/descriptor.proto\032" +
"\037google/protobuf/timestamp.proto\"\235\001\n\017Get" +
"TokenRequest\022\033\n\tclient_id\030\001 \001(\tR\010clientI" +
"d\022)\n\rclient_secret\030\002 \001(\tB\004\330\241\'\001R\014clientSe" +
"cret\022\035\n\ngrant_type\030\003 \001(\tR\tgrantType\022\031\n\005s" +
"cope\030\004 \001(\tH\000R\005scope\210\001\001B\010\n\006_scope\"\367\005\n\020Get" +
"TokenResponse\022\'\n\014access_token\030\001 \001(\tB\004\330\241\'" +
"\001R\013accessToken\022\035\n\ntoken_type\030\002 \001(\tR\ttoke" +
"nType\022\035\n\nexpires_in\030\003 \001(\005R\texpiresIn\0229\n\n" +
"expires_at\030\004 \001(\0132\032.google.protobuf.Times" +
"tampR\texpiresAt\022\035\n\napi_server\030\005 \001(\tR\tapi" +
"Server\0224\n\023primary_environment\030\006 \001(\tH\000R\022p" +
"rimaryEnvironment\210\001\001\022H\n\007engines\030\007 \003(\0132.." +
"chalk.server.v1.GetTokenResponse.Engines" +
"EntryR\007engines\022U\n\014grpc_engines\030\010 \003(\01322.c" +
"halk.server.v1.GetTokenResponse.GrpcEngi" +
"nesEntryR\013grpcEngines\022o\n\026environment_id_" +
"to_name\030\t \003(\0132:.chalk.server.v1.GetToken" +
"Response.EnvironmentIdToNameEntryR\023envir" +
"onmentIdToName\032:\n\014EnginesEntry\022\020\n\003key\030\001 " +
"\001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005value:\0028\001\032>\n\020Gr" +
"pcEnginesEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005valu" +
"e\030\002 \001(\tR\005value:\0028\001\032F\n\030EnvironmentIdToNam" +
"eEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR" +
"\005value:\0028\001B\026\n\024_primary_environment\"j\n\030Up" +
"dateLinkSessionRequest\022\026\n\006status\030\001 \001(\tR\006" +
"status\022\027\n\007user_id\030\002 \001(\tR\006userId\022\035\n\nsessi" +
"on_id\030\003 \001(\tR\tsessionId\"+\n\031UpdateLinkSess" +
"ionResponse\022\016\n\002id\030\001 \001(\tR\002id2\277\003\n\013AuthServ" +
"ice\022Z\n\010GetToken\022 .chalk.server.v1.GetTok" +
"enRequest\032!.chalk.server.v1.GetTokenResp" +
"onse\"\t\200}\001\212\323\016\002\010\001\022u\n\021CreateLinkSession\022).c" +
"halk.server.v1.CreateLinkSessionRequest\032" +
"*.chalk.server.v1.CreateLinkSessionRespo" +
"nse\"\t\200}\001\212\323\016\002\010\001\022f\n\016GetLinkSession\022&.chalk" +
".server.v1.GetLinkSessionRequest\032\'.chalk" +
".server.v1.GetLinkSessionResponse\"\003\200}\001\022u" +
"\n\021UpdateLinkSession\022).chalk.server.v1.Up" +
"dateLinkSessionRequest\032*.chalk.server.v1" +
".UpdateLinkSessionResponse\"\t\200}\001\212\323\016\002\010\001B\236\001" +
"\n\037ai.chalk.protos.chalk.server.v1B\tAuthP" +
"rotoP\001Z\022server/v1;serverv1\242\002\003CSX\252\002\017Chalk" +
".Server.V1\312\002\017Chalk\\Server\\V1\342\002\033Chalk\\Ser" +
"ver\\V1\\GPBMetadata\352\002\021Chalk::Server::V1b\006" +
"proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
ai.chalk.protos.chalk.auth.v1.AuditProto.getDescriptor(),
ai.chalk.protos.chalk.auth.v1.PermissionsProto.getDescriptor(),
ai.chalk.protos.chalk.server.v1.LinkProto.getDescriptor(),
ai.chalk.protos.chalk.utils.v1.SensitiveProto.getDescriptor(),
com.google.protobuf.DescriptorProtos.getDescriptor(),
com.google.protobuf.TimestampProto.getDescriptor(),
});
internal_static_chalk_server_v1_GetTokenRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_chalk_server_v1_GetTokenRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_GetTokenRequest_descriptor,
new java.lang.String[] { "ClientId", "ClientSecret", "GrantType", "Scope", });
internal_static_chalk_server_v1_GetTokenResponse_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_chalk_server_v1_GetTokenResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_GetTokenResponse_descriptor,
new java.lang.String[] { "AccessToken", "TokenType", "ExpiresIn", "ExpiresAt", "ApiServer", "PrimaryEnvironment", "Engines", "GrpcEngines", "EnvironmentIdToName", });
internal_static_chalk_server_v1_GetTokenResponse_EnginesEntry_descriptor =
internal_static_chalk_server_v1_GetTokenResponse_descriptor.getNestedTypes().get(0);
internal_static_chalk_server_v1_GetTokenResponse_EnginesEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_GetTokenResponse_EnginesEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_chalk_server_v1_GetTokenResponse_GrpcEnginesEntry_descriptor =
internal_static_chalk_server_v1_GetTokenResponse_descriptor.getNestedTypes().get(1);
internal_static_chalk_server_v1_GetTokenResponse_GrpcEnginesEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_GetTokenResponse_GrpcEnginesEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_chalk_server_v1_GetTokenResponse_EnvironmentIdToNameEntry_descriptor =
internal_static_chalk_server_v1_GetTokenResponse_descriptor.getNestedTypes().get(2);
internal_static_chalk_server_v1_GetTokenResponse_EnvironmentIdToNameEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_GetTokenResponse_EnvironmentIdToNameEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_chalk_server_v1_UpdateLinkSessionRequest_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_chalk_server_v1_UpdateLinkSessionRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_UpdateLinkSessionRequest_descriptor,
new java.lang.String[] { "Status", "UserId", "SessionId", });
internal_static_chalk_server_v1_UpdateLinkSessionResponse_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_chalk_server_v1_UpdateLinkSessionResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_UpdateLinkSessionResponse_descriptor,
new java.lang.String[] { "Id", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(ai.chalk.protos.chalk.auth.v1.AuditProto.audit);
registry.add(ai.chalk.protos.chalk.auth.v1.PermissionsProto.permission);
registry.add(ai.chalk.protos.chalk.utils.v1.SensitiveProto.sensitive);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
ai.chalk.protos.chalk.auth.v1.AuditProto.getDescriptor();
ai.chalk.protos.chalk.auth.v1.PermissionsProto.getDescriptor();
ai.chalk.protos.chalk.server.v1.LinkProto.getDescriptor();
ai.chalk.protos.chalk.utils.v1.SensitiveProto.getDescriptor();
com.google.protobuf.DescriptorProtos.getDescriptor();
com.google.protobuf.TimestampProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/AuthServiceGrpc.java
|
package ai.chalk.protos.chalk.server.v1;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.64.0)",
comments = "Source: chalk/server/v1/auth.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class AuthServiceGrpc {
private AuthServiceGrpc() {}
public static final java.lang.String SERVICE_NAME = "chalk.server.v1.AuthService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetTokenRequest,
ai.chalk.protos.chalk.server.v1.GetTokenResponse> getGetTokenMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetToken",
requestType = ai.chalk.protos.chalk.server.v1.GetTokenRequest.class,
responseType = ai.chalk.protos.chalk.server.v1.GetTokenResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetTokenRequest,
ai.chalk.protos.chalk.server.v1.GetTokenResponse> getGetTokenMethod() {
io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetTokenRequest, ai.chalk.protos.chalk.server.v1.GetTokenResponse> getGetTokenMethod;
if ((getGetTokenMethod = AuthServiceGrpc.getGetTokenMethod) == null) {
synchronized (AuthServiceGrpc.class) {
if ((getGetTokenMethod = AuthServiceGrpc.getGetTokenMethod) == null) {
AuthServiceGrpc.getGetTokenMethod = getGetTokenMethod =
io.grpc.MethodDescriptor.<ai.chalk.protos.chalk.server.v1.GetTokenRequest, ai.chalk.protos.chalk.server.v1.GetTokenResponse>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetToken"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.GetTokenRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.GetTokenResponse.getDefaultInstance()))
.setSchemaDescriptor(new AuthServiceMethodDescriptorSupplier("GetToken"))
.build();
}
}
}
return getGetTokenMethod;
}
private static volatile io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.CreateLinkSessionRequest,
ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponse> getCreateLinkSessionMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "CreateLinkSession",
requestType = ai.chalk.protos.chalk.server.v1.CreateLinkSessionRequest.class,
responseType = ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.CreateLinkSessionRequest,
ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponse> getCreateLinkSessionMethod() {
io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.CreateLinkSessionRequest, ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponse> getCreateLinkSessionMethod;
if ((getCreateLinkSessionMethod = AuthServiceGrpc.getCreateLinkSessionMethod) == null) {
synchronized (AuthServiceGrpc.class) {
if ((getCreateLinkSessionMethod = AuthServiceGrpc.getCreateLinkSessionMethod) == null) {
AuthServiceGrpc.getCreateLinkSessionMethod = getCreateLinkSessionMethod =
io.grpc.MethodDescriptor.<ai.chalk.protos.chalk.server.v1.CreateLinkSessionRequest, ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponse>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateLinkSession"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.CreateLinkSessionRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponse.getDefaultInstance()))
.setSchemaDescriptor(new AuthServiceMethodDescriptorSupplier("CreateLinkSession"))
.build();
}
}
}
return getCreateLinkSessionMethod;
}
private static volatile io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetLinkSessionRequest,
ai.chalk.protos.chalk.server.v1.GetLinkSessionResponse> getGetLinkSessionMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetLinkSession",
requestType = ai.chalk.protos.chalk.server.v1.GetLinkSessionRequest.class,
responseType = ai.chalk.protos.chalk.server.v1.GetLinkSessionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetLinkSessionRequest,
ai.chalk.protos.chalk.server.v1.GetLinkSessionResponse> getGetLinkSessionMethod() {
io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetLinkSessionRequest, ai.chalk.protos.chalk.server.v1.GetLinkSessionResponse> getGetLinkSessionMethod;
if ((getGetLinkSessionMethod = AuthServiceGrpc.getGetLinkSessionMethod) == null) {
synchronized (AuthServiceGrpc.class) {
if ((getGetLinkSessionMethod = AuthServiceGrpc.getGetLinkSessionMethod) == null) {
AuthServiceGrpc.getGetLinkSessionMethod = getGetLinkSessionMethod =
io.grpc.MethodDescriptor.<ai.chalk.protos.chalk.server.v1.GetLinkSessionRequest, ai.chalk.protos.chalk.server.v1.GetLinkSessionResponse>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLinkSession"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.GetLinkSessionRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.GetLinkSessionResponse.getDefaultInstance()))
.setSchemaDescriptor(new AuthServiceMethodDescriptorSupplier("GetLinkSession"))
.build();
}
}
}
return getGetLinkSessionMethod;
}
private static volatile io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.UpdateLinkSessionRequest,
ai.chalk.protos.chalk.server.v1.UpdateLinkSessionResponse> getUpdateLinkSessionMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "UpdateLinkSession",
requestType = ai.chalk.protos.chalk.server.v1.UpdateLinkSessionRequest.class,
responseType = ai.chalk.protos.chalk.server.v1.UpdateLinkSessionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.UpdateLinkSessionRequest,
ai.chalk.protos.chalk.server.v1.UpdateLinkSessionResponse> getUpdateLinkSessionMethod() {
io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.UpdateLinkSessionRequest, ai.chalk.protos.chalk.server.v1.UpdateLinkSessionResponse> getUpdateLinkSessionMethod;
if ((getUpdateLinkSessionMethod = AuthServiceGrpc.getUpdateLinkSessionMethod) == null) {
synchronized (AuthServiceGrpc.class) {
if ((getUpdateLinkSessionMethod = AuthServiceGrpc.getUpdateLinkSessionMethod) == null) {
AuthServiceGrpc.getUpdateLinkSessionMethod = getUpdateLinkSessionMethod =
io.grpc.MethodDescriptor.<ai.chalk.protos.chalk.server.v1.UpdateLinkSessionRequest, ai.chalk.protos.chalk.server.v1.UpdateLinkSessionResponse>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateLinkSession"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.UpdateLinkSessionRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.UpdateLinkSessionResponse.getDefaultInstance()))
.setSchemaDescriptor(new AuthServiceMethodDescriptorSupplier("UpdateLinkSession"))
.build();
}
}
}
return getUpdateLinkSessionMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static AuthServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<AuthServiceStub> factory =
new io.grpc.stub.AbstractStub.StubFactory<AuthServiceStub>() {
@java.lang.Override
public AuthServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AuthServiceStub(channel, callOptions);
}
};
return AuthServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static AuthServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<AuthServiceBlockingStub> factory =
new io.grpc.stub.AbstractStub.StubFactory<AuthServiceBlockingStub>() {
@java.lang.Override
public AuthServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AuthServiceBlockingStub(channel, callOptions);
}
};
return AuthServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static AuthServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<AuthServiceFutureStub> factory =
new io.grpc.stub.AbstractStub.StubFactory<AuthServiceFutureStub>() {
@java.lang.Override
public AuthServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AuthServiceFutureStub(channel, callOptions);
}
};
return AuthServiceFutureStub.newStub(factory, channel);
}
/**
*/
public interface AsyncService {
/**
*/
default void getToken(ai.chalk.protos.chalk.server.v1.GetTokenRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetTokenResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTokenMethod(), responseObserver);
}
/**
*/
default void createLinkSession(ai.chalk.protos.chalk.server.v1.CreateLinkSessionRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateLinkSessionMethod(), responseObserver);
}
/**
*/
default void getLinkSession(ai.chalk.protos.chalk.server.v1.GetLinkSessionRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetLinkSessionResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetLinkSessionMethod(), responseObserver);
}
/**
*/
default void updateLinkSession(ai.chalk.protos.chalk.server.v1.UpdateLinkSessionRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.UpdateLinkSessionResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateLinkSessionMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service AuthService.
*/
public static abstract class AuthServiceImplBase
implements io.grpc.BindableService, AsyncService {
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return AuthServiceGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service AuthService.
*/
public static final class AuthServiceStub
extends io.grpc.stub.AbstractAsyncStub<AuthServiceStub> {
private AuthServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected AuthServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AuthServiceStub(channel, callOptions);
}
/**
*/
public void getToken(ai.chalk.protos.chalk.server.v1.GetTokenRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetTokenResponse> responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetTokenMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void createLinkSession(ai.chalk.protos.chalk.server.v1.CreateLinkSessionRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponse> responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreateLinkSessionMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void getLinkSession(ai.chalk.protos.chalk.server.v1.GetLinkSessionRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetLinkSessionResponse> responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetLinkSessionMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void updateLinkSession(ai.chalk.protos.chalk.server.v1.UpdateLinkSessionRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.UpdateLinkSessionResponse> responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdateLinkSessionMethod(), getCallOptions()), request, responseObserver);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service AuthService.
*/
public static final class AuthServiceBlockingStub
extends io.grpc.stub.AbstractBlockingStub<AuthServiceBlockingStub> {
private AuthServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected AuthServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AuthServiceBlockingStub(channel, callOptions);
}
/**
*/
public ai.chalk.protos.chalk.server.v1.GetTokenResponse getToken(ai.chalk.protos.chalk.server.v1.GetTokenRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetTokenMethod(), getCallOptions(), request);
}
/**
*/
public ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponse createLinkSession(ai.chalk.protos.chalk.server.v1.CreateLinkSessionRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateLinkSessionMethod(), getCallOptions(), request);
}
/**
*/
public ai.chalk.protos.chalk.server.v1.GetLinkSessionResponse getLinkSession(ai.chalk.protos.chalk.server.v1.GetLinkSessionRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetLinkSessionMethod(), getCallOptions(), request);
}
/**
*/
public ai.chalk.protos.chalk.server.v1.UpdateLinkSessionResponse updateLinkSession(ai.chalk.protos.chalk.server.v1.UpdateLinkSessionRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateLinkSessionMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service AuthService.
*/
public static final class AuthServiceFutureStub
extends io.grpc.stub.AbstractFutureStub<AuthServiceFutureStub> {
private AuthServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected AuthServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AuthServiceFutureStub(channel, callOptions);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<ai.chalk.protos.chalk.server.v1.GetTokenResponse> getToken(
ai.chalk.protos.chalk.server.v1.GetTokenRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetTokenMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponse> createLinkSession(
ai.chalk.protos.chalk.server.v1.CreateLinkSessionRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreateLinkSessionMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<ai.chalk.protos.chalk.server.v1.GetLinkSessionResponse> getLinkSession(
ai.chalk.protos.chalk.server.v1.GetLinkSessionRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetLinkSessionMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<ai.chalk.protos.chalk.server.v1.UpdateLinkSessionResponse> updateLinkSession(
ai.chalk.protos.chalk.server.v1.UpdateLinkSessionRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdateLinkSessionMethod(), getCallOptions()), request);
}
}
private static final int METHODID_GET_TOKEN = 0;
private static final int METHODID_CREATE_LINK_SESSION = 1;
private static final int METHODID_GET_LINK_SESSION = 2;
private static final int METHODID_UPDATE_LINK_SESSION = 3;
private static final class MethodHandlers<Req, Resp> implements
io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
private final AsyncService serviceImpl;
private final int methodId;
MethodHandlers(AsyncService serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
switch (methodId) {
case METHODID_GET_TOKEN:
serviceImpl.getToken((ai.chalk.protos.chalk.server.v1.GetTokenRequest) request,
(io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetTokenResponse>) responseObserver);
break;
case METHODID_CREATE_LINK_SESSION:
serviceImpl.createLinkSession((ai.chalk.protos.chalk.server.v1.CreateLinkSessionRequest) request,
(io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponse>) responseObserver);
break;
case METHODID_GET_LINK_SESSION:
serviceImpl.getLinkSession((ai.chalk.protos.chalk.server.v1.GetLinkSessionRequest) request,
(io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetLinkSessionResponse>) responseObserver);
break;
case METHODID_UPDATE_LINK_SESSION:
serviceImpl.updateLinkSession((ai.chalk.protos.chalk.server.v1.UpdateLinkSessionRequest) request,
(io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.UpdateLinkSessionResponse>) responseObserver);
break;
default:
throw new AssertionError();
}
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public io.grpc.stub.StreamObserver<Req> invoke(
io.grpc.stub.StreamObserver<Resp> responseObserver) {
switch (methodId) {
default:
throw new AssertionError();
}
}
}
public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getGetTokenMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
ai.chalk.protos.chalk.server.v1.GetTokenRequest,
ai.chalk.protos.chalk.server.v1.GetTokenResponse>(
service, METHODID_GET_TOKEN)))
.addMethod(
getCreateLinkSessionMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
ai.chalk.protos.chalk.server.v1.CreateLinkSessionRequest,
ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponse>(
service, METHODID_CREATE_LINK_SESSION)))
.addMethod(
getGetLinkSessionMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
ai.chalk.protos.chalk.server.v1.GetLinkSessionRequest,
ai.chalk.protos.chalk.server.v1.GetLinkSessionResponse>(
service, METHODID_GET_LINK_SESSION)))
.addMethod(
getUpdateLinkSessionMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
ai.chalk.protos.chalk.server.v1.UpdateLinkSessionRequest,
ai.chalk.protos.chalk.server.v1.UpdateLinkSessionResponse>(
service, METHODID_UPDATE_LINK_SESSION)))
.build();
}
private static abstract class AuthServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
AuthServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return ai.chalk.protos.chalk.server.v1.AuthProto.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("AuthService");
}
}
private static final class AuthServiceFileDescriptorSupplier
extends AuthServiceBaseDescriptorSupplier {
AuthServiceFileDescriptorSupplier() {}
}
private static final class AuthServiceMethodDescriptorSupplier
extends AuthServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final java.lang.String methodName;
AuthServiceMethodDescriptorSupplier(java.lang.String methodName) {
this.methodName = methodName;
}
@java.lang.Override
public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
return getServiceDescriptor().findMethodByName(methodName);
}
}
private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
public static io.grpc.ServiceDescriptor getServiceDescriptor() {
io.grpc.ServiceDescriptor result = serviceDescriptor;
if (result == null) {
synchronized (AuthServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new AuthServiceFileDescriptorSupplier())
.addMethod(getGetTokenMethod())
.addMethod(getCreateLinkSessionMethod())
.addMethod(getGetLinkSessionMethod())
.addMethod(getUpdateLinkSessionMethod())
.build();
}
}
}
return result;
}
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/AuthTestingServiceGrpc.java
|
package ai.chalk.protos.chalk.server.v1;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.64.0)",
comments = "Source: chalk/server/v1/authtesting.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class AuthTestingServiceGrpc {
private AuthTestingServiceGrpc() {}
public static final java.lang.String SERVICE_NAME = "chalk.server.v1.AuthTestingService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetUnauthedTestEndpointRequest,
ai.chalk.protos.chalk.server.v1.GetUnauthedTestEndpointResponse> getGetUnauthedTestEndpointMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetUnauthedTestEndpoint",
requestType = ai.chalk.protos.chalk.server.v1.GetUnauthedTestEndpointRequest.class,
responseType = ai.chalk.protos.chalk.server.v1.GetUnauthedTestEndpointResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetUnauthedTestEndpointRequest,
ai.chalk.protos.chalk.server.v1.GetUnauthedTestEndpointResponse> getGetUnauthedTestEndpointMethod() {
io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetUnauthedTestEndpointRequest, ai.chalk.protos.chalk.server.v1.GetUnauthedTestEndpointResponse> getGetUnauthedTestEndpointMethod;
if ((getGetUnauthedTestEndpointMethod = AuthTestingServiceGrpc.getGetUnauthedTestEndpointMethod) == null) {
synchronized (AuthTestingServiceGrpc.class) {
if ((getGetUnauthedTestEndpointMethod = AuthTestingServiceGrpc.getGetUnauthedTestEndpointMethod) == null) {
AuthTestingServiceGrpc.getGetUnauthedTestEndpointMethod = getGetUnauthedTestEndpointMethod =
io.grpc.MethodDescriptor.<ai.chalk.protos.chalk.server.v1.GetUnauthedTestEndpointRequest, ai.chalk.protos.chalk.server.v1.GetUnauthedTestEndpointResponse>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetUnauthedTestEndpoint"))
.setSafe(true)
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.GetUnauthedTestEndpointRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.GetUnauthedTestEndpointResponse.getDefaultInstance()))
.setSchemaDescriptor(new AuthTestingServiceMethodDescriptorSupplier("GetUnauthedTestEndpoint"))
.build();
}
}
}
return getGetUnauthedTestEndpointMethod;
}
private static volatile io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetAuthedTestEndpointRequest,
ai.chalk.protos.chalk.server.v1.GetAuthedTestEndpointResponse> getGetAuthedTestEndpointMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetAuthedTestEndpoint",
requestType = ai.chalk.protos.chalk.server.v1.GetAuthedTestEndpointRequest.class,
responseType = ai.chalk.protos.chalk.server.v1.GetAuthedTestEndpointResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetAuthedTestEndpointRequest,
ai.chalk.protos.chalk.server.v1.GetAuthedTestEndpointResponse> getGetAuthedTestEndpointMethod() {
io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetAuthedTestEndpointRequest, ai.chalk.protos.chalk.server.v1.GetAuthedTestEndpointResponse> getGetAuthedTestEndpointMethod;
if ((getGetAuthedTestEndpointMethod = AuthTestingServiceGrpc.getGetAuthedTestEndpointMethod) == null) {
synchronized (AuthTestingServiceGrpc.class) {
if ((getGetAuthedTestEndpointMethod = AuthTestingServiceGrpc.getGetAuthedTestEndpointMethod) == null) {
AuthTestingServiceGrpc.getGetAuthedTestEndpointMethod = getGetAuthedTestEndpointMethod =
io.grpc.MethodDescriptor.<ai.chalk.protos.chalk.server.v1.GetAuthedTestEndpointRequest, ai.chalk.protos.chalk.server.v1.GetAuthedTestEndpointResponse>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAuthedTestEndpoint"))
.setSafe(true)
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.GetAuthedTestEndpointRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.GetAuthedTestEndpointResponse.getDefaultInstance()))
.setSchemaDescriptor(new AuthTestingServiceMethodDescriptorSupplier("GetAuthedTestEndpoint"))
.build();
}
}
}
return getGetAuthedTestEndpointMethod;
}
private static volatile io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetViewerTestEndpointRequest,
ai.chalk.protos.chalk.server.v1.GetViewerTestEndpointResponse> getGetViewerTestEndpointMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetViewerTestEndpoint",
requestType = ai.chalk.protos.chalk.server.v1.GetViewerTestEndpointRequest.class,
responseType = ai.chalk.protos.chalk.server.v1.GetViewerTestEndpointResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetViewerTestEndpointRequest,
ai.chalk.protos.chalk.server.v1.GetViewerTestEndpointResponse> getGetViewerTestEndpointMethod() {
io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetViewerTestEndpointRequest, ai.chalk.protos.chalk.server.v1.GetViewerTestEndpointResponse> getGetViewerTestEndpointMethod;
if ((getGetViewerTestEndpointMethod = AuthTestingServiceGrpc.getGetViewerTestEndpointMethod) == null) {
synchronized (AuthTestingServiceGrpc.class) {
if ((getGetViewerTestEndpointMethod = AuthTestingServiceGrpc.getGetViewerTestEndpointMethod) == null) {
AuthTestingServiceGrpc.getGetViewerTestEndpointMethod = getGetViewerTestEndpointMethod =
io.grpc.MethodDescriptor.<ai.chalk.protos.chalk.server.v1.GetViewerTestEndpointRequest, ai.chalk.protos.chalk.server.v1.GetViewerTestEndpointResponse>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetViewerTestEndpoint"))
.setSafe(true)
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.GetViewerTestEndpointRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.GetViewerTestEndpointResponse.getDefaultInstance()))
.setSchemaDescriptor(new AuthTestingServiceMethodDescriptorSupplier("GetViewerTestEndpoint"))
.build();
}
}
}
return getGetViewerTestEndpointMethod;
}
private static volatile io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetDataScientistTestEndpointRequest,
ai.chalk.protos.chalk.server.v1.GetDataScientistTestEndpointResponse> getGetDataScientistTestEndpointMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetDataScientistTestEndpoint",
requestType = ai.chalk.protos.chalk.server.v1.GetDataScientistTestEndpointRequest.class,
responseType = ai.chalk.protos.chalk.server.v1.GetDataScientistTestEndpointResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetDataScientistTestEndpointRequest,
ai.chalk.protos.chalk.server.v1.GetDataScientistTestEndpointResponse> getGetDataScientistTestEndpointMethod() {
io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetDataScientistTestEndpointRequest, ai.chalk.protos.chalk.server.v1.GetDataScientistTestEndpointResponse> getGetDataScientistTestEndpointMethod;
if ((getGetDataScientistTestEndpointMethod = AuthTestingServiceGrpc.getGetDataScientistTestEndpointMethod) == null) {
synchronized (AuthTestingServiceGrpc.class) {
if ((getGetDataScientistTestEndpointMethod = AuthTestingServiceGrpc.getGetDataScientistTestEndpointMethod) == null) {
AuthTestingServiceGrpc.getGetDataScientistTestEndpointMethod = getGetDataScientistTestEndpointMethod =
io.grpc.MethodDescriptor.<ai.chalk.protos.chalk.server.v1.GetDataScientistTestEndpointRequest, ai.chalk.protos.chalk.server.v1.GetDataScientistTestEndpointResponse>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDataScientistTestEndpoint"))
.setSafe(true)
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.GetDataScientistTestEndpointRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.GetDataScientistTestEndpointResponse.getDefaultInstance()))
.setSchemaDescriptor(new AuthTestingServiceMethodDescriptorSupplier("GetDataScientistTestEndpoint"))
.build();
}
}
}
return getGetDataScientistTestEndpointMethod;
}
private static volatile io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetDeveloperTestEndpointRequest,
ai.chalk.protos.chalk.server.v1.GetDeveloperTestEndpointResponse> getGetDeveloperTestEndpointMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetDeveloperTestEndpoint",
requestType = ai.chalk.protos.chalk.server.v1.GetDeveloperTestEndpointRequest.class,
responseType = ai.chalk.protos.chalk.server.v1.GetDeveloperTestEndpointResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetDeveloperTestEndpointRequest,
ai.chalk.protos.chalk.server.v1.GetDeveloperTestEndpointResponse> getGetDeveloperTestEndpointMethod() {
io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetDeveloperTestEndpointRequest, ai.chalk.protos.chalk.server.v1.GetDeveloperTestEndpointResponse> getGetDeveloperTestEndpointMethod;
if ((getGetDeveloperTestEndpointMethod = AuthTestingServiceGrpc.getGetDeveloperTestEndpointMethod) == null) {
synchronized (AuthTestingServiceGrpc.class) {
if ((getGetDeveloperTestEndpointMethod = AuthTestingServiceGrpc.getGetDeveloperTestEndpointMethod) == null) {
AuthTestingServiceGrpc.getGetDeveloperTestEndpointMethod = getGetDeveloperTestEndpointMethod =
io.grpc.MethodDescriptor.<ai.chalk.protos.chalk.server.v1.GetDeveloperTestEndpointRequest, ai.chalk.protos.chalk.server.v1.GetDeveloperTestEndpointResponse>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDeveloperTestEndpoint"))
.setSafe(true)
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.GetDeveloperTestEndpointRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.GetDeveloperTestEndpointResponse.getDefaultInstance()))
.setSchemaDescriptor(new AuthTestingServiceMethodDescriptorSupplier("GetDeveloperTestEndpoint"))
.build();
}
}
}
return getGetDeveloperTestEndpointMethod;
}
private static volatile io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetAdminTestEndpointRequest,
ai.chalk.protos.chalk.server.v1.GetAdminTestEndpointResponse> getGetAdminTestEndpointMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetAdminTestEndpoint",
requestType = ai.chalk.protos.chalk.server.v1.GetAdminTestEndpointRequest.class,
responseType = ai.chalk.protos.chalk.server.v1.GetAdminTestEndpointResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetAdminTestEndpointRequest,
ai.chalk.protos.chalk.server.v1.GetAdminTestEndpointResponse> getGetAdminTestEndpointMethod() {
io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetAdminTestEndpointRequest, ai.chalk.protos.chalk.server.v1.GetAdminTestEndpointResponse> getGetAdminTestEndpointMethod;
if ((getGetAdminTestEndpointMethod = AuthTestingServiceGrpc.getGetAdminTestEndpointMethod) == null) {
synchronized (AuthTestingServiceGrpc.class) {
if ((getGetAdminTestEndpointMethod = AuthTestingServiceGrpc.getGetAdminTestEndpointMethod) == null) {
AuthTestingServiceGrpc.getGetAdminTestEndpointMethod = getGetAdminTestEndpointMethod =
io.grpc.MethodDescriptor.<ai.chalk.protos.chalk.server.v1.GetAdminTestEndpointRequest, ai.chalk.protos.chalk.server.v1.GetAdminTestEndpointResponse>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAdminTestEndpoint"))
.setSafe(true)
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.GetAdminTestEndpointRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.GetAdminTestEndpointResponse.getDefaultInstance()))
.setSchemaDescriptor(new AuthTestingServiceMethodDescriptorSupplier("GetAdminTestEndpoint"))
.build();
}
}
}
return getGetAdminTestEndpointMethod;
}
private static volatile io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetOwnerTestEndpointRequest,
ai.chalk.protos.chalk.server.v1.GetOwnerTestEndpointResponse> getGetOwnerTestEndpointMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetOwnerTestEndpoint",
requestType = ai.chalk.protos.chalk.server.v1.GetOwnerTestEndpointRequest.class,
responseType = ai.chalk.protos.chalk.server.v1.GetOwnerTestEndpointResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetOwnerTestEndpointRequest,
ai.chalk.protos.chalk.server.v1.GetOwnerTestEndpointResponse> getGetOwnerTestEndpointMethod() {
io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetOwnerTestEndpointRequest, ai.chalk.protos.chalk.server.v1.GetOwnerTestEndpointResponse> getGetOwnerTestEndpointMethod;
if ((getGetOwnerTestEndpointMethod = AuthTestingServiceGrpc.getGetOwnerTestEndpointMethod) == null) {
synchronized (AuthTestingServiceGrpc.class) {
if ((getGetOwnerTestEndpointMethod = AuthTestingServiceGrpc.getGetOwnerTestEndpointMethod) == null) {
AuthTestingServiceGrpc.getGetOwnerTestEndpointMethod = getGetOwnerTestEndpointMethod =
io.grpc.MethodDescriptor.<ai.chalk.protos.chalk.server.v1.GetOwnerTestEndpointRequest, ai.chalk.protos.chalk.server.v1.GetOwnerTestEndpointResponse>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetOwnerTestEndpoint"))
.setSafe(true)
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.GetOwnerTestEndpointRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.GetOwnerTestEndpointResponse.getDefaultInstance()))
.setSchemaDescriptor(new AuthTestingServiceMethodDescriptorSupplier("GetOwnerTestEndpoint"))
.build();
}
}
}
return getGetOwnerTestEndpointMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static AuthTestingServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<AuthTestingServiceStub> factory =
new io.grpc.stub.AbstractStub.StubFactory<AuthTestingServiceStub>() {
@java.lang.Override
public AuthTestingServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AuthTestingServiceStub(channel, callOptions);
}
};
return AuthTestingServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static AuthTestingServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<AuthTestingServiceBlockingStub> factory =
new io.grpc.stub.AbstractStub.StubFactory<AuthTestingServiceBlockingStub>() {
@java.lang.Override
public AuthTestingServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AuthTestingServiceBlockingStub(channel, callOptions);
}
};
return AuthTestingServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static AuthTestingServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<AuthTestingServiceFutureStub> factory =
new io.grpc.stub.AbstractStub.StubFactory<AuthTestingServiceFutureStub>() {
@java.lang.Override
public AuthTestingServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AuthTestingServiceFutureStub(channel, callOptions);
}
};
return AuthTestingServiceFutureStub.newStub(factory, channel);
}
/**
*/
public interface AsyncService {
/**
*/
default void getUnauthedTestEndpoint(ai.chalk.protos.chalk.server.v1.GetUnauthedTestEndpointRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetUnauthedTestEndpointResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetUnauthedTestEndpointMethod(), responseObserver);
}
/**
*/
default void getAuthedTestEndpoint(ai.chalk.protos.chalk.server.v1.GetAuthedTestEndpointRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetAuthedTestEndpointResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAuthedTestEndpointMethod(), responseObserver);
}
/**
*/
default void getViewerTestEndpoint(ai.chalk.protos.chalk.server.v1.GetViewerTestEndpointRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetViewerTestEndpointResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetViewerTestEndpointMethod(), responseObserver);
}
/**
*/
default void getDataScientistTestEndpoint(ai.chalk.protos.chalk.server.v1.GetDataScientistTestEndpointRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetDataScientistTestEndpointResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDataScientistTestEndpointMethod(), responseObserver);
}
/**
*/
default void getDeveloperTestEndpoint(ai.chalk.protos.chalk.server.v1.GetDeveloperTestEndpointRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetDeveloperTestEndpointResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDeveloperTestEndpointMethod(), responseObserver);
}
/**
*/
default void getAdminTestEndpoint(ai.chalk.protos.chalk.server.v1.GetAdminTestEndpointRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetAdminTestEndpointResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAdminTestEndpointMethod(), responseObserver);
}
/**
*/
default void getOwnerTestEndpoint(ai.chalk.protos.chalk.server.v1.GetOwnerTestEndpointRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetOwnerTestEndpointResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetOwnerTestEndpointMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service AuthTestingService.
*/
public static abstract class AuthTestingServiceImplBase
implements io.grpc.BindableService, AsyncService {
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return AuthTestingServiceGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service AuthTestingService.
*/
public static final class AuthTestingServiceStub
extends io.grpc.stub.AbstractAsyncStub<AuthTestingServiceStub> {
private AuthTestingServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected AuthTestingServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AuthTestingServiceStub(channel, callOptions);
}
/**
*/
public void getUnauthedTestEndpoint(ai.chalk.protos.chalk.server.v1.GetUnauthedTestEndpointRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetUnauthedTestEndpointResponse> responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetUnauthedTestEndpointMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void getAuthedTestEndpoint(ai.chalk.protos.chalk.server.v1.GetAuthedTestEndpointRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetAuthedTestEndpointResponse> responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetAuthedTestEndpointMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void getViewerTestEndpoint(ai.chalk.protos.chalk.server.v1.GetViewerTestEndpointRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetViewerTestEndpointResponse> responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetViewerTestEndpointMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void getDataScientistTestEndpoint(ai.chalk.protos.chalk.server.v1.GetDataScientistTestEndpointRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetDataScientistTestEndpointResponse> responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetDataScientistTestEndpointMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void getDeveloperTestEndpoint(ai.chalk.protos.chalk.server.v1.GetDeveloperTestEndpointRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetDeveloperTestEndpointResponse> responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetDeveloperTestEndpointMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void getAdminTestEndpoint(ai.chalk.protos.chalk.server.v1.GetAdminTestEndpointRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetAdminTestEndpointResponse> responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetAdminTestEndpointMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void getOwnerTestEndpoint(ai.chalk.protos.chalk.server.v1.GetOwnerTestEndpointRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetOwnerTestEndpointResponse> responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetOwnerTestEndpointMethod(), getCallOptions()), request, responseObserver);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service AuthTestingService.
*/
public static final class AuthTestingServiceBlockingStub
extends io.grpc.stub.AbstractBlockingStub<AuthTestingServiceBlockingStub> {
private AuthTestingServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected AuthTestingServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AuthTestingServiceBlockingStub(channel, callOptions);
}
/**
*/
public ai.chalk.protos.chalk.server.v1.GetUnauthedTestEndpointResponse getUnauthedTestEndpoint(ai.chalk.protos.chalk.server.v1.GetUnauthedTestEndpointRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetUnauthedTestEndpointMethod(), getCallOptions(), request);
}
/**
*/
public ai.chalk.protos.chalk.server.v1.GetAuthedTestEndpointResponse getAuthedTestEndpoint(ai.chalk.protos.chalk.server.v1.GetAuthedTestEndpointRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetAuthedTestEndpointMethod(), getCallOptions(), request);
}
/**
*/
public ai.chalk.protos.chalk.server.v1.GetViewerTestEndpointResponse getViewerTestEndpoint(ai.chalk.protos.chalk.server.v1.GetViewerTestEndpointRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetViewerTestEndpointMethod(), getCallOptions(), request);
}
/**
*/
public ai.chalk.protos.chalk.server.v1.GetDataScientistTestEndpointResponse getDataScientistTestEndpoint(ai.chalk.protos.chalk.server.v1.GetDataScientistTestEndpointRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetDataScientistTestEndpointMethod(), getCallOptions(), request);
}
/**
*/
public ai.chalk.protos.chalk.server.v1.GetDeveloperTestEndpointResponse getDeveloperTestEndpoint(ai.chalk.protos.chalk.server.v1.GetDeveloperTestEndpointRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetDeveloperTestEndpointMethod(), getCallOptions(), request);
}
/**
*/
public ai.chalk.protos.chalk.server.v1.GetAdminTestEndpointResponse getAdminTestEndpoint(ai.chalk.protos.chalk.server.v1.GetAdminTestEndpointRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetAdminTestEndpointMethod(), getCallOptions(), request);
}
/**
*/
public ai.chalk.protos.chalk.server.v1.GetOwnerTestEndpointResponse getOwnerTestEndpoint(ai.chalk.protos.chalk.server.v1.GetOwnerTestEndpointRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetOwnerTestEndpointMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service AuthTestingService.
*/
public static final class AuthTestingServiceFutureStub
extends io.grpc.stub.AbstractFutureStub<AuthTestingServiceFutureStub> {
private AuthTestingServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected AuthTestingServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AuthTestingServiceFutureStub(channel, callOptions);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<ai.chalk.protos.chalk.server.v1.GetUnauthedTestEndpointResponse> getUnauthedTestEndpoint(
ai.chalk.protos.chalk.server.v1.GetUnauthedTestEndpointRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetUnauthedTestEndpointMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<ai.chalk.protos.chalk.server.v1.GetAuthedTestEndpointResponse> getAuthedTestEndpoint(
ai.chalk.protos.chalk.server.v1.GetAuthedTestEndpointRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetAuthedTestEndpointMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<ai.chalk.protos.chalk.server.v1.GetViewerTestEndpointResponse> getViewerTestEndpoint(
ai.chalk.protos.chalk.server.v1.GetViewerTestEndpointRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetViewerTestEndpointMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<ai.chalk.protos.chalk.server.v1.GetDataScientistTestEndpointResponse> getDataScientistTestEndpoint(
ai.chalk.protos.chalk.server.v1.GetDataScientistTestEndpointRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetDataScientistTestEndpointMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<ai.chalk.protos.chalk.server.v1.GetDeveloperTestEndpointResponse> getDeveloperTestEndpoint(
ai.chalk.protos.chalk.server.v1.GetDeveloperTestEndpointRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetDeveloperTestEndpointMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<ai.chalk.protos.chalk.server.v1.GetAdminTestEndpointResponse> getAdminTestEndpoint(
ai.chalk.protos.chalk.server.v1.GetAdminTestEndpointRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetAdminTestEndpointMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<ai.chalk.protos.chalk.server.v1.GetOwnerTestEndpointResponse> getOwnerTestEndpoint(
ai.chalk.protos.chalk.server.v1.GetOwnerTestEndpointRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetOwnerTestEndpointMethod(), getCallOptions()), request);
}
}
private static final int METHODID_GET_UNAUTHED_TEST_ENDPOINT = 0;
private static final int METHODID_GET_AUTHED_TEST_ENDPOINT = 1;
private static final int METHODID_GET_VIEWER_TEST_ENDPOINT = 2;
private static final int METHODID_GET_DATA_SCIENTIST_TEST_ENDPOINT = 3;
private static final int METHODID_GET_DEVELOPER_TEST_ENDPOINT = 4;
private static final int METHODID_GET_ADMIN_TEST_ENDPOINT = 5;
private static final int METHODID_GET_OWNER_TEST_ENDPOINT = 6;
private static final class MethodHandlers<Req, Resp> implements
io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
private final AsyncService serviceImpl;
private final int methodId;
MethodHandlers(AsyncService serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
switch (methodId) {
case METHODID_GET_UNAUTHED_TEST_ENDPOINT:
serviceImpl.getUnauthedTestEndpoint((ai.chalk.protos.chalk.server.v1.GetUnauthedTestEndpointRequest) request,
(io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetUnauthedTestEndpointResponse>) responseObserver);
break;
case METHODID_GET_AUTHED_TEST_ENDPOINT:
serviceImpl.getAuthedTestEndpoint((ai.chalk.protos.chalk.server.v1.GetAuthedTestEndpointRequest) request,
(io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetAuthedTestEndpointResponse>) responseObserver);
break;
case METHODID_GET_VIEWER_TEST_ENDPOINT:
serviceImpl.getViewerTestEndpoint((ai.chalk.protos.chalk.server.v1.GetViewerTestEndpointRequest) request,
(io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetViewerTestEndpointResponse>) responseObserver);
break;
case METHODID_GET_DATA_SCIENTIST_TEST_ENDPOINT:
serviceImpl.getDataScientistTestEndpoint((ai.chalk.protos.chalk.server.v1.GetDataScientistTestEndpointRequest) request,
(io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetDataScientistTestEndpointResponse>) responseObserver);
break;
case METHODID_GET_DEVELOPER_TEST_ENDPOINT:
serviceImpl.getDeveloperTestEndpoint((ai.chalk.protos.chalk.server.v1.GetDeveloperTestEndpointRequest) request,
(io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetDeveloperTestEndpointResponse>) responseObserver);
break;
case METHODID_GET_ADMIN_TEST_ENDPOINT:
serviceImpl.getAdminTestEndpoint((ai.chalk.protos.chalk.server.v1.GetAdminTestEndpointRequest) request,
(io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetAdminTestEndpointResponse>) responseObserver);
break;
case METHODID_GET_OWNER_TEST_ENDPOINT:
serviceImpl.getOwnerTestEndpoint((ai.chalk.protos.chalk.server.v1.GetOwnerTestEndpointRequest) request,
(io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetOwnerTestEndpointResponse>) responseObserver);
break;
default:
throw new AssertionError();
}
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public io.grpc.stub.StreamObserver<Req> invoke(
io.grpc.stub.StreamObserver<Resp> responseObserver) {
switch (methodId) {
default:
throw new AssertionError();
}
}
}
public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getGetUnauthedTestEndpointMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
ai.chalk.protos.chalk.server.v1.GetUnauthedTestEndpointRequest,
ai.chalk.protos.chalk.server.v1.GetUnauthedTestEndpointResponse>(
service, METHODID_GET_UNAUTHED_TEST_ENDPOINT)))
.addMethod(
getGetAuthedTestEndpointMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
ai.chalk.protos.chalk.server.v1.GetAuthedTestEndpointRequest,
ai.chalk.protos.chalk.server.v1.GetAuthedTestEndpointResponse>(
service, METHODID_GET_AUTHED_TEST_ENDPOINT)))
.addMethod(
getGetViewerTestEndpointMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
ai.chalk.protos.chalk.server.v1.GetViewerTestEndpointRequest,
ai.chalk.protos.chalk.server.v1.GetViewerTestEndpointResponse>(
service, METHODID_GET_VIEWER_TEST_ENDPOINT)))
.addMethod(
getGetDataScientistTestEndpointMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
ai.chalk.protos.chalk.server.v1.GetDataScientistTestEndpointRequest,
ai.chalk.protos.chalk.server.v1.GetDataScientistTestEndpointResponse>(
service, METHODID_GET_DATA_SCIENTIST_TEST_ENDPOINT)))
.addMethod(
getGetDeveloperTestEndpointMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
ai.chalk.protos.chalk.server.v1.GetDeveloperTestEndpointRequest,
ai.chalk.protos.chalk.server.v1.GetDeveloperTestEndpointResponse>(
service, METHODID_GET_DEVELOPER_TEST_ENDPOINT)))
.addMethod(
getGetAdminTestEndpointMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
ai.chalk.protos.chalk.server.v1.GetAdminTestEndpointRequest,
ai.chalk.protos.chalk.server.v1.GetAdminTestEndpointResponse>(
service, METHODID_GET_ADMIN_TEST_ENDPOINT)))
.addMethod(
getGetOwnerTestEndpointMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
ai.chalk.protos.chalk.server.v1.GetOwnerTestEndpointRequest,
ai.chalk.protos.chalk.server.v1.GetOwnerTestEndpointResponse>(
service, METHODID_GET_OWNER_TEST_ENDPOINT)))
.build();
}
private static abstract class AuthTestingServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
AuthTestingServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return ai.chalk.protos.chalk.server.v1.AuthtestingProto.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("AuthTestingService");
}
}
private static final class AuthTestingServiceFileDescriptorSupplier
extends AuthTestingServiceBaseDescriptorSupplier {
AuthTestingServiceFileDescriptorSupplier() {}
}
private static final class AuthTestingServiceMethodDescriptorSupplier
extends AuthTestingServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final java.lang.String methodName;
AuthTestingServiceMethodDescriptorSupplier(java.lang.String methodName) {
this.methodName = methodName;
}
@java.lang.Override
public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
return getServiceDescriptor().findMethodByName(methodName);
}
}
private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
public static io.grpc.ServiceDescriptor getServiceDescriptor() {
io.grpc.ServiceDescriptor result = serviceDescriptor;
if (result == null) {
synchronized (AuthTestingServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new AuthTestingServiceFileDescriptorSupplier())
.addMethod(getGetUnauthedTestEndpointMethod())
.addMethod(getGetAuthedTestEndpointMethod())
.addMethod(getGetViewerTestEndpointMethod())
.addMethod(getGetDataScientistTestEndpointMethod())
.addMethod(getGetDeveloperTestEndpointMethod())
.addMethod(getGetAdminTestEndpointMethod())
.addMethod(getGetOwnerTestEndpointMethod())
.build();
}
}
}
return result;
}
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/AuthtestingProto.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/authtesting.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
public final class AuthtestingProto {
private AuthtestingProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_GetUnauthedTestEndpointRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_GetUnauthedTestEndpointRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_GetAuthedTestEndpointRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_GetAuthedTestEndpointRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_GetViewerTestEndpointRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_GetViewerTestEndpointRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_GetDataScientistTestEndpointRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_GetDataScientistTestEndpointRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_GetDeveloperTestEndpointRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_GetDeveloperTestEndpointRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_GetAdminTestEndpointRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_GetAdminTestEndpointRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_GetOwnerTestEndpointRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_GetOwnerTestEndpointRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_GetUnauthedTestEndpointResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_GetUnauthedTestEndpointResponse_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_GetAuthedTestEndpointResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_GetAuthedTestEndpointResponse_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_GetViewerTestEndpointResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_GetViewerTestEndpointResponse_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_GetDataScientistTestEndpointResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_GetDataScientistTestEndpointResponse_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_GetDeveloperTestEndpointResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_GetDeveloperTestEndpointResponse_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_GetAdminTestEndpointResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_GetAdminTestEndpointResponse_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_GetOwnerTestEndpointResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_GetOwnerTestEndpointResponse_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n!chalk/server/v1/authtesting.proto\022\017cha" +
"lk.server.v1\032\037chalk/auth/v1/permissions." +
"proto\" \n\036GetUnauthedTestEndpointRequest\"" +
"\036\n\034GetAuthedTestEndpointRequest\"\036\n\034GetVi" +
"ewerTestEndpointRequest\"%\n#GetDataScient" +
"istTestEndpointRequest\"!\n\037GetDeveloperTe" +
"stEndpointRequest\"\035\n\033GetAdminTestEndpoin" +
"tRequest\"\035\n\033GetOwnerTestEndpointRequest\"" +
"!\n\037GetUnauthedTestEndpointResponse\"\037\n\035Ge" +
"tAuthedTestEndpointResponse\"\037\n\035GetViewer" +
"TestEndpointResponse\"&\n$GetDataScientist" +
"TestEndpointResponse\"\"\n GetDeveloperTest" +
"EndpointResponse\"\036\n\034GetAdminTestEndpoint" +
"Response\"\036\n\034GetOwnerTestEndpointResponse" +
"2\265\007\n\022AuthTestingService\022\204\001\n\027GetUnauthedT" +
"estEndpoint\022/.chalk.server.v1.GetUnauthe" +
"dTestEndpointRequest\0320.chalk.server.v1.G" +
"etUnauthedTestEndpointResponse\"\006\220\002\001\200}\001\022~" +
"\n\025GetAuthedTestEndpoint\022-.chalk.server.v" +
"1.GetAuthedTestEndpointRequest\032..chalk.s" +
"erver.v1.GetAuthedTestEndpointResponse\"\006" +
"\220\002\001\200}\002\022~\n\025GetViewerTestEndpoint\022-.chalk." +
"server.v1.GetViewerTestEndpointRequest\032." +
".chalk.server.v1.GetViewerTestEndpointRe" +
"sponse\"\006\220\002\001\200}\013\022\223\001\n\034GetDataScientistTestE" +
"ndpoint\0224.chalk.server.v1.GetDataScienti" +
"stTestEndpointRequest\0325.chalk.server.v1." +
"GetDataScientistTestEndpointResponse\"\006\220\002" +
"\001\200}\003\022\207\001\n\030GetDeveloperTestEndpoint\0220.chal" +
"k.server.v1.GetDeveloperTestEndpointRequ" +
"est\0321.chalk.server.v1.GetDeveloperTestEn" +
"dpointResponse\"\006\220\002\001\200}\021\022{\n\024GetAdminTestEn" +
"dpoint\022,.chalk.server.v1.GetAdminTestEnd" +
"pointRequest\032-.chalk.server.v1.GetAdminT" +
"estEndpointResponse\"\006\220\002\001\200}\014\022{\n\024GetOwnerT" +
"estEndpoint\022,.chalk.server.v1.GetOwnerTe" +
"stEndpointRequest\032-.chalk.server.v1.GetO" +
"wnerTestEndpointResponse\"\006\220\002\001\200}\nB\245\001\n\037ai." +
"chalk.protos.chalk.server.v1B\020Authtestin" +
"gProtoP\001Z\022server/v1;serverv1\242\002\003CSX\252\002\017Cha" +
"lk.Server.V1\312\002\017Chalk\\Server\\V1\342\002\033Chalk\\S" +
"erver\\V1\\GPBMetadata\352\002\021Chalk::Server::V1" +
"b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
ai.chalk.protos.chalk.auth.v1.PermissionsProto.getDescriptor(),
});
internal_static_chalk_server_v1_GetUnauthedTestEndpointRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_chalk_server_v1_GetUnauthedTestEndpointRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_GetUnauthedTestEndpointRequest_descriptor,
new java.lang.String[] { });
internal_static_chalk_server_v1_GetAuthedTestEndpointRequest_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_chalk_server_v1_GetAuthedTestEndpointRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_GetAuthedTestEndpointRequest_descriptor,
new java.lang.String[] { });
internal_static_chalk_server_v1_GetViewerTestEndpointRequest_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_chalk_server_v1_GetViewerTestEndpointRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_GetViewerTestEndpointRequest_descriptor,
new java.lang.String[] { });
internal_static_chalk_server_v1_GetDataScientistTestEndpointRequest_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_chalk_server_v1_GetDataScientistTestEndpointRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_GetDataScientistTestEndpointRequest_descriptor,
new java.lang.String[] { });
internal_static_chalk_server_v1_GetDeveloperTestEndpointRequest_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_chalk_server_v1_GetDeveloperTestEndpointRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_GetDeveloperTestEndpointRequest_descriptor,
new java.lang.String[] { });
internal_static_chalk_server_v1_GetAdminTestEndpointRequest_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_chalk_server_v1_GetAdminTestEndpointRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_GetAdminTestEndpointRequest_descriptor,
new java.lang.String[] { });
internal_static_chalk_server_v1_GetOwnerTestEndpointRequest_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_chalk_server_v1_GetOwnerTestEndpointRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_GetOwnerTestEndpointRequest_descriptor,
new java.lang.String[] { });
internal_static_chalk_server_v1_GetUnauthedTestEndpointResponse_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_chalk_server_v1_GetUnauthedTestEndpointResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_GetUnauthedTestEndpointResponse_descriptor,
new java.lang.String[] { });
internal_static_chalk_server_v1_GetAuthedTestEndpointResponse_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_chalk_server_v1_GetAuthedTestEndpointResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_GetAuthedTestEndpointResponse_descriptor,
new java.lang.String[] { });
internal_static_chalk_server_v1_GetViewerTestEndpointResponse_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_chalk_server_v1_GetViewerTestEndpointResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_GetViewerTestEndpointResponse_descriptor,
new java.lang.String[] { });
internal_static_chalk_server_v1_GetDataScientistTestEndpointResponse_descriptor =
getDescriptor().getMessageTypes().get(10);
internal_static_chalk_server_v1_GetDataScientistTestEndpointResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_GetDataScientistTestEndpointResponse_descriptor,
new java.lang.String[] { });
internal_static_chalk_server_v1_GetDeveloperTestEndpointResponse_descriptor =
getDescriptor().getMessageTypes().get(11);
internal_static_chalk_server_v1_GetDeveloperTestEndpointResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_GetDeveloperTestEndpointResponse_descriptor,
new java.lang.String[] { });
internal_static_chalk_server_v1_GetAdminTestEndpointResponse_descriptor =
getDescriptor().getMessageTypes().get(12);
internal_static_chalk_server_v1_GetAdminTestEndpointResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_GetAdminTestEndpointResponse_descriptor,
new java.lang.String[] { });
internal_static_chalk_server_v1_GetOwnerTestEndpointResponse_descriptor =
getDescriptor().getMessageTypes().get(13);
internal_static_chalk_server_v1_GetOwnerTestEndpointResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_GetOwnerTestEndpointResponse_descriptor,
new java.lang.String[] { });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(ai.chalk.protos.chalk.auth.v1.PermissionsProto.permission);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
ai.chalk.protos.chalk.auth.v1.PermissionsProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/BackgroundPersistence.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/builder.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
/**
* Protobuf type {@code chalk.server.v1.BackgroundPersistence}
*/
public final class BackgroundPersistence extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.server.v1.BackgroundPersistence)
BackgroundPersistenceOrBuilder {
private static final long serialVersionUID = 0L;
// Use BackgroundPersistence.newBuilder() to construct.
private BackgroundPersistence(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private BackgroundPersistence() {
id_ = "";
kind_ = "";
specsString_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BackgroundPersistence();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_BackgroundPersistence_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_BackgroundPersistence_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.BackgroundPersistence.class, ai.chalk.protos.chalk.server.v1.BackgroundPersistence.Builder.class);
}
private int bitField0_;
public static final int ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object id_ = "";
/**
* <code>string id = 1 [json_name = "id"];</code>
* @return The id.
*/
@java.lang.Override
public java.lang.String getId() {
java.lang.Object ref = id_;
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();
id_ = s;
return s;
}
}
/**
* <code>string id = 1 [json_name = "id"];</code>
* @return The bytes for id.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int KIND_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object kind_ = "";
/**
* <code>string kind = 2 [json_name = "kind"];</code>
* @return The kind.
*/
@java.lang.Override
public java.lang.String getKind() {
java.lang.Object ref = kind_;
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();
kind_ = s;
return s;
}
}
/**
* <code>string kind = 2 [json_name = "kind"];</code>
* @return The bytes for kind.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getKindBytes() {
java.lang.Object ref = kind_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
kind_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SPECS_STRING_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object specsString_ = "";
/**
* <code>string specs_string = 3 [json_name = "specsString"];</code>
* @return The specsString.
*/
@java.lang.Override
public java.lang.String getSpecsString() {
java.lang.Object ref = specsString_;
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();
specsString_ = s;
return s;
}
}
/**
* <code>string specs_string = 3 [json_name = "specsString"];</code>
* @return The bytes for specsString.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSpecsStringBytes() {
java.lang.Object ref = specsString_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
specsString_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CREATED_AT_FIELD_NUMBER = 4;
private com.google.protobuf.Timestamp createdAt_;
/**
* <code>.google.protobuf.Timestamp created_at = 4 [json_name = "createdAt"];</code>
* @return Whether the createdAt field is set.
*/
@java.lang.Override
public boolean hasCreatedAt() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <code>.google.protobuf.Timestamp created_at = 4 [json_name = "createdAt"];</code>
* @return The createdAt.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getCreatedAt() {
return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
}
/**
* <code>.google.protobuf.Timestamp created_at = 4 [json_name = "createdAt"];</code>
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
}
public static final int UPDATED_AT_FIELD_NUMBER = 5;
private com.google.protobuf.Timestamp updatedAt_;
/**
* <code>.google.protobuf.Timestamp updated_at = 5 [json_name = "updatedAt"];</code>
* @return Whether the updatedAt field is set.
*/
@java.lang.Override
public boolean hasUpdatedAt() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* <code>.google.protobuf.Timestamp updated_at = 5 [json_name = "updatedAt"];</code>
* @return The updatedAt.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getUpdatedAt() {
return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_;
}
/**
* <code>.google.protobuf.Timestamp updated_at = 5 [json_name = "updatedAt"];</code>
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() {
return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_;
}
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(id_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kind_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(specsString_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, specsString_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(4, getCreatedAt());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(5, getUpdatedAt());
}
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(id_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kind_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(specsString_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, specsString_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getCreatedAt());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getUpdatedAt());
}
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 ai.chalk.protos.chalk.server.v1.BackgroundPersistence)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.server.v1.BackgroundPersistence other = (ai.chalk.protos.chalk.server.v1.BackgroundPersistence) obj;
if (!getId()
.equals(other.getId())) return false;
if (!getKind()
.equals(other.getKind())) return false;
if (!getSpecsString()
.equals(other.getSpecsString())) return false;
if (hasCreatedAt() != other.hasCreatedAt()) return false;
if (hasCreatedAt()) {
if (!getCreatedAt()
.equals(other.getCreatedAt())) return false;
}
if (hasUpdatedAt() != other.hasUpdatedAt()) return false;
if (hasUpdatedAt()) {
if (!getUpdatedAt()
.equals(other.getUpdatedAt())) 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) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
hash = (37 * hash) + KIND_FIELD_NUMBER;
hash = (53 * hash) + getKind().hashCode();
hash = (37 * hash) + SPECS_STRING_FIELD_NUMBER;
hash = (53 * hash) + getSpecsString().hashCode();
if (hasCreatedAt()) {
hash = (37 * hash) + CREATED_AT_FIELD_NUMBER;
hash = (53 * hash) + getCreatedAt().hashCode();
}
if (hasUpdatedAt()) {
hash = (37 * hash) + UPDATED_AT_FIELD_NUMBER;
hash = (53 * hash) + getUpdatedAt().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.server.v1.BackgroundPersistence parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.BackgroundPersistence parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.BackgroundPersistence parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.BackgroundPersistence parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.BackgroundPersistence parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.BackgroundPersistence parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.BackgroundPersistence parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.BackgroundPersistence 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 ai.chalk.protos.chalk.server.v1.BackgroundPersistence parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.BackgroundPersistence 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 ai.chalk.protos.chalk.server.v1.BackgroundPersistence parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.BackgroundPersistence 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(ai.chalk.protos.chalk.server.v1.BackgroundPersistence prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code chalk.server.v1.BackgroundPersistence}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.server.v1.BackgroundPersistence)
ai.chalk.protos.chalk.server.v1.BackgroundPersistenceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_BackgroundPersistence_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_BackgroundPersistence_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.BackgroundPersistence.class, ai.chalk.protos.chalk.server.v1.BackgroundPersistence.Builder.class);
}
// Construct using ai.chalk.protos.chalk.server.v1.BackgroundPersistence.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getCreatedAtFieldBuilder();
getUpdatedAtFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
id_ = "";
kind_ = "";
specsString_ = "";
createdAt_ = null;
if (createdAtBuilder_ != null) {
createdAtBuilder_.dispose();
createdAtBuilder_ = null;
}
updatedAt_ = null;
if (updatedAtBuilder_ != null) {
updatedAtBuilder_.dispose();
updatedAtBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_BackgroundPersistence_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.BackgroundPersistence getDefaultInstanceForType() {
return ai.chalk.protos.chalk.server.v1.BackgroundPersistence.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.BackgroundPersistence build() {
ai.chalk.protos.chalk.server.v1.BackgroundPersistence result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.BackgroundPersistence buildPartial() {
ai.chalk.protos.chalk.server.v1.BackgroundPersistence result = new ai.chalk.protos.chalk.server.v1.BackgroundPersistence(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ai.chalk.protos.chalk.server.v1.BackgroundPersistence result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.id_ = id_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.kind_ = kind_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.specsString_ = specsString_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000008) != 0)) {
result.createdAt_ = createdAtBuilder_ == null
? createdAt_
: createdAtBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.updatedAt_ = updatedAtBuilder_ == null
? updatedAt_
: updatedAtBuilder_.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 ai.chalk.protos.chalk.server.v1.BackgroundPersistence) {
return mergeFrom((ai.chalk.protos.chalk.server.v1.BackgroundPersistence)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.server.v1.BackgroundPersistence other) {
if (other == ai.chalk.protos.chalk.server.v1.BackgroundPersistence.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getKind().isEmpty()) {
kind_ = other.kind_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getSpecsString().isEmpty()) {
specsString_ = other.specsString_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasCreatedAt()) {
mergeCreatedAt(other.getCreatedAt());
}
if (other.hasUpdatedAt()) {
mergeUpdatedAt(other.getUpdatedAt());
}
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: {
id_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
kind_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
specsString_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
input.readMessage(
getCreatedAtFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
input.readMessage(
getUpdatedAtFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 42
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object id_ = "";
/**
* <code>string id = 1 [json_name = "id"];</code>
* @return The id.
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string id = 1 [json_name = "id"];</code>
* @return The bytes for id.
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string id = 1 [json_name = "id"];</code>
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
id_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>string id = 1 [json_name = "id"];</code>
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* <code>string id = 1 [json_name = "id"];</code>
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
id_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object kind_ = "";
/**
* <code>string kind = 2 [json_name = "kind"];</code>
* @return The kind.
*/
public java.lang.String getKind() {
java.lang.Object ref = kind_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
kind_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string kind = 2 [json_name = "kind"];</code>
* @return The bytes for kind.
*/
public com.google.protobuf.ByteString
getKindBytes() {
java.lang.Object ref = kind_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
kind_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string kind = 2 [json_name = "kind"];</code>
* @param value The kind to set.
* @return This builder for chaining.
*/
public Builder setKind(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
kind_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <code>string kind = 2 [json_name = "kind"];</code>
* @return This builder for chaining.
*/
public Builder clearKind() {
kind_ = getDefaultInstance().getKind();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* <code>string kind = 2 [json_name = "kind"];</code>
* @param value The bytes for kind to set.
* @return This builder for chaining.
*/
public Builder setKindBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
kind_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object specsString_ = "";
/**
* <code>string specs_string = 3 [json_name = "specsString"];</code>
* @return The specsString.
*/
public java.lang.String getSpecsString() {
java.lang.Object ref = specsString_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
specsString_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string specs_string = 3 [json_name = "specsString"];</code>
* @return The bytes for specsString.
*/
public com.google.protobuf.ByteString
getSpecsStringBytes() {
java.lang.Object ref = specsString_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
specsString_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string specs_string = 3 [json_name = "specsString"];</code>
* @param value The specsString to set.
* @return This builder for chaining.
*/
public Builder setSpecsString(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
specsString_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* <code>string specs_string = 3 [json_name = "specsString"];</code>
* @return This builder for chaining.
*/
public Builder clearSpecsString() {
specsString_ = getDefaultInstance().getSpecsString();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* <code>string specs_string = 3 [json_name = "specsString"];</code>
* @param value The bytes for specsString to set.
* @return This builder for chaining.
*/
public Builder setSpecsStringBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
specsString_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private com.google.protobuf.Timestamp createdAt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_;
/**
* <code>.google.protobuf.Timestamp created_at = 4 [json_name = "createdAt"];</code>
* @return Whether the createdAt field is set.
*/
public boolean hasCreatedAt() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* <code>.google.protobuf.Timestamp created_at = 4 [json_name = "createdAt"];</code>
* @return The createdAt.
*/
public com.google.protobuf.Timestamp getCreatedAt() {
if (createdAtBuilder_ == null) {
return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
} else {
return createdAtBuilder_.getMessage();
}
}
/**
* <code>.google.protobuf.Timestamp created_at = 4 [json_name = "createdAt"];</code>
*/
public Builder setCreatedAt(com.google.protobuf.Timestamp value) {
if (createdAtBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
createdAt_ = value;
} else {
createdAtBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* <code>.google.protobuf.Timestamp created_at = 4 [json_name = "createdAt"];</code>
*/
public Builder setCreatedAt(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (createdAtBuilder_ == null) {
createdAt_ = builderForValue.build();
} else {
createdAtBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* <code>.google.protobuf.Timestamp created_at = 4 [json_name = "createdAt"];</code>
*/
public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) {
if (createdAtBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
createdAt_ != null &&
createdAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getCreatedAtBuilder().mergeFrom(value);
} else {
createdAt_ = value;
}
} else {
createdAtBuilder_.mergeFrom(value);
}
if (createdAt_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
* <code>.google.protobuf.Timestamp created_at = 4 [json_name = "createdAt"];</code>
*/
public Builder clearCreatedAt() {
bitField0_ = (bitField0_ & ~0x00000008);
createdAt_ = null;
if (createdAtBuilder_ != null) {
createdAtBuilder_.dispose();
createdAtBuilder_ = null;
}
onChanged();
return this;
}
/**
* <code>.google.protobuf.Timestamp created_at = 4 [json_name = "createdAt"];</code>
*/
public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getCreatedAtFieldBuilder().getBuilder();
}
/**
* <code>.google.protobuf.Timestamp created_at = 4 [json_name = "createdAt"];</code>
*/
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
if (createdAtBuilder_ != null) {
return createdAtBuilder_.getMessageOrBuilder();
} else {
return createdAt_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
}
}
/**
* <code>.google.protobuf.Timestamp created_at = 4 [json_name = "createdAt"];</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getCreatedAtFieldBuilder() {
if (createdAtBuilder_ == null) {
createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getCreatedAt(),
getParentForChildren(),
isClean());
createdAt_ = null;
}
return createdAtBuilder_;
}
private com.google.protobuf.Timestamp updatedAt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updatedAtBuilder_;
/**
* <code>.google.protobuf.Timestamp updated_at = 5 [json_name = "updatedAt"];</code>
* @return Whether the updatedAt field is set.
*/
public boolean hasUpdatedAt() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* <code>.google.protobuf.Timestamp updated_at = 5 [json_name = "updatedAt"];</code>
* @return The updatedAt.
*/
public com.google.protobuf.Timestamp getUpdatedAt() {
if (updatedAtBuilder_ == null) {
return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_;
} else {
return updatedAtBuilder_.getMessage();
}
}
/**
* <code>.google.protobuf.Timestamp updated_at = 5 [json_name = "updatedAt"];</code>
*/
public Builder setUpdatedAt(com.google.protobuf.Timestamp value) {
if (updatedAtBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
updatedAt_ = value;
} else {
updatedAtBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* <code>.google.protobuf.Timestamp updated_at = 5 [json_name = "updatedAt"];</code>
*/
public Builder setUpdatedAt(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (updatedAtBuilder_ == null) {
updatedAt_ = builderForValue.build();
} else {
updatedAtBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* <code>.google.protobuf.Timestamp updated_at = 5 [json_name = "updatedAt"];</code>
*/
public Builder mergeUpdatedAt(com.google.protobuf.Timestamp value) {
if (updatedAtBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
updatedAt_ != null &&
updatedAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getUpdatedAtBuilder().mergeFrom(value);
} else {
updatedAt_ = value;
}
} else {
updatedAtBuilder_.mergeFrom(value);
}
if (updatedAt_ != null) {
bitField0_ |= 0x00000010;
onChanged();
}
return this;
}
/**
* <code>.google.protobuf.Timestamp updated_at = 5 [json_name = "updatedAt"];</code>
*/
public Builder clearUpdatedAt() {
bitField0_ = (bitField0_ & ~0x00000010);
updatedAt_ = null;
if (updatedAtBuilder_ != null) {
updatedAtBuilder_.dispose();
updatedAtBuilder_ = null;
}
onChanged();
return this;
}
/**
* <code>.google.protobuf.Timestamp updated_at = 5 [json_name = "updatedAt"];</code>
*/
public com.google.protobuf.Timestamp.Builder getUpdatedAtBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getUpdatedAtFieldBuilder().getBuilder();
}
/**
* <code>.google.protobuf.Timestamp updated_at = 5 [json_name = "updatedAt"];</code>
*/
public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() {
if (updatedAtBuilder_ != null) {
return updatedAtBuilder_.getMessageOrBuilder();
} else {
return updatedAt_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_;
}
}
/**
* <code>.google.protobuf.Timestamp updated_at = 5 [json_name = "updatedAt"];</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getUpdatedAtFieldBuilder() {
if (updatedAtBuilder_ == null) {
updatedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getUpdatedAt(),
getParentForChildren(),
isClean());
updatedAt_ = null;
}
return updatedAtBuilder_;
}
@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:chalk.server.v1.BackgroundPersistence)
}
// @@protoc_insertion_point(class_scope:chalk.server.v1.BackgroundPersistence)
private static final ai.chalk.protos.chalk.server.v1.BackgroundPersistence DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.server.v1.BackgroundPersistence();
}
public static ai.chalk.protos.chalk.server.v1.BackgroundPersistence getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<BackgroundPersistence>
PARSER = new com.google.protobuf.AbstractParser<BackgroundPersistence>() {
@java.lang.Override
public BackgroundPersistence 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<BackgroundPersistence> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<BackgroundPersistence> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.BackgroundPersistence getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/BackgroundPersistenceOrBuilder.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/builder.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
public interface BackgroundPersistenceOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.server.v1.BackgroundPersistence)
com.google.protobuf.MessageOrBuilder {
/**
* <code>string id = 1 [json_name = "id"];</code>
* @return The id.
*/
java.lang.String getId();
/**
* <code>string id = 1 [json_name = "id"];</code>
* @return The bytes for id.
*/
com.google.protobuf.ByteString
getIdBytes();
/**
* <code>string kind = 2 [json_name = "kind"];</code>
* @return The kind.
*/
java.lang.String getKind();
/**
* <code>string kind = 2 [json_name = "kind"];</code>
* @return The bytes for kind.
*/
com.google.protobuf.ByteString
getKindBytes();
/**
* <code>string specs_string = 3 [json_name = "specsString"];</code>
* @return The specsString.
*/
java.lang.String getSpecsString();
/**
* <code>string specs_string = 3 [json_name = "specsString"];</code>
* @return The bytes for specsString.
*/
com.google.protobuf.ByteString
getSpecsStringBytes();
/**
* <code>.google.protobuf.Timestamp created_at = 4 [json_name = "createdAt"];</code>
* @return Whether the createdAt field is set.
*/
boolean hasCreatedAt();
/**
* <code>.google.protobuf.Timestamp created_at = 4 [json_name = "createdAt"];</code>
* @return The createdAt.
*/
com.google.protobuf.Timestamp getCreatedAt();
/**
* <code>.google.protobuf.Timestamp created_at = 4 [json_name = "createdAt"];</code>
*/
com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder();
/**
* <code>.google.protobuf.Timestamp updated_at = 5 [json_name = "updatedAt"];</code>
* @return Whether the updatedAt field is set.
*/
boolean hasUpdatedAt();
/**
* <code>.google.protobuf.Timestamp updated_at = 5 [json_name = "updatedAt"];</code>
* @return The updatedAt.
*/
com.google.protobuf.Timestamp getUpdatedAt();
/**
* <code>.google.protobuf.Timestamp updated_at = 5 [json_name = "updatedAt"];</code>
*/
com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder();
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/BillingProto.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/billing.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
public final class BillingProto {
private BillingProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_GetUsageChartRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_GetUsageChartRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_GetUsageChartResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_GetUsageChartResponse_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_GetUtilizationRatesRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_GetUtilizationRatesRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_GetUtilizationRatesResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_GetUtilizationRatesResponse_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_GetNodesAndPodsRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_GetNodesAndPodsRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_GetNodesAndPodsResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_GetNodesAndPodsResponse_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_GetNodesAndPodsUIRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_GetNodesAndPodsUIRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_GetNodesAndPodsUIResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_GetNodesAndPodsUIResponse_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\035chalk/server/v1/billing.proto\022\017chalk.s" +
"erver.v1\032\037chalk/auth/v1/permissions.prot" +
"o\032\037chalk/kubernetes/v1/nodes.proto\032\036chal" +
"k/kubernetes/v1/pods.proto\032!chalk/pubsub" +
"/v1/node_status.proto\032 chalk/pubsub/v1/p" +
"od_status.proto\032\033chalk/server/v1/chart.p" +
"roto\032!chalk/server/v1/pod_request.proto\032" +
"\031chalk/usage/v1/rate.proto\"\210\002\n\024GetUsageC" +
"hartRequest\022\036\n\010start_ms\030\001 \001(\003H\000R\007startMs" +
"\210\001\001\022\032\n\006end_ms\030\002 \001(\003H\001R\005endMs\210\001\001\022>\n\006perio" +
"d\030\003 \001(\0162!.chalk.server.v1.UsageChartPeri" +
"odH\002R\006period\210\001\001\022D\n\010grouping\030\004 \001(\0162#.chal" +
"k.server.v1.UsageChartGroupingH\003R\010groupi" +
"ng\210\001\001B\013\n\t_start_msB\t\n\007_end_msB\t\n\007_period" +
"B\013\n\t_grouping\"E\n\025GetUsageChartResponse\022," +
"\n\005chart\030\001 \001(\0132\026.chalk.server.v1.ChartR\005c" +
"hart\"\034\n\032GetUtilizationRatesRequest\"P\n\033Ge" +
"tUtilizationRatesResponse\0221\n\005rates\030\001 \003(\013" +
"2\033.chalk.usage.v1.MachineRateR\005rates\"\322\001\n" +
"\026GetNodesAndPodsRequest\022!\n\tnamespace\030\001 \001" +
"(\tH\000R\tnamespace\210\001\001\0221\n\022pod_label_selector" +
"\030\002 \001(\tH\001R\020podLabelSelector\210\001\001\022*\n\016environ" +
"ment_id\030\003 \001(\tH\002R\renvironmentId\210\001\001B\014\n\n_na" +
"mespaceB\025\n\023_pod_label_selectorB\021\n\017_envir" +
"onment_id\"\210\001\n\027GetNodesAndPodsResponse\0227\n" +
"\005nodes\030\001 \003(\0132!.chalk.pubsub.v1.NodeStatu" +
"sPubSubR\005nodes\0224\n\004pods\030\002 \003(\0132 .chalk.pub" +
"sub.v1.PodStatusPubSubR\004pods\"\324\001\n\030GetNode" +
"sAndPodsUIRequest\022!\n\tnamespace\030\001 \001(\tH\000R\t" +
"namespace\210\001\001\0221\n\022pod_label_selector\030\002 \001(\t" +
"H\001R\020podLabelSelector\210\001\001\022*\n\016environment_i" +
"d\030\003 \001(\tH\002R\renvironmentId\210\001\001B\014\n\n_namespac" +
"eB\025\n\023_pod_label_selectorB\021\n\017_environment" +
"_id\"\226\001\n\031GetNodesAndPodsUIResponse\022=\n\005nod" +
"es\030\001 \003(\0132\'.chalk.kubernetes.v1.Kubernete" +
"sNodeDataR\005nodes\022:\n\004pods\030\002 \003(\0132&.chalk.k" +
"ubernetes.v1.KubernetesPodDataR\004pods*t\n\020" +
"UsageChartPeriod\022\"\n\036USAGE_CHART_PERIOD_U" +
"NSPECIFIED\020\000\022\034\n\030USAGE_CHART_PERIOD_DAILY" +
"\020\001\022\036\n\032USAGE_CHART_PERIOD_MONTHLY\020\002*\204\001\n\022U" +
"sageChartGrouping\022$\n USAGE_CHART_GROUPIN" +
"G_UNSPECIFIED\020\000\022&\n\"USAGE_CHART_GROUPING_" +
"INSTANCE_TYPE\020\001\022 \n\034USAGE_CHART_GROUPING_" +
"CLUSTER\020\0022\316\004\n\016BillingService\022r\n\021GetNodes" +
"AndPodsUI\022).chalk.server.v1.GetNodesAndP" +
"odsUIRequest\032*.chalk.server.v1.GetNodesA" +
"ndPodsUIResponse\"\006\220\002\001\200}\013\022l\n\017GetNodesAndP" +
"ods\022\'.chalk.server.v1.GetNodesAndPodsReq" +
"uest\032(.chalk.server.v1.GetNodesAndPodsRe" +
"sponse\"\006\220\002\001\200}\013\022f\n\rGetUsageChart\022%.chalk." +
"server.v1.GetUsageChartRequest\032&.chalk.s" +
"erver.v1.GetUsageChartResponse\"\006\220\002\001\200}\006\022x" +
"\n\023GetUtilizationRates\022+.chalk.server.v1." +
"GetUtilizationRatesRequest\032,.chalk.serve" +
"r.v1.GetUtilizationRatesResponse\"\006\220\002\001\200}\001" +
"\022x\n\023GetPodRequestCharts\022+.chalk.server.v" +
"1.GetPodRequestChartsRequest\032,.chalk.ser" +
"ver.v1.GetPodRequestChartsResponse\"\006\220\002\001\200" +
"}\006B\241\001\n\037ai.chalk.protos.chalk.server.v1B\014" +
"BillingProtoP\001Z\022server/v1;serverv1\242\002\003CSX" +
"\252\002\017Chalk.Server.V1\312\002\017Chalk\\Server\\V1\342\002\033C" +
"halk\\Server\\V1\\GPBMetadata\352\002\021Chalk::Serv" +
"er::V1b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
ai.chalk.protos.chalk.auth.v1.PermissionsProto.getDescriptor(),
ai.chalk.protos.chalk.kubernetes.v1.NodesProto.getDescriptor(),
ai.chalk.protos.chalk.kubernetes.v1.PodsProto.getDescriptor(),
ai.chalk.protos.chalk.pubsub.v1.NodeStatusProto.getDescriptor(),
ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.getDescriptor(),
ai.chalk.protos.chalk.server.v1.ChartProto.getDescriptor(),
ai.chalk.protos.chalk.server.v1.PodRequestProto.getDescriptor(),
ai.chalk.protos.chalk.usage.v1.RateProto.getDescriptor(),
});
internal_static_chalk_server_v1_GetUsageChartRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_chalk_server_v1_GetUsageChartRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_GetUsageChartRequest_descriptor,
new java.lang.String[] { "StartMs", "EndMs", "Period", "Grouping", });
internal_static_chalk_server_v1_GetUsageChartResponse_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_chalk_server_v1_GetUsageChartResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_GetUsageChartResponse_descriptor,
new java.lang.String[] { "Chart", });
internal_static_chalk_server_v1_GetUtilizationRatesRequest_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_chalk_server_v1_GetUtilizationRatesRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_GetUtilizationRatesRequest_descriptor,
new java.lang.String[] { });
internal_static_chalk_server_v1_GetUtilizationRatesResponse_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_chalk_server_v1_GetUtilizationRatesResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_GetUtilizationRatesResponse_descriptor,
new java.lang.String[] { "Rates", });
internal_static_chalk_server_v1_GetNodesAndPodsRequest_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_chalk_server_v1_GetNodesAndPodsRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_GetNodesAndPodsRequest_descriptor,
new java.lang.String[] { "Namespace", "PodLabelSelector", "EnvironmentId", });
internal_static_chalk_server_v1_GetNodesAndPodsResponse_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_chalk_server_v1_GetNodesAndPodsResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_GetNodesAndPodsResponse_descriptor,
new java.lang.String[] { "Nodes", "Pods", });
internal_static_chalk_server_v1_GetNodesAndPodsUIRequest_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_chalk_server_v1_GetNodesAndPodsUIRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_GetNodesAndPodsUIRequest_descriptor,
new java.lang.String[] { "Namespace", "PodLabelSelector", "EnvironmentId", });
internal_static_chalk_server_v1_GetNodesAndPodsUIResponse_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_chalk_server_v1_GetNodesAndPodsUIResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_GetNodesAndPodsUIResponse_descriptor,
new java.lang.String[] { "Nodes", "Pods", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(ai.chalk.protos.chalk.auth.v1.PermissionsProto.permission);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
ai.chalk.protos.chalk.auth.v1.PermissionsProto.getDescriptor();
ai.chalk.protos.chalk.kubernetes.v1.NodesProto.getDescriptor();
ai.chalk.protos.chalk.kubernetes.v1.PodsProto.getDescriptor();
ai.chalk.protos.chalk.pubsub.v1.NodeStatusProto.getDescriptor();
ai.chalk.protos.chalk.pubsub.v1.PodStatusProto.getDescriptor();
ai.chalk.protos.chalk.server.v1.ChartProto.getDescriptor();
ai.chalk.protos.chalk.server.v1.PodRequestProto.getDescriptor();
ai.chalk.protos.chalk.usage.v1.RateProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/BillingServiceGrpc.java
|
package ai.chalk.protos.chalk.server.v1;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.64.0)",
comments = "Source: chalk/server/v1/billing.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class BillingServiceGrpc {
private BillingServiceGrpc() {}
public static final java.lang.String SERVICE_NAME = "chalk.server.v1.BillingService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetNodesAndPodsUIRequest,
ai.chalk.protos.chalk.server.v1.GetNodesAndPodsUIResponse> getGetNodesAndPodsUIMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetNodesAndPodsUI",
requestType = ai.chalk.protos.chalk.server.v1.GetNodesAndPodsUIRequest.class,
responseType = ai.chalk.protos.chalk.server.v1.GetNodesAndPodsUIResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetNodesAndPodsUIRequest,
ai.chalk.protos.chalk.server.v1.GetNodesAndPodsUIResponse> getGetNodesAndPodsUIMethod() {
io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetNodesAndPodsUIRequest, ai.chalk.protos.chalk.server.v1.GetNodesAndPodsUIResponse> getGetNodesAndPodsUIMethod;
if ((getGetNodesAndPodsUIMethod = BillingServiceGrpc.getGetNodesAndPodsUIMethod) == null) {
synchronized (BillingServiceGrpc.class) {
if ((getGetNodesAndPodsUIMethod = BillingServiceGrpc.getGetNodesAndPodsUIMethod) == null) {
BillingServiceGrpc.getGetNodesAndPodsUIMethod = getGetNodesAndPodsUIMethod =
io.grpc.MethodDescriptor.<ai.chalk.protos.chalk.server.v1.GetNodesAndPodsUIRequest, ai.chalk.protos.chalk.server.v1.GetNodesAndPodsUIResponse>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNodesAndPodsUI"))
.setSafe(true)
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.GetNodesAndPodsUIRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.GetNodesAndPodsUIResponse.getDefaultInstance()))
.setSchemaDescriptor(new BillingServiceMethodDescriptorSupplier("GetNodesAndPodsUI"))
.build();
}
}
}
return getGetNodesAndPodsUIMethod;
}
private static volatile io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetNodesAndPodsRequest,
ai.chalk.protos.chalk.server.v1.GetNodesAndPodsResponse> getGetNodesAndPodsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetNodesAndPods",
requestType = ai.chalk.protos.chalk.server.v1.GetNodesAndPodsRequest.class,
responseType = ai.chalk.protos.chalk.server.v1.GetNodesAndPodsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetNodesAndPodsRequest,
ai.chalk.protos.chalk.server.v1.GetNodesAndPodsResponse> getGetNodesAndPodsMethod() {
io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetNodesAndPodsRequest, ai.chalk.protos.chalk.server.v1.GetNodesAndPodsResponse> getGetNodesAndPodsMethod;
if ((getGetNodesAndPodsMethod = BillingServiceGrpc.getGetNodesAndPodsMethod) == null) {
synchronized (BillingServiceGrpc.class) {
if ((getGetNodesAndPodsMethod = BillingServiceGrpc.getGetNodesAndPodsMethod) == null) {
BillingServiceGrpc.getGetNodesAndPodsMethod = getGetNodesAndPodsMethod =
io.grpc.MethodDescriptor.<ai.chalk.protos.chalk.server.v1.GetNodesAndPodsRequest, ai.chalk.protos.chalk.server.v1.GetNodesAndPodsResponse>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNodesAndPods"))
.setSafe(true)
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.GetNodesAndPodsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.GetNodesAndPodsResponse.getDefaultInstance()))
.setSchemaDescriptor(new BillingServiceMethodDescriptorSupplier("GetNodesAndPods"))
.build();
}
}
}
return getGetNodesAndPodsMethod;
}
private static volatile io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetUsageChartRequest,
ai.chalk.protos.chalk.server.v1.GetUsageChartResponse> getGetUsageChartMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetUsageChart",
requestType = ai.chalk.protos.chalk.server.v1.GetUsageChartRequest.class,
responseType = ai.chalk.protos.chalk.server.v1.GetUsageChartResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetUsageChartRequest,
ai.chalk.protos.chalk.server.v1.GetUsageChartResponse> getGetUsageChartMethod() {
io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetUsageChartRequest, ai.chalk.protos.chalk.server.v1.GetUsageChartResponse> getGetUsageChartMethod;
if ((getGetUsageChartMethod = BillingServiceGrpc.getGetUsageChartMethod) == null) {
synchronized (BillingServiceGrpc.class) {
if ((getGetUsageChartMethod = BillingServiceGrpc.getGetUsageChartMethod) == null) {
BillingServiceGrpc.getGetUsageChartMethod = getGetUsageChartMethod =
io.grpc.MethodDescriptor.<ai.chalk.protos.chalk.server.v1.GetUsageChartRequest, ai.chalk.protos.chalk.server.v1.GetUsageChartResponse>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetUsageChart"))
.setSafe(true)
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.GetUsageChartRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.GetUsageChartResponse.getDefaultInstance()))
.setSchemaDescriptor(new BillingServiceMethodDescriptorSupplier("GetUsageChart"))
.build();
}
}
}
return getGetUsageChartMethod;
}
private static volatile io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetUtilizationRatesRequest,
ai.chalk.protos.chalk.server.v1.GetUtilizationRatesResponse> getGetUtilizationRatesMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetUtilizationRates",
requestType = ai.chalk.protos.chalk.server.v1.GetUtilizationRatesRequest.class,
responseType = ai.chalk.protos.chalk.server.v1.GetUtilizationRatesResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetUtilizationRatesRequest,
ai.chalk.protos.chalk.server.v1.GetUtilizationRatesResponse> getGetUtilizationRatesMethod() {
io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetUtilizationRatesRequest, ai.chalk.protos.chalk.server.v1.GetUtilizationRatesResponse> getGetUtilizationRatesMethod;
if ((getGetUtilizationRatesMethod = BillingServiceGrpc.getGetUtilizationRatesMethod) == null) {
synchronized (BillingServiceGrpc.class) {
if ((getGetUtilizationRatesMethod = BillingServiceGrpc.getGetUtilizationRatesMethod) == null) {
BillingServiceGrpc.getGetUtilizationRatesMethod = getGetUtilizationRatesMethod =
io.grpc.MethodDescriptor.<ai.chalk.protos.chalk.server.v1.GetUtilizationRatesRequest, ai.chalk.protos.chalk.server.v1.GetUtilizationRatesResponse>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetUtilizationRates"))
.setSafe(true)
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.GetUtilizationRatesRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.GetUtilizationRatesResponse.getDefaultInstance()))
.setSchemaDescriptor(new BillingServiceMethodDescriptorSupplier("GetUtilizationRates"))
.build();
}
}
}
return getGetUtilizationRatesMethod;
}
private static volatile io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetPodRequestChartsRequest,
ai.chalk.protos.chalk.server.v1.GetPodRequestChartsResponse> getGetPodRequestChartsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetPodRequestCharts",
requestType = ai.chalk.protos.chalk.server.v1.GetPodRequestChartsRequest.class,
responseType = ai.chalk.protos.chalk.server.v1.GetPodRequestChartsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetPodRequestChartsRequest,
ai.chalk.protos.chalk.server.v1.GetPodRequestChartsResponse> getGetPodRequestChartsMethod() {
io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetPodRequestChartsRequest, ai.chalk.protos.chalk.server.v1.GetPodRequestChartsResponse> getGetPodRequestChartsMethod;
if ((getGetPodRequestChartsMethod = BillingServiceGrpc.getGetPodRequestChartsMethod) == null) {
synchronized (BillingServiceGrpc.class) {
if ((getGetPodRequestChartsMethod = BillingServiceGrpc.getGetPodRequestChartsMethod) == null) {
BillingServiceGrpc.getGetPodRequestChartsMethod = getGetPodRequestChartsMethod =
io.grpc.MethodDescriptor.<ai.chalk.protos.chalk.server.v1.GetPodRequestChartsRequest, ai.chalk.protos.chalk.server.v1.GetPodRequestChartsResponse>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPodRequestCharts"))
.setSafe(true)
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.GetPodRequestChartsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.GetPodRequestChartsResponse.getDefaultInstance()))
.setSchemaDescriptor(new BillingServiceMethodDescriptorSupplier("GetPodRequestCharts"))
.build();
}
}
}
return getGetPodRequestChartsMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static BillingServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<BillingServiceStub> factory =
new io.grpc.stub.AbstractStub.StubFactory<BillingServiceStub>() {
@java.lang.Override
public BillingServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new BillingServiceStub(channel, callOptions);
}
};
return BillingServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static BillingServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<BillingServiceBlockingStub> factory =
new io.grpc.stub.AbstractStub.StubFactory<BillingServiceBlockingStub>() {
@java.lang.Override
public BillingServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new BillingServiceBlockingStub(channel, callOptions);
}
};
return BillingServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static BillingServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<BillingServiceFutureStub> factory =
new io.grpc.stub.AbstractStub.StubFactory<BillingServiceFutureStub>() {
@java.lang.Override
public BillingServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new BillingServiceFutureStub(channel, callOptions);
}
};
return BillingServiceFutureStub.newStub(factory, channel);
}
/**
*/
public interface AsyncService {
/**
* <pre>
* GetNodesAndPodsUI returns the nodes and pods for the team by default,
* not just a single environment. To limit the scope, add filters to
* the request object.
* Use this endpoint going forward; GetNodesAndPods should be deprecated because
* it reuses PubSub types that are dangerous to update and are not intended for UI use.
* </pre>
*/
default void getNodesAndPodsUI(ai.chalk.protos.chalk.server.v1.GetNodesAndPodsUIRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetNodesAndPodsUIResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNodesAndPodsUIMethod(), responseObserver);
}
/**
* <pre>
* GetNodesAndPods returns the nodes and pods for the team by default,
* not just a single environment. To limit the scope, add filters to
* the request object.
* </pre>
*/
default void getNodesAndPods(ai.chalk.protos.chalk.server.v1.GetNodesAndPodsRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetNodesAndPodsResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNodesAndPodsMethod(), responseObserver);
}
/**
* <pre>
* GetUsageChart shows the Chalk credit usage between a provided start and
* end period. The usage can be grouped by UsageChartPeriod for daily or
* monthly usage, and by UsageChartGrouping for instance type or cluster usage.
* </pre>
*/
default void getUsageChart(ai.chalk.protos.chalk.server.v1.GetUsageChartRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetUsageChartResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetUsageChartMethod(), responseObserver);
}
/**
* <pre>
* GetUtilizationRates returns the current utilization rates for all
* instance types.
* </pre>
*/
default void getUtilizationRates(ai.chalk.protos.chalk.server.v1.GetUtilizationRatesRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetUtilizationRatesResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetUtilizationRatesMethod(), responseObserver);
}
/**
*/
default void getPodRequestCharts(ai.chalk.protos.chalk.server.v1.GetPodRequestChartsRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetPodRequestChartsResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPodRequestChartsMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service BillingService.
*/
public static abstract class BillingServiceImplBase
implements io.grpc.BindableService, AsyncService {
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return BillingServiceGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service BillingService.
*/
public static final class BillingServiceStub
extends io.grpc.stub.AbstractAsyncStub<BillingServiceStub> {
private BillingServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected BillingServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new BillingServiceStub(channel, callOptions);
}
/**
* <pre>
* GetNodesAndPodsUI returns the nodes and pods for the team by default,
* not just a single environment. To limit the scope, add filters to
* the request object.
* Use this endpoint going forward; GetNodesAndPods should be deprecated because
* it reuses PubSub types that are dangerous to update and are not intended for UI use.
* </pre>
*/
public void getNodesAndPodsUI(ai.chalk.protos.chalk.server.v1.GetNodesAndPodsUIRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetNodesAndPodsUIResponse> responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetNodesAndPodsUIMethod(), getCallOptions()), request, responseObserver);
}
/**
* <pre>
* GetNodesAndPods returns the nodes and pods for the team by default,
* not just a single environment. To limit the scope, add filters to
* the request object.
* </pre>
*/
public void getNodesAndPods(ai.chalk.protos.chalk.server.v1.GetNodesAndPodsRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetNodesAndPodsResponse> responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetNodesAndPodsMethod(), getCallOptions()), request, responseObserver);
}
/**
* <pre>
* GetUsageChart shows the Chalk credit usage between a provided start and
* end period. The usage can be grouped by UsageChartPeriod for daily or
* monthly usage, and by UsageChartGrouping for instance type or cluster usage.
* </pre>
*/
public void getUsageChart(ai.chalk.protos.chalk.server.v1.GetUsageChartRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetUsageChartResponse> responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetUsageChartMethod(), getCallOptions()), request, responseObserver);
}
/**
* <pre>
* GetUtilizationRates returns the current utilization rates for all
* instance types.
* </pre>
*/
public void getUtilizationRates(ai.chalk.protos.chalk.server.v1.GetUtilizationRatesRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetUtilizationRatesResponse> responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetUtilizationRatesMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void getPodRequestCharts(ai.chalk.protos.chalk.server.v1.GetPodRequestChartsRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetPodRequestChartsResponse> responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetPodRequestChartsMethod(), getCallOptions()), request, responseObserver);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service BillingService.
*/
public static final class BillingServiceBlockingStub
extends io.grpc.stub.AbstractBlockingStub<BillingServiceBlockingStub> {
private BillingServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected BillingServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new BillingServiceBlockingStub(channel, callOptions);
}
/**
* <pre>
* GetNodesAndPodsUI returns the nodes and pods for the team by default,
* not just a single environment. To limit the scope, add filters to
* the request object.
* Use this endpoint going forward; GetNodesAndPods should be deprecated because
* it reuses PubSub types that are dangerous to update and are not intended for UI use.
* </pre>
*/
public ai.chalk.protos.chalk.server.v1.GetNodesAndPodsUIResponse getNodesAndPodsUI(ai.chalk.protos.chalk.server.v1.GetNodesAndPodsUIRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetNodesAndPodsUIMethod(), getCallOptions(), request);
}
/**
* <pre>
* GetNodesAndPods returns the nodes and pods for the team by default,
* not just a single environment. To limit the scope, add filters to
* the request object.
* </pre>
*/
public ai.chalk.protos.chalk.server.v1.GetNodesAndPodsResponse getNodesAndPods(ai.chalk.protos.chalk.server.v1.GetNodesAndPodsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetNodesAndPodsMethod(), getCallOptions(), request);
}
/**
* <pre>
* GetUsageChart shows the Chalk credit usage between a provided start and
* end period. The usage can be grouped by UsageChartPeriod for daily or
* monthly usage, and by UsageChartGrouping for instance type or cluster usage.
* </pre>
*/
public ai.chalk.protos.chalk.server.v1.GetUsageChartResponse getUsageChart(ai.chalk.protos.chalk.server.v1.GetUsageChartRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetUsageChartMethod(), getCallOptions(), request);
}
/**
* <pre>
* GetUtilizationRates returns the current utilization rates for all
* instance types.
* </pre>
*/
public ai.chalk.protos.chalk.server.v1.GetUtilizationRatesResponse getUtilizationRates(ai.chalk.protos.chalk.server.v1.GetUtilizationRatesRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetUtilizationRatesMethod(), getCallOptions(), request);
}
/**
*/
public ai.chalk.protos.chalk.server.v1.GetPodRequestChartsResponse getPodRequestCharts(ai.chalk.protos.chalk.server.v1.GetPodRequestChartsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetPodRequestChartsMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service BillingService.
*/
public static final class BillingServiceFutureStub
extends io.grpc.stub.AbstractFutureStub<BillingServiceFutureStub> {
private BillingServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected BillingServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new BillingServiceFutureStub(channel, callOptions);
}
/**
* <pre>
* GetNodesAndPodsUI returns the nodes and pods for the team by default,
* not just a single environment. To limit the scope, add filters to
* the request object.
* Use this endpoint going forward; GetNodesAndPods should be deprecated because
* it reuses PubSub types that are dangerous to update and are not intended for UI use.
* </pre>
*/
public com.google.common.util.concurrent.ListenableFuture<ai.chalk.protos.chalk.server.v1.GetNodesAndPodsUIResponse> getNodesAndPodsUI(
ai.chalk.protos.chalk.server.v1.GetNodesAndPodsUIRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetNodesAndPodsUIMethod(), getCallOptions()), request);
}
/**
* <pre>
* GetNodesAndPods returns the nodes and pods for the team by default,
* not just a single environment. To limit the scope, add filters to
* the request object.
* </pre>
*/
public com.google.common.util.concurrent.ListenableFuture<ai.chalk.protos.chalk.server.v1.GetNodesAndPodsResponse> getNodesAndPods(
ai.chalk.protos.chalk.server.v1.GetNodesAndPodsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetNodesAndPodsMethod(), getCallOptions()), request);
}
/**
* <pre>
* GetUsageChart shows the Chalk credit usage between a provided start and
* end period. The usage can be grouped by UsageChartPeriod for daily or
* monthly usage, and by UsageChartGrouping for instance type or cluster usage.
* </pre>
*/
public com.google.common.util.concurrent.ListenableFuture<ai.chalk.protos.chalk.server.v1.GetUsageChartResponse> getUsageChart(
ai.chalk.protos.chalk.server.v1.GetUsageChartRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetUsageChartMethod(), getCallOptions()), request);
}
/**
* <pre>
* GetUtilizationRates returns the current utilization rates for all
* instance types.
* </pre>
*/
public com.google.common.util.concurrent.ListenableFuture<ai.chalk.protos.chalk.server.v1.GetUtilizationRatesResponse> getUtilizationRates(
ai.chalk.protos.chalk.server.v1.GetUtilizationRatesRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetUtilizationRatesMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<ai.chalk.protos.chalk.server.v1.GetPodRequestChartsResponse> getPodRequestCharts(
ai.chalk.protos.chalk.server.v1.GetPodRequestChartsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetPodRequestChartsMethod(), getCallOptions()), request);
}
}
private static final int METHODID_GET_NODES_AND_PODS_UI = 0;
private static final int METHODID_GET_NODES_AND_PODS = 1;
private static final int METHODID_GET_USAGE_CHART = 2;
private static final int METHODID_GET_UTILIZATION_RATES = 3;
private static final int METHODID_GET_POD_REQUEST_CHARTS = 4;
private static final class MethodHandlers<Req, Resp> implements
io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
private final AsyncService serviceImpl;
private final int methodId;
MethodHandlers(AsyncService serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
switch (methodId) {
case METHODID_GET_NODES_AND_PODS_UI:
serviceImpl.getNodesAndPodsUI((ai.chalk.protos.chalk.server.v1.GetNodesAndPodsUIRequest) request,
(io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetNodesAndPodsUIResponse>) responseObserver);
break;
case METHODID_GET_NODES_AND_PODS:
serviceImpl.getNodesAndPods((ai.chalk.protos.chalk.server.v1.GetNodesAndPodsRequest) request,
(io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetNodesAndPodsResponse>) responseObserver);
break;
case METHODID_GET_USAGE_CHART:
serviceImpl.getUsageChart((ai.chalk.protos.chalk.server.v1.GetUsageChartRequest) request,
(io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetUsageChartResponse>) responseObserver);
break;
case METHODID_GET_UTILIZATION_RATES:
serviceImpl.getUtilizationRates((ai.chalk.protos.chalk.server.v1.GetUtilizationRatesRequest) request,
(io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetUtilizationRatesResponse>) responseObserver);
break;
case METHODID_GET_POD_REQUEST_CHARTS:
serviceImpl.getPodRequestCharts((ai.chalk.protos.chalk.server.v1.GetPodRequestChartsRequest) request,
(io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetPodRequestChartsResponse>) responseObserver);
break;
default:
throw new AssertionError();
}
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public io.grpc.stub.StreamObserver<Req> invoke(
io.grpc.stub.StreamObserver<Resp> responseObserver) {
switch (methodId) {
default:
throw new AssertionError();
}
}
}
public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getGetNodesAndPodsUIMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
ai.chalk.protos.chalk.server.v1.GetNodesAndPodsUIRequest,
ai.chalk.protos.chalk.server.v1.GetNodesAndPodsUIResponse>(
service, METHODID_GET_NODES_AND_PODS_UI)))
.addMethod(
getGetNodesAndPodsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
ai.chalk.protos.chalk.server.v1.GetNodesAndPodsRequest,
ai.chalk.protos.chalk.server.v1.GetNodesAndPodsResponse>(
service, METHODID_GET_NODES_AND_PODS)))
.addMethod(
getGetUsageChartMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
ai.chalk.protos.chalk.server.v1.GetUsageChartRequest,
ai.chalk.protos.chalk.server.v1.GetUsageChartResponse>(
service, METHODID_GET_USAGE_CHART)))
.addMethod(
getGetUtilizationRatesMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
ai.chalk.protos.chalk.server.v1.GetUtilizationRatesRequest,
ai.chalk.protos.chalk.server.v1.GetUtilizationRatesResponse>(
service, METHODID_GET_UTILIZATION_RATES)))
.addMethod(
getGetPodRequestChartsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
ai.chalk.protos.chalk.server.v1.GetPodRequestChartsRequest,
ai.chalk.protos.chalk.server.v1.GetPodRequestChartsResponse>(
service, METHODID_GET_POD_REQUEST_CHARTS)))
.build();
}
private static abstract class BillingServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
BillingServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return ai.chalk.protos.chalk.server.v1.BillingProto.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("BillingService");
}
}
private static final class BillingServiceFileDescriptorSupplier
extends BillingServiceBaseDescriptorSupplier {
BillingServiceFileDescriptorSupplier() {}
}
private static final class BillingServiceMethodDescriptorSupplier
extends BillingServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final java.lang.String methodName;
BillingServiceMethodDescriptorSupplier(java.lang.String methodName) {
this.methodName = methodName;
}
@java.lang.Override
public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
return getServiceDescriptor().findMethodByName(methodName);
}
}
private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
public static io.grpc.ServiceDescriptor getServiceDescriptor() {
io.grpc.ServiceDescriptor result = serviceDescriptor;
if (result == null) {
synchronized (BillingServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new BillingServiceFileDescriptorSupplier())
.addMethod(getGetNodesAndPodsUIMethod())
.addMethod(getGetNodesAndPodsMethod())
.addMethod(getGetUsageChartMethod())
.addMethod(getGetUtilizationRatesMethod())
.addMethod(getGetPodRequestChartsMethod())
.build();
}
}
}
return result;
}
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/BootstrapExtraSettings.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/bootstrap.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
/**
* Protobuf type {@code chalk.server.v1.BootstrapExtraSettings}
*/
public final class BootstrapExtraSettings extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.server.v1.BootstrapExtraSettings)
BootstrapExtraSettingsOrBuilder {
private static final long serialVersionUID = 0L;
// Use BootstrapExtraSettings.newBuilder() to construct.
private BootstrapExtraSettings(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private BootstrapExtraSettings() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BootstrapExtraSettings();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.BootstrapProto.internal_static_chalk_server_v1_BootstrapExtraSettings_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 1:
return internalGetGlobal();
case 2:
return internalGetEnvironments();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.BootstrapProto.internal_static_chalk_server_v1_BootstrapExtraSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.BootstrapExtraSettings.class, ai.chalk.protos.chalk.server.v1.BootstrapExtraSettings.Builder.class);
}
public static final int GLOBAL_FIELD_NUMBER = 1;
private static final class GlobalDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.Boolean> defaultEntry =
com.google.protobuf.MapEntry
.<java.lang.String, java.lang.Boolean>newDefaultInstance(
ai.chalk.protos.chalk.server.v1.BootstrapProto.internal_static_chalk_server_v1_BootstrapExtraSettings_GlobalEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.BOOL,
false);
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField<
java.lang.String, java.lang.Boolean> global_;
private com.google.protobuf.MapField<java.lang.String, java.lang.Boolean>
internalGetGlobal() {
if (global_ == null) {
return com.google.protobuf.MapField.emptyMapField(
GlobalDefaultEntryHolder.defaultEntry);
}
return global_;
}
public int getGlobalCount() {
return internalGetGlobal().getMap().size();
}
/**
* <code>map<string, bool> global = 1 [json_name = "global"];</code>
*/
@java.lang.Override
public boolean containsGlobal(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetGlobal().getMap().containsKey(key);
}
/**
* Use {@link #getGlobalMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map<java.lang.String, java.lang.Boolean> getGlobal() {
return getGlobalMap();
}
/**
* <code>map<string, bool> global = 1 [json_name = "global"];</code>
*/
@java.lang.Override
public java.util.Map<java.lang.String, java.lang.Boolean> getGlobalMap() {
return internalGetGlobal().getMap();
}
/**
* <code>map<string, bool> global = 1 [json_name = "global"];</code>
*/
@java.lang.Override
public boolean getGlobalOrDefault(
java.lang.String key,
boolean defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, java.lang.Boolean> map =
internalGetGlobal().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <code>map<string, bool> global = 1 [json_name = "global"];</code>
*/
@java.lang.Override
public boolean getGlobalOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, java.lang.Boolean> map =
internalGetGlobal().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int ENVIRONMENTS_FIELD_NUMBER = 2;
private static final class EnvironmentsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment> defaultEntry =
com.google.protobuf.MapEntry
.<java.lang.String, ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment>newDefaultInstance(
ai.chalk.protos.chalk.server.v1.BootstrapProto.internal_static_chalk_server_v1_BootstrapExtraSettings_EnvironmentsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment.getDefaultInstance());
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField<
java.lang.String, ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment> environments_;
private com.google.protobuf.MapField<java.lang.String, ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment>
internalGetEnvironments() {
if (environments_ == null) {
return com.google.protobuf.MapField.emptyMapField(
EnvironmentsDefaultEntryHolder.defaultEntry);
}
return environments_;
}
public int getEnvironmentsCount() {
return internalGetEnvironments().getMap().size();
}
/**
* <code>map<string, .chalk.server.v1.BootstrapExtraSettingsEnvironment> environments = 2 [json_name = "environments"];</code>
*/
@java.lang.Override
public boolean containsEnvironments(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetEnvironments().getMap().containsKey(key);
}
/**
* Use {@link #getEnvironmentsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map<java.lang.String, ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment> getEnvironments() {
return getEnvironmentsMap();
}
/**
* <code>map<string, .chalk.server.v1.BootstrapExtraSettingsEnvironment> environments = 2 [json_name = "environments"];</code>
*/
@java.lang.Override
public java.util.Map<java.lang.String, ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment> getEnvironmentsMap() {
return internalGetEnvironments().getMap();
}
/**
* <code>map<string, .chalk.server.v1.BootstrapExtraSettingsEnvironment> environments = 2 [json_name = "environments"];</code>
*/
@java.lang.Override
public /* nullable */
ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment getEnvironmentsOrDefault(
java.lang.String key,
/* nullable */
ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment> map =
internalGetEnvironments().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <code>map<string, .chalk.server.v1.BootstrapExtraSettingsEnvironment> environments = 2 [json_name = "environments"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment getEnvironmentsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment> map =
internalGetEnvironments().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
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 {
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetGlobal(),
GlobalDefaultEntryHolder.defaultEntry,
1);
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetEnvironments(),
EnvironmentsDefaultEntryHolder.defaultEntry,
2);
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (java.util.Map.Entry<java.lang.String, java.lang.Boolean> entry
: internalGetGlobal().getMap().entrySet()) {
com.google.protobuf.MapEntry<java.lang.String, java.lang.Boolean>
global__ = GlobalDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, global__);
}
for (java.util.Map.Entry<java.lang.String, ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment> entry
: internalGetEnvironments().getMap().entrySet()) {
com.google.protobuf.MapEntry<java.lang.String, ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment>
environments__ = EnvironmentsDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, environments__);
}
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 ai.chalk.protos.chalk.server.v1.BootstrapExtraSettings)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.server.v1.BootstrapExtraSettings other = (ai.chalk.protos.chalk.server.v1.BootstrapExtraSettings) obj;
if (!internalGetGlobal().equals(
other.internalGetGlobal())) return false;
if (!internalGetEnvironments().equals(
other.internalGetEnvironments())) 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 (!internalGetGlobal().getMap().isEmpty()) {
hash = (37 * hash) + GLOBAL_FIELD_NUMBER;
hash = (53 * hash) + internalGetGlobal().hashCode();
}
if (!internalGetEnvironments().getMap().isEmpty()) {
hash = (37 * hash) + ENVIRONMENTS_FIELD_NUMBER;
hash = (53 * hash) + internalGetEnvironments().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.server.v1.BootstrapExtraSettings parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.BootstrapExtraSettings parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.BootstrapExtraSettings parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.BootstrapExtraSettings parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.BootstrapExtraSettings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.BootstrapExtraSettings parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.BootstrapExtraSettings parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.BootstrapExtraSettings 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 ai.chalk.protos.chalk.server.v1.BootstrapExtraSettings parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.BootstrapExtraSettings 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 ai.chalk.protos.chalk.server.v1.BootstrapExtraSettings parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.BootstrapExtraSettings 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(ai.chalk.protos.chalk.server.v1.BootstrapExtraSettings prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code chalk.server.v1.BootstrapExtraSettings}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.server.v1.BootstrapExtraSettings)
ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.BootstrapProto.internal_static_chalk_server_v1_BootstrapExtraSettings_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 1:
return internalGetGlobal();
case 2:
return internalGetEnvironments();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
int number) {
switch (number) {
case 1:
return internalGetMutableGlobal();
case 2:
return internalGetMutableEnvironments();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.BootstrapProto.internal_static_chalk_server_v1_BootstrapExtraSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.BootstrapExtraSettings.class, ai.chalk.protos.chalk.server.v1.BootstrapExtraSettings.Builder.class);
}
// Construct using ai.chalk.protos.chalk.server.v1.BootstrapExtraSettings.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
internalGetMutableGlobal().clear();
internalGetMutableEnvironments().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.server.v1.BootstrapProto.internal_static_chalk_server_v1_BootstrapExtraSettings_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.BootstrapExtraSettings getDefaultInstanceForType() {
return ai.chalk.protos.chalk.server.v1.BootstrapExtraSettings.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.BootstrapExtraSettings build() {
ai.chalk.protos.chalk.server.v1.BootstrapExtraSettings result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.BootstrapExtraSettings buildPartial() {
ai.chalk.protos.chalk.server.v1.BootstrapExtraSettings result = new ai.chalk.protos.chalk.server.v1.BootstrapExtraSettings(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ai.chalk.protos.chalk.server.v1.BootstrapExtraSettings result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.global_ = internalGetGlobal();
result.global_.makeImmutable();
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.environments_ = internalGetEnvironments().build(EnvironmentsDefaultEntryHolder.defaultEntry);
}
}
@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 ai.chalk.protos.chalk.server.v1.BootstrapExtraSettings) {
return mergeFrom((ai.chalk.protos.chalk.server.v1.BootstrapExtraSettings)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.server.v1.BootstrapExtraSettings other) {
if (other == ai.chalk.protos.chalk.server.v1.BootstrapExtraSettings.getDefaultInstance()) return this;
internalGetMutableGlobal().mergeFrom(
other.internalGetGlobal());
bitField0_ |= 0x00000001;
internalGetMutableEnvironments().mergeFrom(
other.internalGetEnvironments());
bitField0_ |= 0x00000002;
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.MapEntry<java.lang.String, java.lang.Boolean>
global__ = input.readMessage(
GlobalDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableGlobal().getMutableMap().put(
global__.getKey(), global__.getValue());
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
com.google.protobuf.MapEntry<java.lang.String, ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment>
environments__ = input.readMessage(
EnvironmentsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableEnvironments().ensureBuilderMap().put(
environments__.getKey(), environments__.getValue());
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.MapField<
java.lang.String, java.lang.Boolean> global_;
private com.google.protobuf.MapField<java.lang.String, java.lang.Boolean>
internalGetGlobal() {
if (global_ == null) {
return com.google.protobuf.MapField.emptyMapField(
GlobalDefaultEntryHolder.defaultEntry);
}
return global_;
}
private com.google.protobuf.MapField<java.lang.String, java.lang.Boolean>
internalGetMutableGlobal() {
if (global_ == null) {
global_ = com.google.protobuf.MapField.newMapField(
GlobalDefaultEntryHolder.defaultEntry);
}
if (!global_.isMutable()) {
global_ = global_.copy();
}
bitField0_ |= 0x00000001;
onChanged();
return global_;
}
public int getGlobalCount() {
return internalGetGlobal().getMap().size();
}
/**
* <code>map<string, bool> global = 1 [json_name = "global"];</code>
*/
@java.lang.Override
public boolean containsGlobal(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetGlobal().getMap().containsKey(key);
}
/**
* Use {@link #getGlobalMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map<java.lang.String, java.lang.Boolean> getGlobal() {
return getGlobalMap();
}
/**
* <code>map<string, bool> global = 1 [json_name = "global"];</code>
*/
@java.lang.Override
public java.util.Map<java.lang.String, java.lang.Boolean> getGlobalMap() {
return internalGetGlobal().getMap();
}
/**
* <code>map<string, bool> global = 1 [json_name = "global"];</code>
*/
@java.lang.Override
public boolean getGlobalOrDefault(
java.lang.String key,
boolean defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, java.lang.Boolean> map =
internalGetGlobal().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <code>map<string, bool> global = 1 [json_name = "global"];</code>
*/
@java.lang.Override
public boolean getGlobalOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, java.lang.Boolean> map =
internalGetGlobal().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearGlobal() {
bitField0_ = (bitField0_ & ~0x00000001);
internalGetMutableGlobal().getMutableMap()
.clear();
return this;
}
/**
* <code>map<string, bool> global = 1 [json_name = "global"];</code>
*/
public Builder removeGlobal(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableGlobal().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map<java.lang.String, java.lang.Boolean>
getMutableGlobal() {
bitField0_ |= 0x00000001;
return internalGetMutableGlobal().getMutableMap();
}
/**
* <code>map<string, bool> global = 1 [json_name = "global"];</code>
*/
public Builder putGlobal(
java.lang.String key,
boolean value) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableGlobal().getMutableMap()
.put(key, value);
bitField0_ |= 0x00000001;
return this;
}
/**
* <code>map<string, bool> global = 1 [json_name = "global"];</code>
*/
public Builder putAllGlobal(
java.util.Map<java.lang.String, java.lang.Boolean> values) {
internalGetMutableGlobal().getMutableMap()
.putAll(values);
bitField0_ |= 0x00000001;
return this;
}
private static final class EnvironmentsConverter implements com.google.protobuf.MapFieldBuilder.Converter<java.lang.String, ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironmentOrBuilder, ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment> {
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment build(ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironmentOrBuilder val) {
if (val instanceof ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment) { return (ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment) val; }
return ((ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment.Builder) val).build();
}
@java.lang.Override
public com.google.protobuf.MapEntry<java.lang.String, ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment> defaultEntry() {
return EnvironmentsDefaultEntryHolder.defaultEntry;
}
};
private static final EnvironmentsConverter environmentsConverter = new EnvironmentsConverter();
private com.google.protobuf.MapFieldBuilder<
java.lang.String, ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironmentOrBuilder, ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment, ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment.Builder> environments_;
private com.google.protobuf.MapFieldBuilder<java.lang.String, ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironmentOrBuilder, ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment, ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment.Builder>
internalGetEnvironments() {
if (environments_ == null) {
return new com.google.protobuf.MapFieldBuilder<>(environmentsConverter);
}
return environments_;
}
private com.google.protobuf.MapFieldBuilder<java.lang.String, ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironmentOrBuilder, ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment, ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment.Builder>
internalGetMutableEnvironments() {
if (environments_ == null) {
environments_ = new com.google.protobuf.MapFieldBuilder<>(environmentsConverter);
}
bitField0_ |= 0x00000002;
onChanged();
return environments_;
}
public int getEnvironmentsCount() {
return internalGetEnvironments().ensureBuilderMap().size();
}
/**
* <code>map<string, .chalk.server.v1.BootstrapExtraSettingsEnvironment> environments = 2 [json_name = "environments"];</code>
*/
@java.lang.Override
public boolean containsEnvironments(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetEnvironments().ensureBuilderMap().containsKey(key);
}
/**
* Use {@link #getEnvironmentsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map<java.lang.String, ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment> getEnvironments() {
return getEnvironmentsMap();
}
/**
* <code>map<string, .chalk.server.v1.BootstrapExtraSettingsEnvironment> environments = 2 [json_name = "environments"];</code>
*/
@java.lang.Override
public java.util.Map<java.lang.String, ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment> getEnvironmentsMap() {
return internalGetEnvironments().getImmutableMap();
}
/**
* <code>map<string, .chalk.server.v1.BootstrapExtraSettingsEnvironment> environments = 2 [json_name = "environments"];</code>
*/
@java.lang.Override
public /* nullable */
ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment getEnvironmentsOrDefault(
java.lang.String key,
/* nullable */
ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironmentOrBuilder> map = internalGetMutableEnvironments().ensureBuilderMap();
return map.containsKey(key) ? environmentsConverter.build(map.get(key)) : defaultValue;
}
/**
* <code>map<string, .chalk.server.v1.BootstrapExtraSettingsEnvironment> environments = 2 [json_name = "environments"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment getEnvironmentsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironmentOrBuilder> map = internalGetMutableEnvironments().ensureBuilderMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return environmentsConverter.build(map.get(key));
}
public Builder clearEnvironments() {
bitField0_ = (bitField0_ & ~0x00000002);
internalGetMutableEnvironments().clear();
return this;
}
/**
* <code>map<string, .chalk.server.v1.BootstrapExtraSettingsEnvironment> environments = 2 [json_name = "environments"];</code>
*/
public Builder removeEnvironments(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableEnvironments().ensureBuilderMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map<java.lang.String, ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment>
getMutableEnvironments() {
bitField0_ |= 0x00000002;
return internalGetMutableEnvironments().ensureMessageMap();
}
/**
* <code>map<string, .chalk.server.v1.BootstrapExtraSettingsEnvironment> environments = 2 [json_name = "environments"];</code>
*/
public Builder putEnvironments(
java.lang.String key,
ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) { throw new NullPointerException("map value"); }
internalGetMutableEnvironments().ensureBuilderMap()
.put(key, value);
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>map<string, .chalk.server.v1.BootstrapExtraSettingsEnvironment> environments = 2 [json_name = "environments"];</code>
*/
public Builder putAllEnvironments(
java.util.Map<java.lang.String, ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment> values) {
for (java.util.Map.Entry<java.lang.String, ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment> e : values.entrySet()) {
if (e.getKey() == null || e.getValue() == null) {
throw new NullPointerException();
}
}
internalGetMutableEnvironments().ensureBuilderMap()
.putAll(values);
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>map<string, .chalk.server.v1.BootstrapExtraSettingsEnvironment> environments = 2 [json_name = "environments"];</code>
*/
public ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment.Builder putEnvironmentsBuilderIfAbsent(
java.lang.String key) {
java.util.Map<java.lang.String, ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironmentOrBuilder> builderMap = internalGetMutableEnvironments().ensureBuilderMap();
ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironmentOrBuilder entry = builderMap.get(key);
if (entry == null) {
entry = ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment.newBuilder();
builderMap.put(key, entry);
}
if (entry instanceof ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment) {
entry = ((ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment) entry).toBuilder();
builderMap.put(key, entry);
}
return (ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment.Builder) entry;
}
@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:chalk.server.v1.BootstrapExtraSettings)
}
// @@protoc_insertion_point(class_scope:chalk.server.v1.BootstrapExtraSettings)
private static final ai.chalk.protos.chalk.server.v1.BootstrapExtraSettings DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.server.v1.BootstrapExtraSettings();
}
public static ai.chalk.protos.chalk.server.v1.BootstrapExtraSettings getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<BootstrapExtraSettings>
PARSER = new com.google.protobuf.AbstractParser<BootstrapExtraSettings>() {
@java.lang.Override
public BootstrapExtraSettings 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<BootstrapExtraSettings> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<BootstrapExtraSettings> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.BootstrapExtraSettings getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/BootstrapExtraSettingsEnvironment.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/bootstrap.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
/**
* Protobuf type {@code chalk.server.v1.BootstrapExtraSettingsEnvironment}
*/
public final class BootstrapExtraSettingsEnvironment extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.server.v1.BootstrapExtraSettingsEnvironment)
BootstrapExtraSettingsEnvironmentOrBuilder {
private static final long serialVersionUID = 0L;
// Use BootstrapExtraSettingsEnvironment.newBuilder() to construct.
private BootstrapExtraSettingsEnvironment(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private BootstrapExtraSettingsEnvironment() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BootstrapExtraSettingsEnvironment();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.BootstrapProto.internal_static_chalk_server_v1_BootstrapExtraSettingsEnvironment_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 1:
return internalGetSettings();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.BootstrapProto.internal_static_chalk_server_v1_BootstrapExtraSettingsEnvironment_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment.class, ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment.Builder.class);
}
public static final int SETTINGS_FIELD_NUMBER = 1;
private static final class SettingsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.Boolean> defaultEntry =
com.google.protobuf.MapEntry
.<java.lang.String, java.lang.Boolean>newDefaultInstance(
ai.chalk.protos.chalk.server.v1.BootstrapProto.internal_static_chalk_server_v1_BootstrapExtraSettingsEnvironment_SettingsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.BOOL,
false);
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField<
java.lang.String, java.lang.Boolean> settings_;
private com.google.protobuf.MapField<java.lang.String, java.lang.Boolean>
internalGetSettings() {
if (settings_ == null) {
return com.google.protobuf.MapField.emptyMapField(
SettingsDefaultEntryHolder.defaultEntry);
}
return settings_;
}
public int getSettingsCount() {
return internalGetSettings().getMap().size();
}
/**
* <code>map<string, bool> settings = 1 [json_name = "settings"];</code>
*/
@java.lang.Override
public boolean containsSettings(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetSettings().getMap().containsKey(key);
}
/**
* Use {@link #getSettingsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map<java.lang.String, java.lang.Boolean> getSettings() {
return getSettingsMap();
}
/**
* <code>map<string, bool> settings = 1 [json_name = "settings"];</code>
*/
@java.lang.Override
public java.util.Map<java.lang.String, java.lang.Boolean> getSettingsMap() {
return internalGetSettings().getMap();
}
/**
* <code>map<string, bool> settings = 1 [json_name = "settings"];</code>
*/
@java.lang.Override
public boolean getSettingsOrDefault(
java.lang.String key,
boolean defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, java.lang.Boolean> map =
internalGetSettings().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <code>map<string, bool> settings = 1 [json_name = "settings"];</code>
*/
@java.lang.Override
public boolean getSettingsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, java.lang.Boolean> map =
internalGetSettings().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
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 {
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetSettings(),
SettingsDefaultEntryHolder.defaultEntry,
1);
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (java.util.Map.Entry<java.lang.String, java.lang.Boolean> entry
: internalGetSettings().getMap().entrySet()) {
com.google.protobuf.MapEntry<java.lang.String, java.lang.Boolean>
settings__ = SettingsDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, settings__);
}
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 ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment other = (ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment) obj;
if (!internalGetSettings().equals(
other.internalGetSettings())) 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 (!internalGetSettings().getMap().isEmpty()) {
hash = (37 * hash) + SETTINGS_FIELD_NUMBER;
hash = (53 * hash) + internalGetSettings().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment 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 ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment 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 ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment 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(ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code chalk.server.v1.BootstrapExtraSettingsEnvironment}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.server.v1.BootstrapExtraSettingsEnvironment)
ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironmentOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.BootstrapProto.internal_static_chalk_server_v1_BootstrapExtraSettingsEnvironment_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 1:
return internalGetSettings();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
int number) {
switch (number) {
case 1:
return internalGetMutableSettings();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.BootstrapProto.internal_static_chalk_server_v1_BootstrapExtraSettingsEnvironment_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment.class, ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment.Builder.class);
}
// Construct using ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
internalGetMutableSettings().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.server.v1.BootstrapProto.internal_static_chalk_server_v1_BootstrapExtraSettingsEnvironment_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment getDefaultInstanceForType() {
return ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment build() {
ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment buildPartial() {
ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment result = new ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.settings_ = internalGetSettings();
result.settings_.makeImmutable();
}
}
@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 ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment) {
return mergeFrom((ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment other) {
if (other == ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment.getDefaultInstance()) return this;
internalGetMutableSettings().mergeFrom(
other.internalGetSettings());
bitField0_ |= 0x00000001;
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.MapEntry<java.lang.String, java.lang.Boolean>
settings__ = input.readMessage(
SettingsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableSettings().getMutableMap().put(
settings__.getKey(), settings__.getValue());
bitField0_ |= 0x00000001;
break;
} // case 10
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.MapField<
java.lang.String, java.lang.Boolean> settings_;
private com.google.protobuf.MapField<java.lang.String, java.lang.Boolean>
internalGetSettings() {
if (settings_ == null) {
return com.google.protobuf.MapField.emptyMapField(
SettingsDefaultEntryHolder.defaultEntry);
}
return settings_;
}
private com.google.protobuf.MapField<java.lang.String, java.lang.Boolean>
internalGetMutableSettings() {
if (settings_ == null) {
settings_ = com.google.protobuf.MapField.newMapField(
SettingsDefaultEntryHolder.defaultEntry);
}
if (!settings_.isMutable()) {
settings_ = settings_.copy();
}
bitField0_ |= 0x00000001;
onChanged();
return settings_;
}
public int getSettingsCount() {
return internalGetSettings().getMap().size();
}
/**
* <code>map<string, bool> settings = 1 [json_name = "settings"];</code>
*/
@java.lang.Override
public boolean containsSettings(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetSettings().getMap().containsKey(key);
}
/**
* Use {@link #getSettingsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map<java.lang.String, java.lang.Boolean> getSettings() {
return getSettingsMap();
}
/**
* <code>map<string, bool> settings = 1 [json_name = "settings"];</code>
*/
@java.lang.Override
public java.util.Map<java.lang.String, java.lang.Boolean> getSettingsMap() {
return internalGetSettings().getMap();
}
/**
* <code>map<string, bool> settings = 1 [json_name = "settings"];</code>
*/
@java.lang.Override
public boolean getSettingsOrDefault(
java.lang.String key,
boolean defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, java.lang.Boolean> map =
internalGetSettings().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <code>map<string, bool> settings = 1 [json_name = "settings"];</code>
*/
@java.lang.Override
public boolean getSettingsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, java.lang.Boolean> map =
internalGetSettings().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearSettings() {
bitField0_ = (bitField0_ & ~0x00000001);
internalGetMutableSettings().getMutableMap()
.clear();
return this;
}
/**
* <code>map<string, bool> settings = 1 [json_name = "settings"];</code>
*/
public Builder removeSettings(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableSettings().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map<java.lang.String, java.lang.Boolean>
getMutableSettings() {
bitField0_ |= 0x00000001;
return internalGetMutableSettings().getMutableMap();
}
/**
* <code>map<string, bool> settings = 1 [json_name = "settings"];</code>
*/
public Builder putSettings(
java.lang.String key,
boolean value) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableSettings().getMutableMap()
.put(key, value);
bitField0_ |= 0x00000001;
return this;
}
/**
* <code>map<string, bool> settings = 1 [json_name = "settings"];</code>
*/
public Builder putAllSettings(
java.util.Map<java.lang.String, java.lang.Boolean> values) {
internalGetMutableSettings().getMutableMap()
.putAll(values);
bitField0_ |= 0x00000001;
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:chalk.server.v1.BootstrapExtraSettingsEnvironment)
}
// @@protoc_insertion_point(class_scope:chalk.server.v1.BootstrapExtraSettingsEnvironment)
private static final ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment();
}
public static ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<BootstrapExtraSettingsEnvironment>
PARSER = new com.google.protobuf.AbstractParser<BootstrapExtraSettingsEnvironment>() {
@java.lang.Override
public BootstrapExtraSettingsEnvironment 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<BootstrapExtraSettingsEnvironment> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<BootstrapExtraSettingsEnvironment> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/BootstrapExtraSettingsEnvironmentOrBuilder.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/bootstrap.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
public interface BootstrapExtraSettingsEnvironmentOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.server.v1.BootstrapExtraSettingsEnvironment)
com.google.protobuf.MessageOrBuilder {
/**
* <code>map<string, bool> settings = 1 [json_name = "settings"];</code>
*/
int getSettingsCount();
/**
* <code>map<string, bool> settings = 1 [json_name = "settings"];</code>
*/
boolean containsSettings(
java.lang.String key);
/**
* Use {@link #getSettingsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map<java.lang.String, java.lang.Boolean>
getSettings();
/**
* <code>map<string, bool> settings = 1 [json_name = "settings"];</code>
*/
java.util.Map<java.lang.String, java.lang.Boolean>
getSettingsMap();
/**
* <code>map<string, bool> settings = 1 [json_name = "settings"];</code>
*/
boolean getSettingsOrDefault(
java.lang.String key,
boolean defaultValue);
/**
* <code>map<string, bool> settings = 1 [json_name = "settings"];</code>
*/
boolean getSettingsOrThrow(
java.lang.String key);
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/BootstrapExtraSettingsOrBuilder.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/bootstrap.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
public interface BootstrapExtraSettingsOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.server.v1.BootstrapExtraSettings)
com.google.protobuf.MessageOrBuilder {
/**
* <code>map<string, bool> global = 1 [json_name = "global"];</code>
*/
int getGlobalCount();
/**
* <code>map<string, bool> global = 1 [json_name = "global"];</code>
*/
boolean containsGlobal(
java.lang.String key);
/**
* Use {@link #getGlobalMap()} instead.
*/
@java.lang.Deprecated
java.util.Map<java.lang.String, java.lang.Boolean>
getGlobal();
/**
* <code>map<string, bool> global = 1 [json_name = "global"];</code>
*/
java.util.Map<java.lang.String, java.lang.Boolean>
getGlobalMap();
/**
* <code>map<string, bool> global = 1 [json_name = "global"];</code>
*/
boolean getGlobalOrDefault(
java.lang.String key,
boolean defaultValue);
/**
* <code>map<string, bool> global = 1 [json_name = "global"];</code>
*/
boolean getGlobalOrThrow(
java.lang.String key);
/**
* <code>map<string, .chalk.server.v1.BootstrapExtraSettingsEnvironment> environments = 2 [json_name = "environments"];</code>
*/
int getEnvironmentsCount();
/**
* <code>map<string, .chalk.server.v1.BootstrapExtraSettingsEnvironment> environments = 2 [json_name = "environments"];</code>
*/
boolean containsEnvironments(
java.lang.String key);
/**
* Use {@link #getEnvironmentsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map<java.lang.String, ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment>
getEnvironments();
/**
* <code>map<string, .chalk.server.v1.BootstrapExtraSettingsEnvironment> environments = 2 [json_name = "environments"];</code>
*/
java.util.Map<java.lang.String, ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment>
getEnvironmentsMap();
/**
* <code>map<string, .chalk.server.v1.BootstrapExtraSettingsEnvironment> environments = 2 [json_name = "environments"];</code>
*/
/* nullable */
ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment getEnvironmentsOrDefault(
java.lang.String key,
/* nullable */
ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment defaultValue);
/**
* <code>map<string, .chalk.server.v1.BootstrapExtraSettingsEnvironment> environments = 2 [json_name = "environments"];</code>
*/
ai.chalk.protos.chalk.server.v1.BootstrapExtraSettingsEnvironment getEnvironmentsOrThrow(
java.lang.String key);
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/BootstrapProto.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/bootstrap.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
public final class BootstrapProto {
private BootstrapProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_BootstrapExtraSettingsEnvironment_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_BootstrapExtraSettingsEnvironment_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_BootstrapExtraSettingsEnvironment_SettingsEntry_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_BootstrapExtraSettingsEnvironment_SettingsEntry_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_BootstrapExtraSettings_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_BootstrapExtraSettings_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_BootstrapExtraSettings_GlobalEntry_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_BootstrapExtraSettings_GlobalEntry_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_BootstrapExtraSettings_EnvironmentsEntry_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_BootstrapExtraSettings_EnvironmentsEntry_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_ParsedBootstrapConfigs_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_ParsedBootstrapConfigs_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\037chalk/server/v1/bootstrap.proto\022\017chalk" +
".server.v1\032!chalk/server/v1/environment." +
"proto\032\032chalk/server/v1/team.proto\"\276\001\n!Bo" +
"otstrapExtraSettingsEnvironment\022\\\n\010setti" +
"ngs\030\001 \003(\0132@.chalk.server.v1.BootstrapExt" +
"raSettingsEnvironment.SettingsEntryR\010set" +
"tings\032;\n\rSettingsEntry\022\020\n\003key\030\001 \001(\tR\003key" +
"\022\024\n\005value\030\002 \001(\010R\005value:\0028\001\"\364\002\n\026Bootstrap" +
"ExtraSettings\022K\n\006global\030\001 \003(\01323.chalk.se" +
"rver.v1.BootstrapExtraSettings.GlobalEnt" +
"ryR\006global\022]\n\014environments\030\002 \003(\01329.chalk" +
".server.v1.BootstrapExtraSettings.Enviro" +
"nmentsEntryR\014environments\0329\n\013GlobalEntry" +
"\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\010R\005value" +
":\0028\001\032s\n\021EnvironmentsEntry\022\020\n\003key\030\001 \001(\tR\003" +
"key\022H\n\005value\030\002 \001(\01322.chalk.server.v1.Boo" +
"tstrapExtraSettingsEnvironmentR\005value:\0028" +
"\001\"\315\002\n\026ParsedBootstrapConfigs\022+\n\005teams\030\001 " +
"\003(\0132\025.chalk.server.v1.TeamR\005teams\0224\n\010pro" +
"jects\030\002 \003(\0132\030.chalk.server.v1.ProjectR\010p" +
"rojects\022@\n\014environments\030\003 \003(\0132\034.chalk.se" +
"rver.v1.EnvironmentR\014environments\022>\n\014tea" +
"m_invites\030\004 \003(\0132\033.chalk.server.v1.TeamIn" +
"viteR\013teamInvites\022N\n\016extra_settings\030\005 \001(" +
"\0132\'.chalk.server.v1.BootstrapExtraSettin" +
"gsR\rextraSettingsB\243\001\n\037ai.chalk.protos.ch" +
"alk.server.v1B\016BootstrapProtoP\001Z\022server/" +
"v1;serverv1\242\002\003CSX\252\002\017Chalk.Server.V1\312\002\017Ch" +
"alk\\Server\\V1\342\002\033Chalk\\Server\\V1\\GPBMetad" +
"ata\352\002\021Chalk::Server::V1b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
ai.chalk.protos.chalk.server.v1.EnvironmentProto.getDescriptor(),
ai.chalk.protos.chalk.server.v1.TeamProto.getDescriptor(),
});
internal_static_chalk_server_v1_BootstrapExtraSettingsEnvironment_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_chalk_server_v1_BootstrapExtraSettingsEnvironment_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_BootstrapExtraSettingsEnvironment_descriptor,
new java.lang.String[] { "Settings", });
internal_static_chalk_server_v1_BootstrapExtraSettingsEnvironment_SettingsEntry_descriptor =
internal_static_chalk_server_v1_BootstrapExtraSettingsEnvironment_descriptor.getNestedTypes().get(0);
internal_static_chalk_server_v1_BootstrapExtraSettingsEnvironment_SettingsEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_BootstrapExtraSettingsEnvironment_SettingsEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_chalk_server_v1_BootstrapExtraSettings_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_chalk_server_v1_BootstrapExtraSettings_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_BootstrapExtraSettings_descriptor,
new java.lang.String[] { "Global", "Environments", });
internal_static_chalk_server_v1_BootstrapExtraSettings_GlobalEntry_descriptor =
internal_static_chalk_server_v1_BootstrapExtraSettings_descriptor.getNestedTypes().get(0);
internal_static_chalk_server_v1_BootstrapExtraSettings_GlobalEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_BootstrapExtraSettings_GlobalEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_chalk_server_v1_BootstrapExtraSettings_EnvironmentsEntry_descriptor =
internal_static_chalk_server_v1_BootstrapExtraSettings_descriptor.getNestedTypes().get(1);
internal_static_chalk_server_v1_BootstrapExtraSettings_EnvironmentsEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_BootstrapExtraSettings_EnvironmentsEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_chalk_server_v1_ParsedBootstrapConfigs_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_chalk_server_v1_ParsedBootstrapConfigs_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_ParsedBootstrapConfigs_descriptor,
new java.lang.String[] { "Teams", "Projects", "Environments", "TeamInvites", "ExtraSettings", });
ai.chalk.protos.chalk.server.v1.EnvironmentProto.getDescriptor();
ai.chalk.protos.chalk.server.v1.TeamProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/BuilderProto.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/builder.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
public final class BuilderProto {
private BuilderProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_ActivateDeploymentRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_ActivateDeploymentRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_ActivateDeploymentResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_ActivateDeploymentResponse_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_IndexDeploymentRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_IndexDeploymentRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_IndexDeploymentResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_IndexDeploymentResponse_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_DeployKubeComponentsRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_DeployKubeComponentsRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_DeployKubeComponentsResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_DeployKubeComponentsResponse_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_RebuildDeploymentRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_RebuildDeploymentRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_RebuildDeploymentResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_RebuildDeploymentResponse_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_RedeployDeploymentRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_RedeployDeploymentRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_RedeployDeploymentResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_RedeployDeploymentResponse_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_UploadSourceRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_UploadSourceRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_UploadSourceResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_UploadSourceResponse_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_GetDeploymentStepsRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_GetDeploymentStepsRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_DeploymentBuildStep_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_DeploymentBuildStep_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_GetDeploymentStepsResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_GetDeploymentStepsResponse_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_GetDeploymentLogsRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_GetDeploymentLogsRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_GetDeploymentLogsResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_GetDeploymentLogsResponse_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_GetClusterTimescaleDBRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_GetClusterTimescaleDBRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_GetClusterTimescaleDBResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_GetClusterTimescaleDBResponse_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_GetClusterGatewayRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_GetClusterGatewayRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_GetClusterGatewayResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_GetClusterGatewayResponse_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_BackgroundPersistence_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_BackgroundPersistence_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_GetClusterBackgroundPersistenceRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_GetClusterBackgroundPersistenceRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_GetClusterBackgroundPersistenceResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_GetClusterBackgroundPersistenceResponse_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_CreateClusterTimescaleDBRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_CreateClusterTimescaleDBRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_CreateClusterTimescaleDBResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_CreateClusterTimescaleDBResponse_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_MigrateClusterTimescaleDBRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_MigrateClusterTimescaleDBRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_MigrateClusterTimescaleDBResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_MigrateClusterTimescaleDBResponse_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_CreateClusterGatewayRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_CreateClusterGatewayRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_CreateClusterGatewayResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_CreateClusterGatewayResponse_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_CreateClusterBackgroundPersistenceRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_CreateClusterBackgroundPersistenceRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_CreateClusterBackgroundPersistenceResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_CreateClusterBackgroundPersistenceResponse_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_GetSearchConfigRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_GetSearchConfigRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_GetSearchConfigResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_GetSearchConfigResponse_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\035chalk/server/v1/builder.proto\022\017chalk.s" +
"erver.v1\032\037chalk/auth/v1/permissions.prot" +
"o\032 chalk/server/v1/deployment.proto\032\031cha" +
"lk/server/v1/log.proto\032\037google/protobuf/" +
"timestamp.proto\"Q\n\031ActivateDeploymentReq" +
"uest\0224\n\026existing_deployment_id\030\001 \001(\tR\024ex" +
"istingDeploymentId\"\034\n\032ActivateDeployment" +
"Response\"N\n\026IndexDeploymentRequest\0224\n\026ex" +
"isting_deployment_id\030\001 \001(\tR\024existingDepl" +
"oymentId\"\031\n\027IndexDeploymentResponse\"S\n\033D" +
"eployKubeComponentsRequest\0224\n\026existing_d" +
"eployment_id\030\001 \001(\tR\024existingDeploymentId" +
"\"\036\n\034DeployKubeComponentsResponse\"\354\001\n\030Reb" +
"uildDeploymentRequest\0224\n\026existing_deploy" +
"ment_id\030\001 \001(\tR\024existingDeploymentId\022\"\n\rn" +
"ew_image_tag\030\002 \001(\tR\013newImageTag\0223\n\023base_" +
"image_override\030\003 \001(\tH\000R\021baseImageOverrid" +
"e\210\001\001\022)\n\020enable_profiling\030\004 \001(\010R\017enablePr" +
"ofilingB\026\n\024_base_image_override\"6\n\031Rebui" +
"ldDeploymentResponse\022\031\n\010build_id\030\001 \001(\tR\007" +
"buildId\"|\n\031RedeployDeploymentRequest\0224\n\026" +
"existing_deployment_id\030\001 \001(\tR\024existingDe" +
"ploymentId\022)\n\020enable_profiling\030\002 \001(\010R\017en" +
"ableProfiling\"`\n\032RedeployDeploymentRespo" +
"nse\022\035\n\010build_id\030\001 \001(\tB\002\030\001R\007buildId\022#\n\rde" +
"ployment_id\030\002 \001(\tR\014deploymentId\"\310\002\n\023Uplo" +
"adSourceRequest\022#\n\rdeployment_id\030\007 \001(\tR\014" +
"deploymentId\022\030\n\007archive\030\001 \001(\014R\007archive\022\035" +
"\n\nno_promote\030\002 \001(\010R\tnoPromote\022,\n\017depende" +
"ncy_hash\030\003 \001(\tH\000R\016dependencyHash\210\001\001\0223\n\023b" +
"ase_image_override\030\004 \001(\tH\001R\021baseImageOve" +
"rride\210\001\001\022\031\n\010use_grpc\030\005 \001(\010R\007useGrpc\022)\n\020e" +
"nable_profiling\030\006 \001(\010R\017enableProfilingB\022" +
"\n\020_dependency_hashB\026\n\024_base_image_overri" +
"de\"Q\n\024UploadSourceResponse\022\026\n\006status\030\001 \001" +
"(\tR\006status\022!\n\014progress_url\030\002 \001(\tR\013progre" +
"ssUrl\"@\n\031GetDeploymentStepsRequest\022#\n\rde" +
"ployment_id\030\001 \001(\tR\014deploymentId\"\372\001\n\023Depl" +
"oymentBuildStep\022\016\n\002id\030\001 \001(\tR\002id\022!\n\014displ" +
"ay_name\030\002 \001(\tR\013displayName\022>\n\006status\030\003 \001" +
"(\0162&.chalk.server.v1.DeploymentBuildStat" +
"usR\006status\0229\n\nstart_time\030\004 \001(\0132\032.google." +
"protobuf.TimestampR\tstartTime\0225\n\010end_tim" +
"e\030\005 \001(\0132\032.google.protobuf.TimestampR\007end" +
"Time\"\225\001\n\032GetDeploymentStepsResponse\022:\n\005s" +
"teps\030\001 \003(\0132$.chalk.server.v1.DeploymentB" +
"uildStepR\005steps\022;\n\ndeployment\030\002 \001(\0132\033.ch" +
"alk.server.v1.DeploymentR\ndeployment\"?\n\030" +
"GetDeploymentLogsRequest\022#\n\rdeployment_i" +
"d\030\001 \001(\tR\014deploymentId\"J\n\031GetDeploymentLo" +
"gsResponse\022-\n\004logs\030\001 \003(\0132\031.chalk.server." +
"v1.LogEntryR\004logs\"E\n\034GetClusterTimescale" +
"DBRequest\022%\n\016environment_id\030\001 \001(\tR\renvir" +
"onmentId\"\310\001\n\035GetClusterTimescaleDBRespon" +
"se\022\016\n\002id\030\001 \001(\tR\002id\022!\n\014specs_string\030\002 \001(\t" +
"R\013specsString\0229\n\ncreated_at\030\003 \001(\0132\032.goog" +
"le.protobuf.TimestampR\tcreatedAt\0229\n\nupda" +
"ted_at\030\004 \001(\0132\032.google.protobuf.Timestamp" +
"R\tupdatedAt\"A\n\030GetClusterGatewayRequest\022" +
"%\n\016environment_id\030\001 \001(\tR\renvironmentId\"\304" +
"\001\n\031GetClusterGatewayResponse\022\016\n\002id\030\001 \001(\t" +
"R\002id\022!\n\014specs_string\030\002 \001(\tR\013specsString\022" +
"9\n\ncreated_at\030\003 \001(\0132\032.google.protobuf.Ti" +
"mestampR\tcreatedAt\0229\n\nupdated_at\030\004 \001(\0132\032" +
".google.protobuf.TimestampR\tupdatedAt\"\324\001" +
"\n\025BackgroundPersistence\022\016\n\002id\030\001 \001(\tR\002id\022" +
"\022\n\004kind\030\002 \001(\tR\004kind\022!\n\014specs_string\030\003 \001(" +
"\tR\013specsString\0229\n\ncreated_at\030\004 \001(\0132\032.goo" +
"gle.protobuf.TimestampR\tcreatedAt\0229\n\nupd" +
"ated_at\030\005 \001(\0132\032.google.protobuf.Timestam" +
"pR\tupdatedAt\"O\n&GetClusterBackgroundPers" +
"istenceRequest\022%\n\016environment_id\030\001 \001(\tR\r" +
"environmentId\"\210\001\n\'GetClusterBackgroundPe" +
"rsistenceResponse\022]\n\026background_persiste" +
"nce\030\001 \001(\0132&.chalk.server.v1.BackgroundPe" +
"rsistenceR\025backgroundPersistence\"\230\001\n\037Cre" +
"ateClusterTimescaleDBRequest\022)\n\016environm" +
"ent_id\030\001 \003(\tB\002\030\001R\renvironmentId\022\'\n\017envir" +
"onment_ids\030\003 \003(\tR\016environmentIds\022!\n\014spec" +
"s_string\030\002 \001(\tR\013specsString\"\"\n CreateClu" +
"sterTimescaleDBResponse\"\277\001\n MigrateClust" +
"erTimescaleDBRequest\0220\n\024cluster_timescal" +
"e_id\030\001 \001(\tR\022clusterTimescaleId\022,\n\017migrat" +
"ion_image\030\002 \001(\tH\000R\016migrationImage\210\001\001\022\'\n\017" +
"environment_ids\030\003 \003(\tR\016environmentIdsB\022\n" +
"\020_migration_image\"#\n!MigrateClusterTimes" +
"caleDBResponse\"\224\001\n\033CreateClusterGatewayR" +
"equest\022)\n\016environment_id\030\001 \003(\tB\002\030\001R\renvi" +
"ronmentId\022\'\n\017environment_ids\030\003 \003(\tR\016envi" +
"ronmentIds\022!\n\014specs_string\030\002 \001(\tR\013specsS" +
"tring\"\036\n\034CreateClusterGatewayResponse\"w\n" +
")CreateClusterBackgroundPersistenceReque" +
"st\022\'\n\017environment_ids\030\001 \003(\tR\016environment" +
"Ids\022!\n\014specs_string\030\002 \001(\tR\013specsString\"," +
"\n*CreateClusterBackgroundPersistenceResp" +
"onse\"\030\n\026GetSearchConfigRequest\"T\n\027GetSea" +
"rchConfigResponse\022\027\n\007team_id\030\001 \001(\tR\006team" +
"Id\022 \n\014team_api_key\030\002 \001(\tR\nteamApiKey*\343\003\n" +
"\025DeploymentBuildStatus\022\'\n#DEPLOYMENT_BUI" +
"LD_STATUS_UNSPECIFIED\020\000\022#\n\037DEPLOYMENT_BU" +
"ILD_STATUS_UNKNOWN\020\001\022#\n\037DEPLOYMENT_BUILD" +
"_STATUS_PENDING\020\002\022\"\n\036DEPLOYMENT_BUILD_ST" +
"ATUS_QUEUED\020\003\022#\n\037DEPLOYMENT_BUILD_STATUS" +
"_WORKING\020\004\022#\n\037DEPLOYMENT_BUILD_STATUS_SU" +
"CCESS\020\005\022#\n\037DEPLOYMENT_BUILD_STATUS_FAILU" +
"RE\020\006\022*\n&DEPLOYMENT_BUILD_STATUS_INTERNAL" +
"_ERROR\020\007\022#\n\037DEPLOYMENT_BUILD_STATUS_TIME" +
"OUT\020\010\022%\n!DEPLOYMENT_BUILD_STATUS_CANCELL" +
"ED\020\t\022#\n\037DEPLOYMENT_BUILD_STATUS_EXPIRED\020" +
"\n\022\'\n#DEPLOYMENT_BUILD_STATUS_BOOT_ERRORS" +
"\020\0132\275\017\n\016BuilderService\022l\n\017GetSearchConfig" +
"\022\'.chalk.server.v1.GetSearchConfigReques" +
"t\032(.chalk.server.v1.GetSearchConfigRespo" +
"nse\"\006\220\002\001\200}\002\022r\n\022ActivateDeployment\022*.chal" +
"k.server.v1.ActivateDeploymentRequest\032+." +
"chalk.server.v1.ActivateDeploymentRespon" +
"se\"\003\200}\016\022i\n\017IndexDeployment\022\'.chalk.serve" +
"r.v1.IndexDeploymentRequest\032(.chalk.serv" +
"er.v1.IndexDeploymentResponse\"\003\200}\016\022x\n\024De" +
"ployKubeComponents\022,.chalk.server.v1.Dep" +
"loyKubeComponentsRequest\032-.chalk.server." +
"v1.DeployKubeComponentsResponse\"\003\200}\014\022o\n\021" +
"RebuildDeployment\022).chalk.server.v1.Rebu" +
"ildDeploymentRequest\032*.chalk.server.v1.R" +
"ebuildDeploymentResponse\"\003\200}\016\022r\n\022Redeplo" +
"yDeployment\022*.chalk.server.v1.RedeployDe" +
"ploymentRequest\032+.chalk.server.v1.Redepl" +
"oyDeploymentResponse\"\003\200}\016\022`\n\014UploadSourc" +
"e\022$.chalk.server.v1.UploadSourceRequest\032" +
"%.chalk.server.v1.UploadSourceResponse\"\003" +
"\200}\013\022r\n\022GetDeploymentSteps\022*.chalk.server" +
".v1.GetDeploymentStepsRequest\032+.chalk.se" +
"rver.v1.GetDeploymentStepsResponse\"\003\200}\013\022" +
"o\n\021GetDeploymentLogs\022).chalk.server.v1.G" +
"etDeploymentLogsRequest\032*.chalk.server.v" +
"1.GetDeploymentLogsResponse\"\003\200}\013\022{\n\025GetC" +
"lusterTimescaleDB\022-.chalk.server.v1.GetC" +
"lusterTimescaleDBRequest\032..chalk.server." +
"v1.GetClusterTimescaleDBResponse\"\003\200}\013\022o\n" +
"\021GetClusterGateway\022).chalk.server.v1.Get" +
"ClusterGatewayRequest\032*.chalk.server.v1." +
"GetClusterGatewayResponse\"\003\200}\013\022\231\001\n\037GetCl" +
"usterBackgroundPersistence\0227.chalk.serve" +
"r.v1.GetClusterBackgroundPersistenceRequ" +
"est\0328.chalk.server.v1.GetClusterBackgrou" +
"ndPersistenceResponse\"\003\200}\013\022\204\001\n\030CreateClu" +
"sterTimescaleDB\0220.chalk.server.v1.Create" +
"ClusterTimescaleDBRequest\0321.chalk.server" +
".v1.CreateClusterTimescaleDBResponse\"\003\200}" +
"\n\022\207\001\n\031MigrateClusterTimescaleDB\0221.chalk." +
"server.v1.MigrateClusterTimescaleDBReque" +
"st\0322.chalk.server.v1.MigrateClusterTimes" +
"caleDBResponse\"\003\200}\n\022x\n\024CreateClusterGate" +
"way\022,.chalk.server.v1.CreateClusterGatew" +
"ayRequest\032-.chalk.server.v1.CreateCluste" +
"rGatewayResponse\"\003\200}\n\022\242\001\n\"CreateClusterB" +
"ackgroundPersistence\022:.chalk.server.v1.C" +
"reateClusterBackgroundPersistenceRequest" +
"\032;.chalk.server.v1.CreateClusterBackgrou" +
"ndPersistenceResponse\"\003\200}\nB\241\001\n\037ai.chalk." +
"protos.chalk.server.v1B\014BuilderProtoP\001Z\022" +
"server/v1;serverv1\242\002\003CSX\252\002\017Chalk.Server." +
"V1\312\002\017Chalk\\Server\\V1\342\002\033Chalk\\Server\\V1\\G" +
"PBMetadata\352\002\021Chalk::Server::V1b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
ai.chalk.protos.chalk.auth.v1.PermissionsProto.getDescriptor(),
ai.chalk.protos.chalk.server.v1.DeploymentProto.getDescriptor(),
ai.chalk.protos.chalk.server.v1.LogProto.getDescriptor(),
com.google.protobuf.TimestampProto.getDescriptor(),
});
internal_static_chalk_server_v1_ActivateDeploymentRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_chalk_server_v1_ActivateDeploymentRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_ActivateDeploymentRequest_descriptor,
new java.lang.String[] { "ExistingDeploymentId", });
internal_static_chalk_server_v1_ActivateDeploymentResponse_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_chalk_server_v1_ActivateDeploymentResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_ActivateDeploymentResponse_descriptor,
new java.lang.String[] { });
internal_static_chalk_server_v1_IndexDeploymentRequest_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_chalk_server_v1_IndexDeploymentRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_IndexDeploymentRequest_descriptor,
new java.lang.String[] { "ExistingDeploymentId", });
internal_static_chalk_server_v1_IndexDeploymentResponse_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_chalk_server_v1_IndexDeploymentResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_IndexDeploymentResponse_descriptor,
new java.lang.String[] { });
internal_static_chalk_server_v1_DeployKubeComponentsRequest_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_chalk_server_v1_DeployKubeComponentsRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_DeployKubeComponentsRequest_descriptor,
new java.lang.String[] { "ExistingDeploymentId", });
internal_static_chalk_server_v1_DeployKubeComponentsResponse_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_chalk_server_v1_DeployKubeComponentsResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_DeployKubeComponentsResponse_descriptor,
new java.lang.String[] { });
internal_static_chalk_server_v1_RebuildDeploymentRequest_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_chalk_server_v1_RebuildDeploymentRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_RebuildDeploymentRequest_descriptor,
new java.lang.String[] { "ExistingDeploymentId", "NewImageTag", "BaseImageOverride", "EnableProfiling", });
internal_static_chalk_server_v1_RebuildDeploymentResponse_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_chalk_server_v1_RebuildDeploymentResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_RebuildDeploymentResponse_descriptor,
new java.lang.String[] { "BuildId", });
internal_static_chalk_server_v1_RedeployDeploymentRequest_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_chalk_server_v1_RedeployDeploymentRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_RedeployDeploymentRequest_descriptor,
new java.lang.String[] { "ExistingDeploymentId", "EnableProfiling", });
internal_static_chalk_server_v1_RedeployDeploymentResponse_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_chalk_server_v1_RedeployDeploymentResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_RedeployDeploymentResponse_descriptor,
new java.lang.String[] { "BuildId", "DeploymentId", });
internal_static_chalk_server_v1_UploadSourceRequest_descriptor =
getDescriptor().getMessageTypes().get(10);
internal_static_chalk_server_v1_UploadSourceRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_UploadSourceRequest_descriptor,
new java.lang.String[] { "DeploymentId", "Archive", "NoPromote", "DependencyHash", "BaseImageOverride", "UseGrpc", "EnableProfiling", });
internal_static_chalk_server_v1_UploadSourceResponse_descriptor =
getDescriptor().getMessageTypes().get(11);
internal_static_chalk_server_v1_UploadSourceResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_UploadSourceResponse_descriptor,
new java.lang.String[] { "Status", "ProgressUrl", });
internal_static_chalk_server_v1_GetDeploymentStepsRequest_descriptor =
getDescriptor().getMessageTypes().get(12);
internal_static_chalk_server_v1_GetDeploymentStepsRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_GetDeploymentStepsRequest_descriptor,
new java.lang.String[] { "DeploymentId", });
internal_static_chalk_server_v1_DeploymentBuildStep_descriptor =
getDescriptor().getMessageTypes().get(13);
internal_static_chalk_server_v1_DeploymentBuildStep_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_DeploymentBuildStep_descriptor,
new java.lang.String[] { "Id", "DisplayName", "Status", "StartTime", "EndTime", });
internal_static_chalk_server_v1_GetDeploymentStepsResponse_descriptor =
getDescriptor().getMessageTypes().get(14);
internal_static_chalk_server_v1_GetDeploymentStepsResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_GetDeploymentStepsResponse_descriptor,
new java.lang.String[] { "Steps", "Deployment", });
internal_static_chalk_server_v1_GetDeploymentLogsRequest_descriptor =
getDescriptor().getMessageTypes().get(15);
internal_static_chalk_server_v1_GetDeploymentLogsRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_GetDeploymentLogsRequest_descriptor,
new java.lang.String[] { "DeploymentId", });
internal_static_chalk_server_v1_GetDeploymentLogsResponse_descriptor =
getDescriptor().getMessageTypes().get(16);
internal_static_chalk_server_v1_GetDeploymentLogsResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_GetDeploymentLogsResponse_descriptor,
new java.lang.String[] { "Logs", });
internal_static_chalk_server_v1_GetClusterTimescaleDBRequest_descriptor =
getDescriptor().getMessageTypes().get(17);
internal_static_chalk_server_v1_GetClusterTimescaleDBRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_GetClusterTimescaleDBRequest_descriptor,
new java.lang.String[] { "EnvironmentId", });
internal_static_chalk_server_v1_GetClusterTimescaleDBResponse_descriptor =
getDescriptor().getMessageTypes().get(18);
internal_static_chalk_server_v1_GetClusterTimescaleDBResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_GetClusterTimescaleDBResponse_descriptor,
new java.lang.String[] { "Id", "SpecsString", "CreatedAt", "UpdatedAt", });
internal_static_chalk_server_v1_GetClusterGatewayRequest_descriptor =
getDescriptor().getMessageTypes().get(19);
internal_static_chalk_server_v1_GetClusterGatewayRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_GetClusterGatewayRequest_descriptor,
new java.lang.String[] { "EnvironmentId", });
internal_static_chalk_server_v1_GetClusterGatewayResponse_descriptor =
getDescriptor().getMessageTypes().get(20);
internal_static_chalk_server_v1_GetClusterGatewayResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_GetClusterGatewayResponse_descriptor,
new java.lang.String[] { "Id", "SpecsString", "CreatedAt", "UpdatedAt", });
internal_static_chalk_server_v1_BackgroundPersistence_descriptor =
getDescriptor().getMessageTypes().get(21);
internal_static_chalk_server_v1_BackgroundPersistence_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_BackgroundPersistence_descriptor,
new java.lang.String[] { "Id", "Kind", "SpecsString", "CreatedAt", "UpdatedAt", });
internal_static_chalk_server_v1_GetClusterBackgroundPersistenceRequest_descriptor =
getDescriptor().getMessageTypes().get(22);
internal_static_chalk_server_v1_GetClusterBackgroundPersistenceRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_GetClusterBackgroundPersistenceRequest_descriptor,
new java.lang.String[] { "EnvironmentId", });
internal_static_chalk_server_v1_GetClusterBackgroundPersistenceResponse_descriptor =
getDescriptor().getMessageTypes().get(23);
internal_static_chalk_server_v1_GetClusterBackgroundPersistenceResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_GetClusterBackgroundPersistenceResponse_descriptor,
new java.lang.String[] { "BackgroundPersistence", });
internal_static_chalk_server_v1_CreateClusterTimescaleDBRequest_descriptor =
getDescriptor().getMessageTypes().get(24);
internal_static_chalk_server_v1_CreateClusterTimescaleDBRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_CreateClusterTimescaleDBRequest_descriptor,
new java.lang.String[] { "EnvironmentId", "EnvironmentIds", "SpecsString", });
internal_static_chalk_server_v1_CreateClusterTimescaleDBResponse_descriptor =
getDescriptor().getMessageTypes().get(25);
internal_static_chalk_server_v1_CreateClusterTimescaleDBResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_CreateClusterTimescaleDBResponse_descriptor,
new java.lang.String[] { });
internal_static_chalk_server_v1_MigrateClusterTimescaleDBRequest_descriptor =
getDescriptor().getMessageTypes().get(26);
internal_static_chalk_server_v1_MigrateClusterTimescaleDBRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_MigrateClusterTimescaleDBRequest_descriptor,
new java.lang.String[] { "ClusterTimescaleId", "MigrationImage", "EnvironmentIds", });
internal_static_chalk_server_v1_MigrateClusterTimescaleDBResponse_descriptor =
getDescriptor().getMessageTypes().get(27);
internal_static_chalk_server_v1_MigrateClusterTimescaleDBResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_MigrateClusterTimescaleDBResponse_descriptor,
new java.lang.String[] { });
internal_static_chalk_server_v1_CreateClusterGatewayRequest_descriptor =
getDescriptor().getMessageTypes().get(28);
internal_static_chalk_server_v1_CreateClusterGatewayRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_CreateClusterGatewayRequest_descriptor,
new java.lang.String[] { "EnvironmentId", "EnvironmentIds", "SpecsString", });
internal_static_chalk_server_v1_CreateClusterGatewayResponse_descriptor =
getDescriptor().getMessageTypes().get(29);
internal_static_chalk_server_v1_CreateClusterGatewayResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_CreateClusterGatewayResponse_descriptor,
new java.lang.String[] { });
internal_static_chalk_server_v1_CreateClusterBackgroundPersistenceRequest_descriptor =
getDescriptor().getMessageTypes().get(30);
internal_static_chalk_server_v1_CreateClusterBackgroundPersistenceRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_CreateClusterBackgroundPersistenceRequest_descriptor,
new java.lang.String[] { "EnvironmentIds", "SpecsString", });
internal_static_chalk_server_v1_CreateClusterBackgroundPersistenceResponse_descriptor =
getDescriptor().getMessageTypes().get(31);
internal_static_chalk_server_v1_CreateClusterBackgroundPersistenceResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_CreateClusterBackgroundPersistenceResponse_descriptor,
new java.lang.String[] { });
internal_static_chalk_server_v1_GetSearchConfigRequest_descriptor =
getDescriptor().getMessageTypes().get(32);
internal_static_chalk_server_v1_GetSearchConfigRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_GetSearchConfigRequest_descriptor,
new java.lang.String[] { });
internal_static_chalk_server_v1_GetSearchConfigResponse_descriptor =
getDescriptor().getMessageTypes().get(33);
internal_static_chalk_server_v1_GetSearchConfigResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_GetSearchConfigResponse_descriptor,
new java.lang.String[] { "TeamId", "TeamApiKey", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(ai.chalk.protos.chalk.auth.v1.PermissionsProto.permission);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
ai.chalk.protos.chalk.auth.v1.PermissionsProto.getDescriptor();
ai.chalk.protos.chalk.server.v1.DeploymentProto.getDescriptor();
ai.chalk.protos.chalk.server.v1.LogProto.getDescriptor();
com.google.protobuf.TimestampProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/BuilderServiceGrpc.java
|
package ai.chalk.protos.chalk.server.v1;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.64.0)",
comments = "Source: chalk/server/v1/builder.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class BuilderServiceGrpc {
private BuilderServiceGrpc() {}
public static final java.lang.String SERVICE_NAME = "chalk.server.v1.BuilderService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetSearchConfigRequest,
ai.chalk.protos.chalk.server.v1.GetSearchConfigResponse> getGetSearchConfigMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetSearchConfig",
requestType = ai.chalk.protos.chalk.server.v1.GetSearchConfigRequest.class,
responseType = ai.chalk.protos.chalk.server.v1.GetSearchConfigResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetSearchConfigRequest,
ai.chalk.protos.chalk.server.v1.GetSearchConfigResponse> getGetSearchConfigMethod() {
io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetSearchConfigRequest, ai.chalk.protos.chalk.server.v1.GetSearchConfigResponse> getGetSearchConfigMethod;
if ((getGetSearchConfigMethod = BuilderServiceGrpc.getGetSearchConfigMethod) == null) {
synchronized (BuilderServiceGrpc.class) {
if ((getGetSearchConfigMethod = BuilderServiceGrpc.getGetSearchConfigMethod) == null) {
BuilderServiceGrpc.getGetSearchConfigMethod = getGetSearchConfigMethod =
io.grpc.MethodDescriptor.<ai.chalk.protos.chalk.server.v1.GetSearchConfigRequest, ai.chalk.protos.chalk.server.v1.GetSearchConfigResponse>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSearchConfig"))
.setSafe(true)
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.GetSearchConfigRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.GetSearchConfigResponse.getDefaultInstance()))
.setSchemaDescriptor(new BuilderServiceMethodDescriptorSupplier("GetSearchConfig"))
.build();
}
}
}
return getGetSearchConfigMethod;
}
private static volatile io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequest,
ai.chalk.protos.chalk.server.v1.ActivateDeploymentResponse> getActivateDeploymentMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ActivateDeployment",
requestType = ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequest.class,
responseType = ai.chalk.protos.chalk.server.v1.ActivateDeploymentResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequest,
ai.chalk.protos.chalk.server.v1.ActivateDeploymentResponse> getActivateDeploymentMethod() {
io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequest, ai.chalk.protos.chalk.server.v1.ActivateDeploymentResponse> getActivateDeploymentMethod;
if ((getActivateDeploymentMethod = BuilderServiceGrpc.getActivateDeploymentMethod) == null) {
synchronized (BuilderServiceGrpc.class) {
if ((getActivateDeploymentMethod = BuilderServiceGrpc.getActivateDeploymentMethod) == null) {
BuilderServiceGrpc.getActivateDeploymentMethod = getActivateDeploymentMethod =
io.grpc.MethodDescriptor.<ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequest, ai.chalk.protos.chalk.server.v1.ActivateDeploymentResponse>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ActivateDeployment"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.ActivateDeploymentResponse.getDefaultInstance()))
.setSchemaDescriptor(new BuilderServiceMethodDescriptorSupplier("ActivateDeployment"))
.build();
}
}
}
return getActivateDeploymentMethod;
}
private static volatile io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.IndexDeploymentRequest,
ai.chalk.protos.chalk.server.v1.IndexDeploymentResponse> getIndexDeploymentMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "IndexDeployment",
requestType = ai.chalk.protos.chalk.server.v1.IndexDeploymentRequest.class,
responseType = ai.chalk.protos.chalk.server.v1.IndexDeploymentResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.IndexDeploymentRequest,
ai.chalk.protos.chalk.server.v1.IndexDeploymentResponse> getIndexDeploymentMethod() {
io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.IndexDeploymentRequest, ai.chalk.protos.chalk.server.v1.IndexDeploymentResponse> getIndexDeploymentMethod;
if ((getIndexDeploymentMethod = BuilderServiceGrpc.getIndexDeploymentMethod) == null) {
synchronized (BuilderServiceGrpc.class) {
if ((getIndexDeploymentMethod = BuilderServiceGrpc.getIndexDeploymentMethod) == null) {
BuilderServiceGrpc.getIndexDeploymentMethod = getIndexDeploymentMethod =
io.grpc.MethodDescriptor.<ai.chalk.protos.chalk.server.v1.IndexDeploymentRequest, ai.chalk.protos.chalk.server.v1.IndexDeploymentResponse>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "IndexDeployment"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.IndexDeploymentRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.IndexDeploymentResponse.getDefaultInstance()))
.setSchemaDescriptor(new BuilderServiceMethodDescriptorSupplier("IndexDeployment"))
.build();
}
}
}
return getIndexDeploymentMethod;
}
private static volatile io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequest,
ai.chalk.protos.chalk.server.v1.DeployKubeComponentsResponse> getDeployKubeComponentsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "DeployKubeComponents",
requestType = ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequest.class,
responseType = ai.chalk.protos.chalk.server.v1.DeployKubeComponentsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequest,
ai.chalk.protos.chalk.server.v1.DeployKubeComponentsResponse> getDeployKubeComponentsMethod() {
io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequest, ai.chalk.protos.chalk.server.v1.DeployKubeComponentsResponse> getDeployKubeComponentsMethod;
if ((getDeployKubeComponentsMethod = BuilderServiceGrpc.getDeployKubeComponentsMethod) == null) {
synchronized (BuilderServiceGrpc.class) {
if ((getDeployKubeComponentsMethod = BuilderServiceGrpc.getDeployKubeComponentsMethod) == null) {
BuilderServiceGrpc.getDeployKubeComponentsMethod = getDeployKubeComponentsMethod =
io.grpc.MethodDescriptor.<ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequest, ai.chalk.protos.chalk.server.v1.DeployKubeComponentsResponse>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeployKubeComponents"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.DeployKubeComponentsResponse.getDefaultInstance()))
.setSchemaDescriptor(new BuilderServiceMethodDescriptorSupplier("DeployKubeComponents"))
.build();
}
}
}
return getDeployKubeComponentsMethod;
}
private static volatile io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.RebuildDeploymentRequest,
ai.chalk.protos.chalk.server.v1.RebuildDeploymentResponse> getRebuildDeploymentMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "RebuildDeployment",
requestType = ai.chalk.protos.chalk.server.v1.RebuildDeploymentRequest.class,
responseType = ai.chalk.protos.chalk.server.v1.RebuildDeploymentResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.RebuildDeploymentRequest,
ai.chalk.protos.chalk.server.v1.RebuildDeploymentResponse> getRebuildDeploymentMethod() {
io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.RebuildDeploymentRequest, ai.chalk.protos.chalk.server.v1.RebuildDeploymentResponse> getRebuildDeploymentMethod;
if ((getRebuildDeploymentMethod = BuilderServiceGrpc.getRebuildDeploymentMethod) == null) {
synchronized (BuilderServiceGrpc.class) {
if ((getRebuildDeploymentMethod = BuilderServiceGrpc.getRebuildDeploymentMethod) == null) {
BuilderServiceGrpc.getRebuildDeploymentMethod = getRebuildDeploymentMethod =
io.grpc.MethodDescriptor.<ai.chalk.protos.chalk.server.v1.RebuildDeploymentRequest, ai.chalk.protos.chalk.server.v1.RebuildDeploymentResponse>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "RebuildDeployment"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.RebuildDeploymentRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.RebuildDeploymentResponse.getDefaultInstance()))
.setSchemaDescriptor(new BuilderServiceMethodDescriptorSupplier("RebuildDeployment"))
.build();
}
}
}
return getRebuildDeploymentMethod;
}
private static volatile io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.RedeployDeploymentRequest,
ai.chalk.protos.chalk.server.v1.RedeployDeploymentResponse> getRedeployDeploymentMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "RedeployDeployment",
requestType = ai.chalk.protos.chalk.server.v1.RedeployDeploymentRequest.class,
responseType = ai.chalk.protos.chalk.server.v1.RedeployDeploymentResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.RedeployDeploymentRequest,
ai.chalk.protos.chalk.server.v1.RedeployDeploymentResponse> getRedeployDeploymentMethod() {
io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.RedeployDeploymentRequest, ai.chalk.protos.chalk.server.v1.RedeployDeploymentResponse> getRedeployDeploymentMethod;
if ((getRedeployDeploymentMethod = BuilderServiceGrpc.getRedeployDeploymentMethod) == null) {
synchronized (BuilderServiceGrpc.class) {
if ((getRedeployDeploymentMethod = BuilderServiceGrpc.getRedeployDeploymentMethod) == null) {
BuilderServiceGrpc.getRedeployDeploymentMethod = getRedeployDeploymentMethod =
io.grpc.MethodDescriptor.<ai.chalk.protos.chalk.server.v1.RedeployDeploymentRequest, ai.chalk.protos.chalk.server.v1.RedeployDeploymentResponse>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "RedeployDeployment"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.RedeployDeploymentRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.RedeployDeploymentResponse.getDefaultInstance()))
.setSchemaDescriptor(new BuilderServiceMethodDescriptorSupplier("RedeployDeployment"))
.build();
}
}
}
return getRedeployDeploymentMethod;
}
private static volatile io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.UploadSourceRequest,
ai.chalk.protos.chalk.server.v1.UploadSourceResponse> getUploadSourceMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "UploadSource",
requestType = ai.chalk.protos.chalk.server.v1.UploadSourceRequest.class,
responseType = ai.chalk.protos.chalk.server.v1.UploadSourceResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.UploadSourceRequest,
ai.chalk.protos.chalk.server.v1.UploadSourceResponse> getUploadSourceMethod() {
io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.UploadSourceRequest, ai.chalk.protos.chalk.server.v1.UploadSourceResponse> getUploadSourceMethod;
if ((getUploadSourceMethod = BuilderServiceGrpc.getUploadSourceMethod) == null) {
synchronized (BuilderServiceGrpc.class) {
if ((getUploadSourceMethod = BuilderServiceGrpc.getUploadSourceMethod) == null) {
BuilderServiceGrpc.getUploadSourceMethod = getUploadSourceMethod =
io.grpc.MethodDescriptor.<ai.chalk.protos.chalk.server.v1.UploadSourceRequest, ai.chalk.protos.chalk.server.v1.UploadSourceResponse>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "UploadSource"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.UploadSourceRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.UploadSourceResponse.getDefaultInstance()))
.setSchemaDescriptor(new BuilderServiceMethodDescriptorSupplier("UploadSource"))
.build();
}
}
}
return getUploadSourceMethod;
}
private static volatile io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetDeploymentStepsRequest,
ai.chalk.protos.chalk.server.v1.GetDeploymentStepsResponse> getGetDeploymentStepsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetDeploymentSteps",
requestType = ai.chalk.protos.chalk.server.v1.GetDeploymentStepsRequest.class,
responseType = ai.chalk.protos.chalk.server.v1.GetDeploymentStepsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetDeploymentStepsRequest,
ai.chalk.protos.chalk.server.v1.GetDeploymentStepsResponse> getGetDeploymentStepsMethod() {
io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetDeploymentStepsRequest, ai.chalk.protos.chalk.server.v1.GetDeploymentStepsResponse> getGetDeploymentStepsMethod;
if ((getGetDeploymentStepsMethod = BuilderServiceGrpc.getGetDeploymentStepsMethod) == null) {
synchronized (BuilderServiceGrpc.class) {
if ((getGetDeploymentStepsMethod = BuilderServiceGrpc.getGetDeploymentStepsMethod) == null) {
BuilderServiceGrpc.getGetDeploymentStepsMethod = getGetDeploymentStepsMethod =
io.grpc.MethodDescriptor.<ai.chalk.protos.chalk.server.v1.GetDeploymentStepsRequest, ai.chalk.protos.chalk.server.v1.GetDeploymentStepsResponse>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDeploymentSteps"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.GetDeploymentStepsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.GetDeploymentStepsResponse.getDefaultInstance()))
.setSchemaDescriptor(new BuilderServiceMethodDescriptorSupplier("GetDeploymentSteps"))
.build();
}
}
}
return getGetDeploymentStepsMethod;
}
private static volatile io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetDeploymentLogsRequest,
ai.chalk.protos.chalk.server.v1.GetDeploymentLogsResponse> getGetDeploymentLogsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetDeploymentLogs",
requestType = ai.chalk.protos.chalk.server.v1.GetDeploymentLogsRequest.class,
responseType = ai.chalk.protos.chalk.server.v1.GetDeploymentLogsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetDeploymentLogsRequest,
ai.chalk.protos.chalk.server.v1.GetDeploymentLogsResponse> getGetDeploymentLogsMethod() {
io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetDeploymentLogsRequest, ai.chalk.protos.chalk.server.v1.GetDeploymentLogsResponse> getGetDeploymentLogsMethod;
if ((getGetDeploymentLogsMethod = BuilderServiceGrpc.getGetDeploymentLogsMethod) == null) {
synchronized (BuilderServiceGrpc.class) {
if ((getGetDeploymentLogsMethod = BuilderServiceGrpc.getGetDeploymentLogsMethod) == null) {
BuilderServiceGrpc.getGetDeploymentLogsMethod = getGetDeploymentLogsMethod =
io.grpc.MethodDescriptor.<ai.chalk.protos.chalk.server.v1.GetDeploymentLogsRequest, ai.chalk.protos.chalk.server.v1.GetDeploymentLogsResponse>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDeploymentLogs"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.GetDeploymentLogsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.GetDeploymentLogsResponse.getDefaultInstance()))
.setSchemaDescriptor(new BuilderServiceMethodDescriptorSupplier("GetDeploymentLogs"))
.build();
}
}
}
return getGetDeploymentLogsMethod;
}
private static volatile io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetClusterTimescaleDBRequest,
ai.chalk.protos.chalk.server.v1.GetClusterTimescaleDBResponse> getGetClusterTimescaleDBMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetClusterTimescaleDB",
requestType = ai.chalk.protos.chalk.server.v1.GetClusterTimescaleDBRequest.class,
responseType = ai.chalk.protos.chalk.server.v1.GetClusterTimescaleDBResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetClusterTimescaleDBRequest,
ai.chalk.protos.chalk.server.v1.GetClusterTimescaleDBResponse> getGetClusterTimescaleDBMethod() {
io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetClusterTimescaleDBRequest, ai.chalk.protos.chalk.server.v1.GetClusterTimescaleDBResponse> getGetClusterTimescaleDBMethod;
if ((getGetClusterTimescaleDBMethod = BuilderServiceGrpc.getGetClusterTimescaleDBMethod) == null) {
synchronized (BuilderServiceGrpc.class) {
if ((getGetClusterTimescaleDBMethod = BuilderServiceGrpc.getGetClusterTimescaleDBMethod) == null) {
BuilderServiceGrpc.getGetClusterTimescaleDBMethod = getGetClusterTimescaleDBMethod =
io.grpc.MethodDescriptor.<ai.chalk.protos.chalk.server.v1.GetClusterTimescaleDBRequest, ai.chalk.protos.chalk.server.v1.GetClusterTimescaleDBResponse>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetClusterTimescaleDB"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.GetClusterTimescaleDBRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.GetClusterTimescaleDBResponse.getDefaultInstance()))
.setSchemaDescriptor(new BuilderServiceMethodDescriptorSupplier("GetClusterTimescaleDB"))
.build();
}
}
}
return getGetClusterTimescaleDBMethod;
}
private static volatile io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetClusterGatewayRequest,
ai.chalk.protos.chalk.server.v1.GetClusterGatewayResponse> getGetClusterGatewayMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetClusterGateway",
requestType = ai.chalk.protos.chalk.server.v1.GetClusterGatewayRequest.class,
responseType = ai.chalk.protos.chalk.server.v1.GetClusterGatewayResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetClusterGatewayRequest,
ai.chalk.protos.chalk.server.v1.GetClusterGatewayResponse> getGetClusterGatewayMethod() {
io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetClusterGatewayRequest, ai.chalk.protos.chalk.server.v1.GetClusterGatewayResponse> getGetClusterGatewayMethod;
if ((getGetClusterGatewayMethod = BuilderServiceGrpc.getGetClusterGatewayMethod) == null) {
synchronized (BuilderServiceGrpc.class) {
if ((getGetClusterGatewayMethod = BuilderServiceGrpc.getGetClusterGatewayMethod) == null) {
BuilderServiceGrpc.getGetClusterGatewayMethod = getGetClusterGatewayMethod =
io.grpc.MethodDescriptor.<ai.chalk.protos.chalk.server.v1.GetClusterGatewayRequest, ai.chalk.protos.chalk.server.v1.GetClusterGatewayResponse>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetClusterGateway"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.GetClusterGatewayRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.GetClusterGatewayResponse.getDefaultInstance()))
.setSchemaDescriptor(new BuilderServiceMethodDescriptorSupplier("GetClusterGateway"))
.build();
}
}
}
return getGetClusterGatewayMethod;
}
private static volatile io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetClusterBackgroundPersistenceRequest,
ai.chalk.protos.chalk.server.v1.GetClusterBackgroundPersistenceResponse> getGetClusterBackgroundPersistenceMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetClusterBackgroundPersistence",
requestType = ai.chalk.protos.chalk.server.v1.GetClusterBackgroundPersistenceRequest.class,
responseType = ai.chalk.protos.chalk.server.v1.GetClusterBackgroundPersistenceResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetClusterBackgroundPersistenceRequest,
ai.chalk.protos.chalk.server.v1.GetClusterBackgroundPersistenceResponse> getGetClusterBackgroundPersistenceMethod() {
io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.GetClusterBackgroundPersistenceRequest, ai.chalk.protos.chalk.server.v1.GetClusterBackgroundPersistenceResponse> getGetClusterBackgroundPersistenceMethod;
if ((getGetClusterBackgroundPersistenceMethod = BuilderServiceGrpc.getGetClusterBackgroundPersistenceMethod) == null) {
synchronized (BuilderServiceGrpc.class) {
if ((getGetClusterBackgroundPersistenceMethod = BuilderServiceGrpc.getGetClusterBackgroundPersistenceMethod) == null) {
BuilderServiceGrpc.getGetClusterBackgroundPersistenceMethod = getGetClusterBackgroundPersistenceMethod =
io.grpc.MethodDescriptor.<ai.chalk.protos.chalk.server.v1.GetClusterBackgroundPersistenceRequest, ai.chalk.protos.chalk.server.v1.GetClusterBackgroundPersistenceResponse>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetClusterBackgroundPersistence"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.GetClusterBackgroundPersistenceRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.GetClusterBackgroundPersistenceResponse.getDefaultInstance()))
.setSchemaDescriptor(new BuilderServiceMethodDescriptorSupplier("GetClusterBackgroundPersistence"))
.build();
}
}
}
return getGetClusterBackgroundPersistenceMethod;
}
private static volatile io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequest,
ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBResponse> getCreateClusterTimescaleDBMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "CreateClusterTimescaleDB",
requestType = ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequest.class,
responseType = ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequest,
ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBResponse> getCreateClusterTimescaleDBMethod() {
io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequest, ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBResponse> getCreateClusterTimescaleDBMethod;
if ((getCreateClusterTimescaleDBMethod = BuilderServiceGrpc.getCreateClusterTimescaleDBMethod) == null) {
synchronized (BuilderServiceGrpc.class) {
if ((getCreateClusterTimescaleDBMethod = BuilderServiceGrpc.getCreateClusterTimescaleDBMethod) == null) {
BuilderServiceGrpc.getCreateClusterTimescaleDBMethod = getCreateClusterTimescaleDBMethod =
io.grpc.MethodDescriptor.<ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequest, ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBResponse>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateClusterTimescaleDB"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBResponse.getDefaultInstance()))
.setSchemaDescriptor(new BuilderServiceMethodDescriptorSupplier("CreateClusterTimescaleDB"))
.build();
}
}
}
return getCreateClusterTimescaleDBMethod;
}
private static volatile io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.MigrateClusterTimescaleDBRequest,
ai.chalk.protos.chalk.server.v1.MigrateClusterTimescaleDBResponse> getMigrateClusterTimescaleDBMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "MigrateClusterTimescaleDB",
requestType = ai.chalk.protos.chalk.server.v1.MigrateClusterTimescaleDBRequest.class,
responseType = ai.chalk.protos.chalk.server.v1.MigrateClusterTimescaleDBResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.MigrateClusterTimescaleDBRequest,
ai.chalk.protos.chalk.server.v1.MigrateClusterTimescaleDBResponse> getMigrateClusterTimescaleDBMethod() {
io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.MigrateClusterTimescaleDBRequest, ai.chalk.protos.chalk.server.v1.MigrateClusterTimescaleDBResponse> getMigrateClusterTimescaleDBMethod;
if ((getMigrateClusterTimescaleDBMethod = BuilderServiceGrpc.getMigrateClusterTimescaleDBMethod) == null) {
synchronized (BuilderServiceGrpc.class) {
if ((getMigrateClusterTimescaleDBMethod = BuilderServiceGrpc.getMigrateClusterTimescaleDBMethod) == null) {
BuilderServiceGrpc.getMigrateClusterTimescaleDBMethod = getMigrateClusterTimescaleDBMethod =
io.grpc.MethodDescriptor.<ai.chalk.protos.chalk.server.v1.MigrateClusterTimescaleDBRequest, ai.chalk.protos.chalk.server.v1.MigrateClusterTimescaleDBResponse>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "MigrateClusterTimescaleDB"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.MigrateClusterTimescaleDBRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.MigrateClusterTimescaleDBResponse.getDefaultInstance()))
.setSchemaDescriptor(new BuilderServiceMethodDescriptorSupplier("MigrateClusterTimescaleDB"))
.build();
}
}
}
return getMigrateClusterTimescaleDBMethod;
}
private static volatile io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequest,
ai.chalk.protos.chalk.server.v1.CreateClusterGatewayResponse> getCreateClusterGatewayMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "CreateClusterGateway",
requestType = ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequest.class,
responseType = ai.chalk.protos.chalk.server.v1.CreateClusterGatewayResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequest,
ai.chalk.protos.chalk.server.v1.CreateClusterGatewayResponse> getCreateClusterGatewayMethod() {
io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequest, ai.chalk.protos.chalk.server.v1.CreateClusterGatewayResponse> getCreateClusterGatewayMethod;
if ((getCreateClusterGatewayMethod = BuilderServiceGrpc.getCreateClusterGatewayMethod) == null) {
synchronized (BuilderServiceGrpc.class) {
if ((getCreateClusterGatewayMethod = BuilderServiceGrpc.getCreateClusterGatewayMethod) == null) {
BuilderServiceGrpc.getCreateClusterGatewayMethod = getCreateClusterGatewayMethod =
io.grpc.MethodDescriptor.<ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequest, ai.chalk.protos.chalk.server.v1.CreateClusterGatewayResponse>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateClusterGateway"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.CreateClusterGatewayResponse.getDefaultInstance()))
.setSchemaDescriptor(new BuilderServiceMethodDescriptorSupplier("CreateClusterGateway"))
.build();
}
}
}
return getCreateClusterGatewayMethod;
}
private static volatile io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequest,
ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceResponse> getCreateClusterBackgroundPersistenceMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "CreateClusterBackgroundPersistence",
requestType = ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequest.class,
responseType = ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequest,
ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceResponse> getCreateClusterBackgroundPersistenceMethod() {
io.grpc.MethodDescriptor<ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequest, ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceResponse> getCreateClusterBackgroundPersistenceMethod;
if ((getCreateClusterBackgroundPersistenceMethod = BuilderServiceGrpc.getCreateClusterBackgroundPersistenceMethod) == null) {
synchronized (BuilderServiceGrpc.class) {
if ((getCreateClusterBackgroundPersistenceMethod = BuilderServiceGrpc.getCreateClusterBackgroundPersistenceMethod) == null) {
BuilderServiceGrpc.getCreateClusterBackgroundPersistenceMethod = getCreateClusterBackgroundPersistenceMethod =
io.grpc.MethodDescriptor.<ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequest, ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceResponse>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateClusterBackgroundPersistence"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceResponse.getDefaultInstance()))
.setSchemaDescriptor(new BuilderServiceMethodDescriptorSupplier("CreateClusterBackgroundPersistence"))
.build();
}
}
}
return getCreateClusterBackgroundPersistenceMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static BuilderServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<BuilderServiceStub> factory =
new io.grpc.stub.AbstractStub.StubFactory<BuilderServiceStub>() {
@java.lang.Override
public BuilderServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new BuilderServiceStub(channel, callOptions);
}
};
return BuilderServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static BuilderServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<BuilderServiceBlockingStub> factory =
new io.grpc.stub.AbstractStub.StubFactory<BuilderServiceBlockingStub>() {
@java.lang.Override
public BuilderServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new BuilderServiceBlockingStub(channel, callOptions);
}
};
return BuilderServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static BuilderServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<BuilderServiceFutureStub> factory =
new io.grpc.stub.AbstractStub.StubFactory<BuilderServiceFutureStub>() {
@java.lang.Override
public BuilderServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new BuilderServiceFutureStub(channel, callOptions);
}
};
return BuilderServiceFutureStub.newStub(factory, channel);
}
/**
*/
public interface AsyncService {
/**
*/
default void getSearchConfig(ai.chalk.protos.chalk.server.v1.GetSearchConfigRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetSearchConfigResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSearchConfigMethod(), responseObserver);
}
/**
* <pre>
* Takes an existing (past) deployment and promotes the k8s resources / other things associated with it.
* Useful for debugging in local development where the auto activation doesn't work b/c no pubsub.
* </pre>
*/
default void activateDeployment(ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.ActivateDeploymentResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getActivateDeploymentMethod(), responseObserver);
}
/**
*/
default void indexDeployment(ai.chalk.protos.chalk.server.v1.IndexDeploymentRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.IndexDeploymentResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getIndexDeploymentMethod(), responseObserver);
}
/**
* <pre>
* Intermediate step in the deployment activation process. Allows for partial migration to the new
* go-api-server builder service.
* </pre>
*/
default void deployKubeComponents(ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.DeployKubeComponentsResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeployKubeComponentsMethod(), responseObserver);
}
/**
* <pre>
* Takes an existing (past) deployment and re-creates the image associated with it,
* publishing the image as 'new_image_tag'.
* </pre>
*/
default void rebuildDeployment(ai.chalk.protos.chalk.server.v1.RebuildDeploymentRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.RebuildDeploymentResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRebuildDeploymentMethod(), responseObserver);
}
/**
* <pre>
* Triggers a new build with the source code from this deployment and deploys the result
* </pre>
*/
default void redeployDeployment(ai.chalk.protos.chalk.server.v1.RedeployDeploymentRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.RedeployDeploymentResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRedeployDeploymentMethod(), responseObserver);
}
/**
* <pre>
* Triggers a new build with the provided source code archive and deploys the result
* </pre>
*/
default void uploadSource(ai.chalk.protos.chalk.server.v1.UploadSourceRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.UploadSourceResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUploadSourceMethod(), responseObserver);
}
/**
*/
default void getDeploymentSteps(ai.chalk.protos.chalk.server.v1.GetDeploymentStepsRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetDeploymentStepsResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDeploymentStepsMethod(), responseObserver);
}
/**
*/
default void getDeploymentLogs(ai.chalk.protos.chalk.server.v1.GetDeploymentLogsRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetDeploymentLogsResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDeploymentLogsMethod(), responseObserver);
}
/**
*/
default void getClusterTimescaleDB(ai.chalk.protos.chalk.server.v1.GetClusterTimescaleDBRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetClusterTimescaleDBResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetClusterTimescaleDBMethod(), responseObserver);
}
/**
*/
default void getClusterGateway(ai.chalk.protos.chalk.server.v1.GetClusterGatewayRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetClusterGatewayResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetClusterGatewayMethod(), responseObserver);
}
/**
*/
default void getClusterBackgroundPersistence(ai.chalk.protos.chalk.server.v1.GetClusterBackgroundPersistenceRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetClusterBackgroundPersistenceResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetClusterBackgroundPersistenceMethod(), responseObserver);
}
/**
*/
default void createClusterTimescaleDB(ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateClusterTimescaleDBMethod(), responseObserver);
}
/**
*/
default void migrateClusterTimescaleDB(ai.chalk.protos.chalk.server.v1.MigrateClusterTimescaleDBRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.MigrateClusterTimescaleDBResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMigrateClusterTimescaleDBMethod(), responseObserver);
}
/**
*/
default void createClusterGateway(ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.CreateClusterGatewayResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateClusterGatewayMethod(), responseObserver);
}
/**
*/
default void createClusterBackgroundPersistence(ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateClusterBackgroundPersistenceMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service BuilderService.
*/
public static abstract class BuilderServiceImplBase
implements io.grpc.BindableService, AsyncService {
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return BuilderServiceGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service BuilderService.
*/
public static final class BuilderServiceStub
extends io.grpc.stub.AbstractAsyncStub<BuilderServiceStub> {
private BuilderServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected BuilderServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new BuilderServiceStub(channel, callOptions);
}
/**
*/
public void getSearchConfig(ai.chalk.protos.chalk.server.v1.GetSearchConfigRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetSearchConfigResponse> responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetSearchConfigMethod(), getCallOptions()), request, responseObserver);
}
/**
* <pre>
* Takes an existing (past) deployment and promotes the k8s resources / other things associated with it.
* Useful for debugging in local development where the auto activation doesn't work b/c no pubsub.
* </pre>
*/
public void activateDeployment(ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.ActivateDeploymentResponse> responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getActivateDeploymentMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void indexDeployment(ai.chalk.protos.chalk.server.v1.IndexDeploymentRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.IndexDeploymentResponse> responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getIndexDeploymentMethod(), getCallOptions()), request, responseObserver);
}
/**
* <pre>
* Intermediate step in the deployment activation process. Allows for partial migration to the new
* go-api-server builder service.
* </pre>
*/
public void deployKubeComponents(ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.DeployKubeComponentsResponse> responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDeployKubeComponentsMethod(), getCallOptions()), request, responseObserver);
}
/**
* <pre>
* Takes an existing (past) deployment and re-creates the image associated with it,
* publishing the image as 'new_image_tag'.
* </pre>
*/
public void rebuildDeployment(ai.chalk.protos.chalk.server.v1.RebuildDeploymentRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.RebuildDeploymentResponse> responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRebuildDeploymentMethod(), getCallOptions()), request, responseObserver);
}
/**
* <pre>
* Triggers a new build with the source code from this deployment and deploys the result
* </pre>
*/
public void redeployDeployment(ai.chalk.protos.chalk.server.v1.RedeployDeploymentRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.RedeployDeploymentResponse> responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRedeployDeploymentMethod(), getCallOptions()), request, responseObserver);
}
/**
* <pre>
* Triggers a new build with the provided source code archive and deploys the result
* </pre>
*/
public void uploadSource(ai.chalk.protos.chalk.server.v1.UploadSourceRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.UploadSourceResponse> responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUploadSourceMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void getDeploymentSteps(ai.chalk.protos.chalk.server.v1.GetDeploymentStepsRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetDeploymentStepsResponse> responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetDeploymentStepsMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void getDeploymentLogs(ai.chalk.protos.chalk.server.v1.GetDeploymentLogsRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetDeploymentLogsResponse> responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetDeploymentLogsMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void getClusterTimescaleDB(ai.chalk.protos.chalk.server.v1.GetClusterTimescaleDBRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetClusterTimescaleDBResponse> responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetClusterTimescaleDBMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void getClusterGateway(ai.chalk.protos.chalk.server.v1.GetClusterGatewayRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetClusterGatewayResponse> responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetClusterGatewayMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void getClusterBackgroundPersistence(ai.chalk.protos.chalk.server.v1.GetClusterBackgroundPersistenceRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetClusterBackgroundPersistenceResponse> responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetClusterBackgroundPersistenceMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void createClusterTimescaleDB(ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBResponse> responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreateClusterTimescaleDBMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void migrateClusterTimescaleDB(ai.chalk.protos.chalk.server.v1.MigrateClusterTimescaleDBRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.MigrateClusterTimescaleDBResponse> responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getMigrateClusterTimescaleDBMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void createClusterGateway(ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.CreateClusterGatewayResponse> responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreateClusterGatewayMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void createClusterBackgroundPersistence(ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequest request,
io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceResponse> responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreateClusterBackgroundPersistenceMethod(), getCallOptions()), request, responseObserver);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service BuilderService.
*/
public static final class BuilderServiceBlockingStub
extends io.grpc.stub.AbstractBlockingStub<BuilderServiceBlockingStub> {
private BuilderServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected BuilderServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new BuilderServiceBlockingStub(channel, callOptions);
}
/**
*/
public ai.chalk.protos.chalk.server.v1.GetSearchConfigResponse getSearchConfig(ai.chalk.protos.chalk.server.v1.GetSearchConfigRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetSearchConfigMethod(), getCallOptions(), request);
}
/**
* <pre>
* Takes an existing (past) deployment and promotes the k8s resources / other things associated with it.
* Useful for debugging in local development where the auto activation doesn't work b/c no pubsub.
* </pre>
*/
public ai.chalk.protos.chalk.server.v1.ActivateDeploymentResponse activateDeployment(ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getActivateDeploymentMethod(), getCallOptions(), request);
}
/**
*/
public ai.chalk.protos.chalk.server.v1.IndexDeploymentResponse indexDeployment(ai.chalk.protos.chalk.server.v1.IndexDeploymentRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getIndexDeploymentMethod(), getCallOptions(), request);
}
/**
* <pre>
* Intermediate step in the deployment activation process. Allows for partial migration to the new
* go-api-server builder service.
* </pre>
*/
public ai.chalk.protos.chalk.server.v1.DeployKubeComponentsResponse deployKubeComponents(ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDeployKubeComponentsMethod(), getCallOptions(), request);
}
/**
* <pre>
* Takes an existing (past) deployment and re-creates the image associated with it,
* publishing the image as 'new_image_tag'.
* </pre>
*/
public ai.chalk.protos.chalk.server.v1.RebuildDeploymentResponse rebuildDeployment(ai.chalk.protos.chalk.server.v1.RebuildDeploymentRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRebuildDeploymentMethod(), getCallOptions(), request);
}
/**
* <pre>
* Triggers a new build with the source code from this deployment and deploys the result
* </pre>
*/
public ai.chalk.protos.chalk.server.v1.RedeployDeploymentResponse redeployDeployment(ai.chalk.protos.chalk.server.v1.RedeployDeploymentRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRedeployDeploymentMethod(), getCallOptions(), request);
}
/**
* <pre>
* Triggers a new build with the provided source code archive and deploys the result
* </pre>
*/
public ai.chalk.protos.chalk.server.v1.UploadSourceResponse uploadSource(ai.chalk.protos.chalk.server.v1.UploadSourceRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUploadSourceMethod(), getCallOptions(), request);
}
/**
*/
public ai.chalk.protos.chalk.server.v1.GetDeploymentStepsResponse getDeploymentSteps(ai.chalk.protos.chalk.server.v1.GetDeploymentStepsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetDeploymentStepsMethod(), getCallOptions(), request);
}
/**
*/
public ai.chalk.protos.chalk.server.v1.GetDeploymentLogsResponse getDeploymentLogs(ai.chalk.protos.chalk.server.v1.GetDeploymentLogsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetDeploymentLogsMethod(), getCallOptions(), request);
}
/**
*/
public ai.chalk.protos.chalk.server.v1.GetClusterTimescaleDBResponse getClusterTimescaleDB(ai.chalk.protos.chalk.server.v1.GetClusterTimescaleDBRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetClusterTimescaleDBMethod(), getCallOptions(), request);
}
/**
*/
public ai.chalk.protos.chalk.server.v1.GetClusterGatewayResponse getClusterGateway(ai.chalk.protos.chalk.server.v1.GetClusterGatewayRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetClusterGatewayMethod(), getCallOptions(), request);
}
/**
*/
public ai.chalk.protos.chalk.server.v1.GetClusterBackgroundPersistenceResponse getClusterBackgroundPersistence(ai.chalk.protos.chalk.server.v1.GetClusterBackgroundPersistenceRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetClusterBackgroundPersistenceMethod(), getCallOptions(), request);
}
/**
*/
public ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBResponse createClusterTimescaleDB(ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateClusterTimescaleDBMethod(), getCallOptions(), request);
}
/**
*/
public ai.chalk.protos.chalk.server.v1.MigrateClusterTimescaleDBResponse migrateClusterTimescaleDB(ai.chalk.protos.chalk.server.v1.MigrateClusterTimescaleDBRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getMigrateClusterTimescaleDBMethod(), getCallOptions(), request);
}
/**
*/
public ai.chalk.protos.chalk.server.v1.CreateClusterGatewayResponse createClusterGateway(ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateClusterGatewayMethod(), getCallOptions(), request);
}
/**
*/
public ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceResponse createClusterBackgroundPersistence(ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateClusterBackgroundPersistenceMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service BuilderService.
*/
public static final class BuilderServiceFutureStub
extends io.grpc.stub.AbstractFutureStub<BuilderServiceFutureStub> {
private BuilderServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected BuilderServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new BuilderServiceFutureStub(channel, callOptions);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<ai.chalk.protos.chalk.server.v1.GetSearchConfigResponse> getSearchConfig(
ai.chalk.protos.chalk.server.v1.GetSearchConfigRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetSearchConfigMethod(), getCallOptions()), request);
}
/**
* <pre>
* Takes an existing (past) deployment and promotes the k8s resources / other things associated with it.
* Useful for debugging in local development where the auto activation doesn't work b/c no pubsub.
* </pre>
*/
public com.google.common.util.concurrent.ListenableFuture<ai.chalk.protos.chalk.server.v1.ActivateDeploymentResponse> activateDeployment(
ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getActivateDeploymentMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<ai.chalk.protos.chalk.server.v1.IndexDeploymentResponse> indexDeployment(
ai.chalk.protos.chalk.server.v1.IndexDeploymentRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getIndexDeploymentMethod(), getCallOptions()), request);
}
/**
* <pre>
* Intermediate step in the deployment activation process. Allows for partial migration to the new
* go-api-server builder service.
* </pre>
*/
public com.google.common.util.concurrent.ListenableFuture<ai.chalk.protos.chalk.server.v1.DeployKubeComponentsResponse> deployKubeComponents(
ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDeployKubeComponentsMethod(), getCallOptions()), request);
}
/**
* <pre>
* Takes an existing (past) deployment and re-creates the image associated with it,
* publishing the image as 'new_image_tag'.
* </pre>
*/
public com.google.common.util.concurrent.ListenableFuture<ai.chalk.protos.chalk.server.v1.RebuildDeploymentResponse> rebuildDeployment(
ai.chalk.protos.chalk.server.v1.RebuildDeploymentRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRebuildDeploymentMethod(), getCallOptions()), request);
}
/**
* <pre>
* Triggers a new build with the source code from this deployment and deploys the result
* </pre>
*/
public com.google.common.util.concurrent.ListenableFuture<ai.chalk.protos.chalk.server.v1.RedeployDeploymentResponse> redeployDeployment(
ai.chalk.protos.chalk.server.v1.RedeployDeploymentRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRedeployDeploymentMethod(), getCallOptions()), request);
}
/**
* <pre>
* Triggers a new build with the provided source code archive and deploys the result
* </pre>
*/
public com.google.common.util.concurrent.ListenableFuture<ai.chalk.protos.chalk.server.v1.UploadSourceResponse> uploadSource(
ai.chalk.protos.chalk.server.v1.UploadSourceRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUploadSourceMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<ai.chalk.protos.chalk.server.v1.GetDeploymentStepsResponse> getDeploymentSteps(
ai.chalk.protos.chalk.server.v1.GetDeploymentStepsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetDeploymentStepsMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<ai.chalk.protos.chalk.server.v1.GetDeploymentLogsResponse> getDeploymentLogs(
ai.chalk.protos.chalk.server.v1.GetDeploymentLogsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetDeploymentLogsMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<ai.chalk.protos.chalk.server.v1.GetClusterTimescaleDBResponse> getClusterTimescaleDB(
ai.chalk.protos.chalk.server.v1.GetClusterTimescaleDBRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetClusterTimescaleDBMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<ai.chalk.protos.chalk.server.v1.GetClusterGatewayResponse> getClusterGateway(
ai.chalk.protos.chalk.server.v1.GetClusterGatewayRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetClusterGatewayMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<ai.chalk.protos.chalk.server.v1.GetClusterBackgroundPersistenceResponse> getClusterBackgroundPersistence(
ai.chalk.protos.chalk.server.v1.GetClusterBackgroundPersistenceRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetClusterBackgroundPersistenceMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBResponse> createClusterTimescaleDB(
ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreateClusterTimescaleDBMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<ai.chalk.protos.chalk.server.v1.MigrateClusterTimescaleDBResponse> migrateClusterTimescaleDB(
ai.chalk.protos.chalk.server.v1.MigrateClusterTimescaleDBRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getMigrateClusterTimescaleDBMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<ai.chalk.protos.chalk.server.v1.CreateClusterGatewayResponse> createClusterGateway(
ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreateClusterGatewayMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceResponse> createClusterBackgroundPersistence(
ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreateClusterBackgroundPersistenceMethod(), getCallOptions()), request);
}
}
private static final int METHODID_GET_SEARCH_CONFIG = 0;
private static final int METHODID_ACTIVATE_DEPLOYMENT = 1;
private static final int METHODID_INDEX_DEPLOYMENT = 2;
private static final int METHODID_DEPLOY_KUBE_COMPONENTS = 3;
private static final int METHODID_REBUILD_DEPLOYMENT = 4;
private static final int METHODID_REDEPLOY_DEPLOYMENT = 5;
private static final int METHODID_UPLOAD_SOURCE = 6;
private static final int METHODID_GET_DEPLOYMENT_STEPS = 7;
private static final int METHODID_GET_DEPLOYMENT_LOGS = 8;
private static final int METHODID_GET_CLUSTER_TIMESCALE_DB = 9;
private static final int METHODID_GET_CLUSTER_GATEWAY = 10;
private static final int METHODID_GET_CLUSTER_BACKGROUND_PERSISTENCE = 11;
private static final int METHODID_CREATE_CLUSTER_TIMESCALE_DB = 12;
private static final int METHODID_MIGRATE_CLUSTER_TIMESCALE_DB = 13;
private static final int METHODID_CREATE_CLUSTER_GATEWAY = 14;
private static final int METHODID_CREATE_CLUSTER_BACKGROUND_PERSISTENCE = 15;
private static final class MethodHandlers<Req, Resp> implements
io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
private final AsyncService serviceImpl;
private final int methodId;
MethodHandlers(AsyncService serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
switch (methodId) {
case METHODID_GET_SEARCH_CONFIG:
serviceImpl.getSearchConfig((ai.chalk.protos.chalk.server.v1.GetSearchConfigRequest) request,
(io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetSearchConfigResponse>) responseObserver);
break;
case METHODID_ACTIVATE_DEPLOYMENT:
serviceImpl.activateDeployment((ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequest) request,
(io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.ActivateDeploymentResponse>) responseObserver);
break;
case METHODID_INDEX_DEPLOYMENT:
serviceImpl.indexDeployment((ai.chalk.protos.chalk.server.v1.IndexDeploymentRequest) request,
(io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.IndexDeploymentResponse>) responseObserver);
break;
case METHODID_DEPLOY_KUBE_COMPONENTS:
serviceImpl.deployKubeComponents((ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequest) request,
(io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.DeployKubeComponentsResponse>) responseObserver);
break;
case METHODID_REBUILD_DEPLOYMENT:
serviceImpl.rebuildDeployment((ai.chalk.protos.chalk.server.v1.RebuildDeploymentRequest) request,
(io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.RebuildDeploymentResponse>) responseObserver);
break;
case METHODID_REDEPLOY_DEPLOYMENT:
serviceImpl.redeployDeployment((ai.chalk.protos.chalk.server.v1.RedeployDeploymentRequest) request,
(io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.RedeployDeploymentResponse>) responseObserver);
break;
case METHODID_UPLOAD_SOURCE:
serviceImpl.uploadSource((ai.chalk.protos.chalk.server.v1.UploadSourceRequest) request,
(io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.UploadSourceResponse>) responseObserver);
break;
case METHODID_GET_DEPLOYMENT_STEPS:
serviceImpl.getDeploymentSteps((ai.chalk.protos.chalk.server.v1.GetDeploymentStepsRequest) request,
(io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetDeploymentStepsResponse>) responseObserver);
break;
case METHODID_GET_DEPLOYMENT_LOGS:
serviceImpl.getDeploymentLogs((ai.chalk.protos.chalk.server.v1.GetDeploymentLogsRequest) request,
(io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetDeploymentLogsResponse>) responseObserver);
break;
case METHODID_GET_CLUSTER_TIMESCALE_DB:
serviceImpl.getClusterTimescaleDB((ai.chalk.protos.chalk.server.v1.GetClusterTimescaleDBRequest) request,
(io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetClusterTimescaleDBResponse>) responseObserver);
break;
case METHODID_GET_CLUSTER_GATEWAY:
serviceImpl.getClusterGateway((ai.chalk.protos.chalk.server.v1.GetClusterGatewayRequest) request,
(io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetClusterGatewayResponse>) responseObserver);
break;
case METHODID_GET_CLUSTER_BACKGROUND_PERSISTENCE:
serviceImpl.getClusterBackgroundPersistence((ai.chalk.protos.chalk.server.v1.GetClusterBackgroundPersistenceRequest) request,
(io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.GetClusterBackgroundPersistenceResponse>) responseObserver);
break;
case METHODID_CREATE_CLUSTER_TIMESCALE_DB:
serviceImpl.createClusterTimescaleDB((ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequest) request,
(io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBResponse>) responseObserver);
break;
case METHODID_MIGRATE_CLUSTER_TIMESCALE_DB:
serviceImpl.migrateClusterTimescaleDB((ai.chalk.protos.chalk.server.v1.MigrateClusterTimescaleDBRequest) request,
(io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.MigrateClusterTimescaleDBResponse>) responseObserver);
break;
case METHODID_CREATE_CLUSTER_GATEWAY:
serviceImpl.createClusterGateway((ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequest) request,
(io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.CreateClusterGatewayResponse>) responseObserver);
break;
case METHODID_CREATE_CLUSTER_BACKGROUND_PERSISTENCE:
serviceImpl.createClusterBackgroundPersistence((ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequest) request,
(io.grpc.stub.StreamObserver<ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceResponse>) responseObserver);
break;
default:
throw new AssertionError();
}
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public io.grpc.stub.StreamObserver<Req> invoke(
io.grpc.stub.StreamObserver<Resp> responseObserver) {
switch (methodId) {
default:
throw new AssertionError();
}
}
}
public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getGetSearchConfigMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
ai.chalk.protos.chalk.server.v1.GetSearchConfigRequest,
ai.chalk.protos.chalk.server.v1.GetSearchConfigResponse>(
service, METHODID_GET_SEARCH_CONFIG)))
.addMethod(
getActivateDeploymentMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
ai.chalk.protos.chalk.server.v1.ActivateDeploymentRequest,
ai.chalk.protos.chalk.server.v1.ActivateDeploymentResponse>(
service, METHODID_ACTIVATE_DEPLOYMENT)))
.addMethod(
getIndexDeploymentMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
ai.chalk.protos.chalk.server.v1.IndexDeploymentRequest,
ai.chalk.protos.chalk.server.v1.IndexDeploymentResponse>(
service, METHODID_INDEX_DEPLOYMENT)))
.addMethod(
getDeployKubeComponentsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequest,
ai.chalk.protos.chalk.server.v1.DeployKubeComponentsResponse>(
service, METHODID_DEPLOY_KUBE_COMPONENTS)))
.addMethod(
getRebuildDeploymentMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
ai.chalk.protos.chalk.server.v1.RebuildDeploymentRequest,
ai.chalk.protos.chalk.server.v1.RebuildDeploymentResponse>(
service, METHODID_REBUILD_DEPLOYMENT)))
.addMethod(
getRedeployDeploymentMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
ai.chalk.protos.chalk.server.v1.RedeployDeploymentRequest,
ai.chalk.protos.chalk.server.v1.RedeployDeploymentResponse>(
service, METHODID_REDEPLOY_DEPLOYMENT)))
.addMethod(
getUploadSourceMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
ai.chalk.protos.chalk.server.v1.UploadSourceRequest,
ai.chalk.protos.chalk.server.v1.UploadSourceResponse>(
service, METHODID_UPLOAD_SOURCE)))
.addMethod(
getGetDeploymentStepsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
ai.chalk.protos.chalk.server.v1.GetDeploymentStepsRequest,
ai.chalk.protos.chalk.server.v1.GetDeploymentStepsResponse>(
service, METHODID_GET_DEPLOYMENT_STEPS)))
.addMethod(
getGetDeploymentLogsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
ai.chalk.protos.chalk.server.v1.GetDeploymentLogsRequest,
ai.chalk.protos.chalk.server.v1.GetDeploymentLogsResponse>(
service, METHODID_GET_DEPLOYMENT_LOGS)))
.addMethod(
getGetClusterTimescaleDBMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
ai.chalk.protos.chalk.server.v1.GetClusterTimescaleDBRequest,
ai.chalk.protos.chalk.server.v1.GetClusterTimescaleDBResponse>(
service, METHODID_GET_CLUSTER_TIMESCALE_DB)))
.addMethod(
getGetClusterGatewayMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
ai.chalk.protos.chalk.server.v1.GetClusterGatewayRequest,
ai.chalk.protos.chalk.server.v1.GetClusterGatewayResponse>(
service, METHODID_GET_CLUSTER_GATEWAY)))
.addMethod(
getGetClusterBackgroundPersistenceMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
ai.chalk.protos.chalk.server.v1.GetClusterBackgroundPersistenceRequest,
ai.chalk.protos.chalk.server.v1.GetClusterBackgroundPersistenceResponse>(
service, METHODID_GET_CLUSTER_BACKGROUND_PERSISTENCE)))
.addMethod(
getCreateClusterTimescaleDBMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequest,
ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBResponse>(
service, METHODID_CREATE_CLUSTER_TIMESCALE_DB)))
.addMethod(
getMigrateClusterTimescaleDBMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
ai.chalk.protos.chalk.server.v1.MigrateClusterTimescaleDBRequest,
ai.chalk.protos.chalk.server.v1.MigrateClusterTimescaleDBResponse>(
service, METHODID_MIGRATE_CLUSTER_TIMESCALE_DB)))
.addMethod(
getCreateClusterGatewayMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequest,
ai.chalk.protos.chalk.server.v1.CreateClusterGatewayResponse>(
service, METHODID_CREATE_CLUSTER_GATEWAY)))
.addMethod(
getCreateClusterBackgroundPersistenceMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequest,
ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceResponse>(
service, METHODID_CREATE_CLUSTER_BACKGROUND_PERSISTENCE)))
.build();
}
private static abstract class BuilderServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
BuilderServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("BuilderService");
}
}
private static final class BuilderServiceFileDescriptorSupplier
extends BuilderServiceBaseDescriptorSupplier {
BuilderServiceFileDescriptorSupplier() {}
}
private static final class BuilderServiceMethodDescriptorSupplier
extends BuilderServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final java.lang.String methodName;
BuilderServiceMethodDescriptorSupplier(java.lang.String methodName) {
this.methodName = methodName;
}
@java.lang.Override
public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
return getServiceDescriptor().findMethodByName(methodName);
}
}
private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
public static io.grpc.ServiceDescriptor getServiceDescriptor() {
io.grpc.ServiceDescriptor result = serviceDescriptor;
if (result == null) {
synchronized (BuilderServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new BuilderServiceFileDescriptorSupplier())
.addMethod(getGetSearchConfigMethod())
.addMethod(getActivateDeploymentMethod())
.addMethod(getIndexDeploymentMethod())
.addMethod(getDeployKubeComponentsMethod())
.addMethod(getRebuildDeploymentMethod())
.addMethod(getRedeployDeploymentMethod())
.addMethod(getUploadSourceMethod())
.addMethod(getGetDeploymentStepsMethod())
.addMethod(getGetDeploymentLogsMethod())
.addMethod(getGetClusterTimescaleDBMethod())
.addMethod(getGetClusterGatewayMethod())
.addMethod(getGetClusterBackgroundPersistenceMethod())
.addMethod(getCreateClusterTimescaleDBMethod())
.addMethod(getMigrateClusterTimescaleDBMethod())
.addMethod(getCreateClusterGatewayMethod())
.addMethod(getCreateClusterBackgroundPersistenceMethod())
.build();
}
}
}
return result;
}
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/Chart.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/chart.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
/**
* Protobuf type {@code chalk.server.v1.Chart}
*/
public final class Chart extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.server.v1.Chart)
ChartOrBuilder {
private static final long serialVersionUID = 0L;
// Use Chart.newBuilder() to construct.
private Chart(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private Chart() {
title_ = "";
series_ = java.util.Collections.emptyList();
xTimestampMs_ = emptyLongList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Chart();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.ChartProto.internal_static_chalk_server_v1_Chart_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.ChartProto.internal_static_chalk_server_v1_Chart_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.Chart.class, ai.chalk.protos.chalk.server.v1.Chart.Builder.class);
}
public static final int TITLE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object title_ = "";
/**
* <code>string title = 1 [json_name = "title"];</code>
* @return The title.
*/
@java.lang.Override
public java.lang.String getTitle() {
java.lang.Object ref = title_;
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();
title_ = s;
return s;
}
}
/**
* <code>string title = 1 [json_name = "title"];</code>
* @return The bytes for title.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTitleBytes() {
java.lang.Object ref = title_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
title_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SERIES_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List<ai.chalk.protos.chalk.server.v1.Series> series_;
/**
* <code>repeated .chalk.server.v1.Series series = 2 [json_name = "series"];</code>
*/
@java.lang.Override
public java.util.List<ai.chalk.protos.chalk.server.v1.Series> getSeriesList() {
return series_;
}
/**
* <code>repeated .chalk.server.v1.Series series = 2 [json_name = "series"];</code>
*/
@java.lang.Override
public java.util.List<? extends ai.chalk.protos.chalk.server.v1.SeriesOrBuilder>
getSeriesOrBuilderList() {
return series_;
}
/**
* <code>repeated .chalk.server.v1.Series series = 2 [json_name = "series"];</code>
*/
@java.lang.Override
public int getSeriesCount() {
return series_.size();
}
/**
* <code>repeated .chalk.server.v1.Series series = 2 [json_name = "series"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.Series getSeries(int index) {
return series_.get(index);
}
/**
* <code>repeated .chalk.server.v1.Series series = 2 [json_name = "series"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.SeriesOrBuilder getSeriesOrBuilder(
int index) {
return series_.get(index);
}
public static final int X_TIMESTAMP_MS_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.LongList xTimestampMs_ =
emptyLongList();
/**
* <code>repeated int64 x_timestamp_ms = 4 [json_name = "xTimestampMs"];</code>
* @return A list containing the xTimestampMs.
*/
@java.lang.Override
public java.util.List<java.lang.Long>
getXTimestampMsList() {
return xTimestampMs_;
}
/**
* <code>repeated int64 x_timestamp_ms = 4 [json_name = "xTimestampMs"];</code>
* @return The count of xTimestampMs.
*/
public int getXTimestampMsCount() {
return xTimestampMs_.size();
}
/**
* <code>repeated int64 x_timestamp_ms = 4 [json_name = "xTimestampMs"];</code>
* @param index The index of the element to return.
* @return The xTimestampMs at the given index.
*/
public long getXTimestampMs(int index) {
return xTimestampMs_.getLong(index);
}
private int xTimestampMsMemoizedSerializedSize = -1;
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_);
}
for (int i = 0; i < series_.size(); i++) {
output.writeMessage(2, series_.get(i));
}
if (getXTimestampMsList().size() > 0) {
output.writeUInt32NoTag(34);
output.writeUInt32NoTag(xTimestampMsMemoizedSerializedSize);
}
for (int i = 0; i < xTimestampMs_.size(); i++) {
output.writeInt64NoTag(xTimestampMs_.getLong(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_);
}
for (int i = 0; i < series_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, series_.get(i));
}
{
int dataSize = 0;
for (int i = 0; i < xTimestampMs_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt64SizeNoTag(xTimestampMs_.getLong(i));
}
size += dataSize;
if (!getXTimestampMsList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
xTimestampMsMemoizedSerializedSize = dataSize;
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ai.chalk.protos.chalk.server.v1.Chart)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.server.v1.Chart other = (ai.chalk.protos.chalk.server.v1.Chart) obj;
if (!getTitle()
.equals(other.getTitle())) return false;
if (!getSeriesList()
.equals(other.getSeriesList())) return false;
if (!getXTimestampMsList()
.equals(other.getXTimestampMsList())) 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) + TITLE_FIELD_NUMBER;
hash = (53 * hash) + getTitle().hashCode();
if (getSeriesCount() > 0) {
hash = (37 * hash) + SERIES_FIELD_NUMBER;
hash = (53 * hash) + getSeriesList().hashCode();
}
if (getXTimestampMsCount() > 0) {
hash = (37 * hash) + X_TIMESTAMP_MS_FIELD_NUMBER;
hash = (53 * hash) + getXTimestampMsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.server.v1.Chart parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.Chart parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.Chart parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.Chart parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.Chart parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.Chart parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.Chart parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.Chart 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 ai.chalk.protos.chalk.server.v1.Chart parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.Chart 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 ai.chalk.protos.chalk.server.v1.Chart parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.Chart 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(ai.chalk.protos.chalk.server.v1.Chart prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code chalk.server.v1.Chart}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.server.v1.Chart)
ai.chalk.protos.chalk.server.v1.ChartOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.ChartProto.internal_static_chalk_server_v1_Chart_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.ChartProto.internal_static_chalk_server_v1_Chart_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.Chart.class, ai.chalk.protos.chalk.server.v1.Chart.Builder.class);
}
// Construct using ai.chalk.protos.chalk.server.v1.Chart.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
title_ = "";
if (seriesBuilder_ == null) {
series_ = java.util.Collections.emptyList();
} else {
series_ = null;
seriesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
xTimestampMs_ = emptyLongList();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.server.v1.ChartProto.internal_static_chalk_server_v1_Chart_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.Chart getDefaultInstanceForType() {
return ai.chalk.protos.chalk.server.v1.Chart.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.Chart build() {
ai.chalk.protos.chalk.server.v1.Chart result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.Chart buildPartial() {
ai.chalk.protos.chalk.server.v1.Chart result = new ai.chalk.protos.chalk.server.v1.Chart(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(ai.chalk.protos.chalk.server.v1.Chart result) {
if (seriesBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
series_ = java.util.Collections.unmodifiableList(series_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.series_ = series_;
} else {
result.series_ = seriesBuilder_.build();
}
}
private void buildPartial0(ai.chalk.protos.chalk.server.v1.Chart result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.title_ = title_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
xTimestampMs_.makeImmutable();
result.xTimestampMs_ = xTimestampMs_;
}
}
@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 ai.chalk.protos.chalk.server.v1.Chart) {
return mergeFrom((ai.chalk.protos.chalk.server.v1.Chart)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.server.v1.Chart other) {
if (other == ai.chalk.protos.chalk.server.v1.Chart.getDefaultInstance()) return this;
if (!other.getTitle().isEmpty()) {
title_ = other.title_;
bitField0_ |= 0x00000001;
onChanged();
}
if (seriesBuilder_ == null) {
if (!other.series_.isEmpty()) {
if (series_.isEmpty()) {
series_ = other.series_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureSeriesIsMutable();
series_.addAll(other.series_);
}
onChanged();
}
} else {
if (!other.series_.isEmpty()) {
if (seriesBuilder_.isEmpty()) {
seriesBuilder_.dispose();
seriesBuilder_ = null;
series_ = other.series_;
bitField0_ = (bitField0_ & ~0x00000002);
seriesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSeriesFieldBuilder() : null;
} else {
seriesBuilder_.addAllMessages(other.series_);
}
}
}
if (!other.xTimestampMs_.isEmpty()) {
if (xTimestampMs_.isEmpty()) {
xTimestampMs_ = other.xTimestampMs_;
xTimestampMs_.makeImmutable();
bitField0_ |= 0x00000004;
} else {
ensureXTimestampMsIsMutable();
xTimestampMs_.addAll(other.xTimestampMs_);
}
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: {
title_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
ai.chalk.protos.chalk.server.v1.Series m =
input.readMessage(
ai.chalk.protos.chalk.server.v1.Series.parser(),
extensionRegistry);
if (seriesBuilder_ == null) {
ensureSeriesIsMutable();
series_.add(m);
} else {
seriesBuilder_.addMessage(m);
}
break;
} // case 18
case 32: {
long v = input.readInt64();
ensureXTimestampMsIsMutable();
xTimestampMs_.addLong(v);
break;
} // case 32
case 34: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensureXTimestampMsIsMutable();
while (input.getBytesUntilLimit() > 0) {
xTimestampMs_.addLong(input.readInt64());
}
input.popLimit(limit);
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 java.lang.Object title_ = "";
/**
* <code>string title = 1 [json_name = "title"];</code>
* @return The title.
*/
public java.lang.String getTitle() {
java.lang.Object ref = title_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
title_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string title = 1 [json_name = "title"];</code>
* @return The bytes for title.
*/
public com.google.protobuf.ByteString
getTitleBytes() {
java.lang.Object ref = title_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
title_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string title = 1 [json_name = "title"];</code>
* @param value The title to set.
* @return This builder for chaining.
*/
public Builder setTitle(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
title_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>string title = 1 [json_name = "title"];</code>
* @return This builder for chaining.
*/
public Builder clearTitle() {
title_ = getDefaultInstance().getTitle();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* <code>string title = 1 [json_name = "title"];</code>
* @param value The bytes for title to set.
* @return This builder for chaining.
*/
public Builder setTitleBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
title_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.util.List<ai.chalk.protos.chalk.server.v1.Series> series_ =
java.util.Collections.emptyList();
private void ensureSeriesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
series_ = new java.util.ArrayList<ai.chalk.protos.chalk.server.v1.Series>(series_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.Series, ai.chalk.protos.chalk.server.v1.Series.Builder, ai.chalk.protos.chalk.server.v1.SeriesOrBuilder> seriesBuilder_;
/**
* <code>repeated .chalk.server.v1.Series series = 2 [json_name = "series"];</code>
*/
public java.util.List<ai.chalk.protos.chalk.server.v1.Series> getSeriesList() {
if (seriesBuilder_ == null) {
return java.util.Collections.unmodifiableList(series_);
} else {
return seriesBuilder_.getMessageList();
}
}
/**
* <code>repeated .chalk.server.v1.Series series = 2 [json_name = "series"];</code>
*/
public int getSeriesCount() {
if (seriesBuilder_ == null) {
return series_.size();
} else {
return seriesBuilder_.getCount();
}
}
/**
* <code>repeated .chalk.server.v1.Series series = 2 [json_name = "series"];</code>
*/
public ai.chalk.protos.chalk.server.v1.Series getSeries(int index) {
if (seriesBuilder_ == null) {
return series_.get(index);
} else {
return seriesBuilder_.getMessage(index);
}
}
/**
* <code>repeated .chalk.server.v1.Series series = 2 [json_name = "series"];</code>
*/
public Builder setSeries(
int index, ai.chalk.protos.chalk.server.v1.Series value) {
if (seriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSeriesIsMutable();
series_.set(index, value);
onChanged();
} else {
seriesBuilder_.setMessage(index, value);
}
return this;
}
/**
* <code>repeated .chalk.server.v1.Series series = 2 [json_name = "series"];</code>
*/
public Builder setSeries(
int index, ai.chalk.protos.chalk.server.v1.Series.Builder builderForValue) {
if (seriesBuilder_ == null) {
ensureSeriesIsMutable();
series_.set(index, builderForValue.build());
onChanged();
} else {
seriesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .chalk.server.v1.Series series = 2 [json_name = "series"];</code>
*/
public Builder addSeries(ai.chalk.protos.chalk.server.v1.Series value) {
if (seriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSeriesIsMutable();
series_.add(value);
onChanged();
} else {
seriesBuilder_.addMessage(value);
}
return this;
}
/**
* <code>repeated .chalk.server.v1.Series series = 2 [json_name = "series"];</code>
*/
public Builder addSeries(
int index, ai.chalk.protos.chalk.server.v1.Series value) {
if (seriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSeriesIsMutable();
series_.add(index, value);
onChanged();
} else {
seriesBuilder_.addMessage(index, value);
}
return this;
}
/**
* <code>repeated .chalk.server.v1.Series series = 2 [json_name = "series"];</code>
*/
public Builder addSeries(
ai.chalk.protos.chalk.server.v1.Series.Builder builderForValue) {
if (seriesBuilder_ == null) {
ensureSeriesIsMutable();
series_.add(builderForValue.build());
onChanged();
} else {
seriesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <code>repeated .chalk.server.v1.Series series = 2 [json_name = "series"];</code>
*/
public Builder addSeries(
int index, ai.chalk.protos.chalk.server.v1.Series.Builder builderForValue) {
if (seriesBuilder_ == null) {
ensureSeriesIsMutable();
series_.add(index, builderForValue.build());
onChanged();
} else {
seriesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .chalk.server.v1.Series series = 2 [json_name = "series"];</code>
*/
public Builder addAllSeries(
java.lang.Iterable<? extends ai.chalk.protos.chalk.server.v1.Series> values) {
if (seriesBuilder_ == null) {
ensureSeriesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, series_);
onChanged();
} else {
seriesBuilder_.addAllMessages(values);
}
return this;
}
/**
* <code>repeated .chalk.server.v1.Series series = 2 [json_name = "series"];</code>
*/
public Builder clearSeries() {
if (seriesBuilder_ == null) {
series_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
seriesBuilder_.clear();
}
return this;
}
/**
* <code>repeated .chalk.server.v1.Series series = 2 [json_name = "series"];</code>
*/
public Builder removeSeries(int index) {
if (seriesBuilder_ == null) {
ensureSeriesIsMutable();
series_.remove(index);
onChanged();
} else {
seriesBuilder_.remove(index);
}
return this;
}
/**
* <code>repeated .chalk.server.v1.Series series = 2 [json_name = "series"];</code>
*/
public ai.chalk.protos.chalk.server.v1.Series.Builder getSeriesBuilder(
int index) {
return getSeriesFieldBuilder().getBuilder(index);
}
/**
* <code>repeated .chalk.server.v1.Series series = 2 [json_name = "series"];</code>
*/
public ai.chalk.protos.chalk.server.v1.SeriesOrBuilder getSeriesOrBuilder(
int index) {
if (seriesBuilder_ == null) {
return series_.get(index); } else {
return seriesBuilder_.getMessageOrBuilder(index);
}
}
/**
* <code>repeated .chalk.server.v1.Series series = 2 [json_name = "series"];</code>
*/
public java.util.List<? extends ai.chalk.protos.chalk.server.v1.SeriesOrBuilder>
getSeriesOrBuilderList() {
if (seriesBuilder_ != null) {
return seriesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(series_);
}
}
/**
* <code>repeated .chalk.server.v1.Series series = 2 [json_name = "series"];</code>
*/
public ai.chalk.protos.chalk.server.v1.Series.Builder addSeriesBuilder() {
return getSeriesFieldBuilder().addBuilder(
ai.chalk.protos.chalk.server.v1.Series.getDefaultInstance());
}
/**
* <code>repeated .chalk.server.v1.Series series = 2 [json_name = "series"];</code>
*/
public ai.chalk.protos.chalk.server.v1.Series.Builder addSeriesBuilder(
int index) {
return getSeriesFieldBuilder().addBuilder(
index, ai.chalk.protos.chalk.server.v1.Series.getDefaultInstance());
}
/**
* <code>repeated .chalk.server.v1.Series series = 2 [json_name = "series"];</code>
*/
public java.util.List<ai.chalk.protos.chalk.server.v1.Series.Builder>
getSeriesBuilderList() {
return getSeriesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.Series, ai.chalk.protos.chalk.server.v1.Series.Builder, ai.chalk.protos.chalk.server.v1.SeriesOrBuilder>
getSeriesFieldBuilder() {
if (seriesBuilder_ == null) {
seriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.Series, ai.chalk.protos.chalk.server.v1.Series.Builder, ai.chalk.protos.chalk.server.v1.SeriesOrBuilder>(
series_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
series_ = null;
}
return seriesBuilder_;
}
private com.google.protobuf.Internal.LongList xTimestampMs_ = emptyLongList();
private void ensureXTimestampMsIsMutable() {
if (!xTimestampMs_.isModifiable()) {
xTimestampMs_ = makeMutableCopy(xTimestampMs_);
}
bitField0_ |= 0x00000004;
}
/**
* <code>repeated int64 x_timestamp_ms = 4 [json_name = "xTimestampMs"];</code>
* @return A list containing the xTimestampMs.
*/
public java.util.List<java.lang.Long>
getXTimestampMsList() {
xTimestampMs_.makeImmutable();
return xTimestampMs_;
}
/**
* <code>repeated int64 x_timestamp_ms = 4 [json_name = "xTimestampMs"];</code>
* @return The count of xTimestampMs.
*/
public int getXTimestampMsCount() {
return xTimestampMs_.size();
}
/**
* <code>repeated int64 x_timestamp_ms = 4 [json_name = "xTimestampMs"];</code>
* @param index The index of the element to return.
* @return The xTimestampMs at the given index.
*/
public long getXTimestampMs(int index) {
return xTimestampMs_.getLong(index);
}
/**
* <code>repeated int64 x_timestamp_ms = 4 [json_name = "xTimestampMs"];</code>
* @param index The index to set the value at.
* @param value The xTimestampMs to set.
* @return This builder for chaining.
*/
public Builder setXTimestampMs(
int index, long value) {
ensureXTimestampMsIsMutable();
xTimestampMs_.setLong(index, value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* <code>repeated int64 x_timestamp_ms = 4 [json_name = "xTimestampMs"];</code>
* @param value The xTimestampMs to add.
* @return This builder for chaining.
*/
public Builder addXTimestampMs(long value) {
ensureXTimestampMsIsMutable();
xTimestampMs_.addLong(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* <code>repeated int64 x_timestamp_ms = 4 [json_name = "xTimestampMs"];</code>
* @param values The xTimestampMs to add.
* @return This builder for chaining.
*/
public Builder addAllXTimestampMs(
java.lang.Iterable<? extends java.lang.Long> values) {
ensureXTimestampMsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, xTimestampMs_);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* <code>repeated int64 x_timestamp_ms = 4 [json_name = "xTimestampMs"];</code>
* @return This builder for chaining.
*/
public Builder clearXTimestampMs() {
xTimestampMs_ = emptyLongList();
bitField0_ = (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:chalk.server.v1.Chart)
}
// @@protoc_insertion_point(class_scope:chalk.server.v1.Chart)
private static final ai.chalk.protos.chalk.server.v1.Chart DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.server.v1.Chart();
}
public static ai.chalk.protos.chalk.server.v1.Chart getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<Chart>
PARSER = new com.google.protobuf.AbstractParser<Chart>() {
@java.lang.Override
public Chart 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<Chart> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<Chart> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.Chart getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/ChartOrBuilder.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/chart.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
public interface ChartOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.server.v1.Chart)
com.google.protobuf.MessageOrBuilder {
/**
* <code>string title = 1 [json_name = "title"];</code>
* @return The title.
*/
java.lang.String getTitle();
/**
* <code>string title = 1 [json_name = "title"];</code>
* @return The bytes for title.
*/
com.google.protobuf.ByteString
getTitleBytes();
/**
* <code>repeated .chalk.server.v1.Series series = 2 [json_name = "series"];</code>
*/
java.util.List<ai.chalk.protos.chalk.server.v1.Series>
getSeriesList();
/**
* <code>repeated .chalk.server.v1.Series series = 2 [json_name = "series"];</code>
*/
ai.chalk.protos.chalk.server.v1.Series getSeries(int index);
/**
* <code>repeated .chalk.server.v1.Series series = 2 [json_name = "series"];</code>
*/
int getSeriesCount();
/**
* <code>repeated .chalk.server.v1.Series series = 2 [json_name = "series"];</code>
*/
java.util.List<? extends ai.chalk.protos.chalk.server.v1.SeriesOrBuilder>
getSeriesOrBuilderList();
/**
* <code>repeated .chalk.server.v1.Series series = 2 [json_name = "series"];</code>
*/
ai.chalk.protos.chalk.server.v1.SeriesOrBuilder getSeriesOrBuilder(
int index);
/**
* <code>repeated int64 x_timestamp_ms = 4 [json_name = "xTimestampMs"];</code>
* @return A list containing the xTimestampMs.
*/
java.util.List<java.lang.Long> getXTimestampMsList();
/**
* <code>repeated int64 x_timestamp_ms = 4 [json_name = "xTimestampMs"];</code>
* @return The count of xTimestampMs.
*/
int getXTimestampMsCount();
/**
* <code>repeated int64 x_timestamp_ms = 4 [json_name = "xTimestampMs"];</code>
* @param index The index of the element to return.
* @return The xTimestampMs at the given index.
*/
long getXTimestampMs(int index);
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/ChartProto.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/chart.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
public final class ChartProto {
private ChartProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_Series_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_Series_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_Chart_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_Chart_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_Point_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_Point_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_TimeSeries_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_TimeSeries_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_TimeSeriesChart_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_TimeSeriesChart_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\033chalk/server/v1/chart.proto\022\017chalk.ser" +
"ver.v1\032\036google/protobuf/duration.proto\032\037" +
"google/protobuf/timestamp.proto\"L\n\006Serie" +
"s\022\026\n\006points\030\001 \003(\001R\006points\022\024\n\005label\030\002 \001(\t" +
"R\005label\022\024\n\005units\030\003 \001(\tR\005units\"t\n\005Chart\022\024" +
"\n\005title\030\001 \001(\tR\005title\022/\n\006series\030\002 \003(\0132\027.c" +
"halk.server.v1.SeriesR\006series\022$\n\016x_times" +
"tamp_ms\030\004 \003(\003R\014xTimestampMs\"0\n\005Point\022\031\n\005" +
"value\030\001 \001(\003H\000R\005value\210\001\001:\002\030\001B\010\n\006_value\"l\n" +
"\nTimeSeries\022.\n\006points\030\001 \003(\0132\026.chalk.serv" +
"er.v1.PointR\006points\022\024\n\005label\030\002 \001(\tR\005labe" +
"l\022\024\n\005units\030\003 \001(\tR\005units:\002\030\001\"\327\001\n\017TimeSeri" +
"esChart\022\024\n\005title\030\001 \001(\tR\005title\0223\n\006series\030" +
"\002 \003(\0132\033.chalk.server.v1.TimeSeriesR\006seri" +
"es\0225\n\010x_series\030\003 \003(\0132\032.google.protobuf.T" +
"imestampR\007xSeries\022>\n\rwindow_period\030\004 \001(\013" +
"2\031.google.protobuf.DurationR\014windowPerio" +
"d:\002\030\001B\237\001\n\037ai.chalk.protos.chalk.server.v" +
"1B\nChartProtoP\001Z\022server/v1;serverv1\242\002\003CS" +
"X\252\002\017Chalk.Server.V1\312\002\017Chalk\\Server\\V1\342\002\033" +
"Chalk\\Server\\V1\\GPBMetadata\352\002\021Chalk::Ser" +
"ver::V1b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.DurationProto.getDescriptor(),
com.google.protobuf.TimestampProto.getDescriptor(),
});
internal_static_chalk_server_v1_Series_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_chalk_server_v1_Series_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_Series_descriptor,
new java.lang.String[] { "Points", "Label", "Units", });
internal_static_chalk_server_v1_Chart_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_chalk_server_v1_Chart_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_Chart_descriptor,
new java.lang.String[] { "Title", "Series", "XTimestampMs", });
internal_static_chalk_server_v1_Point_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_chalk_server_v1_Point_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_Point_descriptor,
new java.lang.String[] { "Value", });
internal_static_chalk_server_v1_TimeSeries_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_chalk_server_v1_TimeSeries_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_TimeSeries_descriptor,
new java.lang.String[] { "Points", "Label", "Units", });
internal_static_chalk_server_v1_TimeSeriesChart_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_chalk_server_v1_TimeSeriesChart_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_TimeSeriesChart_descriptor,
new java.lang.String[] { "Title", "Series", "XSeries", "WindowPeriod", });
com.google.protobuf.DurationProto.getDescriptor();
com.google.protobuf.TimestampProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/CheckHealthRequest.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/status.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
/**
* Protobuf type {@code chalk.server.v1.CheckHealthRequest}
*/
public final class CheckHealthRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.server.v1.CheckHealthRequest)
CheckHealthRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CheckHealthRequest.newBuilder() to construct.
private CheckHealthRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private CheckHealthRequest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CheckHealthRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.StatusProto.internal_static_chalk_server_v1_CheckHealthRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.StatusProto.internal_static_chalk_server_v1_CheckHealthRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.CheckHealthRequest.class, ai.chalk.protos.chalk.server.v1.CheckHealthRequest.Builder.class);
}
private int bitField0_;
public static final int FILTERS_FIELD_NUMBER = 1;
private ai.chalk.protos.chalk.server.v1.HealthCheckFilters filters_;
/**
* <code>optional .chalk.server.v1.HealthCheckFilters filters = 1 [json_name = "filters"];</code>
* @return Whether the filters field is set.
*/
@java.lang.Override
public boolean hasFilters() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <code>optional .chalk.server.v1.HealthCheckFilters filters = 1 [json_name = "filters"];</code>
* @return The filters.
*/
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.HealthCheckFilters getFilters() {
return filters_ == null ? ai.chalk.protos.chalk.server.v1.HealthCheckFilters.getDefaultInstance() : filters_;
}
/**
* <code>optional .chalk.server.v1.HealthCheckFilters filters = 1 [json_name = "filters"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.HealthCheckFiltersOrBuilder getFiltersOrBuilder() {
return filters_ == null ? ai.chalk.protos.chalk.server.v1.HealthCheckFilters.getDefaultInstance() : filters_;
}
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, getFilters());
}
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, getFilters());
}
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 ai.chalk.protos.chalk.server.v1.CheckHealthRequest)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.server.v1.CheckHealthRequest other = (ai.chalk.protos.chalk.server.v1.CheckHealthRequest) obj;
if (hasFilters() != other.hasFilters()) return false;
if (hasFilters()) {
if (!getFilters()
.equals(other.getFilters())) 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 (hasFilters()) {
hash = (37 * hash) + FILTERS_FIELD_NUMBER;
hash = (53 * hash) + getFilters().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.server.v1.CheckHealthRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CheckHealthRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CheckHealthRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CheckHealthRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CheckHealthRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CheckHealthRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CheckHealthRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CheckHealthRequest 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 ai.chalk.protos.chalk.server.v1.CheckHealthRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CheckHealthRequest 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 ai.chalk.protos.chalk.server.v1.CheckHealthRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CheckHealthRequest 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(ai.chalk.protos.chalk.server.v1.CheckHealthRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code chalk.server.v1.CheckHealthRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.server.v1.CheckHealthRequest)
ai.chalk.protos.chalk.server.v1.CheckHealthRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.StatusProto.internal_static_chalk_server_v1_CheckHealthRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.StatusProto.internal_static_chalk_server_v1_CheckHealthRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.CheckHealthRequest.class, ai.chalk.protos.chalk.server.v1.CheckHealthRequest.Builder.class);
}
// Construct using ai.chalk.protos.chalk.server.v1.CheckHealthRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getFiltersFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
filters_ = null;
if (filtersBuilder_ != null) {
filtersBuilder_.dispose();
filtersBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.server.v1.StatusProto.internal_static_chalk_server_v1_CheckHealthRequest_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CheckHealthRequest getDefaultInstanceForType() {
return ai.chalk.protos.chalk.server.v1.CheckHealthRequest.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CheckHealthRequest build() {
ai.chalk.protos.chalk.server.v1.CheckHealthRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CheckHealthRequest buildPartial() {
ai.chalk.protos.chalk.server.v1.CheckHealthRequest result = new ai.chalk.protos.chalk.server.v1.CheckHealthRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ai.chalk.protos.chalk.server.v1.CheckHealthRequest result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.filters_ = filtersBuilder_ == null
? filters_
: filtersBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.chalk.protos.chalk.server.v1.CheckHealthRequest) {
return mergeFrom((ai.chalk.protos.chalk.server.v1.CheckHealthRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.server.v1.CheckHealthRequest other) {
if (other == ai.chalk.protos.chalk.server.v1.CheckHealthRequest.getDefaultInstance()) return this;
if (other.hasFilters()) {
mergeFilters(other.getFilters());
}
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(
getFiltersFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
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 ai.chalk.protos.chalk.server.v1.HealthCheckFilters filters_;
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.HealthCheckFilters, ai.chalk.protos.chalk.server.v1.HealthCheckFilters.Builder, ai.chalk.protos.chalk.server.v1.HealthCheckFiltersOrBuilder> filtersBuilder_;
/**
* <code>optional .chalk.server.v1.HealthCheckFilters filters = 1 [json_name = "filters"];</code>
* @return Whether the filters field is set.
*/
public boolean hasFilters() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <code>optional .chalk.server.v1.HealthCheckFilters filters = 1 [json_name = "filters"];</code>
* @return The filters.
*/
public ai.chalk.protos.chalk.server.v1.HealthCheckFilters getFilters() {
if (filtersBuilder_ == null) {
return filters_ == null ? ai.chalk.protos.chalk.server.v1.HealthCheckFilters.getDefaultInstance() : filters_;
} else {
return filtersBuilder_.getMessage();
}
}
/**
* <code>optional .chalk.server.v1.HealthCheckFilters filters = 1 [json_name = "filters"];</code>
*/
public Builder setFilters(ai.chalk.protos.chalk.server.v1.HealthCheckFilters value) {
if (filtersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
filters_ = value;
} else {
filtersBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>optional .chalk.server.v1.HealthCheckFilters filters = 1 [json_name = "filters"];</code>
*/
public Builder setFilters(
ai.chalk.protos.chalk.server.v1.HealthCheckFilters.Builder builderForValue) {
if (filtersBuilder_ == null) {
filters_ = builderForValue.build();
} else {
filtersBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>optional .chalk.server.v1.HealthCheckFilters filters = 1 [json_name = "filters"];</code>
*/
public Builder mergeFilters(ai.chalk.protos.chalk.server.v1.HealthCheckFilters value) {
if (filtersBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
filters_ != null &&
filters_ != ai.chalk.protos.chalk.server.v1.HealthCheckFilters.getDefaultInstance()) {
getFiltersBuilder().mergeFrom(value);
} else {
filters_ = value;
}
} else {
filtersBuilder_.mergeFrom(value);
}
if (filters_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* <code>optional .chalk.server.v1.HealthCheckFilters filters = 1 [json_name = "filters"];</code>
*/
public Builder clearFilters() {
bitField0_ = (bitField0_ & ~0x00000001);
filters_ = null;
if (filtersBuilder_ != null) {
filtersBuilder_.dispose();
filtersBuilder_ = null;
}
onChanged();
return this;
}
/**
* <code>optional .chalk.server.v1.HealthCheckFilters filters = 1 [json_name = "filters"];</code>
*/
public ai.chalk.protos.chalk.server.v1.HealthCheckFilters.Builder getFiltersBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getFiltersFieldBuilder().getBuilder();
}
/**
* <code>optional .chalk.server.v1.HealthCheckFilters filters = 1 [json_name = "filters"];</code>
*/
public ai.chalk.protos.chalk.server.v1.HealthCheckFiltersOrBuilder getFiltersOrBuilder() {
if (filtersBuilder_ != null) {
return filtersBuilder_.getMessageOrBuilder();
} else {
return filters_ == null ?
ai.chalk.protos.chalk.server.v1.HealthCheckFilters.getDefaultInstance() : filters_;
}
}
/**
* <code>optional .chalk.server.v1.HealthCheckFilters filters = 1 [json_name = "filters"];</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.HealthCheckFilters, ai.chalk.protos.chalk.server.v1.HealthCheckFilters.Builder, ai.chalk.protos.chalk.server.v1.HealthCheckFiltersOrBuilder>
getFiltersFieldBuilder() {
if (filtersBuilder_ == null) {
filtersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.HealthCheckFilters, ai.chalk.protos.chalk.server.v1.HealthCheckFilters.Builder, ai.chalk.protos.chalk.server.v1.HealthCheckFiltersOrBuilder>(
getFilters(),
getParentForChildren(),
isClean());
filters_ = null;
}
return filtersBuilder_;
}
@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:chalk.server.v1.CheckHealthRequest)
}
// @@protoc_insertion_point(class_scope:chalk.server.v1.CheckHealthRequest)
private static final ai.chalk.protos.chalk.server.v1.CheckHealthRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.server.v1.CheckHealthRequest();
}
public static ai.chalk.protos.chalk.server.v1.CheckHealthRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<CheckHealthRequest>
PARSER = new com.google.protobuf.AbstractParser<CheckHealthRequest>() {
@java.lang.Override
public CheckHealthRequest 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<CheckHealthRequest> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<CheckHealthRequest> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CheckHealthRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/CheckHealthRequestOrBuilder.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/status.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
public interface CheckHealthRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.server.v1.CheckHealthRequest)
com.google.protobuf.MessageOrBuilder {
/**
* <code>optional .chalk.server.v1.HealthCheckFilters filters = 1 [json_name = "filters"];</code>
* @return Whether the filters field is set.
*/
boolean hasFilters();
/**
* <code>optional .chalk.server.v1.HealthCheckFilters filters = 1 [json_name = "filters"];</code>
* @return The filters.
*/
ai.chalk.protos.chalk.server.v1.HealthCheckFilters getFilters();
/**
* <code>optional .chalk.server.v1.HealthCheckFilters filters = 1 [json_name = "filters"];</code>
*/
ai.chalk.protos.chalk.server.v1.HealthCheckFiltersOrBuilder getFiltersOrBuilder();
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/CheckHealthResponse.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/status.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
/**
* Protobuf type {@code chalk.server.v1.CheckHealthResponse}
*/
public final class CheckHealthResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.server.v1.CheckHealthResponse)
CheckHealthResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use CheckHealthResponse.newBuilder() to construct.
private CheckHealthResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private CheckHealthResponse() {
checks_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CheckHealthResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.StatusProto.internal_static_chalk_server_v1_CheckHealthResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.StatusProto.internal_static_chalk_server_v1_CheckHealthResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.CheckHealthResponse.class, ai.chalk.protos.chalk.server.v1.CheckHealthResponse.Builder.class);
}
public static final int CHECKS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List<ai.chalk.protos.chalk.server.v1.HealthCheck> checks_;
/**
* <code>repeated .chalk.server.v1.HealthCheck checks = 1 [json_name = "checks"];</code>
*/
@java.lang.Override
public java.util.List<ai.chalk.protos.chalk.server.v1.HealthCheck> getChecksList() {
return checks_;
}
/**
* <code>repeated .chalk.server.v1.HealthCheck checks = 1 [json_name = "checks"];</code>
*/
@java.lang.Override
public java.util.List<? extends ai.chalk.protos.chalk.server.v1.HealthCheckOrBuilder>
getChecksOrBuilderList() {
return checks_;
}
/**
* <code>repeated .chalk.server.v1.HealthCheck checks = 1 [json_name = "checks"];</code>
*/
@java.lang.Override
public int getChecksCount() {
return checks_.size();
}
/**
* <code>repeated .chalk.server.v1.HealthCheck checks = 1 [json_name = "checks"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.HealthCheck getChecks(int index) {
return checks_.get(index);
}
/**
* <code>repeated .chalk.server.v1.HealthCheck checks = 1 [json_name = "checks"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.HealthCheckOrBuilder getChecksOrBuilder(
int index) {
return checks_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < checks_.size(); i++) {
output.writeMessage(1, checks_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < checks_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, checks_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ai.chalk.protos.chalk.server.v1.CheckHealthResponse)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.server.v1.CheckHealthResponse other = (ai.chalk.protos.chalk.server.v1.CheckHealthResponse) obj;
if (!getChecksList()
.equals(other.getChecksList())) 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 (getChecksCount() > 0) {
hash = (37 * hash) + CHECKS_FIELD_NUMBER;
hash = (53 * hash) + getChecksList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.server.v1.CheckHealthResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CheckHealthResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CheckHealthResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CheckHealthResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CheckHealthResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CheckHealthResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CheckHealthResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CheckHealthResponse 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 ai.chalk.protos.chalk.server.v1.CheckHealthResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CheckHealthResponse 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 ai.chalk.protos.chalk.server.v1.CheckHealthResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CheckHealthResponse 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(ai.chalk.protos.chalk.server.v1.CheckHealthResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code chalk.server.v1.CheckHealthResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.server.v1.CheckHealthResponse)
ai.chalk.protos.chalk.server.v1.CheckHealthResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.StatusProto.internal_static_chalk_server_v1_CheckHealthResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.StatusProto.internal_static_chalk_server_v1_CheckHealthResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.CheckHealthResponse.class, ai.chalk.protos.chalk.server.v1.CheckHealthResponse.Builder.class);
}
// Construct using ai.chalk.protos.chalk.server.v1.CheckHealthResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (checksBuilder_ == null) {
checks_ = java.util.Collections.emptyList();
} else {
checks_ = null;
checksBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.server.v1.StatusProto.internal_static_chalk_server_v1_CheckHealthResponse_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CheckHealthResponse getDefaultInstanceForType() {
return ai.chalk.protos.chalk.server.v1.CheckHealthResponse.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CheckHealthResponse build() {
ai.chalk.protos.chalk.server.v1.CheckHealthResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CheckHealthResponse buildPartial() {
ai.chalk.protos.chalk.server.v1.CheckHealthResponse result = new ai.chalk.protos.chalk.server.v1.CheckHealthResponse(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(ai.chalk.protos.chalk.server.v1.CheckHealthResponse result) {
if (checksBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
checks_ = java.util.Collections.unmodifiableList(checks_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.checks_ = checks_;
} else {
result.checks_ = checksBuilder_.build();
}
}
private void buildPartial0(ai.chalk.protos.chalk.server.v1.CheckHealthResponse result) {
int from_bitField0_ = bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.chalk.protos.chalk.server.v1.CheckHealthResponse) {
return mergeFrom((ai.chalk.protos.chalk.server.v1.CheckHealthResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.server.v1.CheckHealthResponse other) {
if (other == ai.chalk.protos.chalk.server.v1.CheckHealthResponse.getDefaultInstance()) return this;
if (checksBuilder_ == null) {
if (!other.checks_.isEmpty()) {
if (checks_.isEmpty()) {
checks_ = other.checks_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureChecksIsMutable();
checks_.addAll(other.checks_);
}
onChanged();
}
} else {
if (!other.checks_.isEmpty()) {
if (checksBuilder_.isEmpty()) {
checksBuilder_.dispose();
checksBuilder_ = null;
checks_ = other.checks_;
bitField0_ = (bitField0_ & ~0x00000001);
checksBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getChecksFieldBuilder() : null;
} else {
checksBuilder_.addAllMessages(other.checks_);
}
}
}
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: {
ai.chalk.protos.chalk.server.v1.HealthCheck m =
input.readMessage(
ai.chalk.protos.chalk.server.v1.HealthCheck.parser(),
extensionRegistry);
if (checksBuilder_ == null) {
ensureChecksIsMutable();
checks_.add(m);
} else {
checksBuilder_.addMessage(m);
}
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List<ai.chalk.protos.chalk.server.v1.HealthCheck> checks_ =
java.util.Collections.emptyList();
private void ensureChecksIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
checks_ = new java.util.ArrayList<ai.chalk.protos.chalk.server.v1.HealthCheck>(checks_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.HealthCheck, ai.chalk.protos.chalk.server.v1.HealthCheck.Builder, ai.chalk.protos.chalk.server.v1.HealthCheckOrBuilder> checksBuilder_;
/**
* <code>repeated .chalk.server.v1.HealthCheck checks = 1 [json_name = "checks"];</code>
*/
public java.util.List<ai.chalk.protos.chalk.server.v1.HealthCheck> getChecksList() {
if (checksBuilder_ == null) {
return java.util.Collections.unmodifiableList(checks_);
} else {
return checksBuilder_.getMessageList();
}
}
/**
* <code>repeated .chalk.server.v1.HealthCheck checks = 1 [json_name = "checks"];</code>
*/
public int getChecksCount() {
if (checksBuilder_ == null) {
return checks_.size();
} else {
return checksBuilder_.getCount();
}
}
/**
* <code>repeated .chalk.server.v1.HealthCheck checks = 1 [json_name = "checks"];</code>
*/
public ai.chalk.protos.chalk.server.v1.HealthCheck getChecks(int index) {
if (checksBuilder_ == null) {
return checks_.get(index);
} else {
return checksBuilder_.getMessage(index);
}
}
/**
* <code>repeated .chalk.server.v1.HealthCheck checks = 1 [json_name = "checks"];</code>
*/
public Builder setChecks(
int index, ai.chalk.protos.chalk.server.v1.HealthCheck value) {
if (checksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChecksIsMutable();
checks_.set(index, value);
onChanged();
} else {
checksBuilder_.setMessage(index, value);
}
return this;
}
/**
* <code>repeated .chalk.server.v1.HealthCheck checks = 1 [json_name = "checks"];</code>
*/
public Builder setChecks(
int index, ai.chalk.protos.chalk.server.v1.HealthCheck.Builder builderForValue) {
if (checksBuilder_ == null) {
ensureChecksIsMutable();
checks_.set(index, builderForValue.build());
onChanged();
} else {
checksBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .chalk.server.v1.HealthCheck checks = 1 [json_name = "checks"];</code>
*/
public Builder addChecks(ai.chalk.protos.chalk.server.v1.HealthCheck value) {
if (checksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChecksIsMutable();
checks_.add(value);
onChanged();
} else {
checksBuilder_.addMessage(value);
}
return this;
}
/**
* <code>repeated .chalk.server.v1.HealthCheck checks = 1 [json_name = "checks"];</code>
*/
public Builder addChecks(
int index, ai.chalk.protos.chalk.server.v1.HealthCheck value) {
if (checksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChecksIsMutable();
checks_.add(index, value);
onChanged();
} else {
checksBuilder_.addMessage(index, value);
}
return this;
}
/**
* <code>repeated .chalk.server.v1.HealthCheck checks = 1 [json_name = "checks"];</code>
*/
public Builder addChecks(
ai.chalk.protos.chalk.server.v1.HealthCheck.Builder builderForValue) {
if (checksBuilder_ == null) {
ensureChecksIsMutable();
checks_.add(builderForValue.build());
onChanged();
} else {
checksBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <code>repeated .chalk.server.v1.HealthCheck checks = 1 [json_name = "checks"];</code>
*/
public Builder addChecks(
int index, ai.chalk.protos.chalk.server.v1.HealthCheck.Builder builderForValue) {
if (checksBuilder_ == null) {
ensureChecksIsMutable();
checks_.add(index, builderForValue.build());
onChanged();
} else {
checksBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .chalk.server.v1.HealthCheck checks = 1 [json_name = "checks"];</code>
*/
public Builder addAllChecks(
java.lang.Iterable<? extends ai.chalk.protos.chalk.server.v1.HealthCheck> values) {
if (checksBuilder_ == null) {
ensureChecksIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, checks_);
onChanged();
} else {
checksBuilder_.addAllMessages(values);
}
return this;
}
/**
* <code>repeated .chalk.server.v1.HealthCheck checks = 1 [json_name = "checks"];</code>
*/
public Builder clearChecks() {
if (checksBuilder_ == null) {
checks_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
checksBuilder_.clear();
}
return this;
}
/**
* <code>repeated .chalk.server.v1.HealthCheck checks = 1 [json_name = "checks"];</code>
*/
public Builder removeChecks(int index) {
if (checksBuilder_ == null) {
ensureChecksIsMutable();
checks_.remove(index);
onChanged();
} else {
checksBuilder_.remove(index);
}
return this;
}
/**
* <code>repeated .chalk.server.v1.HealthCheck checks = 1 [json_name = "checks"];</code>
*/
public ai.chalk.protos.chalk.server.v1.HealthCheck.Builder getChecksBuilder(
int index) {
return getChecksFieldBuilder().getBuilder(index);
}
/**
* <code>repeated .chalk.server.v1.HealthCheck checks = 1 [json_name = "checks"];</code>
*/
public ai.chalk.protos.chalk.server.v1.HealthCheckOrBuilder getChecksOrBuilder(
int index) {
if (checksBuilder_ == null) {
return checks_.get(index); } else {
return checksBuilder_.getMessageOrBuilder(index);
}
}
/**
* <code>repeated .chalk.server.v1.HealthCheck checks = 1 [json_name = "checks"];</code>
*/
public java.util.List<? extends ai.chalk.protos.chalk.server.v1.HealthCheckOrBuilder>
getChecksOrBuilderList() {
if (checksBuilder_ != null) {
return checksBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(checks_);
}
}
/**
* <code>repeated .chalk.server.v1.HealthCheck checks = 1 [json_name = "checks"];</code>
*/
public ai.chalk.protos.chalk.server.v1.HealthCheck.Builder addChecksBuilder() {
return getChecksFieldBuilder().addBuilder(
ai.chalk.protos.chalk.server.v1.HealthCheck.getDefaultInstance());
}
/**
* <code>repeated .chalk.server.v1.HealthCheck checks = 1 [json_name = "checks"];</code>
*/
public ai.chalk.protos.chalk.server.v1.HealthCheck.Builder addChecksBuilder(
int index) {
return getChecksFieldBuilder().addBuilder(
index, ai.chalk.protos.chalk.server.v1.HealthCheck.getDefaultInstance());
}
/**
* <code>repeated .chalk.server.v1.HealthCheck checks = 1 [json_name = "checks"];</code>
*/
public java.util.List<ai.chalk.protos.chalk.server.v1.HealthCheck.Builder>
getChecksBuilderList() {
return getChecksFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.HealthCheck, ai.chalk.protos.chalk.server.v1.HealthCheck.Builder, ai.chalk.protos.chalk.server.v1.HealthCheckOrBuilder>
getChecksFieldBuilder() {
if (checksBuilder_ == null) {
checksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.HealthCheck, ai.chalk.protos.chalk.server.v1.HealthCheck.Builder, ai.chalk.protos.chalk.server.v1.HealthCheckOrBuilder>(
checks_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
checks_ = null;
}
return checksBuilder_;
}
@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:chalk.server.v1.CheckHealthResponse)
}
// @@protoc_insertion_point(class_scope:chalk.server.v1.CheckHealthResponse)
private static final ai.chalk.protos.chalk.server.v1.CheckHealthResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.server.v1.CheckHealthResponse();
}
public static ai.chalk.protos.chalk.server.v1.CheckHealthResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<CheckHealthResponse>
PARSER = new com.google.protobuf.AbstractParser<CheckHealthResponse>() {
@java.lang.Override
public CheckHealthResponse 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<CheckHealthResponse> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<CheckHealthResponse> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CheckHealthResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/CheckHealthResponseOrBuilder.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/status.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
public interface CheckHealthResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.server.v1.CheckHealthResponse)
com.google.protobuf.MessageOrBuilder {
/**
* <code>repeated .chalk.server.v1.HealthCheck checks = 1 [json_name = "checks"];</code>
*/
java.util.List<ai.chalk.protos.chalk.server.v1.HealthCheck>
getChecksList();
/**
* <code>repeated .chalk.server.v1.HealthCheck checks = 1 [json_name = "checks"];</code>
*/
ai.chalk.protos.chalk.server.v1.HealthCheck getChecks(int index);
/**
* <code>repeated .chalk.server.v1.HealthCheck checks = 1 [json_name = "checks"];</code>
*/
int getChecksCount();
/**
* <code>repeated .chalk.server.v1.HealthCheck checks = 1 [json_name = "checks"];</code>
*/
java.util.List<? extends ai.chalk.protos.chalk.server.v1.HealthCheckOrBuilder>
getChecksOrBuilderList();
/**
* <code>repeated .chalk.server.v1.HealthCheck checks = 1 [json_name = "checks"];</code>
*/
ai.chalk.protos.chalk.server.v1.HealthCheckOrBuilder getChecksOrBuilder(
int index);
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/CloudConfig.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/environment.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
/**
* Protobuf type {@code chalk.server.v1.CloudConfig}
*/
public final class CloudConfig extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.server.v1.CloudConfig)
CloudConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use CloudConfig.newBuilder() to construct.
private CloudConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private CloudConfig() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CloudConfig();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.EnvironmentProto.internal_static_chalk_server_v1_CloudConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.EnvironmentProto.internal_static_chalk_server_v1_CloudConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.CloudConfig.class, ai.chalk.protos.chalk.server.v1.CloudConfig.Builder.class);
}
private int configCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object config_;
public enum ConfigCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
AWS(1),
GCP(2),
CONFIG_NOT_SET(0);
private final int value;
private ConfigCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ConfigCase valueOf(int value) {
return forNumber(value);
}
public static ConfigCase forNumber(int value) {
switch (value) {
case 1: return AWS;
case 2: return GCP;
case 0: return CONFIG_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ConfigCase
getConfigCase() {
return ConfigCase.forNumber(
configCase_);
}
public static final int AWS_FIELD_NUMBER = 1;
/**
* <code>.chalk.server.v1.AWSCloudConfig aws = 1 [json_name = "aws"];</code>
* @return Whether the aws field is set.
*/
@java.lang.Override
public boolean hasAws() {
return configCase_ == 1;
}
/**
* <code>.chalk.server.v1.AWSCloudConfig aws = 1 [json_name = "aws"];</code>
* @return The aws.
*/
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.AWSCloudConfig getAws() {
if (configCase_ == 1) {
return (ai.chalk.protos.chalk.server.v1.AWSCloudConfig) config_;
}
return ai.chalk.protos.chalk.server.v1.AWSCloudConfig.getDefaultInstance();
}
/**
* <code>.chalk.server.v1.AWSCloudConfig aws = 1 [json_name = "aws"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.AWSCloudConfigOrBuilder getAwsOrBuilder() {
if (configCase_ == 1) {
return (ai.chalk.protos.chalk.server.v1.AWSCloudConfig) config_;
}
return ai.chalk.protos.chalk.server.v1.AWSCloudConfig.getDefaultInstance();
}
public static final int GCP_FIELD_NUMBER = 2;
/**
* <code>.chalk.server.v1.GCPCloudConfig gcp = 2 [json_name = "gcp"];</code>
* @return Whether the gcp field is set.
*/
@java.lang.Override
public boolean hasGcp() {
return configCase_ == 2;
}
/**
* <code>.chalk.server.v1.GCPCloudConfig gcp = 2 [json_name = "gcp"];</code>
* @return The gcp.
*/
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.GCPCloudConfig getGcp() {
if (configCase_ == 2) {
return (ai.chalk.protos.chalk.server.v1.GCPCloudConfig) config_;
}
return ai.chalk.protos.chalk.server.v1.GCPCloudConfig.getDefaultInstance();
}
/**
* <code>.chalk.server.v1.GCPCloudConfig gcp = 2 [json_name = "gcp"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.GCPCloudConfigOrBuilder getGcpOrBuilder() {
if (configCase_ == 2) {
return (ai.chalk.protos.chalk.server.v1.GCPCloudConfig) config_;
}
return ai.chalk.protos.chalk.server.v1.GCPCloudConfig.getDefaultInstance();
}
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 (configCase_ == 1) {
output.writeMessage(1, (ai.chalk.protos.chalk.server.v1.AWSCloudConfig) config_);
}
if (configCase_ == 2) {
output.writeMessage(2, (ai.chalk.protos.chalk.server.v1.GCPCloudConfig) config_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (configCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (ai.chalk.protos.chalk.server.v1.AWSCloudConfig) config_);
}
if (configCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (ai.chalk.protos.chalk.server.v1.GCPCloudConfig) config_);
}
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 ai.chalk.protos.chalk.server.v1.CloudConfig)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.server.v1.CloudConfig other = (ai.chalk.protos.chalk.server.v1.CloudConfig) obj;
if (!getConfigCase().equals(other.getConfigCase())) return false;
switch (configCase_) {
case 1:
if (!getAws()
.equals(other.getAws())) return false;
break;
case 2:
if (!getGcp()
.equals(other.getGcp())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
switch (configCase_) {
case 1:
hash = (37 * hash) + AWS_FIELD_NUMBER;
hash = (53 * hash) + getAws().hashCode();
break;
case 2:
hash = (37 * hash) + GCP_FIELD_NUMBER;
hash = (53 * hash) + getGcp().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.server.v1.CloudConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CloudConfig parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CloudConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CloudConfig parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CloudConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CloudConfig parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CloudConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CloudConfig 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 ai.chalk.protos.chalk.server.v1.CloudConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CloudConfig 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 ai.chalk.protos.chalk.server.v1.CloudConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CloudConfig 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(ai.chalk.protos.chalk.server.v1.CloudConfig prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code chalk.server.v1.CloudConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.server.v1.CloudConfig)
ai.chalk.protos.chalk.server.v1.CloudConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.EnvironmentProto.internal_static_chalk_server_v1_CloudConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.EnvironmentProto.internal_static_chalk_server_v1_CloudConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.CloudConfig.class, ai.chalk.protos.chalk.server.v1.CloudConfig.Builder.class);
}
// Construct using ai.chalk.protos.chalk.server.v1.CloudConfig.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (awsBuilder_ != null) {
awsBuilder_.clear();
}
if (gcpBuilder_ != null) {
gcpBuilder_.clear();
}
configCase_ = 0;
config_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.server.v1.EnvironmentProto.internal_static_chalk_server_v1_CloudConfig_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CloudConfig getDefaultInstanceForType() {
return ai.chalk.protos.chalk.server.v1.CloudConfig.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CloudConfig build() {
ai.chalk.protos.chalk.server.v1.CloudConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CloudConfig buildPartial() {
ai.chalk.protos.chalk.server.v1.CloudConfig result = new ai.chalk.protos.chalk.server.v1.CloudConfig(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(ai.chalk.protos.chalk.server.v1.CloudConfig result) {
int from_bitField0_ = bitField0_;
}
private void buildPartialOneofs(ai.chalk.protos.chalk.server.v1.CloudConfig result) {
result.configCase_ = configCase_;
result.config_ = this.config_;
if (configCase_ == 1 &&
awsBuilder_ != null) {
result.config_ = awsBuilder_.build();
}
if (configCase_ == 2 &&
gcpBuilder_ != null) {
result.config_ = gcpBuilder_.build();
}
}
@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 ai.chalk.protos.chalk.server.v1.CloudConfig) {
return mergeFrom((ai.chalk.protos.chalk.server.v1.CloudConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.server.v1.CloudConfig other) {
if (other == ai.chalk.protos.chalk.server.v1.CloudConfig.getDefaultInstance()) return this;
switch (other.getConfigCase()) {
case AWS: {
mergeAws(other.getAws());
break;
}
case GCP: {
mergeGcp(other.getGcp());
break;
}
case CONFIG_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getAwsFieldBuilder().getBuilder(),
extensionRegistry);
configCase_ = 1;
break;
} // case 10
case 18: {
input.readMessage(
getGcpFieldBuilder().getBuilder(),
extensionRegistry);
configCase_ = 2;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int configCase_ = 0;
private java.lang.Object config_;
public ConfigCase
getConfigCase() {
return ConfigCase.forNumber(
configCase_);
}
public Builder clearConfig() {
configCase_ = 0;
config_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.AWSCloudConfig, ai.chalk.protos.chalk.server.v1.AWSCloudConfig.Builder, ai.chalk.protos.chalk.server.v1.AWSCloudConfigOrBuilder> awsBuilder_;
/**
* <code>.chalk.server.v1.AWSCloudConfig aws = 1 [json_name = "aws"];</code>
* @return Whether the aws field is set.
*/
@java.lang.Override
public boolean hasAws() {
return configCase_ == 1;
}
/**
* <code>.chalk.server.v1.AWSCloudConfig aws = 1 [json_name = "aws"];</code>
* @return The aws.
*/
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.AWSCloudConfig getAws() {
if (awsBuilder_ == null) {
if (configCase_ == 1) {
return (ai.chalk.protos.chalk.server.v1.AWSCloudConfig) config_;
}
return ai.chalk.protos.chalk.server.v1.AWSCloudConfig.getDefaultInstance();
} else {
if (configCase_ == 1) {
return awsBuilder_.getMessage();
}
return ai.chalk.protos.chalk.server.v1.AWSCloudConfig.getDefaultInstance();
}
}
/**
* <code>.chalk.server.v1.AWSCloudConfig aws = 1 [json_name = "aws"];</code>
*/
public Builder setAws(ai.chalk.protos.chalk.server.v1.AWSCloudConfig value) {
if (awsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
config_ = value;
onChanged();
} else {
awsBuilder_.setMessage(value);
}
configCase_ = 1;
return this;
}
/**
* <code>.chalk.server.v1.AWSCloudConfig aws = 1 [json_name = "aws"];</code>
*/
public Builder setAws(
ai.chalk.protos.chalk.server.v1.AWSCloudConfig.Builder builderForValue) {
if (awsBuilder_ == null) {
config_ = builderForValue.build();
onChanged();
} else {
awsBuilder_.setMessage(builderForValue.build());
}
configCase_ = 1;
return this;
}
/**
* <code>.chalk.server.v1.AWSCloudConfig aws = 1 [json_name = "aws"];</code>
*/
public Builder mergeAws(ai.chalk.protos.chalk.server.v1.AWSCloudConfig value) {
if (awsBuilder_ == null) {
if (configCase_ == 1 &&
config_ != ai.chalk.protos.chalk.server.v1.AWSCloudConfig.getDefaultInstance()) {
config_ = ai.chalk.protos.chalk.server.v1.AWSCloudConfig.newBuilder((ai.chalk.protos.chalk.server.v1.AWSCloudConfig) config_)
.mergeFrom(value).buildPartial();
} else {
config_ = value;
}
onChanged();
} else {
if (configCase_ == 1) {
awsBuilder_.mergeFrom(value);
} else {
awsBuilder_.setMessage(value);
}
}
configCase_ = 1;
return this;
}
/**
* <code>.chalk.server.v1.AWSCloudConfig aws = 1 [json_name = "aws"];</code>
*/
public Builder clearAws() {
if (awsBuilder_ == null) {
if (configCase_ == 1) {
configCase_ = 0;
config_ = null;
onChanged();
}
} else {
if (configCase_ == 1) {
configCase_ = 0;
config_ = null;
}
awsBuilder_.clear();
}
return this;
}
/**
* <code>.chalk.server.v1.AWSCloudConfig aws = 1 [json_name = "aws"];</code>
*/
public ai.chalk.protos.chalk.server.v1.AWSCloudConfig.Builder getAwsBuilder() {
return getAwsFieldBuilder().getBuilder();
}
/**
* <code>.chalk.server.v1.AWSCloudConfig aws = 1 [json_name = "aws"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.AWSCloudConfigOrBuilder getAwsOrBuilder() {
if ((configCase_ == 1) && (awsBuilder_ != null)) {
return awsBuilder_.getMessageOrBuilder();
} else {
if (configCase_ == 1) {
return (ai.chalk.protos.chalk.server.v1.AWSCloudConfig) config_;
}
return ai.chalk.protos.chalk.server.v1.AWSCloudConfig.getDefaultInstance();
}
}
/**
* <code>.chalk.server.v1.AWSCloudConfig aws = 1 [json_name = "aws"];</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.AWSCloudConfig, ai.chalk.protos.chalk.server.v1.AWSCloudConfig.Builder, ai.chalk.protos.chalk.server.v1.AWSCloudConfigOrBuilder>
getAwsFieldBuilder() {
if (awsBuilder_ == null) {
if (!(configCase_ == 1)) {
config_ = ai.chalk.protos.chalk.server.v1.AWSCloudConfig.getDefaultInstance();
}
awsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.AWSCloudConfig, ai.chalk.protos.chalk.server.v1.AWSCloudConfig.Builder, ai.chalk.protos.chalk.server.v1.AWSCloudConfigOrBuilder>(
(ai.chalk.protos.chalk.server.v1.AWSCloudConfig) config_,
getParentForChildren(),
isClean());
config_ = null;
}
configCase_ = 1;
onChanged();
return awsBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.GCPCloudConfig, ai.chalk.protos.chalk.server.v1.GCPCloudConfig.Builder, ai.chalk.protos.chalk.server.v1.GCPCloudConfigOrBuilder> gcpBuilder_;
/**
* <code>.chalk.server.v1.GCPCloudConfig gcp = 2 [json_name = "gcp"];</code>
* @return Whether the gcp field is set.
*/
@java.lang.Override
public boolean hasGcp() {
return configCase_ == 2;
}
/**
* <code>.chalk.server.v1.GCPCloudConfig gcp = 2 [json_name = "gcp"];</code>
* @return The gcp.
*/
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.GCPCloudConfig getGcp() {
if (gcpBuilder_ == null) {
if (configCase_ == 2) {
return (ai.chalk.protos.chalk.server.v1.GCPCloudConfig) config_;
}
return ai.chalk.protos.chalk.server.v1.GCPCloudConfig.getDefaultInstance();
} else {
if (configCase_ == 2) {
return gcpBuilder_.getMessage();
}
return ai.chalk.protos.chalk.server.v1.GCPCloudConfig.getDefaultInstance();
}
}
/**
* <code>.chalk.server.v1.GCPCloudConfig gcp = 2 [json_name = "gcp"];</code>
*/
public Builder setGcp(ai.chalk.protos.chalk.server.v1.GCPCloudConfig value) {
if (gcpBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
config_ = value;
onChanged();
} else {
gcpBuilder_.setMessage(value);
}
configCase_ = 2;
return this;
}
/**
* <code>.chalk.server.v1.GCPCloudConfig gcp = 2 [json_name = "gcp"];</code>
*/
public Builder setGcp(
ai.chalk.protos.chalk.server.v1.GCPCloudConfig.Builder builderForValue) {
if (gcpBuilder_ == null) {
config_ = builderForValue.build();
onChanged();
} else {
gcpBuilder_.setMessage(builderForValue.build());
}
configCase_ = 2;
return this;
}
/**
* <code>.chalk.server.v1.GCPCloudConfig gcp = 2 [json_name = "gcp"];</code>
*/
public Builder mergeGcp(ai.chalk.protos.chalk.server.v1.GCPCloudConfig value) {
if (gcpBuilder_ == null) {
if (configCase_ == 2 &&
config_ != ai.chalk.protos.chalk.server.v1.GCPCloudConfig.getDefaultInstance()) {
config_ = ai.chalk.protos.chalk.server.v1.GCPCloudConfig.newBuilder((ai.chalk.protos.chalk.server.v1.GCPCloudConfig) config_)
.mergeFrom(value).buildPartial();
} else {
config_ = value;
}
onChanged();
} else {
if (configCase_ == 2) {
gcpBuilder_.mergeFrom(value);
} else {
gcpBuilder_.setMessage(value);
}
}
configCase_ = 2;
return this;
}
/**
* <code>.chalk.server.v1.GCPCloudConfig gcp = 2 [json_name = "gcp"];</code>
*/
public Builder clearGcp() {
if (gcpBuilder_ == null) {
if (configCase_ == 2) {
configCase_ = 0;
config_ = null;
onChanged();
}
} else {
if (configCase_ == 2) {
configCase_ = 0;
config_ = null;
}
gcpBuilder_.clear();
}
return this;
}
/**
* <code>.chalk.server.v1.GCPCloudConfig gcp = 2 [json_name = "gcp"];</code>
*/
public ai.chalk.protos.chalk.server.v1.GCPCloudConfig.Builder getGcpBuilder() {
return getGcpFieldBuilder().getBuilder();
}
/**
* <code>.chalk.server.v1.GCPCloudConfig gcp = 2 [json_name = "gcp"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.GCPCloudConfigOrBuilder getGcpOrBuilder() {
if ((configCase_ == 2) && (gcpBuilder_ != null)) {
return gcpBuilder_.getMessageOrBuilder();
} else {
if (configCase_ == 2) {
return (ai.chalk.protos.chalk.server.v1.GCPCloudConfig) config_;
}
return ai.chalk.protos.chalk.server.v1.GCPCloudConfig.getDefaultInstance();
}
}
/**
* <code>.chalk.server.v1.GCPCloudConfig gcp = 2 [json_name = "gcp"];</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.GCPCloudConfig, ai.chalk.protos.chalk.server.v1.GCPCloudConfig.Builder, ai.chalk.protos.chalk.server.v1.GCPCloudConfigOrBuilder>
getGcpFieldBuilder() {
if (gcpBuilder_ == null) {
if (!(configCase_ == 2)) {
config_ = ai.chalk.protos.chalk.server.v1.GCPCloudConfig.getDefaultInstance();
}
gcpBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.GCPCloudConfig, ai.chalk.protos.chalk.server.v1.GCPCloudConfig.Builder, ai.chalk.protos.chalk.server.v1.GCPCloudConfigOrBuilder>(
(ai.chalk.protos.chalk.server.v1.GCPCloudConfig) config_,
getParentForChildren(),
isClean());
config_ = null;
}
configCase_ = 2;
onChanged();
return gcpBuilder_;
}
@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:chalk.server.v1.CloudConfig)
}
// @@protoc_insertion_point(class_scope:chalk.server.v1.CloudConfig)
private static final ai.chalk.protos.chalk.server.v1.CloudConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.server.v1.CloudConfig();
}
public static ai.chalk.protos.chalk.server.v1.CloudConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<CloudConfig>
PARSER = new com.google.protobuf.AbstractParser<CloudConfig>() {
@java.lang.Override
public CloudConfig 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<CloudConfig> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<CloudConfig> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CloudConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/CloudConfigOrBuilder.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/environment.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
public interface CloudConfigOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.server.v1.CloudConfig)
com.google.protobuf.MessageOrBuilder {
/**
* <code>.chalk.server.v1.AWSCloudConfig aws = 1 [json_name = "aws"];</code>
* @return Whether the aws field is set.
*/
boolean hasAws();
/**
* <code>.chalk.server.v1.AWSCloudConfig aws = 1 [json_name = "aws"];</code>
* @return The aws.
*/
ai.chalk.protos.chalk.server.v1.AWSCloudConfig getAws();
/**
* <code>.chalk.server.v1.AWSCloudConfig aws = 1 [json_name = "aws"];</code>
*/
ai.chalk.protos.chalk.server.v1.AWSCloudConfigOrBuilder getAwsOrBuilder();
/**
* <code>.chalk.server.v1.GCPCloudConfig gcp = 2 [json_name = "gcp"];</code>
* @return Whether the gcp field is set.
*/
boolean hasGcp();
/**
* <code>.chalk.server.v1.GCPCloudConfig gcp = 2 [json_name = "gcp"];</code>
* @return The gcp.
*/
ai.chalk.protos.chalk.server.v1.GCPCloudConfig getGcp();
/**
* <code>.chalk.server.v1.GCPCloudConfig gcp = 2 [json_name = "gcp"];</code>
*/
ai.chalk.protos.chalk.server.v1.GCPCloudConfigOrBuilder getGcpOrBuilder();
ai.chalk.protos.chalk.server.v1.CloudConfig.ConfigCase getConfigCase();
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/CloudProviderKind.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/environment.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
/**
* Protobuf enum {@code chalk.server.v1.CloudProviderKind}
*/
public enum CloudProviderKind
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>CLOUD_PROVIDER_KIND_UNSPECIFIED = 0;</code>
*/
CLOUD_PROVIDER_KIND_UNSPECIFIED(0),
/**
* <code>CLOUD_PROVIDER_KIND_UNKNOWN = 1;</code>
*/
CLOUD_PROVIDER_KIND_UNKNOWN(1),
/**
* <code>CLOUD_PROVIDER_KIND_GCP = 2;</code>
*/
CLOUD_PROVIDER_KIND_GCP(2),
/**
* <code>CLOUD_PROVIDER_KIND_AWS = 3;</code>
*/
CLOUD_PROVIDER_KIND_AWS(3),
UNRECOGNIZED(-1),
;
/**
* <code>CLOUD_PROVIDER_KIND_UNSPECIFIED = 0;</code>
*/
public static final int CLOUD_PROVIDER_KIND_UNSPECIFIED_VALUE = 0;
/**
* <code>CLOUD_PROVIDER_KIND_UNKNOWN = 1;</code>
*/
public static final int CLOUD_PROVIDER_KIND_UNKNOWN_VALUE = 1;
/**
* <code>CLOUD_PROVIDER_KIND_GCP = 2;</code>
*/
public static final int CLOUD_PROVIDER_KIND_GCP_VALUE = 2;
/**
* <code>CLOUD_PROVIDER_KIND_AWS = 3;</code>
*/
public static final int CLOUD_PROVIDER_KIND_AWS_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static CloudProviderKind 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 CloudProviderKind forNumber(int value) {
switch (value) {
case 0: return CLOUD_PROVIDER_KIND_UNSPECIFIED;
case 1: return CLOUD_PROVIDER_KIND_UNKNOWN;
case 2: return CLOUD_PROVIDER_KIND_GCP;
case 3: return CLOUD_PROVIDER_KIND_AWS;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<CloudProviderKind>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
CloudProviderKind> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<CloudProviderKind>() {
public CloudProviderKind findValueByNumber(int number) {
return CloudProviderKind.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 ai.chalk.protos.chalk.server.v1.EnvironmentProto.getDescriptor().getEnumTypes().get(0);
}
private static final CloudProviderKind[] VALUES = values();
public static CloudProviderKind 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 CloudProviderKind(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:chalk.server.v1.CloudProviderKind)
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/CreateClusterBackgroundPersistenceRequest.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/builder.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
/**
* Protobuf type {@code chalk.server.v1.CreateClusterBackgroundPersistenceRequest}
*/
public final class CreateClusterBackgroundPersistenceRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.server.v1.CreateClusterBackgroundPersistenceRequest)
CreateClusterBackgroundPersistenceRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateClusterBackgroundPersistenceRequest.newBuilder() to construct.
private CreateClusterBackgroundPersistenceRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private CreateClusterBackgroundPersistenceRequest() {
environmentIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
specsString_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateClusterBackgroundPersistenceRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_CreateClusterBackgroundPersistenceRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_CreateClusterBackgroundPersistenceRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequest.class, ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequest.Builder.class);
}
public static final int ENVIRONMENT_IDS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList environmentIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* <code>repeated string environment_ids = 1 [json_name = "environmentIds"];</code>
* @return A list containing the environmentIds.
*/
public com.google.protobuf.ProtocolStringList
getEnvironmentIdsList() {
return environmentIds_;
}
/**
* <code>repeated string environment_ids = 1 [json_name = "environmentIds"];</code>
* @return The count of environmentIds.
*/
public int getEnvironmentIdsCount() {
return environmentIds_.size();
}
/**
* <code>repeated string environment_ids = 1 [json_name = "environmentIds"];</code>
* @param index The index of the element to return.
* @return The environmentIds at the given index.
*/
public java.lang.String getEnvironmentIds(int index) {
return environmentIds_.get(index);
}
/**
* <code>repeated string environment_ids = 1 [json_name = "environmentIds"];</code>
* @param index The index of the value to return.
* @return The bytes of the environmentIds at the given index.
*/
public com.google.protobuf.ByteString
getEnvironmentIdsBytes(int index) {
return environmentIds_.getByteString(index);
}
public static final int SPECS_STRING_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object specsString_ = "";
/**
* <code>string specs_string = 2 [json_name = "specsString"];</code>
* @return The specsString.
*/
@java.lang.Override
public java.lang.String getSpecsString() {
java.lang.Object ref = specsString_;
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();
specsString_ = s;
return s;
}
}
/**
* <code>string specs_string = 2 [json_name = "specsString"];</code>
* @return The bytes for specsString.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSpecsStringBytes() {
java.lang.Object ref = specsString_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
specsString_ = 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 {
for (int i = 0; i < environmentIds_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, environmentIds_.getRaw(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(specsString_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, specsString_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < environmentIds_.size(); i++) {
dataSize += computeStringSizeNoTag(environmentIds_.getRaw(i));
}
size += dataSize;
size += 1 * getEnvironmentIdsList().size();
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(specsString_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, specsString_);
}
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 ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequest)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequest other = (ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequest) obj;
if (!getEnvironmentIdsList()
.equals(other.getEnvironmentIdsList())) return false;
if (!getSpecsString()
.equals(other.getSpecsString())) 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 (getEnvironmentIdsCount() > 0) {
hash = (37 * hash) + ENVIRONMENT_IDS_FIELD_NUMBER;
hash = (53 * hash) + getEnvironmentIdsList().hashCode();
}
hash = (37 * hash) + SPECS_STRING_FIELD_NUMBER;
hash = (53 * hash) + getSpecsString().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequest 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 ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequest 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 ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequest 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(ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code chalk.server.v1.CreateClusterBackgroundPersistenceRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.server.v1.CreateClusterBackgroundPersistenceRequest)
ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_CreateClusterBackgroundPersistenceRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_CreateClusterBackgroundPersistenceRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequest.class, ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequest.Builder.class);
}
// Construct using ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
environmentIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
specsString_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_CreateClusterBackgroundPersistenceRequest_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequest getDefaultInstanceForType() {
return ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequest.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequest build() {
ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequest buildPartial() {
ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequest result = new ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
environmentIds_.makeImmutable();
result.environmentIds_ = environmentIds_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.specsString_ = specsString_;
}
}
@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 ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequest) {
return mergeFrom((ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequest other) {
if (other == ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequest.getDefaultInstance()) return this;
if (!other.environmentIds_.isEmpty()) {
if (environmentIds_.isEmpty()) {
environmentIds_ = other.environmentIds_;
bitField0_ |= 0x00000001;
} else {
ensureEnvironmentIdsIsMutable();
environmentIds_.addAll(other.environmentIds_);
}
onChanged();
}
if (!other.getSpecsString().isEmpty()) {
specsString_ = other.specsString_;
bitField0_ |= 0x00000002;
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: {
java.lang.String s = input.readStringRequireUtf8();
ensureEnvironmentIdsIsMutable();
environmentIds_.add(s);
break;
} // case 10
case 18: {
specsString_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringArrayList environmentIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureEnvironmentIdsIsMutable() {
if (!environmentIds_.isModifiable()) {
environmentIds_ = new com.google.protobuf.LazyStringArrayList(environmentIds_);
}
bitField0_ |= 0x00000001;
}
/**
* <code>repeated string environment_ids = 1 [json_name = "environmentIds"];</code>
* @return A list containing the environmentIds.
*/
public com.google.protobuf.ProtocolStringList
getEnvironmentIdsList() {
environmentIds_.makeImmutable();
return environmentIds_;
}
/**
* <code>repeated string environment_ids = 1 [json_name = "environmentIds"];</code>
* @return The count of environmentIds.
*/
public int getEnvironmentIdsCount() {
return environmentIds_.size();
}
/**
* <code>repeated string environment_ids = 1 [json_name = "environmentIds"];</code>
* @param index The index of the element to return.
* @return The environmentIds at the given index.
*/
public java.lang.String getEnvironmentIds(int index) {
return environmentIds_.get(index);
}
/**
* <code>repeated string environment_ids = 1 [json_name = "environmentIds"];</code>
* @param index The index of the value to return.
* @return The bytes of the environmentIds at the given index.
*/
public com.google.protobuf.ByteString
getEnvironmentIdsBytes(int index) {
return environmentIds_.getByteString(index);
}
/**
* <code>repeated string environment_ids = 1 [json_name = "environmentIds"];</code>
* @param index The index to set the value at.
* @param value The environmentIds to set.
* @return This builder for chaining.
*/
public Builder setEnvironmentIds(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureEnvironmentIdsIsMutable();
environmentIds_.set(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>repeated string environment_ids = 1 [json_name = "environmentIds"];</code>
* @param value The environmentIds to add.
* @return This builder for chaining.
*/
public Builder addEnvironmentIds(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureEnvironmentIdsIsMutable();
environmentIds_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>repeated string environment_ids = 1 [json_name = "environmentIds"];</code>
* @param values The environmentIds to add.
* @return This builder for chaining.
*/
public Builder addAllEnvironmentIds(
java.lang.Iterable<java.lang.String> values) {
ensureEnvironmentIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, environmentIds_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>repeated string environment_ids = 1 [json_name = "environmentIds"];</code>
* @return This builder for chaining.
*/
public Builder clearEnvironmentIds() {
environmentIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);;
onChanged();
return this;
}
/**
* <code>repeated string environment_ids = 1 [json_name = "environmentIds"];</code>
* @param value The bytes of the environmentIds to add.
* @return This builder for chaining.
*/
public Builder addEnvironmentIdsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureEnvironmentIdsIsMutable();
environmentIds_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object specsString_ = "";
/**
* <code>string specs_string = 2 [json_name = "specsString"];</code>
* @return The specsString.
*/
public java.lang.String getSpecsString() {
java.lang.Object ref = specsString_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
specsString_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string specs_string = 2 [json_name = "specsString"];</code>
* @return The bytes for specsString.
*/
public com.google.protobuf.ByteString
getSpecsStringBytes() {
java.lang.Object ref = specsString_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
specsString_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string specs_string = 2 [json_name = "specsString"];</code>
* @param value The specsString to set.
* @return This builder for chaining.
*/
public Builder setSpecsString(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
specsString_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <code>string specs_string = 2 [json_name = "specsString"];</code>
* @return This builder for chaining.
*/
public Builder clearSpecsString() {
specsString_ = getDefaultInstance().getSpecsString();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* <code>string specs_string = 2 [json_name = "specsString"];</code>
* @param value The bytes for specsString to set.
* @return This builder for chaining.
*/
public Builder setSpecsStringBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
specsString_ = value;
bitField0_ |= 0x00000002;
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:chalk.server.v1.CreateClusterBackgroundPersistenceRequest)
}
// @@protoc_insertion_point(class_scope:chalk.server.v1.CreateClusterBackgroundPersistenceRequest)
private static final ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequest();
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<CreateClusterBackgroundPersistenceRequest>
PARSER = new com.google.protobuf.AbstractParser<CreateClusterBackgroundPersistenceRequest>() {
@java.lang.Override
public CreateClusterBackgroundPersistenceRequest 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<CreateClusterBackgroundPersistenceRequest> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<CreateClusterBackgroundPersistenceRequest> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/CreateClusterBackgroundPersistenceRequestOrBuilder.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/builder.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
public interface CreateClusterBackgroundPersistenceRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.server.v1.CreateClusterBackgroundPersistenceRequest)
com.google.protobuf.MessageOrBuilder {
/**
* <code>repeated string environment_ids = 1 [json_name = "environmentIds"];</code>
* @return A list containing the environmentIds.
*/
java.util.List<java.lang.String>
getEnvironmentIdsList();
/**
* <code>repeated string environment_ids = 1 [json_name = "environmentIds"];</code>
* @return The count of environmentIds.
*/
int getEnvironmentIdsCount();
/**
* <code>repeated string environment_ids = 1 [json_name = "environmentIds"];</code>
* @param index The index of the element to return.
* @return The environmentIds at the given index.
*/
java.lang.String getEnvironmentIds(int index);
/**
* <code>repeated string environment_ids = 1 [json_name = "environmentIds"];</code>
* @param index The index of the value to return.
* @return The bytes of the environmentIds at the given index.
*/
com.google.protobuf.ByteString
getEnvironmentIdsBytes(int index);
/**
* <code>string specs_string = 2 [json_name = "specsString"];</code>
* @return The specsString.
*/
java.lang.String getSpecsString();
/**
* <code>string specs_string = 2 [json_name = "specsString"];</code>
* @return The bytes for specsString.
*/
com.google.protobuf.ByteString
getSpecsStringBytes();
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/CreateClusterBackgroundPersistenceResponse.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/builder.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
/**
* Protobuf type {@code chalk.server.v1.CreateClusterBackgroundPersistenceResponse}
*/
public final class CreateClusterBackgroundPersistenceResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.server.v1.CreateClusterBackgroundPersistenceResponse)
CreateClusterBackgroundPersistenceResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateClusterBackgroundPersistenceResponse.newBuilder() to construct.
private CreateClusterBackgroundPersistenceResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private CreateClusterBackgroundPersistenceResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateClusterBackgroundPersistenceResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_CreateClusterBackgroundPersistenceResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_CreateClusterBackgroundPersistenceResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceResponse.class, ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceResponse.Builder.class);
}
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 {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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 ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceResponse)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceResponse other = (ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceResponse) obj;
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 = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceResponse 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 ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceResponse 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 ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceResponse 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(ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code chalk.server.v1.CreateClusterBackgroundPersistenceResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.server.v1.CreateClusterBackgroundPersistenceResponse)
ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_CreateClusterBackgroundPersistenceResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_CreateClusterBackgroundPersistenceResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceResponse.class, ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceResponse.Builder.class);
}
// Construct using ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_CreateClusterBackgroundPersistenceResponse_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceResponse getDefaultInstanceForType() {
return ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceResponse.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceResponse build() {
ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceResponse buildPartial() {
ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceResponse result = new ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceResponse(this);
onBuilt();
return result;
}
@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 ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceResponse) {
return mergeFrom((ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceResponse other) {
if (other == ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceResponse.getDefaultInstance()) return this;
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;
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;
}
@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:chalk.server.v1.CreateClusterBackgroundPersistenceResponse)
}
// @@protoc_insertion_point(class_scope:chalk.server.v1.CreateClusterBackgroundPersistenceResponse)
private static final ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceResponse();
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<CreateClusterBackgroundPersistenceResponse>
PARSER = new com.google.protobuf.AbstractParser<CreateClusterBackgroundPersistenceResponse>() {
@java.lang.Override
public CreateClusterBackgroundPersistenceResponse 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<CreateClusterBackgroundPersistenceResponse> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<CreateClusterBackgroundPersistenceResponse> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateClusterBackgroundPersistenceResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/CreateClusterBackgroundPersistenceResponseOrBuilder.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/builder.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
public interface CreateClusterBackgroundPersistenceResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.server.v1.CreateClusterBackgroundPersistenceResponse)
com.google.protobuf.MessageOrBuilder {
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/CreateClusterGatewayRequest.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/builder.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
/**
* Protobuf type {@code chalk.server.v1.CreateClusterGatewayRequest}
*/
public final class CreateClusterGatewayRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.server.v1.CreateClusterGatewayRequest)
CreateClusterGatewayRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateClusterGatewayRequest.newBuilder() to construct.
private CreateClusterGatewayRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private CreateClusterGatewayRequest() {
environmentId_ =
com.google.protobuf.LazyStringArrayList.emptyList();
environmentIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
specsString_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateClusterGatewayRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_CreateClusterGatewayRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_CreateClusterGatewayRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequest.class, ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequest.Builder.class);
}
public static final int ENVIRONMENT_ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList environmentId_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* <pre>
* spelling
* </pre>
*
* <code>repeated string environment_id = 1 [json_name = "environmentId", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateClusterGatewayRequest.environment_id is deprecated.
* See chalk/server/v1/builder.proto;l=157
* @return A list containing the environmentId.
*/
@java.lang.Deprecated public com.google.protobuf.ProtocolStringList
getEnvironmentIdList() {
return environmentId_;
}
/**
* <pre>
* spelling
* </pre>
*
* <code>repeated string environment_id = 1 [json_name = "environmentId", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateClusterGatewayRequest.environment_id is deprecated.
* See chalk/server/v1/builder.proto;l=157
* @return The count of environmentId.
*/
@java.lang.Deprecated public int getEnvironmentIdCount() {
return environmentId_.size();
}
/**
* <pre>
* spelling
* </pre>
*
* <code>repeated string environment_id = 1 [json_name = "environmentId", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateClusterGatewayRequest.environment_id is deprecated.
* See chalk/server/v1/builder.proto;l=157
* @param index The index of the element to return.
* @return The environmentId at the given index.
*/
@java.lang.Deprecated public java.lang.String getEnvironmentId(int index) {
return environmentId_.get(index);
}
/**
* <pre>
* spelling
* </pre>
*
* <code>repeated string environment_id = 1 [json_name = "environmentId", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateClusterGatewayRequest.environment_id is deprecated.
* See chalk/server/v1/builder.proto;l=157
* @param index The index of the value to return.
* @return The bytes of the environmentId at the given index.
*/
@java.lang.Deprecated public com.google.protobuf.ByteString
getEnvironmentIdBytes(int index) {
return environmentId_.getByteString(index);
}
public static final int ENVIRONMENT_IDS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList environmentIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* <code>repeated string environment_ids = 3 [json_name = "environmentIds"];</code>
* @return A list containing the environmentIds.
*/
public com.google.protobuf.ProtocolStringList
getEnvironmentIdsList() {
return environmentIds_;
}
/**
* <code>repeated string environment_ids = 3 [json_name = "environmentIds"];</code>
* @return The count of environmentIds.
*/
public int getEnvironmentIdsCount() {
return environmentIds_.size();
}
/**
* <code>repeated string environment_ids = 3 [json_name = "environmentIds"];</code>
* @param index The index of the element to return.
* @return The environmentIds at the given index.
*/
public java.lang.String getEnvironmentIds(int index) {
return environmentIds_.get(index);
}
/**
* <code>repeated string environment_ids = 3 [json_name = "environmentIds"];</code>
* @param index The index of the value to return.
* @return The bytes of the environmentIds at the given index.
*/
public com.google.protobuf.ByteString
getEnvironmentIdsBytes(int index) {
return environmentIds_.getByteString(index);
}
public static final int SPECS_STRING_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object specsString_ = "";
/**
* <code>string specs_string = 2 [json_name = "specsString"];</code>
* @return The specsString.
*/
@java.lang.Override
public java.lang.String getSpecsString() {
java.lang.Object ref = specsString_;
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();
specsString_ = s;
return s;
}
}
/**
* <code>string specs_string = 2 [json_name = "specsString"];</code>
* @return The bytes for specsString.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSpecsStringBytes() {
java.lang.Object ref = specsString_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
specsString_ = 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 {
for (int i = 0; i < environmentId_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, environmentId_.getRaw(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(specsString_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, specsString_);
}
for (int i = 0; i < environmentIds_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, environmentIds_.getRaw(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < environmentId_.size(); i++) {
dataSize += computeStringSizeNoTag(environmentId_.getRaw(i));
}
size += dataSize;
size += 1 * getEnvironmentIdList().size();
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(specsString_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, specsString_);
}
{
int dataSize = 0;
for (int i = 0; i < environmentIds_.size(); i++) {
dataSize += computeStringSizeNoTag(environmentIds_.getRaw(i));
}
size += dataSize;
size += 1 * getEnvironmentIdsList().size();
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequest)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequest other = (ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequest) obj;
if (!getEnvironmentIdList()
.equals(other.getEnvironmentIdList())) return false;
if (!getEnvironmentIdsList()
.equals(other.getEnvironmentIdsList())) return false;
if (!getSpecsString()
.equals(other.getSpecsString())) 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 (getEnvironmentIdCount() > 0) {
hash = (37 * hash) + ENVIRONMENT_ID_FIELD_NUMBER;
hash = (53 * hash) + getEnvironmentIdList().hashCode();
}
if (getEnvironmentIdsCount() > 0) {
hash = (37 * hash) + ENVIRONMENT_IDS_FIELD_NUMBER;
hash = (53 * hash) + getEnvironmentIdsList().hashCode();
}
hash = (37 * hash) + SPECS_STRING_FIELD_NUMBER;
hash = (53 * hash) + getSpecsString().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequest 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 ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequest 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 ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequest 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(ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code chalk.server.v1.CreateClusterGatewayRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.server.v1.CreateClusterGatewayRequest)
ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_CreateClusterGatewayRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_CreateClusterGatewayRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequest.class, ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequest.Builder.class);
}
// Construct using ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
environmentId_ =
com.google.protobuf.LazyStringArrayList.emptyList();
environmentIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
specsString_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_CreateClusterGatewayRequest_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequest getDefaultInstanceForType() {
return ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequest.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequest build() {
ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequest buildPartial() {
ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequest result = new ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
environmentId_.makeImmutable();
result.environmentId_ = environmentId_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
environmentIds_.makeImmutable();
result.environmentIds_ = environmentIds_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.specsString_ = specsString_;
}
}
@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 ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequest) {
return mergeFrom((ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequest other) {
if (other == ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequest.getDefaultInstance()) return this;
if (!other.environmentId_.isEmpty()) {
if (environmentId_.isEmpty()) {
environmentId_ = other.environmentId_;
bitField0_ |= 0x00000001;
} else {
ensureEnvironmentIdIsMutable();
environmentId_.addAll(other.environmentId_);
}
onChanged();
}
if (!other.environmentIds_.isEmpty()) {
if (environmentIds_.isEmpty()) {
environmentIds_ = other.environmentIds_;
bitField0_ |= 0x00000002;
} else {
ensureEnvironmentIdsIsMutable();
environmentIds_.addAll(other.environmentIds_);
}
onChanged();
}
if (!other.getSpecsString().isEmpty()) {
specsString_ = other.specsString_;
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: {
java.lang.String s = input.readStringRequireUtf8();
ensureEnvironmentIdIsMutable();
environmentId_.add(s);
break;
} // case 10
case 18: {
specsString_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 18
case 26: {
java.lang.String s = input.readStringRequireUtf8();
ensureEnvironmentIdsIsMutable();
environmentIds_.add(s);
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringArrayList environmentId_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureEnvironmentIdIsMutable() {
if (!environmentId_.isModifiable()) {
environmentId_ = new com.google.protobuf.LazyStringArrayList(environmentId_);
}
bitField0_ |= 0x00000001;
}
/**
* <pre>
* spelling
* </pre>
*
* <code>repeated string environment_id = 1 [json_name = "environmentId", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateClusterGatewayRequest.environment_id is deprecated.
* See chalk/server/v1/builder.proto;l=157
* @return A list containing the environmentId.
*/
@java.lang.Deprecated public com.google.protobuf.ProtocolStringList
getEnvironmentIdList() {
environmentId_.makeImmutable();
return environmentId_;
}
/**
* <pre>
* spelling
* </pre>
*
* <code>repeated string environment_id = 1 [json_name = "environmentId", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateClusterGatewayRequest.environment_id is deprecated.
* See chalk/server/v1/builder.proto;l=157
* @return The count of environmentId.
*/
@java.lang.Deprecated public int getEnvironmentIdCount() {
return environmentId_.size();
}
/**
* <pre>
* spelling
* </pre>
*
* <code>repeated string environment_id = 1 [json_name = "environmentId", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateClusterGatewayRequest.environment_id is deprecated.
* See chalk/server/v1/builder.proto;l=157
* @param index The index of the element to return.
* @return The environmentId at the given index.
*/
@java.lang.Deprecated public java.lang.String getEnvironmentId(int index) {
return environmentId_.get(index);
}
/**
* <pre>
* spelling
* </pre>
*
* <code>repeated string environment_id = 1 [json_name = "environmentId", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateClusterGatewayRequest.environment_id is deprecated.
* See chalk/server/v1/builder.proto;l=157
* @param index The index of the value to return.
* @return The bytes of the environmentId at the given index.
*/
@java.lang.Deprecated public com.google.protobuf.ByteString
getEnvironmentIdBytes(int index) {
return environmentId_.getByteString(index);
}
/**
* <pre>
* spelling
* </pre>
*
* <code>repeated string environment_id = 1 [json_name = "environmentId", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateClusterGatewayRequest.environment_id is deprecated.
* See chalk/server/v1/builder.proto;l=157
* @param index The index to set the value at.
* @param value The environmentId to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setEnvironmentId(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureEnvironmentIdIsMutable();
environmentId_.set(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <pre>
* spelling
* </pre>
*
* <code>repeated string environment_id = 1 [json_name = "environmentId", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateClusterGatewayRequest.environment_id is deprecated.
* See chalk/server/v1/builder.proto;l=157
* @param value The environmentId to add.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder addEnvironmentId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureEnvironmentIdIsMutable();
environmentId_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <pre>
* spelling
* </pre>
*
* <code>repeated string environment_id = 1 [json_name = "environmentId", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateClusterGatewayRequest.environment_id is deprecated.
* See chalk/server/v1/builder.proto;l=157
* @param values The environmentId to add.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder addAllEnvironmentId(
java.lang.Iterable<java.lang.String> values) {
ensureEnvironmentIdIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, environmentId_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <pre>
* spelling
* </pre>
*
* <code>repeated string environment_id = 1 [json_name = "environmentId", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateClusterGatewayRequest.environment_id is deprecated.
* See chalk/server/v1/builder.proto;l=157
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearEnvironmentId() {
environmentId_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);;
onChanged();
return this;
}
/**
* <pre>
* spelling
* </pre>
*
* <code>repeated string environment_id = 1 [json_name = "environmentId", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateClusterGatewayRequest.environment_id is deprecated.
* See chalk/server/v1/builder.proto;l=157
* @param value The bytes of the environmentId to add.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder addEnvironmentIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureEnvironmentIdIsMutable();
environmentId_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList environmentIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureEnvironmentIdsIsMutable() {
if (!environmentIds_.isModifiable()) {
environmentIds_ = new com.google.protobuf.LazyStringArrayList(environmentIds_);
}
bitField0_ |= 0x00000002;
}
/**
* <code>repeated string environment_ids = 3 [json_name = "environmentIds"];</code>
* @return A list containing the environmentIds.
*/
public com.google.protobuf.ProtocolStringList
getEnvironmentIdsList() {
environmentIds_.makeImmutable();
return environmentIds_;
}
/**
* <code>repeated string environment_ids = 3 [json_name = "environmentIds"];</code>
* @return The count of environmentIds.
*/
public int getEnvironmentIdsCount() {
return environmentIds_.size();
}
/**
* <code>repeated string environment_ids = 3 [json_name = "environmentIds"];</code>
* @param index The index of the element to return.
* @return The environmentIds at the given index.
*/
public java.lang.String getEnvironmentIds(int index) {
return environmentIds_.get(index);
}
/**
* <code>repeated string environment_ids = 3 [json_name = "environmentIds"];</code>
* @param index The index of the value to return.
* @return The bytes of the environmentIds at the given index.
*/
public com.google.protobuf.ByteString
getEnvironmentIdsBytes(int index) {
return environmentIds_.getByteString(index);
}
/**
* <code>repeated string environment_ids = 3 [json_name = "environmentIds"];</code>
* @param index The index to set the value at.
* @param value The environmentIds to set.
* @return This builder for chaining.
*/
public Builder setEnvironmentIds(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureEnvironmentIdsIsMutable();
environmentIds_.set(index, value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <code>repeated string environment_ids = 3 [json_name = "environmentIds"];</code>
* @param value The environmentIds to add.
* @return This builder for chaining.
*/
public Builder addEnvironmentIds(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureEnvironmentIdsIsMutable();
environmentIds_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <code>repeated string environment_ids = 3 [json_name = "environmentIds"];</code>
* @param values The environmentIds to add.
* @return This builder for chaining.
*/
public Builder addAllEnvironmentIds(
java.lang.Iterable<java.lang.String> values) {
ensureEnvironmentIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, environmentIds_);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <code>repeated string environment_ids = 3 [json_name = "environmentIds"];</code>
* @return This builder for chaining.
*/
public Builder clearEnvironmentIds() {
environmentIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);;
onChanged();
return this;
}
/**
* <code>repeated string environment_ids = 3 [json_name = "environmentIds"];</code>
* @param value The bytes of the environmentIds to add.
* @return This builder for chaining.
*/
public Builder addEnvironmentIdsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureEnvironmentIdsIsMutable();
environmentIds_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object specsString_ = "";
/**
* <code>string specs_string = 2 [json_name = "specsString"];</code>
* @return The specsString.
*/
public java.lang.String getSpecsString() {
java.lang.Object ref = specsString_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
specsString_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string specs_string = 2 [json_name = "specsString"];</code>
* @return The bytes for specsString.
*/
public com.google.protobuf.ByteString
getSpecsStringBytes() {
java.lang.Object ref = specsString_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
specsString_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string specs_string = 2 [json_name = "specsString"];</code>
* @param value The specsString to set.
* @return This builder for chaining.
*/
public Builder setSpecsString(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
specsString_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* <code>string specs_string = 2 [json_name = "specsString"];</code>
* @return This builder for chaining.
*/
public Builder clearSpecsString() {
specsString_ = getDefaultInstance().getSpecsString();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* <code>string specs_string = 2 [json_name = "specsString"];</code>
* @param value The bytes for specsString to set.
* @return This builder for chaining.
*/
public Builder setSpecsStringBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
specsString_ = 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:chalk.server.v1.CreateClusterGatewayRequest)
}
// @@protoc_insertion_point(class_scope:chalk.server.v1.CreateClusterGatewayRequest)
private static final ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequest();
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<CreateClusterGatewayRequest>
PARSER = new com.google.protobuf.AbstractParser<CreateClusterGatewayRequest>() {
@java.lang.Override
public CreateClusterGatewayRequest 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<CreateClusterGatewayRequest> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<CreateClusterGatewayRequest> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateClusterGatewayRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/CreateClusterGatewayRequestOrBuilder.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/builder.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
public interface CreateClusterGatewayRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.server.v1.CreateClusterGatewayRequest)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* spelling
* </pre>
*
* <code>repeated string environment_id = 1 [json_name = "environmentId", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateClusterGatewayRequest.environment_id is deprecated.
* See chalk/server/v1/builder.proto;l=157
* @return A list containing the environmentId.
*/
@java.lang.Deprecated java.util.List<java.lang.String>
getEnvironmentIdList();
/**
* <pre>
* spelling
* </pre>
*
* <code>repeated string environment_id = 1 [json_name = "environmentId", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateClusterGatewayRequest.environment_id is deprecated.
* See chalk/server/v1/builder.proto;l=157
* @return The count of environmentId.
*/
@java.lang.Deprecated int getEnvironmentIdCount();
/**
* <pre>
* spelling
* </pre>
*
* <code>repeated string environment_id = 1 [json_name = "environmentId", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateClusterGatewayRequest.environment_id is deprecated.
* See chalk/server/v1/builder.proto;l=157
* @param index The index of the element to return.
* @return The environmentId at the given index.
*/
@java.lang.Deprecated java.lang.String getEnvironmentId(int index);
/**
* <pre>
* spelling
* </pre>
*
* <code>repeated string environment_id = 1 [json_name = "environmentId", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateClusterGatewayRequest.environment_id is deprecated.
* See chalk/server/v1/builder.proto;l=157
* @param index The index of the value to return.
* @return The bytes of the environmentId at the given index.
*/
@java.lang.Deprecated com.google.protobuf.ByteString
getEnvironmentIdBytes(int index);
/**
* <code>repeated string environment_ids = 3 [json_name = "environmentIds"];</code>
* @return A list containing the environmentIds.
*/
java.util.List<java.lang.String>
getEnvironmentIdsList();
/**
* <code>repeated string environment_ids = 3 [json_name = "environmentIds"];</code>
* @return The count of environmentIds.
*/
int getEnvironmentIdsCount();
/**
* <code>repeated string environment_ids = 3 [json_name = "environmentIds"];</code>
* @param index The index of the element to return.
* @return The environmentIds at the given index.
*/
java.lang.String getEnvironmentIds(int index);
/**
* <code>repeated string environment_ids = 3 [json_name = "environmentIds"];</code>
* @param index The index of the value to return.
* @return The bytes of the environmentIds at the given index.
*/
com.google.protobuf.ByteString
getEnvironmentIdsBytes(int index);
/**
* <code>string specs_string = 2 [json_name = "specsString"];</code>
* @return The specsString.
*/
java.lang.String getSpecsString();
/**
* <code>string specs_string = 2 [json_name = "specsString"];</code>
* @return The bytes for specsString.
*/
com.google.protobuf.ByteString
getSpecsStringBytes();
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/CreateClusterGatewayResponse.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/builder.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
/**
* Protobuf type {@code chalk.server.v1.CreateClusterGatewayResponse}
*/
public final class CreateClusterGatewayResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.server.v1.CreateClusterGatewayResponse)
CreateClusterGatewayResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateClusterGatewayResponse.newBuilder() to construct.
private CreateClusterGatewayResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private CreateClusterGatewayResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateClusterGatewayResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_CreateClusterGatewayResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_CreateClusterGatewayResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.CreateClusterGatewayResponse.class, ai.chalk.protos.chalk.server.v1.CreateClusterGatewayResponse.Builder.class);
}
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 {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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 ai.chalk.protos.chalk.server.v1.CreateClusterGatewayResponse)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.server.v1.CreateClusterGatewayResponse other = (ai.chalk.protos.chalk.server.v1.CreateClusterGatewayResponse) obj;
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 = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterGatewayResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterGatewayResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterGatewayResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterGatewayResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterGatewayResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterGatewayResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterGatewayResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterGatewayResponse 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 ai.chalk.protos.chalk.server.v1.CreateClusterGatewayResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterGatewayResponse 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 ai.chalk.protos.chalk.server.v1.CreateClusterGatewayResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterGatewayResponse 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(ai.chalk.protos.chalk.server.v1.CreateClusterGatewayResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code chalk.server.v1.CreateClusterGatewayResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.server.v1.CreateClusterGatewayResponse)
ai.chalk.protos.chalk.server.v1.CreateClusterGatewayResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_CreateClusterGatewayResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_CreateClusterGatewayResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.CreateClusterGatewayResponse.class, ai.chalk.protos.chalk.server.v1.CreateClusterGatewayResponse.Builder.class);
}
// Construct using ai.chalk.protos.chalk.server.v1.CreateClusterGatewayResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_CreateClusterGatewayResponse_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateClusterGatewayResponse getDefaultInstanceForType() {
return ai.chalk.protos.chalk.server.v1.CreateClusterGatewayResponse.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateClusterGatewayResponse build() {
ai.chalk.protos.chalk.server.v1.CreateClusterGatewayResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateClusterGatewayResponse buildPartial() {
ai.chalk.protos.chalk.server.v1.CreateClusterGatewayResponse result = new ai.chalk.protos.chalk.server.v1.CreateClusterGatewayResponse(this);
onBuilt();
return result;
}
@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 ai.chalk.protos.chalk.server.v1.CreateClusterGatewayResponse) {
return mergeFrom((ai.chalk.protos.chalk.server.v1.CreateClusterGatewayResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.server.v1.CreateClusterGatewayResponse other) {
if (other == ai.chalk.protos.chalk.server.v1.CreateClusterGatewayResponse.getDefaultInstance()) return this;
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;
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;
}
@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:chalk.server.v1.CreateClusterGatewayResponse)
}
// @@protoc_insertion_point(class_scope:chalk.server.v1.CreateClusterGatewayResponse)
private static final ai.chalk.protos.chalk.server.v1.CreateClusterGatewayResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.server.v1.CreateClusterGatewayResponse();
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterGatewayResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<CreateClusterGatewayResponse>
PARSER = new com.google.protobuf.AbstractParser<CreateClusterGatewayResponse>() {
@java.lang.Override
public CreateClusterGatewayResponse 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<CreateClusterGatewayResponse> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<CreateClusterGatewayResponse> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateClusterGatewayResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/CreateClusterGatewayResponseOrBuilder.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/builder.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
public interface CreateClusterGatewayResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.server.v1.CreateClusterGatewayResponse)
com.google.protobuf.MessageOrBuilder {
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/CreateClusterTimescaleDBRequest.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/builder.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
/**
* Protobuf type {@code chalk.server.v1.CreateClusterTimescaleDBRequest}
*/
public final class CreateClusterTimescaleDBRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.server.v1.CreateClusterTimescaleDBRequest)
CreateClusterTimescaleDBRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateClusterTimescaleDBRequest.newBuilder() to construct.
private CreateClusterTimescaleDBRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private CreateClusterTimescaleDBRequest() {
environmentId_ =
com.google.protobuf.LazyStringArrayList.emptyList();
environmentIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
specsString_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateClusterTimescaleDBRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_CreateClusterTimescaleDBRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_CreateClusterTimescaleDBRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequest.class, ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequest.Builder.class);
}
public static final int ENVIRONMENT_ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList environmentId_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* <pre>
* spelling
* </pre>
*
* <code>repeated string environment_id = 1 [json_name = "environmentId", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateClusterTimescaleDBRequest.environment_id is deprecated.
* See chalk/server/v1/builder.proto;l=141
* @return A list containing the environmentId.
*/
@java.lang.Deprecated public com.google.protobuf.ProtocolStringList
getEnvironmentIdList() {
return environmentId_;
}
/**
* <pre>
* spelling
* </pre>
*
* <code>repeated string environment_id = 1 [json_name = "environmentId", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateClusterTimescaleDBRequest.environment_id is deprecated.
* See chalk/server/v1/builder.proto;l=141
* @return The count of environmentId.
*/
@java.lang.Deprecated public int getEnvironmentIdCount() {
return environmentId_.size();
}
/**
* <pre>
* spelling
* </pre>
*
* <code>repeated string environment_id = 1 [json_name = "environmentId", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateClusterTimescaleDBRequest.environment_id is deprecated.
* See chalk/server/v1/builder.proto;l=141
* @param index The index of the element to return.
* @return The environmentId at the given index.
*/
@java.lang.Deprecated public java.lang.String getEnvironmentId(int index) {
return environmentId_.get(index);
}
/**
* <pre>
* spelling
* </pre>
*
* <code>repeated string environment_id = 1 [json_name = "environmentId", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateClusterTimescaleDBRequest.environment_id is deprecated.
* See chalk/server/v1/builder.proto;l=141
* @param index The index of the value to return.
* @return The bytes of the environmentId at the given index.
*/
@java.lang.Deprecated public com.google.protobuf.ByteString
getEnvironmentIdBytes(int index) {
return environmentId_.getByteString(index);
}
public static final int ENVIRONMENT_IDS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList environmentIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* <code>repeated string environment_ids = 3 [json_name = "environmentIds"];</code>
* @return A list containing the environmentIds.
*/
public com.google.protobuf.ProtocolStringList
getEnvironmentIdsList() {
return environmentIds_;
}
/**
* <code>repeated string environment_ids = 3 [json_name = "environmentIds"];</code>
* @return The count of environmentIds.
*/
public int getEnvironmentIdsCount() {
return environmentIds_.size();
}
/**
* <code>repeated string environment_ids = 3 [json_name = "environmentIds"];</code>
* @param index The index of the element to return.
* @return The environmentIds at the given index.
*/
public java.lang.String getEnvironmentIds(int index) {
return environmentIds_.get(index);
}
/**
* <code>repeated string environment_ids = 3 [json_name = "environmentIds"];</code>
* @param index The index of the value to return.
* @return The bytes of the environmentIds at the given index.
*/
public com.google.protobuf.ByteString
getEnvironmentIdsBytes(int index) {
return environmentIds_.getByteString(index);
}
public static final int SPECS_STRING_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object specsString_ = "";
/**
* <code>string specs_string = 2 [json_name = "specsString"];</code>
* @return The specsString.
*/
@java.lang.Override
public java.lang.String getSpecsString() {
java.lang.Object ref = specsString_;
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();
specsString_ = s;
return s;
}
}
/**
* <code>string specs_string = 2 [json_name = "specsString"];</code>
* @return The bytes for specsString.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSpecsStringBytes() {
java.lang.Object ref = specsString_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
specsString_ = 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 {
for (int i = 0; i < environmentId_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, environmentId_.getRaw(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(specsString_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, specsString_);
}
for (int i = 0; i < environmentIds_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, environmentIds_.getRaw(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < environmentId_.size(); i++) {
dataSize += computeStringSizeNoTag(environmentId_.getRaw(i));
}
size += dataSize;
size += 1 * getEnvironmentIdList().size();
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(specsString_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, specsString_);
}
{
int dataSize = 0;
for (int i = 0; i < environmentIds_.size(); i++) {
dataSize += computeStringSizeNoTag(environmentIds_.getRaw(i));
}
size += dataSize;
size += 1 * getEnvironmentIdsList().size();
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequest)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequest other = (ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequest) obj;
if (!getEnvironmentIdList()
.equals(other.getEnvironmentIdList())) return false;
if (!getEnvironmentIdsList()
.equals(other.getEnvironmentIdsList())) return false;
if (!getSpecsString()
.equals(other.getSpecsString())) 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 (getEnvironmentIdCount() > 0) {
hash = (37 * hash) + ENVIRONMENT_ID_FIELD_NUMBER;
hash = (53 * hash) + getEnvironmentIdList().hashCode();
}
if (getEnvironmentIdsCount() > 0) {
hash = (37 * hash) + ENVIRONMENT_IDS_FIELD_NUMBER;
hash = (53 * hash) + getEnvironmentIdsList().hashCode();
}
hash = (37 * hash) + SPECS_STRING_FIELD_NUMBER;
hash = (53 * hash) + getSpecsString().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequest 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 ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequest 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 ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequest 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(ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code chalk.server.v1.CreateClusterTimescaleDBRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.server.v1.CreateClusterTimescaleDBRequest)
ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_CreateClusterTimescaleDBRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_CreateClusterTimescaleDBRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequest.class, ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequest.Builder.class);
}
// Construct using ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
environmentId_ =
com.google.protobuf.LazyStringArrayList.emptyList();
environmentIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
specsString_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_CreateClusterTimescaleDBRequest_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequest getDefaultInstanceForType() {
return ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequest.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequest build() {
ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequest buildPartial() {
ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequest result = new ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
environmentId_.makeImmutable();
result.environmentId_ = environmentId_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
environmentIds_.makeImmutable();
result.environmentIds_ = environmentIds_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.specsString_ = specsString_;
}
}
@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 ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequest) {
return mergeFrom((ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequest other) {
if (other == ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequest.getDefaultInstance()) return this;
if (!other.environmentId_.isEmpty()) {
if (environmentId_.isEmpty()) {
environmentId_ = other.environmentId_;
bitField0_ |= 0x00000001;
} else {
ensureEnvironmentIdIsMutable();
environmentId_.addAll(other.environmentId_);
}
onChanged();
}
if (!other.environmentIds_.isEmpty()) {
if (environmentIds_.isEmpty()) {
environmentIds_ = other.environmentIds_;
bitField0_ |= 0x00000002;
} else {
ensureEnvironmentIdsIsMutable();
environmentIds_.addAll(other.environmentIds_);
}
onChanged();
}
if (!other.getSpecsString().isEmpty()) {
specsString_ = other.specsString_;
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: {
java.lang.String s = input.readStringRequireUtf8();
ensureEnvironmentIdIsMutable();
environmentId_.add(s);
break;
} // case 10
case 18: {
specsString_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 18
case 26: {
java.lang.String s = input.readStringRequireUtf8();
ensureEnvironmentIdsIsMutable();
environmentIds_.add(s);
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringArrayList environmentId_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureEnvironmentIdIsMutable() {
if (!environmentId_.isModifiable()) {
environmentId_ = new com.google.protobuf.LazyStringArrayList(environmentId_);
}
bitField0_ |= 0x00000001;
}
/**
* <pre>
* spelling
* </pre>
*
* <code>repeated string environment_id = 1 [json_name = "environmentId", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateClusterTimescaleDBRequest.environment_id is deprecated.
* See chalk/server/v1/builder.proto;l=141
* @return A list containing the environmentId.
*/
@java.lang.Deprecated public com.google.protobuf.ProtocolStringList
getEnvironmentIdList() {
environmentId_.makeImmutable();
return environmentId_;
}
/**
* <pre>
* spelling
* </pre>
*
* <code>repeated string environment_id = 1 [json_name = "environmentId", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateClusterTimescaleDBRequest.environment_id is deprecated.
* See chalk/server/v1/builder.proto;l=141
* @return The count of environmentId.
*/
@java.lang.Deprecated public int getEnvironmentIdCount() {
return environmentId_.size();
}
/**
* <pre>
* spelling
* </pre>
*
* <code>repeated string environment_id = 1 [json_name = "environmentId", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateClusterTimescaleDBRequest.environment_id is deprecated.
* See chalk/server/v1/builder.proto;l=141
* @param index The index of the element to return.
* @return The environmentId at the given index.
*/
@java.lang.Deprecated public java.lang.String getEnvironmentId(int index) {
return environmentId_.get(index);
}
/**
* <pre>
* spelling
* </pre>
*
* <code>repeated string environment_id = 1 [json_name = "environmentId", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateClusterTimescaleDBRequest.environment_id is deprecated.
* See chalk/server/v1/builder.proto;l=141
* @param index The index of the value to return.
* @return The bytes of the environmentId at the given index.
*/
@java.lang.Deprecated public com.google.protobuf.ByteString
getEnvironmentIdBytes(int index) {
return environmentId_.getByteString(index);
}
/**
* <pre>
* spelling
* </pre>
*
* <code>repeated string environment_id = 1 [json_name = "environmentId", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateClusterTimescaleDBRequest.environment_id is deprecated.
* See chalk/server/v1/builder.proto;l=141
* @param index The index to set the value at.
* @param value The environmentId to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setEnvironmentId(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureEnvironmentIdIsMutable();
environmentId_.set(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <pre>
* spelling
* </pre>
*
* <code>repeated string environment_id = 1 [json_name = "environmentId", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateClusterTimescaleDBRequest.environment_id is deprecated.
* See chalk/server/v1/builder.proto;l=141
* @param value The environmentId to add.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder addEnvironmentId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureEnvironmentIdIsMutable();
environmentId_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <pre>
* spelling
* </pre>
*
* <code>repeated string environment_id = 1 [json_name = "environmentId", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateClusterTimescaleDBRequest.environment_id is deprecated.
* See chalk/server/v1/builder.proto;l=141
* @param values The environmentId to add.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder addAllEnvironmentId(
java.lang.Iterable<java.lang.String> values) {
ensureEnvironmentIdIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, environmentId_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <pre>
* spelling
* </pre>
*
* <code>repeated string environment_id = 1 [json_name = "environmentId", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateClusterTimescaleDBRequest.environment_id is deprecated.
* See chalk/server/v1/builder.proto;l=141
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearEnvironmentId() {
environmentId_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);;
onChanged();
return this;
}
/**
* <pre>
* spelling
* </pre>
*
* <code>repeated string environment_id = 1 [json_name = "environmentId", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateClusterTimescaleDBRequest.environment_id is deprecated.
* See chalk/server/v1/builder.proto;l=141
* @param value The bytes of the environmentId to add.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder addEnvironmentIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureEnvironmentIdIsMutable();
environmentId_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList environmentIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureEnvironmentIdsIsMutable() {
if (!environmentIds_.isModifiable()) {
environmentIds_ = new com.google.protobuf.LazyStringArrayList(environmentIds_);
}
bitField0_ |= 0x00000002;
}
/**
* <code>repeated string environment_ids = 3 [json_name = "environmentIds"];</code>
* @return A list containing the environmentIds.
*/
public com.google.protobuf.ProtocolStringList
getEnvironmentIdsList() {
environmentIds_.makeImmutable();
return environmentIds_;
}
/**
* <code>repeated string environment_ids = 3 [json_name = "environmentIds"];</code>
* @return The count of environmentIds.
*/
public int getEnvironmentIdsCount() {
return environmentIds_.size();
}
/**
* <code>repeated string environment_ids = 3 [json_name = "environmentIds"];</code>
* @param index The index of the element to return.
* @return The environmentIds at the given index.
*/
public java.lang.String getEnvironmentIds(int index) {
return environmentIds_.get(index);
}
/**
* <code>repeated string environment_ids = 3 [json_name = "environmentIds"];</code>
* @param index The index of the value to return.
* @return The bytes of the environmentIds at the given index.
*/
public com.google.protobuf.ByteString
getEnvironmentIdsBytes(int index) {
return environmentIds_.getByteString(index);
}
/**
* <code>repeated string environment_ids = 3 [json_name = "environmentIds"];</code>
* @param index The index to set the value at.
* @param value The environmentIds to set.
* @return This builder for chaining.
*/
public Builder setEnvironmentIds(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureEnvironmentIdsIsMutable();
environmentIds_.set(index, value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <code>repeated string environment_ids = 3 [json_name = "environmentIds"];</code>
* @param value The environmentIds to add.
* @return This builder for chaining.
*/
public Builder addEnvironmentIds(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureEnvironmentIdsIsMutable();
environmentIds_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <code>repeated string environment_ids = 3 [json_name = "environmentIds"];</code>
* @param values The environmentIds to add.
* @return This builder for chaining.
*/
public Builder addAllEnvironmentIds(
java.lang.Iterable<java.lang.String> values) {
ensureEnvironmentIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, environmentIds_);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <code>repeated string environment_ids = 3 [json_name = "environmentIds"];</code>
* @return This builder for chaining.
*/
public Builder clearEnvironmentIds() {
environmentIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);;
onChanged();
return this;
}
/**
* <code>repeated string environment_ids = 3 [json_name = "environmentIds"];</code>
* @param value The bytes of the environmentIds to add.
* @return This builder for chaining.
*/
public Builder addEnvironmentIdsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureEnvironmentIdsIsMutable();
environmentIds_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object specsString_ = "";
/**
* <code>string specs_string = 2 [json_name = "specsString"];</code>
* @return The specsString.
*/
public java.lang.String getSpecsString() {
java.lang.Object ref = specsString_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
specsString_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string specs_string = 2 [json_name = "specsString"];</code>
* @return The bytes for specsString.
*/
public com.google.protobuf.ByteString
getSpecsStringBytes() {
java.lang.Object ref = specsString_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
specsString_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string specs_string = 2 [json_name = "specsString"];</code>
* @param value The specsString to set.
* @return This builder for chaining.
*/
public Builder setSpecsString(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
specsString_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* <code>string specs_string = 2 [json_name = "specsString"];</code>
* @return This builder for chaining.
*/
public Builder clearSpecsString() {
specsString_ = getDefaultInstance().getSpecsString();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* <code>string specs_string = 2 [json_name = "specsString"];</code>
* @param value The bytes for specsString to set.
* @return This builder for chaining.
*/
public Builder setSpecsStringBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
specsString_ = 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:chalk.server.v1.CreateClusterTimescaleDBRequest)
}
// @@protoc_insertion_point(class_scope:chalk.server.v1.CreateClusterTimescaleDBRequest)
private static final ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequest();
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<CreateClusterTimescaleDBRequest>
PARSER = new com.google.protobuf.AbstractParser<CreateClusterTimescaleDBRequest>() {
@java.lang.Override
public CreateClusterTimescaleDBRequest 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<CreateClusterTimescaleDBRequest> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<CreateClusterTimescaleDBRequest> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/CreateClusterTimescaleDBRequestOrBuilder.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/builder.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
public interface CreateClusterTimescaleDBRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.server.v1.CreateClusterTimescaleDBRequest)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* spelling
* </pre>
*
* <code>repeated string environment_id = 1 [json_name = "environmentId", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateClusterTimescaleDBRequest.environment_id is deprecated.
* See chalk/server/v1/builder.proto;l=141
* @return A list containing the environmentId.
*/
@java.lang.Deprecated java.util.List<java.lang.String>
getEnvironmentIdList();
/**
* <pre>
* spelling
* </pre>
*
* <code>repeated string environment_id = 1 [json_name = "environmentId", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateClusterTimescaleDBRequest.environment_id is deprecated.
* See chalk/server/v1/builder.proto;l=141
* @return The count of environmentId.
*/
@java.lang.Deprecated int getEnvironmentIdCount();
/**
* <pre>
* spelling
* </pre>
*
* <code>repeated string environment_id = 1 [json_name = "environmentId", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateClusterTimescaleDBRequest.environment_id is deprecated.
* See chalk/server/v1/builder.proto;l=141
* @param index The index of the element to return.
* @return The environmentId at the given index.
*/
@java.lang.Deprecated java.lang.String getEnvironmentId(int index);
/**
* <pre>
* spelling
* </pre>
*
* <code>repeated string environment_id = 1 [json_name = "environmentId", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateClusterTimescaleDBRequest.environment_id is deprecated.
* See chalk/server/v1/builder.proto;l=141
* @param index The index of the value to return.
* @return The bytes of the environmentId at the given index.
*/
@java.lang.Deprecated com.google.protobuf.ByteString
getEnvironmentIdBytes(int index);
/**
* <code>repeated string environment_ids = 3 [json_name = "environmentIds"];</code>
* @return A list containing the environmentIds.
*/
java.util.List<java.lang.String>
getEnvironmentIdsList();
/**
* <code>repeated string environment_ids = 3 [json_name = "environmentIds"];</code>
* @return The count of environmentIds.
*/
int getEnvironmentIdsCount();
/**
* <code>repeated string environment_ids = 3 [json_name = "environmentIds"];</code>
* @param index The index of the element to return.
* @return The environmentIds at the given index.
*/
java.lang.String getEnvironmentIds(int index);
/**
* <code>repeated string environment_ids = 3 [json_name = "environmentIds"];</code>
* @param index The index of the value to return.
* @return The bytes of the environmentIds at the given index.
*/
com.google.protobuf.ByteString
getEnvironmentIdsBytes(int index);
/**
* <code>string specs_string = 2 [json_name = "specsString"];</code>
* @return The specsString.
*/
java.lang.String getSpecsString();
/**
* <code>string specs_string = 2 [json_name = "specsString"];</code>
* @return The bytes for specsString.
*/
com.google.protobuf.ByteString
getSpecsStringBytes();
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/CreateClusterTimescaleDBResponse.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/builder.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
/**
* Protobuf type {@code chalk.server.v1.CreateClusterTimescaleDBResponse}
*/
public final class CreateClusterTimescaleDBResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.server.v1.CreateClusterTimescaleDBResponse)
CreateClusterTimescaleDBResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateClusterTimescaleDBResponse.newBuilder() to construct.
private CreateClusterTimescaleDBResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private CreateClusterTimescaleDBResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateClusterTimescaleDBResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_CreateClusterTimescaleDBResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_CreateClusterTimescaleDBResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBResponse.class, ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBResponse.Builder.class);
}
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 {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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 ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBResponse)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBResponse other = (ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBResponse) obj;
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 = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBResponse 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 ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBResponse 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 ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBResponse 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(ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code chalk.server.v1.CreateClusterTimescaleDBResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.server.v1.CreateClusterTimescaleDBResponse)
ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_CreateClusterTimescaleDBResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_CreateClusterTimescaleDBResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBResponse.class, ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBResponse.Builder.class);
}
// Construct using ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_CreateClusterTimescaleDBResponse_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBResponse getDefaultInstanceForType() {
return ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBResponse.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBResponse build() {
ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBResponse buildPartial() {
ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBResponse result = new ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBResponse(this);
onBuilt();
return result;
}
@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 ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBResponse) {
return mergeFrom((ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBResponse other) {
if (other == ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBResponse.getDefaultInstance()) return this;
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;
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;
}
@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:chalk.server.v1.CreateClusterTimescaleDBResponse)
}
// @@protoc_insertion_point(class_scope:chalk.server.v1.CreateClusterTimescaleDBResponse)
private static final ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBResponse();
}
public static ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<CreateClusterTimescaleDBResponse>
PARSER = new com.google.protobuf.AbstractParser<CreateClusterTimescaleDBResponse>() {
@java.lang.Override
public CreateClusterTimescaleDBResponse 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<CreateClusterTimescaleDBResponse> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<CreateClusterTimescaleDBResponse> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateClusterTimescaleDBResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/CreateClusterTimescaleDBResponseOrBuilder.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/builder.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
public interface CreateClusterTimescaleDBResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.server.v1.CreateClusterTimescaleDBResponse)
com.google.protobuf.MessageOrBuilder {
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/CreateEnvironmentRequest.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/team.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
/**
* Protobuf type {@code chalk.server.v1.CreateEnvironmentRequest}
*/
public final class CreateEnvironmentRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.server.v1.CreateEnvironmentRequest)
CreateEnvironmentRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateEnvironmentRequest.newBuilder() to construct.
private CreateEnvironmentRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private CreateEnvironmentRequest() {
projectId_ = "";
name_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateEnvironmentRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_CreateEnvironmentRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_CreateEnvironmentRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.CreateEnvironmentRequest.class, ai.chalk.protos.chalk.server.v1.CreateEnvironmentRequest.Builder.class);
}
public static final int PROJECT_ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object projectId_ = "";
/**
* <code>string project_id = 1 [json_name = "projectId"];</code>
* @return The projectId.
*/
@java.lang.Override
public java.lang.String getProjectId() {
java.lang.Object ref = projectId_;
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();
projectId_ = s;
return s;
}
}
/**
* <code>string project_id = 1 [json_name = "projectId"];</code>
* @return The bytes for projectId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getProjectIdBytes() {
java.lang.Object ref = projectId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
projectId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAME_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
* <code>string name = 2 [json_name = "name"];</code>
* @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;
}
}
/**
* <code>string name = 2 [json_name = "name"];</code>
* @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 IS_DEFAULT_FIELD_NUMBER = 3;
private boolean isDefault_ = false;
/**
* <pre>
* service_url,
* worker_url,
* branch_url,
* source_bundle_bucket,
* offline_store_secret
* </pre>
*
* <code>bool is_default = 3 [json_name = "isDefault"];</code>
* @return The isDefault.
*/
@java.lang.Override
public boolean getIsDefault() {
return isDefault_;
}
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(projectId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (isDefault_ != false) {
output.writeBool(3, isDefault_);
}
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(projectId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
if (isDefault_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, isDefault_);
}
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 ai.chalk.protos.chalk.server.v1.CreateEnvironmentRequest)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.server.v1.CreateEnvironmentRequest other = (ai.chalk.protos.chalk.server.v1.CreateEnvironmentRequest) obj;
if (!getProjectId()
.equals(other.getProjectId())) return false;
if (!getName()
.equals(other.getName())) return false;
if (getIsDefault()
!= other.getIsDefault()) 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) + PROJECT_ID_FIELD_NUMBER;
hash = (53 * hash) + getProjectId().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + IS_DEFAULT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsDefault());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.server.v1.CreateEnvironmentRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CreateEnvironmentRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CreateEnvironmentRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CreateEnvironmentRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CreateEnvironmentRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CreateEnvironmentRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CreateEnvironmentRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CreateEnvironmentRequest 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 ai.chalk.protos.chalk.server.v1.CreateEnvironmentRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CreateEnvironmentRequest 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 ai.chalk.protos.chalk.server.v1.CreateEnvironmentRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CreateEnvironmentRequest 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(ai.chalk.protos.chalk.server.v1.CreateEnvironmentRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code chalk.server.v1.CreateEnvironmentRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.server.v1.CreateEnvironmentRequest)
ai.chalk.protos.chalk.server.v1.CreateEnvironmentRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_CreateEnvironmentRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_CreateEnvironmentRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.CreateEnvironmentRequest.class, ai.chalk.protos.chalk.server.v1.CreateEnvironmentRequest.Builder.class);
}
// Construct using ai.chalk.protos.chalk.server.v1.CreateEnvironmentRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
projectId_ = "";
name_ = "";
isDefault_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_CreateEnvironmentRequest_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateEnvironmentRequest getDefaultInstanceForType() {
return ai.chalk.protos.chalk.server.v1.CreateEnvironmentRequest.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateEnvironmentRequest build() {
ai.chalk.protos.chalk.server.v1.CreateEnvironmentRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateEnvironmentRequest buildPartial() {
ai.chalk.protos.chalk.server.v1.CreateEnvironmentRequest result = new ai.chalk.protos.chalk.server.v1.CreateEnvironmentRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ai.chalk.protos.chalk.server.v1.CreateEnvironmentRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.projectId_ = projectId_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.isDefault_ = isDefault_;
}
}
@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 ai.chalk.protos.chalk.server.v1.CreateEnvironmentRequest) {
return mergeFrom((ai.chalk.protos.chalk.server.v1.CreateEnvironmentRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.server.v1.CreateEnvironmentRequest other) {
if (other == ai.chalk.protos.chalk.server.v1.CreateEnvironmentRequest.getDefaultInstance()) return this;
if (!other.getProjectId().isEmpty()) {
projectId_ = other.projectId_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.getIsDefault() != false) {
setIsDefault(other.getIsDefault());
}
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: {
projectId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 24: {
isDefault_ = input.readBool();
bitField0_ |= 0x00000004;
break;
} // case 24
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object projectId_ = "";
/**
* <code>string project_id = 1 [json_name = "projectId"];</code>
* @return The projectId.
*/
public java.lang.String getProjectId() {
java.lang.Object ref = projectId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
projectId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string project_id = 1 [json_name = "projectId"];</code>
* @return The bytes for projectId.
*/
public com.google.protobuf.ByteString
getProjectIdBytes() {
java.lang.Object ref = projectId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
projectId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string project_id = 1 [json_name = "projectId"];</code>
* @param value The projectId to set.
* @return This builder for chaining.
*/
public Builder setProjectId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
projectId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>string project_id = 1 [json_name = "projectId"];</code>
* @return This builder for chaining.
*/
public Builder clearProjectId() {
projectId_ = getDefaultInstance().getProjectId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* <code>string project_id = 1 [json_name = "projectId"];</code>
* @param value The bytes for projectId to set.
* @return This builder for chaining.
*/
public Builder setProjectIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
projectId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
* <code>string name = 2 [json_name = "name"];</code>
* @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;
}
}
/**
* <code>string name = 2 [json_name = "name"];</code>
* @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;
}
}
/**
* <code>string name = 2 [json_name = "name"];</code>
* @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_ |= 0x00000002;
onChanged();
return this;
}
/**
* <code>string name = 2 [json_name = "name"];</code>
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* <code>string name = 2 [json_name = "name"];</code>
* @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_ |= 0x00000002;
onChanged();
return this;
}
private boolean isDefault_ ;
/**
* <pre>
* service_url,
* worker_url,
* branch_url,
* source_bundle_bucket,
* offline_store_secret
* </pre>
*
* <code>bool is_default = 3 [json_name = "isDefault"];</code>
* @return The isDefault.
*/
@java.lang.Override
public boolean getIsDefault() {
return isDefault_;
}
/**
* <pre>
* service_url,
* worker_url,
* branch_url,
* source_bundle_bucket,
* offline_store_secret
* </pre>
*
* <code>bool is_default = 3 [json_name = "isDefault"];</code>
* @param value The isDefault to set.
* @return This builder for chaining.
*/
public Builder setIsDefault(boolean value) {
isDefault_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* <pre>
* service_url,
* worker_url,
* branch_url,
* source_bundle_bucket,
* offline_store_secret
* </pre>
*
* <code>bool is_default = 3 [json_name = "isDefault"];</code>
* @return This builder for chaining.
*/
public Builder clearIsDefault() {
bitField0_ = (bitField0_ & ~0x00000004);
isDefault_ = 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:chalk.server.v1.CreateEnvironmentRequest)
}
// @@protoc_insertion_point(class_scope:chalk.server.v1.CreateEnvironmentRequest)
private static final ai.chalk.protos.chalk.server.v1.CreateEnvironmentRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.server.v1.CreateEnvironmentRequest();
}
public static ai.chalk.protos.chalk.server.v1.CreateEnvironmentRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<CreateEnvironmentRequest>
PARSER = new com.google.protobuf.AbstractParser<CreateEnvironmentRequest>() {
@java.lang.Override
public CreateEnvironmentRequest 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<CreateEnvironmentRequest> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<CreateEnvironmentRequest> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateEnvironmentRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/CreateEnvironmentRequestOrBuilder.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/team.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
public interface CreateEnvironmentRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.server.v1.CreateEnvironmentRequest)
com.google.protobuf.MessageOrBuilder {
/**
* <code>string project_id = 1 [json_name = "projectId"];</code>
* @return The projectId.
*/
java.lang.String getProjectId();
/**
* <code>string project_id = 1 [json_name = "projectId"];</code>
* @return The bytes for projectId.
*/
com.google.protobuf.ByteString
getProjectIdBytes();
/**
* <code>string name = 2 [json_name = "name"];</code>
* @return The name.
*/
java.lang.String getName();
/**
* <code>string name = 2 [json_name = "name"];</code>
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* <pre>
* service_url,
* worker_url,
* branch_url,
* source_bundle_bucket,
* offline_store_secret
* </pre>
*
* <code>bool is_default = 3 [json_name = "isDefault"];</code>
* @return The isDefault.
*/
boolean getIsDefault();
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/CreateEnvironmentResponse.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/team.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
/**
* Protobuf type {@code chalk.server.v1.CreateEnvironmentResponse}
*/
public final class CreateEnvironmentResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.server.v1.CreateEnvironmentResponse)
CreateEnvironmentResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateEnvironmentResponse.newBuilder() to construct.
private CreateEnvironmentResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private CreateEnvironmentResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateEnvironmentResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_CreateEnvironmentResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_CreateEnvironmentResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.CreateEnvironmentResponse.class, ai.chalk.protos.chalk.server.v1.CreateEnvironmentResponse.Builder.class);
}
private int bitField0_;
public static final int ENVIRONMENT_FIELD_NUMBER = 1;
private ai.chalk.protos.chalk.server.v1.Environment environment_;
/**
* <code>.chalk.server.v1.Environment environment = 1 [json_name = "environment"];</code>
* @return Whether the environment field is set.
*/
@java.lang.Override
public boolean hasEnvironment() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <code>.chalk.server.v1.Environment environment = 1 [json_name = "environment"];</code>
* @return The environment.
*/
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.Environment getEnvironment() {
return environment_ == null ? ai.chalk.protos.chalk.server.v1.Environment.getDefaultInstance() : environment_;
}
/**
* <code>.chalk.server.v1.Environment environment = 1 [json_name = "environment"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.EnvironmentOrBuilder getEnvironmentOrBuilder() {
return environment_ == null ? ai.chalk.protos.chalk.server.v1.Environment.getDefaultInstance() : environment_;
}
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, getEnvironment());
}
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, getEnvironment());
}
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 ai.chalk.protos.chalk.server.v1.CreateEnvironmentResponse)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.server.v1.CreateEnvironmentResponse other = (ai.chalk.protos.chalk.server.v1.CreateEnvironmentResponse) obj;
if (hasEnvironment() != other.hasEnvironment()) return false;
if (hasEnvironment()) {
if (!getEnvironment()
.equals(other.getEnvironment())) 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 (hasEnvironment()) {
hash = (37 * hash) + ENVIRONMENT_FIELD_NUMBER;
hash = (53 * hash) + getEnvironment().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.server.v1.CreateEnvironmentResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CreateEnvironmentResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CreateEnvironmentResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CreateEnvironmentResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CreateEnvironmentResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CreateEnvironmentResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CreateEnvironmentResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CreateEnvironmentResponse 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 ai.chalk.protos.chalk.server.v1.CreateEnvironmentResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CreateEnvironmentResponse 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 ai.chalk.protos.chalk.server.v1.CreateEnvironmentResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CreateEnvironmentResponse 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(ai.chalk.protos.chalk.server.v1.CreateEnvironmentResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code chalk.server.v1.CreateEnvironmentResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.server.v1.CreateEnvironmentResponse)
ai.chalk.protos.chalk.server.v1.CreateEnvironmentResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_CreateEnvironmentResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_CreateEnvironmentResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.CreateEnvironmentResponse.class, ai.chalk.protos.chalk.server.v1.CreateEnvironmentResponse.Builder.class);
}
// Construct using ai.chalk.protos.chalk.server.v1.CreateEnvironmentResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getEnvironmentFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
environment_ = null;
if (environmentBuilder_ != null) {
environmentBuilder_.dispose();
environmentBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_CreateEnvironmentResponse_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateEnvironmentResponse getDefaultInstanceForType() {
return ai.chalk.protos.chalk.server.v1.CreateEnvironmentResponse.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateEnvironmentResponse build() {
ai.chalk.protos.chalk.server.v1.CreateEnvironmentResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateEnvironmentResponse buildPartial() {
ai.chalk.protos.chalk.server.v1.CreateEnvironmentResponse result = new ai.chalk.protos.chalk.server.v1.CreateEnvironmentResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ai.chalk.protos.chalk.server.v1.CreateEnvironmentResponse result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.environment_ = environmentBuilder_ == null
? environment_
: environmentBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.chalk.protos.chalk.server.v1.CreateEnvironmentResponse) {
return mergeFrom((ai.chalk.protos.chalk.server.v1.CreateEnvironmentResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.server.v1.CreateEnvironmentResponse other) {
if (other == ai.chalk.protos.chalk.server.v1.CreateEnvironmentResponse.getDefaultInstance()) return this;
if (other.hasEnvironment()) {
mergeEnvironment(other.getEnvironment());
}
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(
getEnvironmentFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
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 ai.chalk.protos.chalk.server.v1.Environment environment_;
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.Environment, ai.chalk.protos.chalk.server.v1.Environment.Builder, ai.chalk.protos.chalk.server.v1.EnvironmentOrBuilder> environmentBuilder_;
/**
* <code>.chalk.server.v1.Environment environment = 1 [json_name = "environment"];</code>
* @return Whether the environment field is set.
*/
public boolean hasEnvironment() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <code>.chalk.server.v1.Environment environment = 1 [json_name = "environment"];</code>
* @return The environment.
*/
public ai.chalk.protos.chalk.server.v1.Environment getEnvironment() {
if (environmentBuilder_ == null) {
return environment_ == null ? ai.chalk.protos.chalk.server.v1.Environment.getDefaultInstance() : environment_;
} else {
return environmentBuilder_.getMessage();
}
}
/**
* <code>.chalk.server.v1.Environment environment = 1 [json_name = "environment"];</code>
*/
public Builder setEnvironment(ai.chalk.protos.chalk.server.v1.Environment value) {
if (environmentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
environment_ = value;
} else {
environmentBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>.chalk.server.v1.Environment environment = 1 [json_name = "environment"];</code>
*/
public Builder setEnvironment(
ai.chalk.protos.chalk.server.v1.Environment.Builder builderForValue) {
if (environmentBuilder_ == null) {
environment_ = builderForValue.build();
} else {
environmentBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>.chalk.server.v1.Environment environment = 1 [json_name = "environment"];</code>
*/
public Builder mergeEnvironment(ai.chalk.protos.chalk.server.v1.Environment value) {
if (environmentBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
environment_ != null &&
environment_ != ai.chalk.protos.chalk.server.v1.Environment.getDefaultInstance()) {
getEnvironmentBuilder().mergeFrom(value);
} else {
environment_ = value;
}
} else {
environmentBuilder_.mergeFrom(value);
}
if (environment_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* <code>.chalk.server.v1.Environment environment = 1 [json_name = "environment"];</code>
*/
public Builder clearEnvironment() {
bitField0_ = (bitField0_ & ~0x00000001);
environment_ = null;
if (environmentBuilder_ != null) {
environmentBuilder_.dispose();
environmentBuilder_ = null;
}
onChanged();
return this;
}
/**
* <code>.chalk.server.v1.Environment environment = 1 [json_name = "environment"];</code>
*/
public ai.chalk.protos.chalk.server.v1.Environment.Builder getEnvironmentBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getEnvironmentFieldBuilder().getBuilder();
}
/**
* <code>.chalk.server.v1.Environment environment = 1 [json_name = "environment"];</code>
*/
public ai.chalk.protos.chalk.server.v1.EnvironmentOrBuilder getEnvironmentOrBuilder() {
if (environmentBuilder_ != null) {
return environmentBuilder_.getMessageOrBuilder();
} else {
return environment_ == null ?
ai.chalk.protos.chalk.server.v1.Environment.getDefaultInstance() : environment_;
}
}
/**
* <code>.chalk.server.v1.Environment environment = 1 [json_name = "environment"];</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.Environment, ai.chalk.protos.chalk.server.v1.Environment.Builder, ai.chalk.protos.chalk.server.v1.EnvironmentOrBuilder>
getEnvironmentFieldBuilder() {
if (environmentBuilder_ == null) {
environmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.Environment, ai.chalk.protos.chalk.server.v1.Environment.Builder, ai.chalk.protos.chalk.server.v1.EnvironmentOrBuilder>(
getEnvironment(),
getParentForChildren(),
isClean());
environment_ = null;
}
return environmentBuilder_;
}
@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:chalk.server.v1.CreateEnvironmentResponse)
}
// @@protoc_insertion_point(class_scope:chalk.server.v1.CreateEnvironmentResponse)
private static final ai.chalk.protos.chalk.server.v1.CreateEnvironmentResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.server.v1.CreateEnvironmentResponse();
}
public static ai.chalk.protos.chalk.server.v1.CreateEnvironmentResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<CreateEnvironmentResponse>
PARSER = new com.google.protobuf.AbstractParser<CreateEnvironmentResponse>() {
@java.lang.Override
public CreateEnvironmentResponse 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<CreateEnvironmentResponse> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<CreateEnvironmentResponse> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateEnvironmentResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/CreateEnvironmentResponseOrBuilder.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/team.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
public interface CreateEnvironmentResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.server.v1.CreateEnvironmentResponse)
com.google.protobuf.MessageOrBuilder {
/**
* <code>.chalk.server.v1.Environment environment = 1 [json_name = "environment"];</code>
* @return Whether the environment field is set.
*/
boolean hasEnvironment();
/**
* <code>.chalk.server.v1.Environment environment = 1 [json_name = "environment"];</code>
* @return The environment.
*/
ai.chalk.protos.chalk.server.v1.Environment getEnvironment();
/**
* <code>.chalk.server.v1.Environment environment = 1 [json_name = "environment"];</code>
*/
ai.chalk.protos.chalk.server.v1.EnvironmentOrBuilder getEnvironmentOrBuilder();
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/CreateLinkSessionRequest.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/link.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
/**
* <pre>
* CREATE LINK
* </pre>
*
* Protobuf type {@code chalk.server.v1.CreateLinkSessionRequest}
*/
public final class CreateLinkSessionRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.server.v1.CreateLinkSessionRequest)
CreateLinkSessionRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateLinkSessionRequest.newBuilder() to construct.
private CreateLinkSessionRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private CreateLinkSessionRequest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateLinkSessionRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.LinkProto.internal_static_chalk_server_v1_CreateLinkSessionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.LinkProto.internal_static_chalk_server_v1_CreateLinkSessionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.CreateLinkSessionRequest.class, ai.chalk.protos.chalk.server.v1.CreateLinkSessionRequest.Builder.class);
}
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 {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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 ai.chalk.protos.chalk.server.v1.CreateLinkSessionRequest)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.server.v1.CreateLinkSessionRequest other = (ai.chalk.protos.chalk.server.v1.CreateLinkSessionRequest) obj;
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 = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.server.v1.CreateLinkSessionRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CreateLinkSessionRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CreateLinkSessionRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CreateLinkSessionRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CreateLinkSessionRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CreateLinkSessionRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CreateLinkSessionRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CreateLinkSessionRequest 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 ai.chalk.protos.chalk.server.v1.CreateLinkSessionRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CreateLinkSessionRequest 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 ai.chalk.protos.chalk.server.v1.CreateLinkSessionRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CreateLinkSessionRequest 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(ai.chalk.protos.chalk.server.v1.CreateLinkSessionRequest 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;
}
/**
* <pre>
* CREATE LINK
* </pre>
*
* Protobuf type {@code chalk.server.v1.CreateLinkSessionRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.server.v1.CreateLinkSessionRequest)
ai.chalk.protos.chalk.server.v1.CreateLinkSessionRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.LinkProto.internal_static_chalk_server_v1_CreateLinkSessionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.LinkProto.internal_static_chalk_server_v1_CreateLinkSessionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.CreateLinkSessionRequest.class, ai.chalk.protos.chalk.server.v1.CreateLinkSessionRequest.Builder.class);
}
// Construct using ai.chalk.protos.chalk.server.v1.CreateLinkSessionRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.server.v1.LinkProto.internal_static_chalk_server_v1_CreateLinkSessionRequest_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateLinkSessionRequest getDefaultInstanceForType() {
return ai.chalk.protos.chalk.server.v1.CreateLinkSessionRequest.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateLinkSessionRequest build() {
ai.chalk.protos.chalk.server.v1.CreateLinkSessionRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateLinkSessionRequest buildPartial() {
ai.chalk.protos.chalk.server.v1.CreateLinkSessionRequest result = new ai.chalk.protos.chalk.server.v1.CreateLinkSessionRequest(this);
onBuilt();
return result;
}
@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 ai.chalk.protos.chalk.server.v1.CreateLinkSessionRequest) {
return mergeFrom((ai.chalk.protos.chalk.server.v1.CreateLinkSessionRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.server.v1.CreateLinkSessionRequest other) {
if (other == ai.chalk.protos.chalk.server.v1.CreateLinkSessionRequest.getDefaultInstance()) return this;
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;
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;
}
@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:chalk.server.v1.CreateLinkSessionRequest)
}
// @@protoc_insertion_point(class_scope:chalk.server.v1.CreateLinkSessionRequest)
private static final ai.chalk.protos.chalk.server.v1.CreateLinkSessionRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.server.v1.CreateLinkSessionRequest();
}
public static ai.chalk.protos.chalk.server.v1.CreateLinkSessionRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<CreateLinkSessionRequest>
PARSER = new com.google.protobuf.AbstractParser<CreateLinkSessionRequest>() {
@java.lang.Override
public CreateLinkSessionRequest 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<CreateLinkSessionRequest> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<CreateLinkSessionRequest> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateLinkSessionRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/CreateLinkSessionRequestOrBuilder.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/link.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
public interface CreateLinkSessionRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.server.v1.CreateLinkSessionRequest)
com.google.protobuf.MessageOrBuilder {
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/CreateLinkSessionResponse.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/link.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
/**
* Protobuf type {@code chalk.server.v1.CreateLinkSessionResponse}
*/
public final class CreateLinkSessionResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.server.v1.CreateLinkSessionResponse)
CreateLinkSessionResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateLinkSessionResponse.newBuilder() to construct.
private CreateLinkSessionResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private CreateLinkSessionResponse() {
linkCode_ = "";
authLink_ = "";
sessionId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateLinkSessionResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.LinkProto.internal_static_chalk_server_v1_CreateLinkSessionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.LinkProto.internal_static_chalk_server_v1_CreateLinkSessionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponse.class, ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponse.Builder.class);
}
private int bitField0_;
public static final int LINK_CODE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object linkCode_ = "";
/**
* <code>string link_code = 1 [json_name = "linkCode", (.chalk.utils.v1.sensitive) = true];</code>
* @return The linkCode.
*/
@java.lang.Override
public java.lang.String getLinkCode() {
java.lang.Object ref = linkCode_;
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();
linkCode_ = s;
return s;
}
}
/**
* <code>string link_code = 1 [json_name = "linkCode", (.chalk.utils.v1.sensitive) = true];</code>
* @return The bytes for linkCode.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLinkCodeBytes() {
java.lang.Object ref = linkCode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
linkCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int AUTH_LINK_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object authLink_ = "";
/**
* <code>string auth_link = 2 [json_name = "authLink", (.chalk.utils.v1.sensitive) = true];</code>
* @return The authLink.
*/
@java.lang.Override
public java.lang.String getAuthLink() {
java.lang.Object ref = authLink_;
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();
authLink_ = s;
return s;
}
}
/**
* <code>string auth_link = 2 [json_name = "authLink", (.chalk.utils.v1.sensitive) = true];</code>
* @return The bytes for authLink.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAuthLinkBytes() {
java.lang.Object ref = authLink_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
authLink_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EXPIRES_AT_FIELD_NUMBER = 3;
private com.google.protobuf.Timestamp expiresAt_;
/**
* <code>.google.protobuf.Timestamp expires_at = 3 [json_name = "expiresAt"];</code>
* @return Whether the expiresAt field is set.
*/
@java.lang.Override
public boolean hasExpiresAt() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <code>.google.protobuf.Timestamp expires_at = 3 [json_name = "expiresAt"];</code>
* @return The expiresAt.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getExpiresAt() {
return expiresAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expiresAt_;
}
/**
* <code>.google.protobuf.Timestamp expires_at = 3 [json_name = "expiresAt"];</code>
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getExpiresAtOrBuilder() {
return expiresAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expiresAt_;
}
public static final int SESSION_ID_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object sessionId_ = "";
/**
* <code>string session_id = 4 [json_name = "sessionId"];</code>
* @return The sessionId.
*/
@java.lang.Override
public java.lang.String getSessionId() {
java.lang.Object ref = sessionId_;
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();
sessionId_ = s;
return s;
}
}
/**
* <code>string session_id = 4 [json_name = "sessionId"];</code>
* @return The bytes for sessionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSessionIdBytes() {
java.lang.Object ref = sessionId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sessionId_ = 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(linkCode_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, linkCode_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(authLink_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, authLink_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(3, getExpiresAt());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sessionId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, sessionId_);
}
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(linkCode_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, linkCode_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(authLink_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, authLink_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getExpiresAt());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sessionId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, sessionId_);
}
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 ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponse)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponse other = (ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponse) obj;
if (!getLinkCode()
.equals(other.getLinkCode())) return false;
if (!getAuthLink()
.equals(other.getAuthLink())) return false;
if (hasExpiresAt() != other.hasExpiresAt()) return false;
if (hasExpiresAt()) {
if (!getExpiresAt()
.equals(other.getExpiresAt())) return false;
}
if (!getSessionId()
.equals(other.getSessionId())) 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) + LINK_CODE_FIELD_NUMBER;
hash = (53 * hash) + getLinkCode().hashCode();
hash = (37 * hash) + AUTH_LINK_FIELD_NUMBER;
hash = (53 * hash) + getAuthLink().hashCode();
if (hasExpiresAt()) {
hash = (37 * hash) + EXPIRES_AT_FIELD_NUMBER;
hash = (53 * hash) + getExpiresAt().hashCode();
}
hash = (37 * hash) + SESSION_ID_FIELD_NUMBER;
hash = (53 * hash) + getSessionId().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponse 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 ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponse 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 ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponse 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(ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code chalk.server.v1.CreateLinkSessionResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.server.v1.CreateLinkSessionResponse)
ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.LinkProto.internal_static_chalk_server_v1_CreateLinkSessionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.LinkProto.internal_static_chalk_server_v1_CreateLinkSessionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponse.class, ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponse.Builder.class);
}
// Construct using ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getExpiresAtFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
linkCode_ = "";
authLink_ = "";
expiresAt_ = null;
if (expiresAtBuilder_ != null) {
expiresAtBuilder_.dispose();
expiresAtBuilder_ = null;
}
sessionId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.server.v1.LinkProto.internal_static_chalk_server_v1_CreateLinkSessionResponse_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponse getDefaultInstanceForType() {
return ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponse.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponse build() {
ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponse buildPartial() {
ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponse result = new ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.linkCode_ = linkCode_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.authLink_ = authLink_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.expiresAt_ = expiresAtBuilder_ == null
? expiresAt_
: expiresAtBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.sessionId_ = sessionId_;
}
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 ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponse) {
return mergeFrom((ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponse other) {
if (other == ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponse.getDefaultInstance()) return this;
if (!other.getLinkCode().isEmpty()) {
linkCode_ = other.linkCode_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getAuthLink().isEmpty()) {
authLink_ = other.authLink_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasExpiresAt()) {
mergeExpiresAt(other.getExpiresAt());
}
if (!other.getSessionId().isEmpty()) {
sessionId_ = other.sessionId_;
bitField0_ |= 0x00000008;
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: {
linkCode_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
authLink_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getExpiresAtFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
sessionId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
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 java.lang.Object linkCode_ = "";
/**
* <code>string link_code = 1 [json_name = "linkCode", (.chalk.utils.v1.sensitive) = true];</code>
* @return The linkCode.
*/
public java.lang.String getLinkCode() {
java.lang.Object ref = linkCode_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
linkCode_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string link_code = 1 [json_name = "linkCode", (.chalk.utils.v1.sensitive) = true];</code>
* @return The bytes for linkCode.
*/
public com.google.protobuf.ByteString
getLinkCodeBytes() {
java.lang.Object ref = linkCode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
linkCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string link_code = 1 [json_name = "linkCode", (.chalk.utils.v1.sensitive) = true];</code>
* @param value The linkCode to set.
* @return This builder for chaining.
*/
public Builder setLinkCode(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
linkCode_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>string link_code = 1 [json_name = "linkCode", (.chalk.utils.v1.sensitive) = true];</code>
* @return This builder for chaining.
*/
public Builder clearLinkCode() {
linkCode_ = getDefaultInstance().getLinkCode();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* <code>string link_code = 1 [json_name = "linkCode", (.chalk.utils.v1.sensitive) = true];</code>
* @param value The bytes for linkCode to set.
* @return This builder for chaining.
*/
public Builder setLinkCodeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
linkCode_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object authLink_ = "";
/**
* <code>string auth_link = 2 [json_name = "authLink", (.chalk.utils.v1.sensitive) = true];</code>
* @return The authLink.
*/
public java.lang.String getAuthLink() {
java.lang.Object ref = authLink_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
authLink_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string auth_link = 2 [json_name = "authLink", (.chalk.utils.v1.sensitive) = true];</code>
* @return The bytes for authLink.
*/
public com.google.protobuf.ByteString
getAuthLinkBytes() {
java.lang.Object ref = authLink_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
authLink_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string auth_link = 2 [json_name = "authLink", (.chalk.utils.v1.sensitive) = true];</code>
* @param value The authLink to set.
* @return This builder for chaining.
*/
public Builder setAuthLink(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
authLink_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <code>string auth_link = 2 [json_name = "authLink", (.chalk.utils.v1.sensitive) = true];</code>
* @return This builder for chaining.
*/
public Builder clearAuthLink() {
authLink_ = getDefaultInstance().getAuthLink();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* <code>string auth_link = 2 [json_name = "authLink", (.chalk.utils.v1.sensitive) = true];</code>
* @param value The bytes for authLink to set.
* @return This builder for chaining.
*/
public Builder setAuthLinkBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
authLink_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private com.google.protobuf.Timestamp expiresAt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expiresAtBuilder_;
/**
* <code>.google.protobuf.Timestamp expires_at = 3 [json_name = "expiresAt"];</code>
* @return Whether the expiresAt field is set.
*/
public boolean hasExpiresAt() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* <code>.google.protobuf.Timestamp expires_at = 3 [json_name = "expiresAt"];</code>
* @return The expiresAt.
*/
public com.google.protobuf.Timestamp getExpiresAt() {
if (expiresAtBuilder_ == null) {
return expiresAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expiresAt_;
} else {
return expiresAtBuilder_.getMessage();
}
}
/**
* <code>.google.protobuf.Timestamp expires_at = 3 [json_name = "expiresAt"];</code>
*/
public Builder setExpiresAt(com.google.protobuf.Timestamp value) {
if (expiresAtBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
expiresAt_ = value;
} else {
expiresAtBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* <code>.google.protobuf.Timestamp expires_at = 3 [json_name = "expiresAt"];</code>
*/
public Builder setExpiresAt(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (expiresAtBuilder_ == null) {
expiresAt_ = builderForValue.build();
} else {
expiresAtBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* <code>.google.protobuf.Timestamp expires_at = 3 [json_name = "expiresAt"];</code>
*/
public Builder mergeExpiresAt(com.google.protobuf.Timestamp value) {
if (expiresAtBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
expiresAt_ != null &&
expiresAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getExpiresAtBuilder().mergeFrom(value);
} else {
expiresAt_ = value;
}
} else {
expiresAtBuilder_.mergeFrom(value);
}
if (expiresAt_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
* <code>.google.protobuf.Timestamp expires_at = 3 [json_name = "expiresAt"];</code>
*/
public Builder clearExpiresAt() {
bitField0_ = (bitField0_ & ~0x00000004);
expiresAt_ = null;
if (expiresAtBuilder_ != null) {
expiresAtBuilder_.dispose();
expiresAtBuilder_ = null;
}
onChanged();
return this;
}
/**
* <code>.google.protobuf.Timestamp expires_at = 3 [json_name = "expiresAt"];</code>
*/
public com.google.protobuf.Timestamp.Builder getExpiresAtBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getExpiresAtFieldBuilder().getBuilder();
}
/**
* <code>.google.protobuf.Timestamp expires_at = 3 [json_name = "expiresAt"];</code>
*/
public com.google.protobuf.TimestampOrBuilder getExpiresAtOrBuilder() {
if (expiresAtBuilder_ != null) {
return expiresAtBuilder_.getMessageOrBuilder();
} else {
return expiresAt_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : expiresAt_;
}
}
/**
* <code>.google.protobuf.Timestamp expires_at = 3 [json_name = "expiresAt"];</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getExpiresAtFieldBuilder() {
if (expiresAtBuilder_ == null) {
expiresAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getExpiresAt(),
getParentForChildren(),
isClean());
expiresAt_ = null;
}
return expiresAtBuilder_;
}
private java.lang.Object sessionId_ = "";
/**
* <code>string session_id = 4 [json_name = "sessionId"];</code>
* @return The sessionId.
*/
public java.lang.String getSessionId() {
java.lang.Object ref = sessionId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sessionId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string session_id = 4 [json_name = "sessionId"];</code>
* @return The bytes for sessionId.
*/
public com.google.protobuf.ByteString
getSessionIdBytes() {
java.lang.Object ref = sessionId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sessionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string session_id = 4 [json_name = "sessionId"];</code>
* @param value The sessionId to set.
* @return This builder for chaining.
*/
public Builder setSessionId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
sessionId_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* <code>string session_id = 4 [json_name = "sessionId"];</code>
* @return This builder for chaining.
*/
public Builder clearSessionId() {
sessionId_ = getDefaultInstance().getSessionId();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
* <code>string session_id = 4 [json_name = "sessionId"];</code>
* @param value The bytes for sessionId to set.
* @return This builder for chaining.
*/
public Builder setSessionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
sessionId_ = value;
bitField0_ |= 0x00000008;
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:chalk.server.v1.CreateLinkSessionResponse)
}
// @@protoc_insertion_point(class_scope:chalk.server.v1.CreateLinkSessionResponse)
private static final ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponse();
}
public static ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<CreateLinkSessionResponse>
PARSER = new com.google.protobuf.AbstractParser<CreateLinkSessionResponse>() {
@java.lang.Override
public CreateLinkSessionResponse 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<CreateLinkSessionResponse> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<CreateLinkSessionResponse> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateLinkSessionResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/CreateLinkSessionResponseOrBuilder.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/link.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
public interface CreateLinkSessionResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.server.v1.CreateLinkSessionResponse)
com.google.protobuf.MessageOrBuilder {
/**
* <code>string link_code = 1 [json_name = "linkCode", (.chalk.utils.v1.sensitive) = true];</code>
* @return The linkCode.
*/
java.lang.String getLinkCode();
/**
* <code>string link_code = 1 [json_name = "linkCode", (.chalk.utils.v1.sensitive) = true];</code>
* @return The bytes for linkCode.
*/
com.google.protobuf.ByteString
getLinkCodeBytes();
/**
* <code>string auth_link = 2 [json_name = "authLink", (.chalk.utils.v1.sensitive) = true];</code>
* @return The authLink.
*/
java.lang.String getAuthLink();
/**
* <code>string auth_link = 2 [json_name = "authLink", (.chalk.utils.v1.sensitive) = true];</code>
* @return The bytes for authLink.
*/
com.google.protobuf.ByteString
getAuthLinkBytes();
/**
* <code>.google.protobuf.Timestamp expires_at = 3 [json_name = "expiresAt"];</code>
* @return Whether the expiresAt field is set.
*/
boolean hasExpiresAt();
/**
* <code>.google.protobuf.Timestamp expires_at = 3 [json_name = "expiresAt"];</code>
* @return The expiresAt.
*/
com.google.protobuf.Timestamp getExpiresAt();
/**
* <code>.google.protobuf.Timestamp expires_at = 3 [json_name = "expiresAt"];</code>
*/
com.google.protobuf.TimestampOrBuilder getExpiresAtOrBuilder();
/**
* <code>string session_id = 4 [json_name = "sessionId"];</code>
* @return The sessionId.
*/
java.lang.String getSessionId();
/**
* <code>string session_id = 4 [json_name = "sessionId"];</code>
* @return The bytes for sessionId.
*/
com.google.protobuf.ByteString
getSessionIdBytes();
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/CreateProjectRequest.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/team.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
/**
* Protobuf type {@code chalk.server.v1.CreateProjectRequest}
*/
public final class CreateProjectRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.server.v1.CreateProjectRequest)
CreateProjectRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateProjectRequest.newBuilder() to construct.
private CreateProjectRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private CreateProjectRequest() {
name_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateProjectRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_CreateProjectRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_CreateProjectRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.CreateProjectRequest.class, ai.chalk.protos.chalk.server.v1.CreateProjectRequest.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
* <code>string name = 1 [json_name = "name"];</code>
* @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;
}
}
/**
* <code>string name = 1 [json_name = "name"];</code>
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
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_);
}
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 ai.chalk.protos.chalk.server.v1.CreateProjectRequest)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.server.v1.CreateProjectRequest other = (ai.chalk.protos.chalk.server.v1.CreateProjectRequest) obj;
if (!getName()
.equals(other.getName())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.server.v1.CreateProjectRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CreateProjectRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CreateProjectRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CreateProjectRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CreateProjectRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CreateProjectRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CreateProjectRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CreateProjectRequest 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 ai.chalk.protos.chalk.server.v1.CreateProjectRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CreateProjectRequest 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 ai.chalk.protos.chalk.server.v1.CreateProjectRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CreateProjectRequest 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(ai.chalk.protos.chalk.server.v1.CreateProjectRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code chalk.server.v1.CreateProjectRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.server.v1.CreateProjectRequest)
ai.chalk.protos.chalk.server.v1.CreateProjectRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_CreateProjectRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_CreateProjectRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.CreateProjectRequest.class, ai.chalk.protos.chalk.server.v1.CreateProjectRequest.Builder.class);
}
// Construct using ai.chalk.protos.chalk.server.v1.CreateProjectRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_CreateProjectRequest_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateProjectRequest getDefaultInstanceForType() {
return ai.chalk.protos.chalk.server.v1.CreateProjectRequest.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateProjectRequest build() {
ai.chalk.protos.chalk.server.v1.CreateProjectRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateProjectRequest buildPartial() {
ai.chalk.protos.chalk.server.v1.CreateProjectRequest result = new ai.chalk.protos.chalk.server.v1.CreateProjectRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ai.chalk.protos.chalk.server.v1.CreateProjectRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
}
@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 ai.chalk.protos.chalk.server.v1.CreateProjectRequest) {
return mergeFrom((ai.chalk.protos.chalk.server.v1.CreateProjectRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.server.v1.CreateProjectRequest other) {
if (other == ai.chalk.protos.chalk.server.v1.CreateProjectRequest.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
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_ = "";
/**
* <code>string name = 1 [json_name = "name"];</code>
* @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;
}
}
/**
* <code>string name = 1 [json_name = "name"];</code>
* @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;
}
}
/**
* <code>string name = 1 [json_name = "name"];</code>
* @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;
}
/**
* <code>string name = 1 [json_name = "name"];</code>
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* <code>string name = 1 [json_name = "name"];</code>
* @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;
}
@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:chalk.server.v1.CreateProjectRequest)
}
// @@protoc_insertion_point(class_scope:chalk.server.v1.CreateProjectRequest)
private static final ai.chalk.protos.chalk.server.v1.CreateProjectRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.server.v1.CreateProjectRequest();
}
public static ai.chalk.protos.chalk.server.v1.CreateProjectRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<CreateProjectRequest>
PARSER = new com.google.protobuf.AbstractParser<CreateProjectRequest>() {
@java.lang.Override
public CreateProjectRequest 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<CreateProjectRequest> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<CreateProjectRequest> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateProjectRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/CreateProjectRequestOrBuilder.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/team.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
public interface CreateProjectRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.server.v1.CreateProjectRequest)
com.google.protobuf.MessageOrBuilder {
/**
* <code>string name = 1 [json_name = "name"];</code>
* @return The name.
*/
java.lang.String getName();
/**
* <code>string name = 1 [json_name = "name"];</code>
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/CreateProjectResponse.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/team.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
/**
* Protobuf type {@code chalk.server.v1.CreateProjectResponse}
*/
public final class CreateProjectResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.server.v1.CreateProjectResponse)
CreateProjectResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateProjectResponse.newBuilder() to construct.
private CreateProjectResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private CreateProjectResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateProjectResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_CreateProjectResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_CreateProjectResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.CreateProjectResponse.class, ai.chalk.protos.chalk.server.v1.CreateProjectResponse.Builder.class);
}
private int bitField0_;
public static final int PROJECT_FIELD_NUMBER = 1;
private ai.chalk.protos.chalk.server.v1.Project project_;
/**
* <code>.chalk.server.v1.Project project = 1 [json_name = "project"];</code>
* @return Whether the project field is set.
*/
@java.lang.Override
public boolean hasProject() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <code>.chalk.server.v1.Project project = 1 [json_name = "project"];</code>
* @return The project.
*/
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.Project getProject() {
return project_ == null ? ai.chalk.protos.chalk.server.v1.Project.getDefaultInstance() : project_;
}
/**
* <code>.chalk.server.v1.Project project = 1 [json_name = "project"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.ProjectOrBuilder getProjectOrBuilder() {
return project_ == null ? ai.chalk.protos.chalk.server.v1.Project.getDefaultInstance() : project_;
}
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, getProject());
}
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, getProject());
}
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 ai.chalk.protos.chalk.server.v1.CreateProjectResponse)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.server.v1.CreateProjectResponse other = (ai.chalk.protos.chalk.server.v1.CreateProjectResponse) obj;
if (hasProject() != other.hasProject()) return false;
if (hasProject()) {
if (!getProject()
.equals(other.getProject())) 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 (hasProject()) {
hash = (37 * hash) + PROJECT_FIELD_NUMBER;
hash = (53 * hash) + getProject().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.server.v1.CreateProjectResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CreateProjectResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CreateProjectResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CreateProjectResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CreateProjectResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CreateProjectResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CreateProjectResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CreateProjectResponse 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 ai.chalk.protos.chalk.server.v1.CreateProjectResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CreateProjectResponse 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 ai.chalk.protos.chalk.server.v1.CreateProjectResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CreateProjectResponse 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(ai.chalk.protos.chalk.server.v1.CreateProjectResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code chalk.server.v1.CreateProjectResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.server.v1.CreateProjectResponse)
ai.chalk.protos.chalk.server.v1.CreateProjectResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_CreateProjectResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_CreateProjectResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.CreateProjectResponse.class, ai.chalk.protos.chalk.server.v1.CreateProjectResponse.Builder.class);
}
// Construct using ai.chalk.protos.chalk.server.v1.CreateProjectResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getProjectFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
project_ = null;
if (projectBuilder_ != null) {
projectBuilder_.dispose();
projectBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_CreateProjectResponse_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateProjectResponse getDefaultInstanceForType() {
return ai.chalk.protos.chalk.server.v1.CreateProjectResponse.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateProjectResponse build() {
ai.chalk.protos.chalk.server.v1.CreateProjectResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateProjectResponse buildPartial() {
ai.chalk.protos.chalk.server.v1.CreateProjectResponse result = new ai.chalk.protos.chalk.server.v1.CreateProjectResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ai.chalk.protos.chalk.server.v1.CreateProjectResponse result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.project_ = projectBuilder_ == null
? project_
: projectBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.chalk.protos.chalk.server.v1.CreateProjectResponse) {
return mergeFrom((ai.chalk.protos.chalk.server.v1.CreateProjectResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.server.v1.CreateProjectResponse other) {
if (other == ai.chalk.protos.chalk.server.v1.CreateProjectResponse.getDefaultInstance()) return this;
if (other.hasProject()) {
mergeProject(other.getProject());
}
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(
getProjectFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
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 ai.chalk.protos.chalk.server.v1.Project project_;
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.Project, ai.chalk.protos.chalk.server.v1.Project.Builder, ai.chalk.protos.chalk.server.v1.ProjectOrBuilder> projectBuilder_;
/**
* <code>.chalk.server.v1.Project project = 1 [json_name = "project"];</code>
* @return Whether the project field is set.
*/
public boolean hasProject() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <code>.chalk.server.v1.Project project = 1 [json_name = "project"];</code>
* @return The project.
*/
public ai.chalk.protos.chalk.server.v1.Project getProject() {
if (projectBuilder_ == null) {
return project_ == null ? ai.chalk.protos.chalk.server.v1.Project.getDefaultInstance() : project_;
} else {
return projectBuilder_.getMessage();
}
}
/**
* <code>.chalk.server.v1.Project project = 1 [json_name = "project"];</code>
*/
public Builder setProject(ai.chalk.protos.chalk.server.v1.Project value) {
if (projectBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
project_ = value;
} else {
projectBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>.chalk.server.v1.Project project = 1 [json_name = "project"];</code>
*/
public Builder setProject(
ai.chalk.protos.chalk.server.v1.Project.Builder builderForValue) {
if (projectBuilder_ == null) {
project_ = builderForValue.build();
} else {
projectBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>.chalk.server.v1.Project project = 1 [json_name = "project"];</code>
*/
public Builder mergeProject(ai.chalk.protos.chalk.server.v1.Project value) {
if (projectBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
project_ != null &&
project_ != ai.chalk.protos.chalk.server.v1.Project.getDefaultInstance()) {
getProjectBuilder().mergeFrom(value);
} else {
project_ = value;
}
} else {
projectBuilder_.mergeFrom(value);
}
if (project_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* <code>.chalk.server.v1.Project project = 1 [json_name = "project"];</code>
*/
public Builder clearProject() {
bitField0_ = (bitField0_ & ~0x00000001);
project_ = null;
if (projectBuilder_ != null) {
projectBuilder_.dispose();
projectBuilder_ = null;
}
onChanged();
return this;
}
/**
* <code>.chalk.server.v1.Project project = 1 [json_name = "project"];</code>
*/
public ai.chalk.protos.chalk.server.v1.Project.Builder getProjectBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getProjectFieldBuilder().getBuilder();
}
/**
* <code>.chalk.server.v1.Project project = 1 [json_name = "project"];</code>
*/
public ai.chalk.protos.chalk.server.v1.ProjectOrBuilder getProjectOrBuilder() {
if (projectBuilder_ != null) {
return projectBuilder_.getMessageOrBuilder();
} else {
return project_ == null ?
ai.chalk.protos.chalk.server.v1.Project.getDefaultInstance() : project_;
}
}
/**
* <code>.chalk.server.v1.Project project = 1 [json_name = "project"];</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.Project, ai.chalk.protos.chalk.server.v1.Project.Builder, ai.chalk.protos.chalk.server.v1.ProjectOrBuilder>
getProjectFieldBuilder() {
if (projectBuilder_ == null) {
projectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.Project, ai.chalk.protos.chalk.server.v1.Project.Builder, ai.chalk.protos.chalk.server.v1.ProjectOrBuilder>(
getProject(),
getParentForChildren(),
isClean());
project_ = null;
}
return projectBuilder_;
}
@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:chalk.server.v1.CreateProjectResponse)
}
// @@protoc_insertion_point(class_scope:chalk.server.v1.CreateProjectResponse)
private static final ai.chalk.protos.chalk.server.v1.CreateProjectResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.server.v1.CreateProjectResponse();
}
public static ai.chalk.protos.chalk.server.v1.CreateProjectResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<CreateProjectResponse>
PARSER = new com.google.protobuf.AbstractParser<CreateProjectResponse>() {
@java.lang.Override
public CreateProjectResponse 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<CreateProjectResponse> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<CreateProjectResponse> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateProjectResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/CreateProjectResponseOrBuilder.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/team.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
public interface CreateProjectResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.server.v1.CreateProjectResponse)
com.google.protobuf.MessageOrBuilder {
/**
* <code>.chalk.server.v1.Project project = 1 [json_name = "project"];</code>
* @return Whether the project field is set.
*/
boolean hasProject();
/**
* <code>.chalk.server.v1.Project project = 1 [json_name = "project"];</code>
* @return The project.
*/
ai.chalk.protos.chalk.server.v1.Project getProject();
/**
* <code>.chalk.server.v1.Project project = 1 [json_name = "project"];</code>
*/
ai.chalk.protos.chalk.server.v1.ProjectOrBuilder getProjectOrBuilder();
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/CreateServiceTokenRequest.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/team.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
/**
* Protobuf type {@code chalk.server.v1.CreateServiceTokenRequest}
*/
public final class CreateServiceTokenRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.server.v1.CreateServiceTokenRequest)
CreateServiceTokenRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateServiceTokenRequest.newBuilder() to construct.
private CreateServiceTokenRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private CreateServiceTokenRequest() {
name_ = "";
permissions_ = java.util.Collections.emptyList();
customClaims_ =
com.google.protobuf.LazyStringArrayList.emptyList();
customerClaims_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateServiceTokenRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_CreateServiceTokenRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 5:
return internalGetFeatureTagToPermission();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_CreateServiceTokenRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.CreateServiceTokenRequest.class, ai.chalk.protos.chalk.server.v1.CreateServiceTokenRequest.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
* <code>string name = 1 [json_name = "name"];</code>
* @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;
}
}
/**
* <code>string name = 1 [json_name = "name"];</code>
* @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 PERMISSIONS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List<java.lang.Integer> permissions_;
private static final com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, ai.chalk.protos.chalk.auth.v1.Permission> permissions_converter_ =
new com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, ai.chalk.protos.chalk.auth.v1.Permission>() {
public ai.chalk.protos.chalk.auth.v1.Permission convert(java.lang.Integer from) {
ai.chalk.protos.chalk.auth.v1.Permission result = ai.chalk.protos.chalk.auth.v1.Permission.forNumber(from);
return result == null ? ai.chalk.protos.chalk.auth.v1.Permission.UNRECOGNIZED : result;
}
};
/**
* <code>repeated .chalk.auth.v1.Permission permissions = 2 [json_name = "permissions"];</code>
* @return A list containing the permissions.
*/
@java.lang.Override
public java.util.List<ai.chalk.protos.chalk.auth.v1.Permission> getPermissionsList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, ai.chalk.protos.chalk.auth.v1.Permission>(permissions_, permissions_converter_);
}
/**
* <code>repeated .chalk.auth.v1.Permission permissions = 2 [json_name = "permissions"];</code>
* @return The count of permissions.
*/
@java.lang.Override
public int getPermissionsCount() {
return permissions_.size();
}
/**
* <code>repeated .chalk.auth.v1.Permission permissions = 2 [json_name = "permissions"];</code>
* @param index The index of the element to return.
* @return The permissions at the given index.
*/
@java.lang.Override
public ai.chalk.protos.chalk.auth.v1.Permission getPermissions(int index) {
return permissions_converter_.convert(permissions_.get(index));
}
/**
* <code>repeated .chalk.auth.v1.Permission permissions = 2 [json_name = "permissions"];</code>
* @return A list containing the enum numeric values on the wire for permissions.
*/
@java.lang.Override
public java.util.List<java.lang.Integer>
getPermissionsValueList() {
return permissions_;
}
/**
* <code>repeated .chalk.auth.v1.Permission permissions = 2 [json_name = "permissions"];</code>
* @param index The index of the value to return.
* @return The enum numeric value on the wire of permissions at the given index.
*/
@java.lang.Override
public int getPermissionsValue(int index) {
return permissions_.get(index);
}
private int permissionsMemoizedSerializedSize;
public static final int CUSTOM_CLAIMS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList customClaims_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* <code>repeated string custom_claims = 3 [json_name = "customClaims", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateServiceTokenRequest.custom_claims is deprecated.
* See chalk/server/v1/team.proto;l=104
* @return A list containing the customClaims.
*/
@java.lang.Deprecated public com.google.protobuf.ProtocolStringList
getCustomClaimsList() {
return customClaims_;
}
/**
* <code>repeated string custom_claims = 3 [json_name = "customClaims", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateServiceTokenRequest.custom_claims is deprecated.
* See chalk/server/v1/team.proto;l=104
* @return The count of customClaims.
*/
@java.lang.Deprecated public int getCustomClaimsCount() {
return customClaims_.size();
}
/**
* <code>repeated string custom_claims = 3 [json_name = "customClaims", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateServiceTokenRequest.custom_claims is deprecated.
* See chalk/server/v1/team.proto;l=104
* @param index The index of the element to return.
* @return The customClaims at the given index.
*/
@java.lang.Deprecated public java.lang.String getCustomClaims(int index) {
return customClaims_.get(index);
}
/**
* <code>repeated string custom_claims = 3 [json_name = "customClaims", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateServiceTokenRequest.custom_claims is deprecated.
* See chalk/server/v1/team.proto;l=104
* @param index The index of the value to return.
* @return The bytes of the customClaims at the given index.
*/
@java.lang.Deprecated public com.google.protobuf.ByteString
getCustomClaimsBytes(int index) {
return customClaims_.getByteString(index);
}
public static final int CUSTOMER_CLAIMS_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private java.util.List<ai.chalk.protos.chalk.auth.v1.CustomClaim> customerClaims_;
/**
* <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code>
*/
@java.lang.Override
public java.util.List<ai.chalk.protos.chalk.auth.v1.CustomClaim> getCustomerClaimsList() {
return customerClaims_;
}
/**
* <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code>
*/
@java.lang.Override
public java.util.List<? extends ai.chalk.protos.chalk.auth.v1.CustomClaimOrBuilder>
getCustomerClaimsOrBuilderList() {
return customerClaims_;
}
/**
* <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code>
*/
@java.lang.Override
public int getCustomerClaimsCount() {
return customerClaims_.size();
}
/**
* <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.auth.v1.CustomClaim getCustomerClaims(int index) {
return customerClaims_.get(index);
}
/**
* <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.auth.v1.CustomClaimOrBuilder getCustomerClaimsOrBuilder(
int index) {
return customerClaims_.get(index);
}
public static final int FEATURE_TAG_TO_PERMISSION_FIELD_NUMBER = 5;
private static final class FeatureTagToPermissionDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.Integer> defaultEntry =
com.google.protobuf.MapEntry
.<java.lang.String, java.lang.Integer>newDefaultInstance(
ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_CreateServiceTokenRequest_FeatureTagToPermissionEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.ENUM,
ai.chalk.protos.chalk.auth.v1.FeaturePermission.FEATURE_PERMISSION_UNSPECIFIED.getNumber());
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField<
java.lang.String, java.lang.Integer> featureTagToPermission_;
private com.google.protobuf.MapField<java.lang.String, java.lang.Integer>
internalGetFeatureTagToPermission() {
if (featureTagToPermission_ == null) {
return com.google.protobuf.MapField.emptyMapField(
FeatureTagToPermissionDefaultEntryHolder.defaultEntry);
}
return featureTagToPermission_;
}
private static final
com.google.protobuf.Internal.MapAdapter.Converter<
java.lang.Integer, ai.chalk.protos.chalk.auth.v1.FeaturePermission> featureTagToPermissionValueConverter =
com.google.protobuf.Internal.MapAdapter.newEnumConverter(
ai.chalk.protos.chalk.auth.v1.FeaturePermission.internalGetValueMap(),
ai.chalk.protos.chalk.auth.v1.FeaturePermission.UNRECOGNIZED);
private static final java.util.Map<java.lang.String, ai.chalk.protos.chalk.auth.v1.FeaturePermission>
internalGetAdaptedFeatureTagToPermissionMap(
java.util.Map<java.lang.String, java.lang.Integer> map) {
return new com.google.protobuf.Internal.MapAdapter<
java.lang.String, ai.chalk.protos.chalk.auth.v1.FeaturePermission, java.lang.Integer>(
map, featureTagToPermissionValueConverter);
}
public int getFeatureTagToPermissionCount() {
return internalGetFeatureTagToPermission().getMap().size();
}
/**
* <code>map<string, .chalk.auth.v1.FeaturePermission> feature_tag_to_permission = 5 [json_name = "featureTagToPermission"];</code>
*/
@java.lang.Override
public boolean containsFeatureTagToPermission(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetFeatureTagToPermission().getMap().containsKey(key);
}
/**
* Use {@link #getFeatureTagToPermissionMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map<java.lang.String, ai.chalk.protos.chalk.auth.v1.FeaturePermission>
getFeatureTagToPermission() {
return getFeatureTagToPermissionMap();
}
/**
* <code>map<string, .chalk.auth.v1.FeaturePermission> feature_tag_to_permission = 5 [json_name = "featureTagToPermission"];</code>
*/
@java.lang.Override
public java.util.Map<java.lang.String, ai.chalk.protos.chalk.auth.v1.FeaturePermission>
getFeatureTagToPermissionMap() {
return internalGetAdaptedFeatureTagToPermissionMap(
internalGetFeatureTagToPermission().getMap());}
/**
* <code>map<string, .chalk.auth.v1.FeaturePermission> feature_tag_to_permission = 5 [json_name = "featureTagToPermission"];</code>
*/
@java.lang.Override
public /* nullable */
ai.chalk.protos.chalk.auth.v1.FeaturePermission getFeatureTagToPermissionOrDefault(
java.lang.String key,
/* nullable */
ai.chalk.protos.chalk.auth.v1.FeaturePermission defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, java.lang.Integer> map =
internalGetFeatureTagToPermission().getMap();
return map.containsKey(key)
? featureTagToPermissionValueConverter.doForward(map.get(key))
: defaultValue;
}
/**
* <code>map<string, .chalk.auth.v1.FeaturePermission> feature_tag_to_permission = 5 [json_name = "featureTagToPermission"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.auth.v1.FeaturePermission getFeatureTagToPermissionOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, java.lang.Integer> map =
internalGetFeatureTagToPermission().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return featureTagToPermissionValueConverter.doForward(map.get(key));
}
/**
* Use {@link #getFeatureTagToPermissionValueMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map<java.lang.String, java.lang.Integer>
getFeatureTagToPermissionValue() {
return getFeatureTagToPermissionValueMap();
}
/**
* <code>map<string, .chalk.auth.v1.FeaturePermission> feature_tag_to_permission = 5 [json_name = "featureTagToPermission"];</code>
*/
@java.lang.Override
public java.util.Map<java.lang.String, java.lang.Integer>
getFeatureTagToPermissionValueMap() {
return internalGetFeatureTagToPermission().getMap();
}
/**
* <code>map<string, .chalk.auth.v1.FeaturePermission> feature_tag_to_permission = 5 [json_name = "featureTagToPermission"];</code>
*/
@java.lang.Override
public int getFeatureTagToPermissionValueOrDefault(
java.lang.String key,
int defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, java.lang.Integer> map =
internalGetFeatureTagToPermission().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <code>map<string, .chalk.auth.v1.FeaturePermission> feature_tag_to_permission = 5 [json_name = "featureTagToPermission"];</code>
*/
@java.lang.Override
public int getFeatureTagToPermissionValueOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, java.lang.Integer> map =
internalGetFeatureTagToPermission().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (getPermissionsList().size() > 0) {
output.writeUInt32NoTag(18);
output.writeUInt32NoTag(permissionsMemoizedSerializedSize);
}
for (int i = 0; i < permissions_.size(); i++) {
output.writeEnumNoTag(permissions_.get(i));
}
for (int i = 0; i < customClaims_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, customClaims_.getRaw(i));
}
for (int i = 0; i < customerClaims_.size(); i++) {
output.writeMessage(4, customerClaims_.get(i));
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetFeatureTagToPermission(),
FeatureTagToPermissionDefaultEntryHolder.defaultEntry,
5);
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_);
}
{
int dataSize = 0;
for (int i = 0; i < permissions_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeEnumSizeNoTag(permissions_.get(i));
}
size += dataSize;
if (!getPermissionsList().isEmpty()) { size += 1;
size += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(dataSize);
}permissionsMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < customClaims_.size(); i++) {
dataSize += computeStringSizeNoTag(customClaims_.getRaw(i));
}
size += dataSize;
size += 1 * getCustomClaimsList().size();
}
for (int i = 0; i < customerClaims_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, customerClaims_.get(i));
}
for (java.util.Map.Entry<java.lang.String, java.lang.Integer> entry
: internalGetFeatureTagToPermission().getMap().entrySet()) {
com.google.protobuf.MapEntry<java.lang.String, java.lang.Integer>
featureTagToPermission__ = FeatureTagToPermissionDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, featureTagToPermission__);
}
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 ai.chalk.protos.chalk.server.v1.CreateServiceTokenRequest)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.server.v1.CreateServiceTokenRequest other = (ai.chalk.protos.chalk.server.v1.CreateServiceTokenRequest) obj;
if (!getName()
.equals(other.getName())) return false;
if (!permissions_.equals(other.permissions_)) return false;
if (!getCustomClaimsList()
.equals(other.getCustomClaimsList())) return false;
if (!getCustomerClaimsList()
.equals(other.getCustomerClaimsList())) return false;
if (!internalGetFeatureTagToPermission().equals(
other.internalGetFeatureTagToPermission())) 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 (getPermissionsCount() > 0) {
hash = (37 * hash) + PERMISSIONS_FIELD_NUMBER;
hash = (53 * hash) + permissions_.hashCode();
}
if (getCustomClaimsCount() > 0) {
hash = (37 * hash) + CUSTOM_CLAIMS_FIELD_NUMBER;
hash = (53 * hash) + getCustomClaimsList().hashCode();
}
if (getCustomerClaimsCount() > 0) {
hash = (37 * hash) + CUSTOMER_CLAIMS_FIELD_NUMBER;
hash = (53 * hash) + getCustomerClaimsList().hashCode();
}
if (!internalGetFeatureTagToPermission().getMap().isEmpty()) {
hash = (37 * hash) + FEATURE_TAG_TO_PERMISSION_FIELD_NUMBER;
hash = (53 * hash) + internalGetFeatureTagToPermission().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.server.v1.CreateServiceTokenRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CreateServiceTokenRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CreateServiceTokenRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CreateServiceTokenRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CreateServiceTokenRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CreateServiceTokenRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CreateServiceTokenRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CreateServiceTokenRequest 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 ai.chalk.protos.chalk.server.v1.CreateServiceTokenRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CreateServiceTokenRequest 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 ai.chalk.protos.chalk.server.v1.CreateServiceTokenRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CreateServiceTokenRequest 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(ai.chalk.protos.chalk.server.v1.CreateServiceTokenRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code chalk.server.v1.CreateServiceTokenRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.server.v1.CreateServiceTokenRequest)
ai.chalk.protos.chalk.server.v1.CreateServiceTokenRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_CreateServiceTokenRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 5:
return internalGetFeatureTagToPermission();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
int number) {
switch (number) {
case 5:
return internalGetMutableFeatureTagToPermission();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_CreateServiceTokenRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.CreateServiceTokenRequest.class, ai.chalk.protos.chalk.server.v1.CreateServiceTokenRequest.Builder.class);
}
// Construct using ai.chalk.protos.chalk.server.v1.CreateServiceTokenRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
permissions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
customClaims_ =
com.google.protobuf.LazyStringArrayList.emptyList();
if (customerClaimsBuilder_ == null) {
customerClaims_ = java.util.Collections.emptyList();
} else {
customerClaims_ = null;
customerClaimsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
internalGetMutableFeatureTagToPermission().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_CreateServiceTokenRequest_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateServiceTokenRequest getDefaultInstanceForType() {
return ai.chalk.protos.chalk.server.v1.CreateServiceTokenRequest.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateServiceTokenRequest build() {
ai.chalk.protos.chalk.server.v1.CreateServiceTokenRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateServiceTokenRequest buildPartial() {
ai.chalk.protos.chalk.server.v1.CreateServiceTokenRequest result = new ai.chalk.protos.chalk.server.v1.CreateServiceTokenRequest(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(ai.chalk.protos.chalk.server.v1.CreateServiceTokenRequest result) {
if (((bitField0_ & 0x00000002) != 0)) {
permissions_ = java.util.Collections.unmodifiableList(permissions_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.permissions_ = permissions_;
if (customerClaimsBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
customerClaims_ = java.util.Collections.unmodifiableList(customerClaims_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.customerClaims_ = customerClaims_;
} else {
result.customerClaims_ = customerClaimsBuilder_.build();
}
}
private void buildPartial0(ai.chalk.protos.chalk.server.v1.CreateServiceTokenRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
customClaims_.makeImmutable();
result.customClaims_ = customClaims_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.featureTagToPermission_ = internalGetFeatureTagToPermission();
result.featureTagToPermission_.makeImmutable();
}
}
@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 ai.chalk.protos.chalk.server.v1.CreateServiceTokenRequest) {
return mergeFrom((ai.chalk.protos.chalk.server.v1.CreateServiceTokenRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.server.v1.CreateServiceTokenRequest other) {
if (other == ai.chalk.protos.chalk.server.v1.CreateServiceTokenRequest.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.permissions_.isEmpty()) {
if (permissions_.isEmpty()) {
permissions_ = other.permissions_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensurePermissionsIsMutable();
permissions_.addAll(other.permissions_);
}
onChanged();
}
if (!other.customClaims_.isEmpty()) {
if (customClaims_.isEmpty()) {
customClaims_ = other.customClaims_;
bitField0_ |= 0x00000004;
} else {
ensureCustomClaimsIsMutable();
customClaims_.addAll(other.customClaims_);
}
onChanged();
}
if (customerClaimsBuilder_ == null) {
if (!other.customerClaims_.isEmpty()) {
if (customerClaims_.isEmpty()) {
customerClaims_ = other.customerClaims_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureCustomerClaimsIsMutable();
customerClaims_.addAll(other.customerClaims_);
}
onChanged();
}
} else {
if (!other.customerClaims_.isEmpty()) {
if (customerClaimsBuilder_.isEmpty()) {
customerClaimsBuilder_.dispose();
customerClaimsBuilder_ = null;
customerClaims_ = other.customerClaims_;
bitField0_ = (bitField0_ & ~0x00000008);
customerClaimsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getCustomerClaimsFieldBuilder() : null;
} else {
customerClaimsBuilder_.addAllMessages(other.customerClaims_);
}
}
}
internalGetMutableFeatureTagToPermission().mergeFrom(
other.internalGetFeatureTagToPermission());
bitField0_ |= 0x00000010;
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
int tmpRaw = input.readEnum();
ensurePermissionsIsMutable();
permissions_.add(tmpRaw);
break;
} // case 16
case 18: {
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int tmpRaw = input.readEnum();
ensurePermissionsIsMutable();
permissions_.add(tmpRaw);
}
input.popLimit(oldLimit);
break;
} // case 18
case 26: {
java.lang.String s = input.readStringRequireUtf8();
ensureCustomClaimsIsMutable();
customClaims_.add(s);
break;
} // case 26
case 34: {
ai.chalk.protos.chalk.auth.v1.CustomClaim m =
input.readMessage(
ai.chalk.protos.chalk.auth.v1.CustomClaim.parser(),
extensionRegistry);
if (customerClaimsBuilder_ == null) {
ensureCustomerClaimsIsMutable();
customerClaims_.add(m);
} else {
customerClaimsBuilder_.addMessage(m);
}
break;
} // case 34
case 42: {
com.google.protobuf.MapEntry<java.lang.String, java.lang.Integer>
featureTagToPermission__ = input.readMessage(
FeatureTagToPermissionDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableFeatureTagToPermission().getMutableMap().put(
featureTagToPermission__.getKey(), featureTagToPermission__.getValue());
bitField0_ |= 0x00000010;
break;
} // case 42
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
* <code>string name = 1 [json_name = "name"];</code>
* @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;
}
}
/**
* <code>string name = 1 [json_name = "name"];</code>
* @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;
}
}
/**
* <code>string name = 1 [json_name = "name"];</code>
* @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;
}
/**
* <code>string name = 1 [json_name = "name"];</code>
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* <code>string name = 1 [json_name = "name"];</code>
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.util.List<java.lang.Integer> permissions_ =
java.util.Collections.emptyList();
private void ensurePermissionsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
permissions_ = new java.util.ArrayList<java.lang.Integer>(permissions_);
bitField0_ |= 0x00000002;
}
}
/**
* <code>repeated .chalk.auth.v1.Permission permissions = 2 [json_name = "permissions"];</code>
* @return A list containing the permissions.
*/
public java.util.List<ai.chalk.protos.chalk.auth.v1.Permission> getPermissionsList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, ai.chalk.protos.chalk.auth.v1.Permission>(permissions_, permissions_converter_);
}
/**
* <code>repeated .chalk.auth.v1.Permission permissions = 2 [json_name = "permissions"];</code>
* @return The count of permissions.
*/
public int getPermissionsCount() {
return permissions_.size();
}
/**
* <code>repeated .chalk.auth.v1.Permission permissions = 2 [json_name = "permissions"];</code>
* @param index The index of the element to return.
* @return The permissions at the given index.
*/
public ai.chalk.protos.chalk.auth.v1.Permission getPermissions(int index) {
return permissions_converter_.convert(permissions_.get(index));
}
/**
* <code>repeated .chalk.auth.v1.Permission permissions = 2 [json_name = "permissions"];</code>
* @param index The index to set the value at.
* @param value The permissions to set.
* @return This builder for chaining.
*/
public Builder setPermissions(
int index, ai.chalk.protos.chalk.auth.v1.Permission value) {
if (value == null) {
throw new NullPointerException();
}
ensurePermissionsIsMutable();
permissions_.set(index, value.getNumber());
onChanged();
return this;
}
/**
* <code>repeated .chalk.auth.v1.Permission permissions = 2 [json_name = "permissions"];</code>
* @param value The permissions to add.
* @return This builder for chaining.
*/
public Builder addPermissions(ai.chalk.protos.chalk.auth.v1.Permission value) {
if (value == null) {
throw new NullPointerException();
}
ensurePermissionsIsMutable();
permissions_.add(value.getNumber());
onChanged();
return this;
}
/**
* <code>repeated .chalk.auth.v1.Permission permissions = 2 [json_name = "permissions"];</code>
* @param values The permissions to add.
* @return This builder for chaining.
*/
public Builder addAllPermissions(
java.lang.Iterable<? extends ai.chalk.protos.chalk.auth.v1.Permission> values) {
ensurePermissionsIsMutable();
for (ai.chalk.protos.chalk.auth.v1.Permission value : values) {
permissions_.add(value.getNumber());
}
onChanged();
return this;
}
/**
* <code>repeated .chalk.auth.v1.Permission permissions = 2 [json_name = "permissions"];</code>
* @return This builder for chaining.
*/
public Builder clearPermissions() {
permissions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* <code>repeated .chalk.auth.v1.Permission permissions = 2 [json_name = "permissions"];</code>
* @return A list containing the enum numeric values on the wire for permissions.
*/
public java.util.List<java.lang.Integer>
getPermissionsValueList() {
return java.util.Collections.unmodifiableList(permissions_);
}
/**
* <code>repeated .chalk.auth.v1.Permission permissions = 2 [json_name = "permissions"];</code>
* @param index The index of the value to return.
* @return The enum numeric value on the wire of permissions at the given index.
*/
public int getPermissionsValue(int index) {
return permissions_.get(index);
}
/**
* <code>repeated .chalk.auth.v1.Permission permissions = 2 [json_name = "permissions"];</code>
* @param index The index to set the value at.
* @param value The enum numeric value on the wire for permissions to set.
* @return This builder for chaining.
*/
public Builder setPermissionsValue(
int index, int value) {
ensurePermissionsIsMutable();
permissions_.set(index, value);
onChanged();
return this;
}
/**
* <code>repeated .chalk.auth.v1.Permission permissions = 2 [json_name = "permissions"];</code>
* @param value The enum numeric value on the wire for permissions to add.
* @return This builder for chaining.
*/
public Builder addPermissionsValue(int value) {
ensurePermissionsIsMutable();
permissions_.add(value);
onChanged();
return this;
}
/**
* <code>repeated .chalk.auth.v1.Permission permissions = 2 [json_name = "permissions"];</code>
* @param values The enum numeric values on the wire for permissions to add.
* @return This builder for chaining.
*/
public Builder addAllPermissionsValue(
java.lang.Iterable<java.lang.Integer> values) {
ensurePermissionsIsMutable();
for (int value : values) {
permissions_.add(value);
}
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList customClaims_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureCustomClaimsIsMutable() {
if (!customClaims_.isModifiable()) {
customClaims_ = new com.google.protobuf.LazyStringArrayList(customClaims_);
}
bitField0_ |= 0x00000004;
}
/**
* <code>repeated string custom_claims = 3 [json_name = "customClaims", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateServiceTokenRequest.custom_claims is deprecated.
* See chalk/server/v1/team.proto;l=104
* @return A list containing the customClaims.
*/
@java.lang.Deprecated public com.google.protobuf.ProtocolStringList
getCustomClaimsList() {
customClaims_.makeImmutable();
return customClaims_;
}
/**
* <code>repeated string custom_claims = 3 [json_name = "customClaims", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateServiceTokenRequest.custom_claims is deprecated.
* See chalk/server/v1/team.proto;l=104
* @return The count of customClaims.
*/
@java.lang.Deprecated public int getCustomClaimsCount() {
return customClaims_.size();
}
/**
* <code>repeated string custom_claims = 3 [json_name = "customClaims", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateServiceTokenRequest.custom_claims is deprecated.
* See chalk/server/v1/team.proto;l=104
* @param index The index of the element to return.
* @return The customClaims at the given index.
*/
@java.lang.Deprecated public java.lang.String getCustomClaims(int index) {
return customClaims_.get(index);
}
/**
* <code>repeated string custom_claims = 3 [json_name = "customClaims", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateServiceTokenRequest.custom_claims is deprecated.
* See chalk/server/v1/team.proto;l=104
* @param index The index of the value to return.
* @return The bytes of the customClaims at the given index.
*/
@java.lang.Deprecated public com.google.protobuf.ByteString
getCustomClaimsBytes(int index) {
return customClaims_.getByteString(index);
}
/**
* <code>repeated string custom_claims = 3 [json_name = "customClaims", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateServiceTokenRequest.custom_claims is deprecated.
* See chalk/server/v1/team.proto;l=104
* @param index The index to set the value at.
* @param value The customClaims to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setCustomClaims(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureCustomClaimsIsMutable();
customClaims_.set(index, value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* <code>repeated string custom_claims = 3 [json_name = "customClaims", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateServiceTokenRequest.custom_claims is deprecated.
* See chalk/server/v1/team.proto;l=104
* @param value The customClaims to add.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder addCustomClaims(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureCustomClaimsIsMutable();
customClaims_.add(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* <code>repeated string custom_claims = 3 [json_name = "customClaims", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateServiceTokenRequest.custom_claims is deprecated.
* See chalk/server/v1/team.proto;l=104
* @param values The customClaims to add.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder addAllCustomClaims(
java.lang.Iterable<java.lang.String> values) {
ensureCustomClaimsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, customClaims_);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* <code>repeated string custom_claims = 3 [json_name = "customClaims", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateServiceTokenRequest.custom_claims is deprecated.
* See chalk/server/v1/team.proto;l=104
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearCustomClaims() {
customClaims_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);;
onChanged();
return this;
}
/**
* <code>repeated string custom_claims = 3 [json_name = "customClaims", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateServiceTokenRequest.custom_claims is deprecated.
* See chalk/server/v1/team.proto;l=104
* @param value The bytes of the customClaims to add.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder addCustomClaimsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureCustomClaimsIsMutable();
customClaims_.add(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.util.List<ai.chalk.protos.chalk.auth.v1.CustomClaim> customerClaims_ =
java.util.Collections.emptyList();
private void ensureCustomerClaimsIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
customerClaims_ = new java.util.ArrayList<ai.chalk.protos.chalk.auth.v1.CustomClaim>(customerClaims_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ai.chalk.protos.chalk.auth.v1.CustomClaim, ai.chalk.protos.chalk.auth.v1.CustomClaim.Builder, ai.chalk.protos.chalk.auth.v1.CustomClaimOrBuilder> customerClaimsBuilder_;
/**
* <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code>
*/
public java.util.List<ai.chalk.protos.chalk.auth.v1.CustomClaim> getCustomerClaimsList() {
if (customerClaimsBuilder_ == null) {
return java.util.Collections.unmodifiableList(customerClaims_);
} else {
return customerClaimsBuilder_.getMessageList();
}
}
/**
* <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code>
*/
public int getCustomerClaimsCount() {
if (customerClaimsBuilder_ == null) {
return customerClaims_.size();
} else {
return customerClaimsBuilder_.getCount();
}
}
/**
* <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code>
*/
public ai.chalk.protos.chalk.auth.v1.CustomClaim getCustomerClaims(int index) {
if (customerClaimsBuilder_ == null) {
return customerClaims_.get(index);
} else {
return customerClaimsBuilder_.getMessage(index);
}
}
/**
* <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code>
*/
public Builder setCustomerClaims(
int index, ai.chalk.protos.chalk.auth.v1.CustomClaim value) {
if (customerClaimsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCustomerClaimsIsMutable();
customerClaims_.set(index, value);
onChanged();
} else {
customerClaimsBuilder_.setMessage(index, value);
}
return this;
}
/**
* <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code>
*/
public Builder setCustomerClaims(
int index, ai.chalk.protos.chalk.auth.v1.CustomClaim.Builder builderForValue) {
if (customerClaimsBuilder_ == null) {
ensureCustomerClaimsIsMutable();
customerClaims_.set(index, builderForValue.build());
onChanged();
} else {
customerClaimsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code>
*/
public Builder addCustomerClaims(ai.chalk.protos.chalk.auth.v1.CustomClaim value) {
if (customerClaimsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCustomerClaimsIsMutable();
customerClaims_.add(value);
onChanged();
} else {
customerClaimsBuilder_.addMessage(value);
}
return this;
}
/**
* <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code>
*/
public Builder addCustomerClaims(
int index, ai.chalk.protos.chalk.auth.v1.CustomClaim value) {
if (customerClaimsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCustomerClaimsIsMutable();
customerClaims_.add(index, value);
onChanged();
} else {
customerClaimsBuilder_.addMessage(index, value);
}
return this;
}
/**
* <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code>
*/
public Builder addCustomerClaims(
ai.chalk.protos.chalk.auth.v1.CustomClaim.Builder builderForValue) {
if (customerClaimsBuilder_ == null) {
ensureCustomerClaimsIsMutable();
customerClaims_.add(builderForValue.build());
onChanged();
} else {
customerClaimsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code>
*/
public Builder addCustomerClaims(
int index, ai.chalk.protos.chalk.auth.v1.CustomClaim.Builder builderForValue) {
if (customerClaimsBuilder_ == null) {
ensureCustomerClaimsIsMutable();
customerClaims_.add(index, builderForValue.build());
onChanged();
} else {
customerClaimsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code>
*/
public Builder addAllCustomerClaims(
java.lang.Iterable<? extends ai.chalk.protos.chalk.auth.v1.CustomClaim> values) {
if (customerClaimsBuilder_ == null) {
ensureCustomerClaimsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, customerClaims_);
onChanged();
} else {
customerClaimsBuilder_.addAllMessages(values);
}
return this;
}
/**
* <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code>
*/
public Builder clearCustomerClaims() {
if (customerClaimsBuilder_ == null) {
customerClaims_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
customerClaimsBuilder_.clear();
}
return this;
}
/**
* <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code>
*/
public Builder removeCustomerClaims(int index) {
if (customerClaimsBuilder_ == null) {
ensureCustomerClaimsIsMutable();
customerClaims_.remove(index);
onChanged();
} else {
customerClaimsBuilder_.remove(index);
}
return this;
}
/**
* <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code>
*/
public ai.chalk.protos.chalk.auth.v1.CustomClaim.Builder getCustomerClaimsBuilder(
int index) {
return getCustomerClaimsFieldBuilder().getBuilder(index);
}
/**
* <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code>
*/
public ai.chalk.protos.chalk.auth.v1.CustomClaimOrBuilder getCustomerClaimsOrBuilder(
int index) {
if (customerClaimsBuilder_ == null) {
return customerClaims_.get(index); } else {
return customerClaimsBuilder_.getMessageOrBuilder(index);
}
}
/**
* <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code>
*/
public java.util.List<? extends ai.chalk.protos.chalk.auth.v1.CustomClaimOrBuilder>
getCustomerClaimsOrBuilderList() {
if (customerClaimsBuilder_ != null) {
return customerClaimsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(customerClaims_);
}
}
/**
* <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code>
*/
public ai.chalk.protos.chalk.auth.v1.CustomClaim.Builder addCustomerClaimsBuilder() {
return getCustomerClaimsFieldBuilder().addBuilder(
ai.chalk.protos.chalk.auth.v1.CustomClaim.getDefaultInstance());
}
/**
* <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code>
*/
public ai.chalk.protos.chalk.auth.v1.CustomClaim.Builder addCustomerClaimsBuilder(
int index) {
return getCustomerClaimsFieldBuilder().addBuilder(
index, ai.chalk.protos.chalk.auth.v1.CustomClaim.getDefaultInstance());
}
/**
* <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code>
*/
public java.util.List<ai.chalk.protos.chalk.auth.v1.CustomClaim.Builder>
getCustomerClaimsBuilderList() {
return getCustomerClaimsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ai.chalk.protos.chalk.auth.v1.CustomClaim, ai.chalk.protos.chalk.auth.v1.CustomClaim.Builder, ai.chalk.protos.chalk.auth.v1.CustomClaimOrBuilder>
getCustomerClaimsFieldBuilder() {
if (customerClaimsBuilder_ == null) {
customerClaimsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
ai.chalk.protos.chalk.auth.v1.CustomClaim, ai.chalk.protos.chalk.auth.v1.CustomClaim.Builder, ai.chalk.protos.chalk.auth.v1.CustomClaimOrBuilder>(
customerClaims_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
customerClaims_ = null;
}
return customerClaimsBuilder_;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.Integer> featureTagToPermission_;
private com.google.protobuf.MapField<java.lang.String, java.lang.Integer>
internalGetFeatureTagToPermission() {
if (featureTagToPermission_ == null) {
return com.google.protobuf.MapField.emptyMapField(
FeatureTagToPermissionDefaultEntryHolder.defaultEntry);
}
return featureTagToPermission_;
}
private com.google.protobuf.MapField<java.lang.String, java.lang.Integer>
internalGetMutableFeatureTagToPermission() {
if (featureTagToPermission_ == null) {
featureTagToPermission_ = com.google.protobuf.MapField.newMapField(
FeatureTagToPermissionDefaultEntryHolder.defaultEntry);
}
if (!featureTagToPermission_.isMutable()) {
featureTagToPermission_ = featureTagToPermission_.copy();
}
bitField0_ |= 0x00000010;
onChanged();
return featureTagToPermission_;
}
public int getFeatureTagToPermissionCount() {
return internalGetFeatureTagToPermission().getMap().size();
}
/**
* <code>map<string, .chalk.auth.v1.FeaturePermission> feature_tag_to_permission = 5 [json_name = "featureTagToPermission"];</code>
*/
@java.lang.Override
public boolean containsFeatureTagToPermission(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetFeatureTagToPermission().getMap().containsKey(key);
}
/**
* Use {@link #getFeatureTagToPermissionMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map<java.lang.String, ai.chalk.protos.chalk.auth.v1.FeaturePermission>
getFeatureTagToPermission() {
return getFeatureTagToPermissionMap();
}
/**
* <code>map<string, .chalk.auth.v1.FeaturePermission> feature_tag_to_permission = 5 [json_name = "featureTagToPermission"];</code>
*/
@java.lang.Override
public java.util.Map<java.lang.String, ai.chalk.protos.chalk.auth.v1.FeaturePermission>
getFeatureTagToPermissionMap() {
return internalGetAdaptedFeatureTagToPermissionMap(
internalGetFeatureTagToPermission().getMap());}
/**
* <code>map<string, .chalk.auth.v1.FeaturePermission> feature_tag_to_permission = 5 [json_name = "featureTagToPermission"];</code>
*/
@java.lang.Override
public /* nullable */
ai.chalk.protos.chalk.auth.v1.FeaturePermission getFeatureTagToPermissionOrDefault(
java.lang.String key,
/* nullable */
ai.chalk.protos.chalk.auth.v1.FeaturePermission defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, java.lang.Integer> map =
internalGetFeatureTagToPermission().getMap();
return map.containsKey(key)
? featureTagToPermissionValueConverter.doForward(map.get(key))
: defaultValue;
}
/**
* <code>map<string, .chalk.auth.v1.FeaturePermission> feature_tag_to_permission = 5 [json_name = "featureTagToPermission"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.auth.v1.FeaturePermission getFeatureTagToPermissionOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, java.lang.Integer> map =
internalGetFeatureTagToPermission().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return featureTagToPermissionValueConverter.doForward(map.get(key));
}
/**
* Use {@link #getFeatureTagToPermissionValueMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map<java.lang.String, java.lang.Integer>
getFeatureTagToPermissionValue() {
return getFeatureTagToPermissionValueMap();
}
/**
* <code>map<string, .chalk.auth.v1.FeaturePermission> feature_tag_to_permission = 5 [json_name = "featureTagToPermission"];</code>
*/
@java.lang.Override
public java.util.Map<java.lang.String, java.lang.Integer>
getFeatureTagToPermissionValueMap() {
return internalGetFeatureTagToPermission().getMap();
}
/**
* <code>map<string, .chalk.auth.v1.FeaturePermission> feature_tag_to_permission = 5 [json_name = "featureTagToPermission"];</code>
*/
@java.lang.Override
public int getFeatureTagToPermissionValueOrDefault(
java.lang.String key,
int defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, java.lang.Integer> map =
internalGetFeatureTagToPermission().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <code>map<string, .chalk.auth.v1.FeaturePermission> feature_tag_to_permission = 5 [json_name = "featureTagToPermission"];</code>
*/
@java.lang.Override
public int getFeatureTagToPermissionValueOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map<java.lang.String, java.lang.Integer> map =
internalGetFeatureTagToPermission().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearFeatureTagToPermission() {
bitField0_ = (bitField0_ & ~0x00000010);
internalGetMutableFeatureTagToPermission().getMutableMap()
.clear();
return this;
}
/**
* <code>map<string, .chalk.auth.v1.FeaturePermission> feature_tag_to_permission = 5 [json_name = "featureTagToPermission"];</code>
*/
public Builder removeFeatureTagToPermission(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableFeatureTagToPermission().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map<java.lang.String, ai.chalk.protos.chalk.auth.v1.FeaturePermission>
getMutableFeatureTagToPermission() {
bitField0_ |= 0x00000010;
return internalGetAdaptedFeatureTagToPermissionMap(
internalGetMutableFeatureTagToPermission().getMutableMap());
}
/**
* <code>map<string, .chalk.auth.v1.FeaturePermission> feature_tag_to_permission = 5 [json_name = "featureTagToPermission"];</code>
*/
public Builder putFeatureTagToPermission(
java.lang.String key,
ai.chalk.protos.chalk.auth.v1.FeaturePermission value) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableFeatureTagToPermission().getMutableMap()
.put(key, featureTagToPermissionValueConverter.doBackward(value));
bitField0_ |= 0x00000010;
return this;
}
/**
* <code>map<string, .chalk.auth.v1.FeaturePermission> feature_tag_to_permission = 5 [json_name = "featureTagToPermission"];</code>
*/
public Builder putAllFeatureTagToPermission(
java.util.Map<java.lang.String, ai.chalk.protos.chalk.auth.v1.FeaturePermission> values) {
internalGetAdaptedFeatureTagToPermissionMap(
internalGetMutableFeatureTagToPermission().getMutableMap())
.putAll(values);
bitField0_ |= 0x00000010;
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map<java.lang.String, java.lang.Integer>
getMutableFeatureTagToPermissionValue() {
bitField0_ |= 0x00000010;
return internalGetMutableFeatureTagToPermission().getMutableMap();
}
/**
* <code>map<string, .chalk.auth.v1.FeaturePermission> feature_tag_to_permission = 5 [json_name = "featureTagToPermission"];</code>
*/
public Builder putFeatureTagToPermissionValue(
java.lang.String key,
int value) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableFeatureTagToPermission().getMutableMap()
.put(key, value);
bitField0_ |= 0x00000010;
return this;
}
/**
* <code>map<string, .chalk.auth.v1.FeaturePermission> feature_tag_to_permission = 5 [json_name = "featureTagToPermission"];</code>
*/
public Builder putAllFeatureTagToPermissionValue(
java.util.Map<java.lang.String, java.lang.Integer> values) {
internalGetMutableFeatureTagToPermission().getMutableMap()
.putAll(values);
bitField0_ |= 0x00000010;
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:chalk.server.v1.CreateServiceTokenRequest)
}
// @@protoc_insertion_point(class_scope:chalk.server.v1.CreateServiceTokenRequest)
private static final ai.chalk.protos.chalk.server.v1.CreateServiceTokenRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.server.v1.CreateServiceTokenRequest();
}
public static ai.chalk.protos.chalk.server.v1.CreateServiceTokenRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<CreateServiceTokenRequest>
PARSER = new com.google.protobuf.AbstractParser<CreateServiceTokenRequest>() {
@java.lang.Override
public CreateServiceTokenRequest 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<CreateServiceTokenRequest> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<CreateServiceTokenRequest> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateServiceTokenRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/CreateServiceTokenRequestOrBuilder.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/team.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
public interface CreateServiceTokenRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.server.v1.CreateServiceTokenRequest)
com.google.protobuf.MessageOrBuilder {
/**
* <code>string name = 1 [json_name = "name"];</code>
* @return The name.
*/
java.lang.String getName();
/**
* <code>string name = 1 [json_name = "name"];</code>
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* <code>repeated .chalk.auth.v1.Permission permissions = 2 [json_name = "permissions"];</code>
* @return A list containing the permissions.
*/
java.util.List<ai.chalk.protos.chalk.auth.v1.Permission> getPermissionsList();
/**
* <code>repeated .chalk.auth.v1.Permission permissions = 2 [json_name = "permissions"];</code>
* @return The count of permissions.
*/
int getPermissionsCount();
/**
* <code>repeated .chalk.auth.v1.Permission permissions = 2 [json_name = "permissions"];</code>
* @param index The index of the element to return.
* @return The permissions at the given index.
*/
ai.chalk.protos.chalk.auth.v1.Permission getPermissions(int index);
/**
* <code>repeated .chalk.auth.v1.Permission permissions = 2 [json_name = "permissions"];</code>
* @return A list containing the enum numeric values on the wire for permissions.
*/
java.util.List<java.lang.Integer>
getPermissionsValueList();
/**
* <code>repeated .chalk.auth.v1.Permission permissions = 2 [json_name = "permissions"];</code>
* @param index The index of the value to return.
* @return The enum numeric value on the wire of permissions at the given index.
*/
int getPermissionsValue(int index);
/**
* <code>repeated string custom_claims = 3 [json_name = "customClaims", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateServiceTokenRequest.custom_claims is deprecated.
* See chalk/server/v1/team.proto;l=104
* @return A list containing the customClaims.
*/
@java.lang.Deprecated java.util.List<java.lang.String>
getCustomClaimsList();
/**
* <code>repeated string custom_claims = 3 [json_name = "customClaims", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateServiceTokenRequest.custom_claims is deprecated.
* See chalk/server/v1/team.proto;l=104
* @return The count of customClaims.
*/
@java.lang.Deprecated int getCustomClaimsCount();
/**
* <code>repeated string custom_claims = 3 [json_name = "customClaims", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateServiceTokenRequest.custom_claims is deprecated.
* See chalk/server/v1/team.proto;l=104
* @param index The index of the element to return.
* @return The customClaims at the given index.
*/
@java.lang.Deprecated java.lang.String getCustomClaims(int index);
/**
* <code>repeated string custom_claims = 3 [json_name = "customClaims", deprecated = true];</code>
* @deprecated chalk.server.v1.CreateServiceTokenRequest.custom_claims is deprecated.
* See chalk/server/v1/team.proto;l=104
* @param index The index of the value to return.
* @return The bytes of the customClaims at the given index.
*/
@java.lang.Deprecated com.google.protobuf.ByteString
getCustomClaimsBytes(int index);
/**
* <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code>
*/
java.util.List<ai.chalk.protos.chalk.auth.v1.CustomClaim>
getCustomerClaimsList();
/**
* <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code>
*/
ai.chalk.protos.chalk.auth.v1.CustomClaim getCustomerClaims(int index);
/**
* <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code>
*/
int getCustomerClaimsCount();
/**
* <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code>
*/
java.util.List<? extends ai.chalk.protos.chalk.auth.v1.CustomClaimOrBuilder>
getCustomerClaimsOrBuilderList();
/**
* <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code>
*/
ai.chalk.protos.chalk.auth.v1.CustomClaimOrBuilder getCustomerClaimsOrBuilder(
int index);
/**
* <code>map<string, .chalk.auth.v1.FeaturePermission> feature_tag_to_permission = 5 [json_name = "featureTagToPermission"];</code>
*/
int getFeatureTagToPermissionCount();
/**
* <code>map<string, .chalk.auth.v1.FeaturePermission> feature_tag_to_permission = 5 [json_name = "featureTagToPermission"];</code>
*/
boolean containsFeatureTagToPermission(
java.lang.String key);
/**
* Use {@link #getFeatureTagToPermissionMap()} instead.
*/
@java.lang.Deprecated
java.util.Map<java.lang.String, ai.chalk.protos.chalk.auth.v1.FeaturePermission>
getFeatureTagToPermission();
/**
* <code>map<string, .chalk.auth.v1.FeaturePermission> feature_tag_to_permission = 5 [json_name = "featureTagToPermission"];</code>
*/
java.util.Map<java.lang.String, ai.chalk.protos.chalk.auth.v1.FeaturePermission>
getFeatureTagToPermissionMap();
/**
* <code>map<string, .chalk.auth.v1.FeaturePermission> feature_tag_to_permission = 5 [json_name = "featureTagToPermission"];</code>
*/
/* nullable */
ai.chalk.protos.chalk.auth.v1.FeaturePermission getFeatureTagToPermissionOrDefault(
java.lang.String key,
/* nullable */
ai.chalk.protos.chalk.auth.v1.FeaturePermission defaultValue);
/**
* <code>map<string, .chalk.auth.v1.FeaturePermission> feature_tag_to_permission = 5 [json_name = "featureTagToPermission"];</code>
*/
ai.chalk.protos.chalk.auth.v1.FeaturePermission getFeatureTagToPermissionOrThrow(
java.lang.String key);
/**
* Use {@link #getFeatureTagToPermissionValueMap()} instead.
*/
@java.lang.Deprecated
java.util.Map<java.lang.String, java.lang.Integer>
getFeatureTagToPermissionValue();
/**
* <code>map<string, .chalk.auth.v1.FeaturePermission> feature_tag_to_permission = 5 [json_name = "featureTagToPermission"];</code>
*/
java.util.Map<java.lang.String, java.lang.Integer>
getFeatureTagToPermissionValueMap();
/**
* <code>map<string, .chalk.auth.v1.FeaturePermission> feature_tag_to_permission = 5 [json_name = "featureTagToPermission"];</code>
*/
int getFeatureTagToPermissionValueOrDefault(
java.lang.String key,
int defaultValue);
/**
* <code>map<string, .chalk.auth.v1.FeaturePermission> feature_tag_to_permission = 5 [json_name = "featureTagToPermission"];</code>
*/
int getFeatureTagToPermissionValueOrThrow(
java.lang.String key);
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/CreateServiceTokenResponse.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/team.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
/**
* Protobuf type {@code chalk.server.v1.CreateServiceTokenResponse}
*/
public final class CreateServiceTokenResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.server.v1.CreateServiceTokenResponse)
CreateServiceTokenResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateServiceTokenResponse.newBuilder() to construct.
private CreateServiceTokenResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private CreateServiceTokenResponse() {
clientSecret_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateServiceTokenResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_CreateServiceTokenResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_CreateServiceTokenResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.CreateServiceTokenResponse.class, ai.chalk.protos.chalk.server.v1.CreateServiceTokenResponse.Builder.class);
}
private int bitField0_;
public static final int AGENT_FIELD_NUMBER = 1;
private ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent agent_;
/**
* <code>.chalk.auth.v1.ServiceTokenAgent agent = 1 [json_name = "agent"];</code>
* @return Whether the agent field is set.
*/
@java.lang.Override
public boolean hasAgent() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <code>.chalk.auth.v1.ServiceTokenAgent agent = 1 [json_name = "agent"];</code>
* @return The agent.
*/
@java.lang.Override
public ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent getAgent() {
return agent_ == null ? ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent.getDefaultInstance() : agent_;
}
/**
* <code>.chalk.auth.v1.ServiceTokenAgent agent = 1 [json_name = "agent"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.auth.v1.ServiceTokenAgentOrBuilder getAgentOrBuilder() {
return agent_ == null ? ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent.getDefaultInstance() : agent_;
}
public static final int CLIENT_SECRET_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object clientSecret_ = "";
/**
* <code>string client_secret = 2 [json_name = "clientSecret", (.chalk.utils.v1.sensitive) = true];</code>
* @return The clientSecret.
*/
@java.lang.Override
public java.lang.String getClientSecret() {
java.lang.Object ref = clientSecret_;
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();
clientSecret_ = s;
return s;
}
}
/**
* <code>string client_secret = 2 [json_name = "clientSecret", (.chalk.utils.v1.sensitive) = true];</code>
* @return The bytes for clientSecret.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getClientSecretBytes() {
java.lang.Object ref = clientSecret_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clientSecret_ = 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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getAgent());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientSecret_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clientSecret_);
}
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, getAgent());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientSecret_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clientSecret_);
}
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 ai.chalk.protos.chalk.server.v1.CreateServiceTokenResponse)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.server.v1.CreateServiceTokenResponse other = (ai.chalk.protos.chalk.server.v1.CreateServiceTokenResponse) obj;
if (hasAgent() != other.hasAgent()) return false;
if (hasAgent()) {
if (!getAgent()
.equals(other.getAgent())) return false;
}
if (!getClientSecret()
.equals(other.getClientSecret())) 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 (hasAgent()) {
hash = (37 * hash) + AGENT_FIELD_NUMBER;
hash = (53 * hash) + getAgent().hashCode();
}
hash = (37 * hash) + CLIENT_SECRET_FIELD_NUMBER;
hash = (53 * hash) + getClientSecret().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.server.v1.CreateServiceTokenResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CreateServiceTokenResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CreateServiceTokenResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CreateServiceTokenResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CreateServiceTokenResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CreateServiceTokenResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CreateServiceTokenResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CreateServiceTokenResponse 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 ai.chalk.protos.chalk.server.v1.CreateServiceTokenResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CreateServiceTokenResponse 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 ai.chalk.protos.chalk.server.v1.CreateServiceTokenResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CreateServiceTokenResponse 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(ai.chalk.protos.chalk.server.v1.CreateServiceTokenResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code chalk.server.v1.CreateServiceTokenResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.server.v1.CreateServiceTokenResponse)
ai.chalk.protos.chalk.server.v1.CreateServiceTokenResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_CreateServiceTokenResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_CreateServiceTokenResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.CreateServiceTokenResponse.class, ai.chalk.protos.chalk.server.v1.CreateServiceTokenResponse.Builder.class);
}
// Construct using ai.chalk.protos.chalk.server.v1.CreateServiceTokenResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAgentFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
agent_ = null;
if (agentBuilder_ != null) {
agentBuilder_.dispose();
agentBuilder_ = null;
}
clientSecret_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_CreateServiceTokenResponse_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateServiceTokenResponse getDefaultInstanceForType() {
return ai.chalk.protos.chalk.server.v1.CreateServiceTokenResponse.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateServiceTokenResponse build() {
ai.chalk.protos.chalk.server.v1.CreateServiceTokenResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateServiceTokenResponse buildPartial() {
ai.chalk.protos.chalk.server.v1.CreateServiceTokenResponse result = new ai.chalk.protos.chalk.server.v1.CreateServiceTokenResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ai.chalk.protos.chalk.server.v1.CreateServiceTokenResponse result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.agent_ = agentBuilder_ == null
? agent_
: agentBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.clientSecret_ = clientSecret_;
}
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 ai.chalk.protos.chalk.server.v1.CreateServiceTokenResponse) {
return mergeFrom((ai.chalk.protos.chalk.server.v1.CreateServiceTokenResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.server.v1.CreateServiceTokenResponse other) {
if (other == ai.chalk.protos.chalk.server.v1.CreateServiceTokenResponse.getDefaultInstance()) return this;
if (other.hasAgent()) {
mergeAgent(other.getAgent());
}
if (!other.getClientSecret().isEmpty()) {
clientSecret_ = other.clientSecret_;
bitField0_ |= 0x00000002;
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: {
input.readMessage(
getAgentFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
clientSecret_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent agent_;
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent, ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent.Builder, ai.chalk.protos.chalk.auth.v1.ServiceTokenAgentOrBuilder> agentBuilder_;
/**
* <code>.chalk.auth.v1.ServiceTokenAgent agent = 1 [json_name = "agent"];</code>
* @return Whether the agent field is set.
*/
public boolean hasAgent() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <code>.chalk.auth.v1.ServiceTokenAgent agent = 1 [json_name = "agent"];</code>
* @return The agent.
*/
public ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent getAgent() {
if (agentBuilder_ == null) {
return agent_ == null ? ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent.getDefaultInstance() : agent_;
} else {
return agentBuilder_.getMessage();
}
}
/**
* <code>.chalk.auth.v1.ServiceTokenAgent agent = 1 [json_name = "agent"];</code>
*/
public Builder setAgent(ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent value) {
if (agentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
agent_ = value;
} else {
agentBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>.chalk.auth.v1.ServiceTokenAgent agent = 1 [json_name = "agent"];</code>
*/
public Builder setAgent(
ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent.Builder builderForValue) {
if (agentBuilder_ == null) {
agent_ = builderForValue.build();
} else {
agentBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>.chalk.auth.v1.ServiceTokenAgent agent = 1 [json_name = "agent"];</code>
*/
public Builder mergeAgent(ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent value) {
if (agentBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
agent_ != null &&
agent_ != ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent.getDefaultInstance()) {
getAgentBuilder().mergeFrom(value);
} else {
agent_ = value;
}
} else {
agentBuilder_.mergeFrom(value);
}
if (agent_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* <code>.chalk.auth.v1.ServiceTokenAgent agent = 1 [json_name = "agent"];</code>
*/
public Builder clearAgent() {
bitField0_ = (bitField0_ & ~0x00000001);
agent_ = null;
if (agentBuilder_ != null) {
agentBuilder_.dispose();
agentBuilder_ = null;
}
onChanged();
return this;
}
/**
* <code>.chalk.auth.v1.ServiceTokenAgent agent = 1 [json_name = "agent"];</code>
*/
public ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent.Builder getAgentBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getAgentFieldBuilder().getBuilder();
}
/**
* <code>.chalk.auth.v1.ServiceTokenAgent agent = 1 [json_name = "agent"];</code>
*/
public ai.chalk.protos.chalk.auth.v1.ServiceTokenAgentOrBuilder getAgentOrBuilder() {
if (agentBuilder_ != null) {
return agentBuilder_.getMessageOrBuilder();
} else {
return agent_ == null ?
ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent.getDefaultInstance() : agent_;
}
}
/**
* <code>.chalk.auth.v1.ServiceTokenAgent agent = 1 [json_name = "agent"];</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent, ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent.Builder, ai.chalk.protos.chalk.auth.v1.ServiceTokenAgentOrBuilder>
getAgentFieldBuilder() {
if (agentBuilder_ == null) {
agentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent, ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent.Builder, ai.chalk.protos.chalk.auth.v1.ServiceTokenAgentOrBuilder>(
getAgent(),
getParentForChildren(),
isClean());
agent_ = null;
}
return agentBuilder_;
}
private java.lang.Object clientSecret_ = "";
/**
* <code>string client_secret = 2 [json_name = "clientSecret", (.chalk.utils.v1.sensitive) = true];</code>
* @return The clientSecret.
*/
public java.lang.String getClientSecret() {
java.lang.Object ref = clientSecret_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
clientSecret_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string client_secret = 2 [json_name = "clientSecret", (.chalk.utils.v1.sensitive) = true];</code>
* @return The bytes for clientSecret.
*/
public com.google.protobuf.ByteString
getClientSecretBytes() {
java.lang.Object ref = clientSecret_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clientSecret_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string client_secret = 2 [json_name = "clientSecret", (.chalk.utils.v1.sensitive) = true];</code>
* @param value The clientSecret to set.
* @return This builder for chaining.
*/
public Builder setClientSecret(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
clientSecret_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <code>string client_secret = 2 [json_name = "clientSecret", (.chalk.utils.v1.sensitive) = true];</code>
* @return This builder for chaining.
*/
public Builder clearClientSecret() {
clientSecret_ = getDefaultInstance().getClientSecret();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* <code>string client_secret = 2 [json_name = "clientSecret", (.chalk.utils.v1.sensitive) = true];</code>
* @param value The bytes for clientSecret to set.
* @return This builder for chaining.
*/
public Builder setClientSecretBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
clientSecret_ = value;
bitField0_ |= 0x00000002;
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:chalk.server.v1.CreateServiceTokenResponse)
}
// @@protoc_insertion_point(class_scope:chalk.server.v1.CreateServiceTokenResponse)
private static final ai.chalk.protos.chalk.server.v1.CreateServiceTokenResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.server.v1.CreateServiceTokenResponse();
}
public static ai.chalk.protos.chalk.server.v1.CreateServiceTokenResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<CreateServiceTokenResponse>
PARSER = new com.google.protobuf.AbstractParser<CreateServiceTokenResponse>() {
@java.lang.Override
public CreateServiceTokenResponse 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<CreateServiceTokenResponse> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<CreateServiceTokenResponse> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateServiceTokenResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/CreateServiceTokenResponseOrBuilder.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/team.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
public interface CreateServiceTokenResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.server.v1.CreateServiceTokenResponse)
com.google.protobuf.MessageOrBuilder {
/**
* <code>.chalk.auth.v1.ServiceTokenAgent agent = 1 [json_name = "agent"];</code>
* @return Whether the agent field is set.
*/
boolean hasAgent();
/**
* <code>.chalk.auth.v1.ServiceTokenAgent agent = 1 [json_name = "agent"];</code>
* @return The agent.
*/
ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent getAgent();
/**
* <code>.chalk.auth.v1.ServiceTokenAgent agent = 1 [json_name = "agent"];</code>
*/
ai.chalk.protos.chalk.auth.v1.ServiceTokenAgentOrBuilder getAgentOrBuilder();
/**
* <code>string client_secret = 2 [json_name = "clientSecret", (.chalk.utils.v1.sensitive) = true];</code>
* @return The clientSecret.
*/
java.lang.String getClientSecret();
/**
* <code>string client_secret = 2 [json_name = "clientSecret", (.chalk.utils.v1.sensitive) = true];</code>
* @return The bytes for clientSecret.
*/
com.google.protobuf.ByteString
getClientSecretBytes();
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/CreateTeamRequest.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/team.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
/**
* Protobuf type {@code chalk.server.v1.CreateTeamRequest}
*/
public final class CreateTeamRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.server.v1.CreateTeamRequest)
CreateTeamRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateTeamRequest.newBuilder() to construct.
private CreateTeamRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private CreateTeamRequest() {
name_ = "";
slug_ = "";
logo_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateTeamRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_CreateTeamRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_CreateTeamRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.CreateTeamRequest.class, ai.chalk.protos.chalk.server.v1.CreateTeamRequest.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
* <code>string name = 1 [json_name = "name"];</code>
* @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;
}
}
/**
* <code>string name = 1 [json_name = "name"];</code>
* @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 SLUG_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object slug_ = "";
/**
* <code>string slug = 2 [json_name = "slug"];</code>
* @return The slug.
*/
@java.lang.Override
public java.lang.String getSlug() {
java.lang.Object ref = slug_;
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();
slug_ = s;
return s;
}
}
/**
* <code>string slug = 2 [json_name = "slug"];</code>
* @return The bytes for slug.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSlugBytes() {
java.lang.Object ref = slug_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
slug_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOGO_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object logo_ = "";
/**
* <code>optional string logo = 3 [json_name = "logo"];</code>
* @return Whether the logo field is set.
*/
@java.lang.Override
public boolean hasLogo() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <code>optional string logo = 3 [json_name = "logo"];</code>
* @return The logo.
*/
@java.lang.Override
public java.lang.String getLogo() {
java.lang.Object ref = logo_;
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();
logo_ = s;
return s;
}
}
/**
* <code>optional string logo = 3 [json_name = "logo"];</code>
* @return The bytes for logo.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLogoBytes() {
java.lang.Object ref = logo_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
logo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(slug_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, slug_);
}
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, logo_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(slug_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, slug_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, logo_);
}
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 ai.chalk.protos.chalk.server.v1.CreateTeamRequest)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.server.v1.CreateTeamRequest other = (ai.chalk.protos.chalk.server.v1.CreateTeamRequest) obj;
if (!getName()
.equals(other.getName())) return false;
if (!getSlug()
.equals(other.getSlug())) return false;
if (hasLogo() != other.hasLogo()) return false;
if (hasLogo()) {
if (!getLogo()
.equals(other.getLogo())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + SLUG_FIELD_NUMBER;
hash = (53 * hash) + getSlug().hashCode();
if (hasLogo()) {
hash = (37 * hash) + LOGO_FIELD_NUMBER;
hash = (53 * hash) + getLogo().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.server.v1.CreateTeamRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CreateTeamRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CreateTeamRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CreateTeamRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CreateTeamRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CreateTeamRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CreateTeamRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CreateTeamRequest 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 ai.chalk.protos.chalk.server.v1.CreateTeamRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CreateTeamRequest 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 ai.chalk.protos.chalk.server.v1.CreateTeamRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CreateTeamRequest 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(ai.chalk.protos.chalk.server.v1.CreateTeamRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code chalk.server.v1.CreateTeamRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.server.v1.CreateTeamRequest)
ai.chalk.protos.chalk.server.v1.CreateTeamRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_CreateTeamRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_CreateTeamRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.CreateTeamRequest.class, ai.chalk.protos.chalk.server.v1.CreateTeamRequest.Builder.class);
}
// Construct using ai.chalk.protos.chalk.server.v1.CreateTeamRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
slug_ = "";
logo_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_CreateTeamRequest_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateTeamRequest getDefaultInstanceForType() {
return ai.chalk.protos.chalk.server.v1.CreateTeamRequest.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateTeamRequest build() {
ai.chalk.protos.chalk.server.v1.CreateTeamRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateTeamRequest buildPartial() {
ai.chalk.protos.chalk.server.v1.CreateTeamRequest result = new ai.chalk.protos.chalk.server.v1.CreateTeamRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ai.chalk.protos.chalk.server.v1.CreateTeamRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.slug_ = slug_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.logo_ = logo_;
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.chalk.protos.chalk.server.v1.CreateTeamRequest) {
return mergeFrom((ai.chalk.protos.chalk.server.v1.CreateTeamRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.server.v1.CreateTeamRequest other) {
if (other == ai.chalk.protos.chalk.server.v1.CreateTeamRequest.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getSlug().isEmpty()) {
slug_ = other.slug_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasLogo()) {
logo_ = other.logo_;
bitField0_ |= 0x00000004;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
slug_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
logo_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
* <code>string name = 1 [json_name = "name"];</code>
* @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;
}
}
/**
* <code>string name = 1 [json_name = "name"];</code>
* @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;
}
}
/**
* <code>string name = 1 [json_name = "name"];</code>
* @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;
}
/**
* <code>string name = 1 [json_name = "name"];</code>
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* <code>string name = 1 [json_name = "name"];</code>
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object slug_ = "";
/**
* <code>string slug = 2 [json_name = "slug"];</code>
* @return The slug.
*/
public java.lang.String getSlug() {
java.lang.Object ref = slug_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
slug_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string slug = 2 [json_name = "slug"];</code>
* @return The bytes for slug.
*/
public com.google.protobuf.ByteString
getSlugBytes() {
java.lang.Object ref = slug_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
slug_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string slug = 2 [json_name = "slug"];</code>
* @param value The slug to set.
* @return This builder for chaining.
*/
public Builder setSlug(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
slug_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <code>string slug = 2 [json_name = "slug"];</code>
* @return This builder for chaining.
*/
public Builder clearSlug() {
slug_ = getDefaultInstance().getSlug();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* <code>string slug = 2 [json_name = "slug"];</code>
* @param value The bytes for slug to set.
* @return This builder for chaining.
*/
public Builder setSlugBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
slug_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object logo_ = "";
/**
* <code>optional string logo = 3 [json_name = "logo"];</code>
* @return Whether the logo field is set.
*/
public boolean hasLogo() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* <code>optional string logo = 3 [json_name = "logo"];</code>
* @return The logo.
*/
public java.lang.String getLogo() {
java.lang.Object ref = logo_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
logo_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>optional string logo = 3 [json_name = "logo"];</code>
* @return The bytes for logo.
*/
public com.google.protobuf.ByteString
getLogoBytes() {
java.lang.Object ref = logo_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
logo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>optional string logo = 3 [json_name = "logo"];</code>
* @param value The logo to set.
* @return This builder for chaining.
*/
public Builder setLogo(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
logo_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* <code>optional string logo = 3 [json_name = "logo"];</code>
* @return This builder for chaining.
*/
public Builder clearLogo() {
logo_ = getDefaultInstance().getLogo();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* <code>optional string logo = 3 [json_name = "logo"];</code>
* @param value The bytes for logo to set.
* @return This builder for chaining.
*/
public Builder setLogoBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
logo_ = 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:chalk.server.v1.CreateTeamRequest)
}
// @@protoc_insertion_point(class_scope:chalk.server.v1.CreateTeamRequest)
private static final ai.chalk.protos.chalk.server.v1.CreateTeamRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.server.v1.CreateTeamRequest();
}
public static ai.chalk.protos.chalk.server.v1.CreateTeamRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<CreateTeamRequest>
PARSER = new com.google.protobuf.AbstractParser<CreateTeamRequest>() {
@java.lang.Override
public CreateTeamRequest 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<CreateTeamRequest> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<CreateTeamRequest> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateTeamRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/CreateTeamRequestOrBuilder.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/team.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
public interface CreateTeamRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.server.v1.CreateTeamRequest)
com.google.protobuf.MessageOrBuilder {
/**
* <code>string name = 1 [json_name = "name"];</code>
* @return The name.
*/
java.lang.String getName();
/**
* <code>string name = 1 [json_name = "name"];</code>
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* <code>string slug = 2 [json_name = "slug"];</code>
* @return The slug.
*/
java.lang.String getSlug();
/**
* <code>string slug = 2 [json_name = "slug"];</code>
* @return The bytes for slug.
*/
com.google.protobuf.ByteString
getSlugBytes();
/**
* <code>optional string logo = 3 [json_name = "logo"];</code>
* @return Whether the logo field is set.
*/
boolean hasLogo();
/**
* <code>optional string logo = 3 [json_name = "logo"];</code>
* @return The logo.
*/
java.lang.String getLogo();
/**
* <code>optional string logo = 3 [json_name = "logo"];</code>
* @return The bytes for logo.
*/
com.google.protobuf.ByteString
getLogoBytes();
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/CreateTeamResponse.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/team.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
/**
* Protobuf type {@code chalk.server.v1.CreateTeamResponse}
*/
public final class CreateTeamResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.server.v1.CreateTeamResponse)
CreateTeamResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateTeamResponse.newBuilder() to construct.
private CreateTeamResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private CreateTeamResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateTeamResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_CreateTeamResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_CreateTeamResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.CreateTeamResponse.class, ai.chalk.protos.chalk.server.v1.CreateTeamResponse.Builder.class);
}
private int bitField0_;
public static final int TEAM_FIELD_NUMBER = 1;
private ai.chalk.protos.chalk.server.v1.Team team_;
/**
* <code>.chalk.server.v1.Team team = 1 [json_name = "team"];</code>
* @return Whether the team field is set.
*/
@java.lang.Override
public boolean hasTeam() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <code>.chalk.server.v1.Team team = 1 [json_name = "team"];</code>
* @return The team.
*/
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.Team getTeam() {
return team_ == null ? ai.chalk.protos.chalk.server.v1.Team.getDefaultInstance() : team_;
}
/**
* <code>.chalk.server.v1.Team team = 1 [json_name = "team"];</code>
*/
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.TeamOrBuilder getTeamOrBuilder() {
return team_ == null ? ai.chalk.protos.chalk.server.v1.Team.getDefaultInstance() : team_;
}
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, getTeam());
}
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, getTeam());
}
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 ai.chalk.protos.chalk.server.v1.CreateTeamResponse)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.server.v1.CreateTeamResponse other = (ai.chalk.protos.chalk.server.v1.CreateTeamResponse) obj;
if (hasTeam() != other.hasTeam()) return false;
if (hasTeam()) {
if (!getTeam()
.equals(other.getTeam())) 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 (hasTeam()) {
hash = (37 * hash) + TEAM_FIELD_NUMBER;
hash = (53 * hash) + getTeam().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.server.v1.CreateTeamResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CreateTeamResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CreateTeamResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CreateTeamResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CreateTeamResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.CreateTeamResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.CreateTeamResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CreateTeamResponse 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 ai.chalk.protos.chalk.server.v1.CreateTeamResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CreateTeamResponse 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 ai.chalk.protos.chalk.server.v1.CreateTeamResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.CreateTeamResponse 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(ai.chalk.protos.chalk.server.v1.CreateTeamResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code chalk.server.v1.CreateTeamResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.server.v1.CreateTeamResponse)
ai.chalk.protos.chalk.server.v1.CreateTeamResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_CreateTeamResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_CreateTeamResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.CreateTeamResponse.class, ai.chalk.protos.chalk.server.v1.CreateTeamResponse.Builder.class);
}
// Construct using ai.chalk.protos.chalk.server.v1.CreateTeamResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTeamFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
team_ = null;
if (teamBuilder_ != null) {
teamBuilder_.dispose();
teamBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_CreateTeamResponse_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateTeamResponse getDefaultInstanceForType() {
return ai.chalk.protos.chalk.server.v1.CreateTeamResponse.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateTeamResponse build() {
ai.chalk.protos.chalk.server.v1.CreateTeamResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateTeamResponse buildPartial() {
ai.chalk.protos.chalk.server.v1.CreateTeamResponse result = new ai.chalk.protos.chalk.server.v1.CreateTeamResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ai.chalk.protos.chalk.server.v1.CreateTeamResponse result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.team_ = teamBuilder_ == null
? team_
: teamBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.chalk.protos.chalk.server.v1.CreateTeamResponse) {
return mergeFrom((ai.chalk.protos.chalk.server.v1.CreateTeamResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.server.v1.CreateTeamResponse other) {
if (other == ai.chalk.protos.chalk.server.v1.CreateTeamResponse.getDefaultInstance()) return this;
if (other.hasTeam()) {
mergeTeam(other.getTeam());
}
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(
getTeamFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
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 ai.chalk.protos.chalk.server.v1.Team team_;
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.Team, ai.chalk.protos.chalk.server.v1.Team.Builder, ai.chalk.protos.chalk.server.v1.TeamOrBuilder> teamBuilder_;
/**
* <code>.chalk.server.v1.Team team = 1 [json_name = "team"];</code>
* @return Whether the team field is set.
*/
public boolean hasTeam() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <code>.chalk.server.v1.Team team = 1 [json_name = "team"];</code>
* @return The team.
*/
public ai.chalk.protos.chalk.server.v1.Team getTeam() {
if (teamBuilder_ == null) {
return team_ == null ? ai.chalk.protos.chalk.server.v1.Team.getDefaultInstance() : team_;
} else {
return teamBuilder_.getMessage();
}
}
/**
* <code>.chalk.server.v1.Team team = 1 [json_name = "team"];</code>
*/
public Builder setTeam(ai.chalk.protos.chalk.server.v1.Team value) {
if (teamBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
team_ = value;
} else {
teamBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>.chalk.server.v1.Team team = 1 [json_name = "team"];</code>
*/
public Builder setTeam(
ai.chalk.protos.chalk.server.v1.Team.Builder builderForValue) {
if (teamBuilder_ == null) {
team_ = builderForValue.build();
} else {
teamBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>.chalk.server.v1.Team team = 1 [json_name = "team"];</code>
*/
public Builder mergeTeam(ai.chalk.protos.chalk.server.v1.Team value) {
if (teamBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
team_ != null &&
team_ != ai.chalk.protos.chalk.server.v1.Team.getDefaultInstance()) {
getTeamBuilder().mergeFrom(value);
} else {
team_ = value;
}
} else {
teamBuilder_.mergeFrom(value);
}
if (team_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* <code>.chalk.server.v1.Team team = 1 [json_name = "team"];</code>
*/
public Builder clearTeam() {
bitField0_ = (bitField0_ & ~0x00000001);
team_ = null;
if (teamBuilder_ != null) {
teamBuilder_.dispose();
teamBuilder_ = null;
}
onChanged();
return this;
}
/**
* <code>.chalk.server.v1.Team team = 1 [json_name = "team"];</code>
*/
public ai.chalk.protos.chalk.server.v1.Team.Builder getTeamBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getTeamFieldBuilder().getBuilder();
}
/**
* <code>.chalk.server.v1.Team team = 1 [json_name = "team"];</code>
*/
public ai.chalk.protos.chalk.server.v1.TeamOrBuilder getTeamOrBuilder() {
if (teamBuilder_ != null) {
return teamBuilder_.getMessageOrBuilder();
} else {
return team_ == null ?
ai.chalk.protos.chalk.server.v1.Team.getDefaultInstance() : team_;
}
}
/**
* <code>.chalk.server.v1.Team team = 1 [json_name = "team"];</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.Team, ai.chalk.protos.chalk.server.v1.Team.Builder, ai.chalk.protos.chalk.server.v1.TeamOrBuilder>
getTeamFieldBuilder() {
if (teamBuilder_ == null) {
teamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.chalk.protos.chalk.server.v1.Team, ai.chalk.protos.chalk.server.v1.Team.Builder, ai.chalk.protos.chalk.server.v1.TeamOrBuilder>(
getTeam(),
getParentForChildren(),
isClean());
team_ = null;
}
return teamBuilder_;
}
@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:chalk.server.v1.CreateTeamResponse)
}
// @@protoc_insertion_point(class_scope:chalk.server.v1.CreateTeamResponse)
private static final ai.chalk.protos.chalk.server.v1.CreateTeamResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.server.v1.CreateTeamResponse();
}
public static ai.chalk.protos.chalk.server.v1.CreateTeamResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<CreateTeamResponse>
PARSER = new com.google.protobuf.AbstractParser<CreateTeamResponse>() {
@java.lang.Override
public CreateTeamResponse 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<CreateTeamResponse> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<CreateTeamResponse> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.CreateTeamResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/CreateTeamResponseOrBuilder.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/team.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
public interface CreateTeamResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.server.v1.CreateTeamResponse)
com.google.protobuf.MessageOrBuilder {
/**
* <code>.chalk.server.v1.Team team = 1 [json_name = "team"];</code>
* @return Whether the team field is set.
*/
boolean hasTeam();
/**
* <code>.chalk.server.v1.Team team = 1 [json_name = "team"];</code>
* @return The team.
*/
ai.chalk.protos.chalk.server.v1.Team getTeam();
/**
* <code>.chalk.server.v1.Team team = 1 [json_name = "team"];</code>
*/
ai.chalk.protos.chalk.server.v1.TeamOrBuilder getTeamOrBuilder();
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/DeletePagerDutyIntegrationRequest.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/monitoring.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
/**
* Protobuf type {@code chalk.server.v1.DeletePagerDutyIntegrationRequest}
*/
public final class DeletePagerDutyIntegrationRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.server.v1.DeletePagerDutyIntegrationRequest)
DeletePagerDutyIntegrationRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeletePagerDutyIntegrationRequest.newBuilder() to construct.
private DeletePagerDutyIntegrationRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private DeletePagerDutyIntegrationRequest() {
id_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeletePagerDutyIntegrationRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.MonitoringProto.internal_static_chalk_server_v1_DeletePagerDutyIntegrationRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.MonitoringProto.internal_static_chalk_server_v1_DeletePagerDutyIntegrationRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationRequest.class, ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationRequest.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object id_ = "";
/**
* <code>string id = 1 [json_name = "id"];</code>
* @return The id.
*/
@java.lang.Override
public java.lang.String getId() {
java.lang.Object ref = id_;
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();
id_ = s;
return s;
}
}
/**
* <code>string id = 1 [json_name = "id"];</code>
* @return The bytes for id.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = 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(id_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
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(id_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
}
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 ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationRequest)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationRequest other = (ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationRequest) obj;
if (!getId()
.equals(other.getId())) 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) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationRequest 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 ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationRequest 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 ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationRequest 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(ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code chalk.server.v1.DeletePagerDutyIntegrationRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.server.v1.DeletePagerDutyIntegrationRequest)
ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.MonitoringProto.internal_static_chalk_server_v1_DeletePagerDutyIntegrationRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.MonitoringProto.internal_static_chalk_server_v1_DeletePagerDutyIntegrationRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationRequest.class, ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationRequest.Builder.class);
}
// Construct using ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
id_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.server.v1.MonitoringProto.internal_static_chalk_server_v1_DeletePagerDutyIntegrationRequest_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationRequest getDefaultInstanceForType() {
return ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationRequest.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationRequest build() {
ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationRequest buildPartial() {
ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationRequest result = new ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.id_ = id_;
}
}
@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 ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationRequest) {
return mergeFrom((ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationRequest other) {
if (other == ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationRequest.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
bitField0_ |= 0x00000001;
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: {
id_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
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 id_ = "";
/**
* <code>string id = 1 [json_name = "id"];</code>
* @return The id.
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string id = 1 [json_name = "id"];</code>
* @return The bytes for id.
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string id = 1 [json_name = "id"];</code>
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
id_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>string id = 1 [json_name = "id"];</code>
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* <code>string id = 1 [json_name = "id"];</code>
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
id_ = value;
bitField0_ |= 0x00000001;
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:chalk.server.v1.DeletePagerDutyIntegrationRequest)
}
// @@protoc_insertion_point(class_scope:chalk.server.v1.DeletePagerDutyIntegrationRequest)
private static final ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationRequest();
}
public static ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<DeletePagerDutyIntegrationRequest>
PARSER = new com.google.protobuf.AbstractParser<DeletePagerDutyIntegrationRequest>() {
@java.lang.Override
public DeletePagerDutyIntegrationRequest 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<DeletePagerDutyIntegrationRequest> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<DeletePagerDutyIntegrationRequest> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/DeletePagerDutyIntegrationRequestOrBuilder.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/monitoring.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
public interface DeletePagerDutyIntegrationRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.server.v1.DeletePagerDutyIntegrationRequest)
com.google.protobuf.MessageOrBuilder {
/**
* <code>string id = 1 [json_name = "id"];</code>
* @return The id.
*/
java.lang.String getId();
/**
* <code>string id = 1 [json_name = "id"];</code>
* @return The bytes for id.
*/
com.google.protobuf.ByteString
getIdBytes();
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/DeletePagerDutyIntegrationResponse.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/monitoring.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
/**
* Protobuf type {@code chalk.server.v1.DeletePagerDutyIntegrationResponse}
*/
public final class DeletePagerDutyIntegrationResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.server.v1.DeletePagerDutyIntegrationResponse)
DeletePagerDutyIntegrationResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeletePagerDutyIntegrationResponse.newBuilder() to construct.
private DeletePagerDutyIntegrationResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private DeletePagerDutyIntegrationResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeletePagerDutyIntegrationResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.MonitoringProto.internal_static_chalk_server_v1_DeletePagerDutyIntegrationResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.MonitoringProto.internal_static_chalk_server_v1_DeletePagerDutyIntegrationResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationResponse.class, ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationResponse.Builder.class);
}
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 {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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 ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationResponse)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationResponse other = (ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationResponse) obj;
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 = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationResponse 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 ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationResponse 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 ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationResponse 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(ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code chalk.server.v1.DeletePagerDutyIntegrationResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.server.v1.DeletePagerDutyIntegrationResponse)
ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.MonitoringProto.internal_static_chalk_server_v1_DeletePagerDutyIntegrationResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.MonitoringProto.internal_static_chalk_server_v1_DeletePagerDutyIntegrationResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationResponse.class, ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationResponse.Builder.class);
}
// Construct using ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.server.v1.MonitoringProto.internal_static_chalk_server_v1_DeletePagerDutyIntegrationResponse_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationResponse getDefaultInstanceForType() {
return ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationResponse.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationResponse build() {
ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationResponse buildPartial() {
ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationResponse result = new ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationResponse(this);
onBuilt();
return result;
}
@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 ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationResponse) {
return mergeFrom((ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationResponse other) {
if (other == ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationResponse.getDefaultInstance()) return this;
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;
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;
}
@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:chalk.server.v1.DeletePagerDutyIntegrationResponse)
}
// @@protoc_insertion_point(class_scope:chalk.server.v1.DeletePagerDutyIntegrationResponse)
private static final ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationResponse();
}
public static ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<DeletePagerDutyIntegrationResponse>
PARSER = new com.google.protobuf.AbstractParser<DeletePagerDutyIntegrationResponse>() {
@java.lang.Override
public DeletePagerDutyIntegrationResponse 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<DeletePagerDutyIntegrationResponse> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<DeletePagerDutyIntegrationResponse> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.DeletePagerDutyIntegrationResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/DeletePagerDutyIntegrationResponseOrBuilder.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/monitoring.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
public interface DeletePagerDutyIntegrationResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.server.v1.DeletePagerDutyIntegrationResponse)
com.google.protobuf.MessageOrBuilder {
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/DeleteServiceTokenRequest.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/team.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
/**
* Protobuf type {@code chalk.server.v1.DeleteServiceTokenRequest}
*/
public final class DeleteServiceTokenRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.server.v1.DeleteServiceTokenRequest)
DeleteServiceTokenRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeleteServiceTokenRequest.newBuilder() to construct.
private DeleteServiceTokenRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private DeleteServiceTokenRequest() {
id_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeleteServiceTokenRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_DeleteServiceTokenRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_DeleteServiceTokenRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.DeleteServiceTokenRequest.class, ai.chalk.protos.chalk.server.v1.DeleteServiceTokenRequest.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object id_ = "";
/**
* <code>string id = 1 [json_name = "id"];</code>
* @return The id.
*/
@java.lang.Override
public java.lang.String getId() {
java.lang.Object ref = id_;
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();
id_ = s;
return s;
}
}
/**
* <code>string id = 1 [json_name = "id"];</code>
* @return The bytes for id.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = 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(id_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
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(id_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
}
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 ai.chalk.protos.chalk.server.v1.DeleteServiceTokenRequest)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.server.v1.DeleteServiceTokenRequest other = (ai.chalk.protos.chalk.server.v1.DeleteServiceTokenRequest) obj;
if (!getId()
.equals(other.getId())) 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) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.server.v1.DeleteServiceTokenRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.DeleteServiceTokenRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.DeleteServiceTokenRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.DeleteServiceTokenRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.DeleteServiceTokenRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.DeleteServiceTokenRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.DeleteServiceTokenRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.DeleteServiceTokenRequest 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 ai.chalk.protos.chalk.server.v1.DeleteServiceTokenRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.DeleteServiceTokenRequest 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 ai.chalk.protos.chalk.server.v1.DeleteServiceTokenRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.DeleteServiceTokenRequest 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(ai.chalk.protos.chalk.server.v1.DeleteServiceTokenRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code chalk.server.v1.DeleteServiceTokenRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.server.v1.DeleteServiceTokenRequest)
ai.chalk.protos.chalk.server.v1.DeleteServiceTokenRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_DeleteServiceTokenRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_DeleteServiceTokenRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.DeleteServiceTokenRequest.class, ai.chalk.protos.chalk.server.v1.DeleteServiceTokenRequest.Builder.class);
}
// Construct using ai.chalk.protos.chalk.server.v1.DeleteServiceTokenRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
id_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_DeleteServiceTokenRequest_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.DeleteServiceTokenRequest getDefaultInstanceForType() {
return ai.chalk.protos.chalk.server.v1.DeleteServiceTokenRequest.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.DeleteServiceTokenRequest build() {
ai.chalk.protos.chalk.server.v1.DeleteServiceTokenRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.DeleteServiceTokenRequest buildPartial() {
ai.chalk.protos.chalk.server.v1.DeleteServiceTokenRequest result = new ai.chalk.protos.chalk.server.v1.DeleteServiceTokenRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ai.chalk.protos.chalk.server.v1.DeleteServiceTokenRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.id_ = id_;
}
}
@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 ai.chalk.protos.chalk.server.v1.DeleteServiceTokenRequest) {
return mergeFrom((ai.chalk.protos.chalk.server.v1.DeleteServiceTokenRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.server.v1.DeleteServiceTokenRequest other) {
if (other == ai.chalk.protos.chalk.server.v1.DeleteServiceTokenRequest.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
bitField0_ |= 0x00000001;
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: {
id_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
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 id_ = "";
/**
* <code>string id = 1 [json_name = "id"];</code>
* @return The id.
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string id = 1 [json_name = "id"];</code>
* @return The bytes for id.
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string id = 1 [json_name = "id"];</code>
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
id_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>string id = 1 [json_name = "id"];</code>
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* <code>string id = 1 [json_name = "id"];</code>
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
id_ = value;
bitField0_ |= 0x00000001;
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:chalk.server.v1.DeleteServiceTokenRequest)
}
// @@protoc_insertion_point(class_scope:chalk.server.v1.DeleteServiceTokenRequest)
private static final ai.chalk.protos.chalk.server.v1.DeleteServiceTokenRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.server.v1.DeleteServiceTokenRequest();
}
public static ai.chalk.protos.chalk.server.v1.DeleteServiceTokenRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<DeleteServiceTokenRequest>
PARSER = new com.google.protobuf.AbstractParser<DeleteServiceTokenRequest>() {
@java.lang.Override
public DeleteServiceTokenRequest 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<DeleteServiceTokenRequest> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<DeleteServiceTokenRequest> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.DeleteServiceTokenRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/DeleteServiceTokenRequestOrBuilder.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/team.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
public interface DeleteServiceTokenRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.server.v1.DeleteServiceTokenRequest)
com.google.protobuf.MessageOrBuilder {
/**
* <code>string id = 1 [json_name = "id"];</code>
* @return The id.
*/
java.lang.String getId();
/**
* <code>string id = 1 [json_name = "id"];</code>
* @return The bytes for id.
*/
com.google.protobuf.ByteString
getIdBytes();
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/DeleteServiceTokenResponse.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/team.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
/**
* Protobuf type {@code chalk.server.v1.DeleteServiceTokenResponse}
*/
public final class DeleteServiceTokenResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.server.v1.DeleteServiceTokenResponse)
DeleteServiceTokenResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeleteServiceTokenResponse.newBuilder() to construct.
private DeleteServiceTokenResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private DeleteServiceTokenResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeleteServiceTokenResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_DeleteServiceTokenResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_DeleteServiceTokenResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.DeleteServiceTokenResponse.class, ai.chalk.protos.chalk.server.v1.DeleteServiceTokenResponse.Builder.class);
}
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 {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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 ai.chalk.protos.chalk.server.v1.DeleteServiceTokenResponse)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.server.v1.DeleteServiceTokenResponse other = (ai.chalk.protos.chalk.server.v1.DeleteServiceTokenResponse) obj;
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 = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.server.v1.DeleteServiceTokenResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.DeleteServiceTokenResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.DeleteServiceTokenResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.DeleteServiceTokenResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.DeleteServiceTokenResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.DeleteServiceTokenResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.DeleteServiceTokenResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.DeleteServiceTokenResponse 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 ai.chalk.protos.chalk.server.v1.DeleteServiceTokenResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.DeleteServiceTokenResponse 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 ai.chalk.protos.chalk.server.v1.DeleteServiceTokenResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.DeleteServiceTokenResponse 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(ai.chalk.protos.chalk.server.v1.DeleteServiceTokenResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code chalk.server.v1.DeleteServiceTokenResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.server.v1.DeleteServiceTokenResponse)
ai.chalk.protos.chalk.server.v1.DeleteServiceTokenResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_DeleteServiceTokenResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_DeleteServiceTokenResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.DeleteServiceTokenResponse.class, ai.chalk.protos.chalk.server.v1.DeleteServiceTokenResponse.Builder.class);
}
// Construct using ai.chalk.protos.chalk.server.v1.DeleteServiceTokenResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.server.v1.TeamProto.internal_static_chalk_server_v1_DeleteServiceTokenResponse_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.DeleteServiceTokenResponse getDefaultInstanceForType() {
return ai.chalk.protos.chalk.server.v1.DeleteServiceTokenResponse.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.DeleteServiceTokenResponse build() {
ai.chalk.protos.chalk.server.v1.DeleteServiceTokenResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.DeleteServiceTokenResponse buildPartial() {
ai.chalk.protos.chalk.server.v1.DeleteServiceTokenResponse result = new ai.chalk.protos.chalk.server.v1.DeleteServiceTokenResponse(this);
onBuilt();
return result;
}
@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 ai.chalk.protos.chalk.server.v1.DeleteServiceTokenResponse) {
return mergeFrom((ai.chalk.protos.chalk.server.v1.DeleteServiceTokenResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.server.v1.DeleteServiceTokenResponse other) {
if (other == ai.chalk.protos.chalk.server.v1.DeleteServiceTokenResponse.getDefaultInstance()) return this;
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;
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;
}
@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:chalk.server.v1.DeleteServiceTokenResponse)
}
// @@protoc_insertion_point(class_scope:chalk.server.v1.DeleteServiceTokenResponse)
private static final ai.chalk.protos.chalk.server.v1.DeleteServiceTokenResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.server.v1.DeleteServiceTokenResponse();
}
public static ai.chalk.protos.chalk.server.v1.DeleteServiceTokenResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<DeleteServiceTokenResponse>
PARSER = new com.google.protobuf.AbstractParser<DeleteServiceTokenResponse>() {
@java.lang.Override
public DeleteServiceTokenResponse 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<DeleteServiceTokenResponse> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<DeleteServiceTokenResponse> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.DeleteServiceTokenResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/DeleteServiceTokenResponseOrBuilder.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/team.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
public interface DeleteServiceTokenResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.server.v1.DeleteServiceTokenResponse)
com.google.protobuf.MessageOrBuilder {
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/DeployBranchRequest.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/deploy.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
/**
* Protobuf type {@code chalk.server.v1.DeployBranchRequest}
*/
public final class DeployBranchRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.server.v1.DeployBranchRequest)
DeployBranchRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeployBranchRequest.newBuilder() to construct.
private DeployBranchRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private DeployBranchRequest() {
branchName_ = "";
archive_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeployBranchRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.DeployProto.internal_static_chalk_server_v1_DeployBranchRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.DeployProto.internal_static_chalk_server_v1_DeployBranchRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.DeployBranchRequest.class, ai.chalk.protos.chalk.server.v1.DeployBranchRequest.Builder.class);
}
public static final int BRANCH_NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object branchName_ = "";
/**
* <code>string branch_name = 1 [json_name = "branchName"];</code>
* @return The branchName.
*/
@java.lang.Override
public java.lang.String getBranchName() {
java.lang.Object ref = branchName_;
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();
branchName_ = s;
return s;
}
}
/**
* <code>string branch_name = 1 [json_name = "branchName"];</code>
* @return The bytes for branchName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBranchNameBytes() {
java.lang.Object ref = branchName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
branchName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RESET_BRANCH_FIELD_NUMBER = 2;
private boolean resetBranch_ = false;
/**
* <code>bool reset_branch = 2 [json_name = "resetBranch"];</code>
* @return The resetBranch.
*/
@java.lang.Override
public boolean getResetBranch() {
return resetBranch_;
}
public static final int ARCHIVE_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString archive_ = com.google.protobuf.ByteString.EMPTY;
/**
* <code>bytes archive = 3 [json_name = "archive"];</code>
* @return The archive.
*/
@java.lang.Override
public com.google.protobuf.ByteString getArchive() {
return archive_;
}
public static final int IS_HOT_DEPLOY_FIELD_NUMBER = 4;
private boolean isHotDeploy_ = false;
/**
* <code>bool is_hot_deploy = 4 [json_name = "isHotDeploy"];</code>
* @return The isHotDeploy.
*/
@java.lang.Override
public boolean getIsHotDeploy() {
return isHotDeploy_;
}
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(branchName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, branchName_);
}
if (resetBranch_ != false) {
output.writeBool(2, resetBranch_);
}
if (!archive_.isEmpty()) {
output.writeBytes(3, archive_);
}
if (isHotDeploy_ != false) {
output.writeBool(4, isHotDeploy_);
}
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(branchName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, branchName_);
}
if (resetBranch_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, resetBranch_);
}
if (!archive_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, archive_);
}
if (isHotDeploy_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, isHotDeploy_);
}
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 ai.chalk.protos.chalk.server.v1.DeployBranchRequest)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.server.v1.DeployBranchRequest other = (ai.chalk.protos.chalk.server.v1.DeployBranchRequest) obj;
if (!getBranchName()
.equals(other.getBranchName())) return false;
if (getResetBranch()
!= other.getResetBranch()) return false;
if (!getArchive()
.equals(other.getArchive())) return false;
if (getIsHotDeploy()
!= other.getIsHotDeploy()) 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) + BRANCH_NAME_FIELD_NUMBER;
hash = (53 * hash) + getBranchName().hashCode();
hash = (37 * hash) + RESET_BRANCH_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getResetBranch());
hash = (37 * hash) + ARCHIVE_FIELD_NUMBER;
hash = (53 * hash) + getArchive().hashCode();
hash = (37 * hash) + IS_HOT_DEPLOY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsHotDeploy());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.server.v1.DeployBranchRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.DeployBranchRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.DeployBranchRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.DeployBranchRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.DeployBranchRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.DeployBranchRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.DeployBranchRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.DeployBranchRequest 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 ai.chalk.protos.chalk.server.v1.DeployBranchRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.DeployBranchRequest 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 ai.chalk.protos.chalk.server.v1.DeployBranchRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.DeployBranchRequest 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(ai.chalk.protos.chalk.server.v1.DeployBranchRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code chalk.server.v1.DeployBranchRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.server.v1.DeployBranchRequest)
ai.chalk.protos.chalk.server.v1.DeployBranchRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.DeployProto.internal_static_chalk_server_v1_DeployBranchRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.DeployProto.internal_static_chalk_server_v1_DeployBranchRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.DeployBranchRequest.class, ai.chalk.protos.chalk.server.v1.DeployBranchRequest.Builder.class);
}
// Construct using ai.chalk.protos.chalk.server.v1.DeployBranchRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
branchName_ = "";
resetBranch_ = false;
archive_ = com.google.protobuf.ByteString.EMPTY;
isHotDeploy_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.server.v1.DeployProto.internal_static_chalk_server_v1_DeployBranchRequest_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.DeployBranchRequest getDefaultInstanceForType() {
return ai.chalk.protos.chalk.server.v1.DeployBranchRequest.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.DeployBranchRequest build() {
ai.chalk.protos.chalk.server.v1.DeployBranchRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.DeployBranchRequest buildPartial() {
ai.chalk.protos.chalk.server.v1.DeployBranchRequest result = new ai.chalk.protos.chalk.server.v1.DeployBranchRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ai.chalk.protos.chalk.server.v1.DeployBranchRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.branchName_ = branchName_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.resetBranch_ = resetBranch_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.archive_ = archive_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.isHotDeploy_ = isHotDeploy_;
}
}
@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 ai.chalk.protos.chalk.server.v1.DeployBranchRequest) {
return mergeFrom((ai.chalk.protos.chalk.server.v1.DeployBranchRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.server.v1.DeployBranchRequest other) {
if (other == ai.chalk.protos.chalk.server.v1.DeployBranchRequest.getDefaultInstance()) return this;
if (!other.getBranchName().isEmpty()) {
branchName_ = other.branchName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.getResetBranch() != false) {
setResetBranch(other.getResetBranch());
}
if (other.getArchive() != com.google.protobuf.ByteString.EMPTY) {
setArchive(other.getArchive());
}
if (other.getIsHotDeploy() != false) {
setIsHotDeploy(other.getIsHotDeploy());
}
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: {
branchName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
resetBranch_ = input.readBool();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
archive_ = input.readBytes();
bitField0_ |= 0x00000004;
break;
} // case 26
case 32: {
isHotDeploy_ = input.readBool();
bitField0_ |= 0x00000008;
break;
} // case 32
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 branchName_ = "";
/**
* <code>string branch_name = 1 [json_name = "branchName"];</code>
* @return The branchName.
*/
public java.lang.String getBranchName() {
java.lang.Object ref = branchName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
branchName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string branch_name = 1 [json_name = "branchName"];</code>
* @return The bytes for branchName.
*/
public com.google.protobuf.ByteString
getBranchNameBytes() {
java.lang.Object ref = branchName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
branchName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string branch_name = 1 [json_name = "branchName"];</code>
* @param value The branchName to set.
* @return This builder for chaining.
*/
public Builder setBranchName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
branchName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>string branch_name = 1 [json_name = "branchName"];</code>
* @return This builder for chaining.
*/
public Builder clearBranchName() {
branchName_ = getDefaultInstance().getBranchName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* <code>string branch_name = 1 [json_name = "branchName"];</code>
* @param value The bytes for branchName to set.
* @return This builder for chaining.
*/
public Builder setBranchNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
branchName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private boolean resetBranch_ ;
/**
* <code>bool reset_branch = 2 [json_name = "resetBranch"];</code>
* @return The resetBranch.
*/
@java.lang.Override
public boolean getResetBranch() {
return resetBranch_;
}
/**
* <code>bool reset_branch = 2 [json_name = "resetBranch"];</code>
* @param value The resetBranch to set.
* @return This builder for chaining.
*/
public Builder setResetBranch(boolean value) {
resetBranch_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <code>bool reset_branch = 2 [json_name = "resetBranch"];</code>
* @return This builder for chaining.
*/
public Builder clearResetBranch() {
bitField0_ = (bitField0_ & ~0x00000002);
resetBranch_ = false;
onChanged();
return this;
}
private com.google.protobuf.ByteString archive_ = com.google.protobuf.ByteString.EMPTY;
/**
* <code>bytes archive = 3 [json_name = "archive"];</code>
* @return The archive.
*/
@java.lang.Override
public com.google.protobuf.ByteString getArchive() {
return archive_;
}
/**
* <code>bytes archive = 3 [json_name = "archive"];</code>
* @param value The archive to set.
* @return This builder for chaining.
*/
public Builder setArchive(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
archive_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* <code>bytes archive = 3 [json_name = "archive"];</code>
* @return This builder for chaining.
*/
public Builder clearArchive() {
bitField0_ = (bitField0_ & ~0x00000004);
archive_ = getDefaultInstance().getArchive();
onChanged();
return this;
}
private boolean isHotDeploy_ ;
/**
* <code>bool is_hot_deploy = 4 [json_name = "isHotDeploy"];</code>
* @return The isHotDeploy.
*/
@java.lang.Override
public boolean getIsHotDeploy() {
return isHotDeploy_;
}
/**
* <code>bool is_hot_deploy = 4 [json_name = "isHotDeploy"];</code>
* @param value The isHotDeploy to set.
* @return This builder for chaining.
*/
public Builder setIsHotDeploy(boolean value) {
isHotDeploy_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* <code>bool is_hot_deploy = 4 [json_name = "isHotDeploy"];</code>
* @return This builder for chaining.
*/
public Builder clearIsHotDeploy() {
bitField0_ = (bitField0_ & ~0x00000008);
isHotDeploy_ = 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:chalk.server.v1.DeployBranchRequest)
}
// @@protoc_insertion_point(class_scope:chalk.server.v1.DeployBranchRequest)
private static final ai.chalk.protos.chalk.server.v1.DeployBranchRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.server.v1.DeployBranchRequest();
}
public static ai.chalk.protos.chalk.server.v1.DeployBranchRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<DeployBranchRequest>
PARSER = new com.google.protobuf.AbstractParser<DeployBranchRequest>() {
@java.lang.Override
public DeployBranchRequest 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<DeployBranchRequest> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<DeployBranchRequest> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.DeployBranchRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/DeployBranchRequestOrBuilder.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/deploy.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
public interface DeployBranchRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.server.v1.DeployBranchRequest)
com.google.protobuf.MessageOrBuilder {
/**
* <code>string branch_name = 1 [json_name = "branchName"];</code>
* @return The branchName.
*/
java.lang.String getBranchName();
/**
* <code>string branch_name = 1 [json_name = "branchName"];</code>
* @return The bytes for branchName.
*/
com.google.protobuf.ByteString
getBranchNameBytes();
/**
* <code>bool reset_branch = 2 [json_name = "resetBranch"];</code>
* @return The resetBranch.
*/
boolean getResetBranch();
/**
* <code>bytes archive = 3 [json_name = "archive"];</code>
* @return The archive.
*/
com.google.protobuf.ByteString getArchive();
/**
* <code>bool is_hot_deploy = 4 [json_name = "isHotDeploy"];</code>
* @return The isHotDeploy.
*/
boolean getIsHotDeploy();
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/DeployBranchResponse.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/deploy.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
/**
* Protobuf type {@code chalk.server.v1.DeployBranchResponse}
*/
public final class DeployBranchResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.server.v1.DeployBranchResponse)
DeployBranchResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeployBranchResponse.newBuilder() to construct.
private DeployBranchResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private DeployBranchResponse() {
deploymentId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeployBranchResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.DeployProto.internal_static_chalk_server_v1_DeployBranchResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.DeployProto.internal_static_chalk_server_v1_DeployBranchResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.DeployBranchResponse.class, ai.chalk.protos.chalk.server.v1.DeployBranchResponse.Builder.class);
}
public static final int DEPLOYMENT_ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object deploymentId_ = "";
/**
* <code>string deployment_id = 1 [json_name = "deploymentId"];</code>
* @return The deploymentId.
*/
@java.lang.Override
public java.lang.String getDeploymentId() {
java.lang.Object ref = deploymentId_;
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();
deploymentId_ = s;
return s;
}
}
/**
* <code>string deployment_id = 1 [json_name = "deploymentId"];</code>
* @return The bytes for deploymentId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDeploymentIdBytes() {
java.lang.Object ref = deploymentId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
deploymentId_ = 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(deploymentId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deploymentId_);
}
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(deploymentId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, deploymentId_);
}
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 ai.chalk.protos.chalk.server.v1.DeployBranchResponse)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.server.v1.DeployBranchResponse other = (ai.chalk.protos.chalk.server.v1.DeployBranchResponse) obj;
if (!getDeploymentId()
.equals(other.getDeploymentId())) 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) + DEPLOYMENT_ID_FIELD_NUMBER;
hash = (53 * hash) + getDeploymentId().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.server.v1.DeployBranchResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.DeployBranchResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.DeployBranchResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.DeployBranchResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.DeployBranchResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.DeployBranchResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.DeployBranchResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.DeployBranchResponse 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 ai.chalk.protos.chalk.server.v1.DeployBranchResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.DeployBranchResponse 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 ai.chalk.protos.chalk.server.v1.DeployBranchResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.DeployBranchResponse 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(ai.chalk.protos.chalk.server.v1.DeployBranchResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code chalk.server.v1.DeployBranchResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.server.v1.DeployBranchResponse)
ai.chalk.protos.chalk.server.v1.DeployBranchResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.DeployProto.internal_static_chalk_server_v1_DeployBranchResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.DeployProto.internal_static_chalk_server_v1_DeployBranchResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.DeployBranchResponse.class, ai.chalk.protos.chalk.server.v1.DeployBranchResponse.Builder.class);
}
// Construct using ai.chalk.protos.chalk.server.v1.DeployBranchResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
deploymentId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.server.v1.DeployProto.internal_static_chalk_server_v1_DeployBranchResponse_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.DeployBranchResponse getDefaultInstanceForType() {
return ai.chalk.protos.chalk.server.v1.DeployBranchResponse.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.DeployBranchResponse build() {
ai.chalk.protos.chalk.server.v1.DeployBranchResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.DeployBranchResponse buildPartial() {
ai.chalk.protos.chalk.server.v1.DeployBranchResponse result = new ai.chalk.protos.chalk.server.v1.DeployBranchResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ai.chalk.protos.chalk.server.v1.DeployBranchResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.deploymentId_ = deploymentId_;
}
}
@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 ai.chalk.protos.chalk.server.v1.DeployBranchResponse) {
return mergeFrom((ai.chalk.protos.chalk.server.v1.DeployBranchResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.server.v1.DeployBranchResponse other) {
if (other == ai.chalk.protos.chalk.server.v1.DeployBranchResponse.getDefaultInstance()) return this;
if (!other.getDeploymentId().isEmpty()) {
deploymentId_ = other.deploymentId_;
bitField0_ |= 0x00000001;
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: {
deploymentId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
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 deploymentId_ = "";
/**
* <code>string deployment_id = 1 [json_name = "deploymentId"];</code>
* @return The deploymentId.
*/
public java.lang.String getDeploymentId() {
java.lang.Object ref = deploymentId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
deploymentId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string deployment_id = 1 [json_name = "deploymentId"];</code>
* @return The bytes for deploymentId.
*/
public com.google.protobuf.ByteString
getDeploymentIdBytes() {
java.lang.Object ref = deploymentId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
deploymentId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string deployment_id = 1 [json_name = "deploymentId"];</code>
* @param value The deploymentId to set.
* @return This builder for chaining.
*/
public Builder setDeploymentId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
deploymentId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>string deployment_id = 1 [json_name = "deploymentId"];</code>
* @return This builder for chaining.
*/
public Builder clearDeploymentId() {
deploymentId_ = getDefaultInstance().getDeploymentId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* <code>string deployment_id = 1 [json_name = "deploymentId"];</code>
* @param value The bytes for deploymentId to set.
* @return This builder for chaining.
*/
public Builder setDeploymentIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
deploymentId_ = value;
bitField0_ |= 0x00000001;
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:chalk.server.v1.DeployBranchResponse)
}
// @@protoc_insertion_point(class_scope:chalk.server.v1.DeployBranchResponse)
private static final ai.chalk.protos.chalk.server.v1.DeployBranchResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.server.v1.DeployBranchResponse();
}
public static ai.chalk.protos.chalk.server.v1.DeployBranchResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<DeployBranchResponse>
PARSER = new com.google.protobuf.AbstractParser<DeployBranchResponse>() {
@java.lang.Override
public DeployBranchResponse 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<DeployBranchResponse> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<DeployBranchResponse> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.DeployBranchResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/DeployBranchResponseOrBuilder.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/deploy.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
public interface DeployBranchResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.server.v1.DeployBranchResponse)
com.google.protobuf.MessageOrBuilder {
/**
* <code>string deployment_id = 1 [json_name = "deploymentId"];</code>
* @return The deploymentId.
*/
java.lang.String getDeploymentId();
/**
* <code>string deployment_id = 1 [json_name = "deploymentId"];</code>
* @return The bytes for deploymentId.
*/
com.google.protobuf.ByteString
getDeploymentIdBytes();
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/DeployKubeComponentsRequest.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/builder.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
/**
* Protobuf type {@code chalk.server.v1.DeployKubeComponentsRequest}
*/
public final class DeployKubeComponentsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.server.v1.DeployKubeComponentsRequest)
DeployKubeComponentsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeployKubeComponentsRequest.newBuilder() to construct.
private DeployKubeComponentsRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private DeployKubeComponentsRequest() {
existingDeploymentId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeployKubeComponentsRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_DeployKubeComponentsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_DeployKubeComponentsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequest.class, ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequest.Builder.class);
}
public static final int EXISTING_DEPLOYMENT_ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object existingDeploymentId_ = "";
/**
* <code>string existing_deployment_id = 1 [json_name = "existingDeploymentId"];</code>
* @return The existingDeploymentId.
*/
@java.lang.Override
public java.lang.String getExistingDeploymentId() {
java.lang.Object ref = existingDeploymentId_;
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();
existingDeploymentId_ = s;
return s;
}
}
/**
* <code>string existing_deployment_id = 1 [json_name = "existingDeploymentId"];</code>
* @return The bytes for existingDeploymentId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getExistingDeploymentIdBytes() {
java.lang.Object ref = existingDeploymentId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
existingDeploymentId_ = 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(existingDeploymentId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, existingDeploymentId_);
}
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(existingDeploymentId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, existingDeploymentId_);
}
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 ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequest)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequest other = (ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequest) obj;
if (!getExistingDeploymentId()
.equals(other.getExistingDeploymentId())) 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) + EXISTING_DEPLOYMENT_ID_FIELD_NUMBER;
hash = (53 * hash) + getExistingDeploymentId().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequest 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 ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequest 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 ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequest 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(ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code chalk.server.v1.DeployKubeComponentsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.server.v1.DeployKubeComponentsRequest)
ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_DeployKubeComponentsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_DeployKubeComponentsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequest.class, ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequest.Builder.class);
}
// Construct using ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
existingDeploymentId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_DeployKubeComponentsRequest_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequest getDefaultInstanceForType() {
return ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequest.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequest build() {
ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequest buildPartial() {
ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequest result = new ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.existingDeploymentId_ = existingDeploymentId_;
}
}
@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 ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequest) {
return mergeFrom((ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequest other) {
if (other == ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequest.getDefaultInstance()) return this;
if (!other.getExistingDeploymentId().isEmpty()) {
existingDeploymentId_ = other.existingDeploymentId_;
bitField0_ |= 0x00000001;
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: {
existingDeploymentId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
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 existingDeploymentId_ = "";
/**
* <code>string existing_deployment_id = 1 [json_name = "existingDeploymentId"];</code>
* @return The existingDeploymentId.
*/
public java.lang.String getExistingDeploymentId() {
java.lang.Object ref = existingDeploymentId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
existingDeploymentId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string existing_deployment_id = 1 [json_name = "existingDeploymentId"];</code>
* @return The bytes for existingDeploymentId.
*/
public com.google.protobuf.ByteString
getExistingDeploymentIdBytes() {
java.lang.Object ref = existingDeploymentId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
existingDeploymentId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string existing_deployment_id = 1 [json_name = "existingDeploymentId"];</code>
* @param value The existingDeploymentId to set.
* @return This builder for chaining.
*/
public Builder setExistingDeploymentId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
existingDeploymentId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>string existing_deployment_id = 1 [json_name = "existingDeploymentId"];</code>
* @return This builder for chaining.
*/
public Builder clearExistingDeploymentId() {
existingDeploymentId_ = getDefaultInstance().getExistingDeploymentId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* <code>string existing_deployment_id = 1 [json_name = "existingDeploymentId"];</code>
* @param value The bytes for existingDeploymentId to set.
* @return This builder for chaining.
*/
public Builder setExistingDeploymentIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
existingDeploymentId_ = value;
bitField0_ |= 0x00000001;
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:chalk.server.v1.DeployKubeComponentsRequest)
}
// @@protoc_insertion_point(class_scope:chalk.server.v1.DeployKubeComponentsRequest)
private static final ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequest();
}
public static ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<DeployKubeComponentsRequest>
PARSER = new com.google.protobuf.AbstractParser<DeployKubeComponentsRequest>() {
@java.lang.Override
public DeployKubeComponentsRequest 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<DeployKubeComponentsRequest> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<DeployKubeComponentsRequest> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.DeployKubeComponentsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/DeployKubeComponentsRequestOrBuilder.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/builder.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
public interface DeployKubeComponentsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.server.v1.DeployKubeComponentsRequest)
com.google.protobuf.MessageOrBuilder {
/**
* <code>string existing_deployment_id = 1 [json_name = "existingDeploymentId"];</code>
* @return The existingDeploymentId.
*/
java.lang.String getExistingDeploymentId();
/**
* <code>string existing_deployment_id = 1 [json_name = "existingDeploymentId"];</code>
* @return The bytes for existingDeploymentId.
*/
com.google.protobuf.ByteString
getExistingDeploymentIdBytes();
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/DeployKubeComponentsResponse.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/builder.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
/**
* Protobuf type {@code chalk.server.v1.DeployKubeComponentsResponse}
*/
public final class DeployKubeComponentsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:chalk.server.v1.DeployKubeComponentsResponse)
DeployKubeComponentsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeployKubeComponentsResponse.newBuilder() to construct.
private DeployKubeComponentsResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private DeployKubeComponentsResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeployKubeComponentsResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_DeployKubeComponentsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_DeployKubeComponentsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.DeployKubeComponentsResponse.class, ai.chalk.protos.chalk.server.v1.DeployKubeComponentsResponse.Builder.class);
}
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 {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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 ai.chalk.protos.chalk.server.v1.DeployKubeComponentsResponse)) {
return super.equals(obj);
}
ai.chalk.protos.chalk.server.v1.DeployKubeComponentsResponse other = (ai.chalk.protos.chalk.server.v1.DeployKubeComponentsResponse) obj;
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 = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.chalk.protos.chalk.server.v1.DeployKubeComponentsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.DeployKubeComponentsResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.DeployKubeComponentsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.DeployKubeComponentsResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.DeployKubeComponentsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.chalk.protos.chalk.server.v1.DeployKubeComponentsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.chalk.protos.chalk.server.v1.DeployKubeComponentsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.DeployKubeComponentsResponse 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 ai.chalk.protos.chalk.server.v1.DeployKubeComponentsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.DeployKubeComponentsResponse 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 ai.chalk.protos.chalk.server.v1.DeployKubeComponentsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.chalk.protos.chalk.server.v1.DeployKubeComponentsResponse 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(ai.chalk.protos.chalk.server.v1.DeployKubeComponentsResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code chalk.server.v1.DeployKubeComponentsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:chalk.server.v1.DeployKubeComponentsResponse)
ai.chalk.protos.chalk.server.v1.DeployKubeComponentsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_DeployKubeComponentsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_DeployKubeComponentsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.chalk.protos.chalk.server.v1.DeployKubeComponentsResponse.class, ai.chalk.protos.chalk.server.v1.DeployKubeComponentsResponse.Builder.class);
}
// Construct using ai.chalk.protos.chalk.server.v1.DeployKubeComponentsResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.chalk.protos.chalk.server.v1.BuilderProto.internal_static_chalk_server_v1_DeployKubeComponentsResponse_descriptor;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.DeployKubeComponentsResponse getDefaultInstanceForType() {
return ai.chalk.protos.chalk.server.v1.DeployKubeComponentsResponse.getDefaultInstance();
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.DeployKubeComponentsResponse build() {
ai.chalk.protos.chalk.server.v1.DeployKubeComponentsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.DeployKubeComponentsResponse buildPartial() {
ai.chalk.protos.chalk.server.v1.DeployKubeComponentsResponse result = new ai.chalk.protos.chalk.server.v1.DeployKubeComponentsResponse(this);
onBuilt();
return result;
}
@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 ai.chalk.protos.chalk.server.v1.DeployKubeComponentsResponse) {
return mergeFrom((ai.chalk.protos.chalk.server.v1.DeployKubeComponentsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.chalk.protos.chalk.server.v1.DeployKubeComponentsResponse other) {
if (other == ai.chalk.protos.chalk.server.v1.DeployKubeComponentsResponse.getDefaultInstance()) return this;
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;
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;
}
@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:chalk.server.v1.DeployKubeComponentsResponse)
}
// @@protoc_insertion_point(class_scope:chalk.server.v1.DeployKubeComponentsResponse)
private static final ai.chalk.protos.chalk.server.v1.DeployKubeComponentsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.chalk.protos.chalk.server.v1.DeployKubeComponentsResponse();
}
public static ai.chalk.protos.chalk.server.v1.DeployKubeComponentsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<DeployKubeComponentsResponse>
PARSER = new com.google.protobuf.AbstractParser<DeployKubeComponentsResponse>() {
@java.lang.Override
public DeployKubeComponentsResponse 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<DeployKubeComponentsResponse> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<DeployKubeComponentsResponse> getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.chalk.protos.chalk.server.v1.DeployKubeComponentsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/DeployKubeComponentsResponseOrBuilder.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/builder.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
public interface DeployKubeComponentsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:chalk.server.v1.DeployKubeComponentsResponse)
com.google.protobuf.MessageOrBuilder {
}
|
0
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server
|
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/server/v1/DeployProto.java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chalk/server/v1/deploy.proto
// Protobuf Java Version: 3.25.1
package ai.chalk.protos.chalk.server.v1;
public final class DeployProto {
private DeployProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_DeployBranchRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_DeployBranchRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_DeployBranchResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_DeployBranchResponse_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_GetDeploymentRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_GetDeploymentRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_GetDeploymentResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_GetDeploymentResponse_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_ListDeploymentsRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_ListDeploymentsRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_ListDeploymentsResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_ListDeploymentsResponse_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_SuspendDeploymentRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_SuspendDeploymentRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_SuspendDeploymentResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_SuspendDeploymentResponse_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_ScaleDeploymentRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_ScaleDeploymentRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_ScaleDeploymentResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_ScaleDeploymentResponse_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_TagDeploymentRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_TagDeploymentRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_TagDeploymentResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_TagDeploymentResponse_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_GetActiveDeploymentsRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_GetActiveDeploymentsRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_chalk_server_v1_GetActiveDeploymentsResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_chalk_server_v1_GetActiveDeploymentsResponse_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\034chalk/server/v1/deploy.proto\022\017chalk.se" +
"rver.v1\032\031chalk/auth/v1/audit.proto\032\037chal" +
"k/auth/v1/permissions.proto\032 chalk/serve" +
"r/v1/deployment.proto\"\227\001\n\023DeployBranchRe" +
"quest\022\037\n\013branch_name\030\001 \001(\tR\nbranchName\022!" +
"\n\014reset_branch\030\002 \001(\010R\013resetBranch\022\030\n\007arc" +
"hive\030\003 \001(\014R\007archive\022\"\n\ris_hot_deploy\030\004 \001" +
"(\010R\013isHotDeploy\";\n\024DeployBranchResponse\022" +
"#\n\rdeployment_id\030\001 \001(\tR\014deploymentId\";\n\024" +
"GetDeploymentRequest\022#\n\rdeployment_id\030\001 " +
"\001(\tR\014deploymentId\"T\n\025GetDeploymentRespon" +
"se\022;\n\ndeployment\030\001 \001(\0132\033.chalk.server.v1" +
".DeploymentR\ndeployment\"\030\n\026ListDeploymen" +
"tsRequest\"X\n\027ListDeploymentsResponse\022=\n\013" +
"deployments\030\001 \003(\0132\033.chalk.server.v1.Depl" +
"oymentR\013deployments\"?\n\030SuspendDeployment" +
"Request\022#\n\rdeployment_id\030\001 \001(\tR\014deployme" +
"ntId\"X\n\031SuspendDeploymentResponse\022;\n\ndep" +
"loyment\030\001 \001(\0132\033.chalk.server.v1.Deployme" +
"ntR\ndeployment\"v\n\026ScaleDeploymentRequest" +
"\022#\n\rdeployment_id\030\001 \001(\tR\014deploymentId\0227\n" +
"\006sizing\030\002 \001(\0132\037.chalk.server.v1.Instance" +
"SizingR\006sizing\"V\n\027ScaleDeploymentRespons" +
"e\022;\n\ndeployment\030\001 \001(\0132\033.chalk.server.v1." +
"DeploymentR\ndeployment\"M\n\024TagDeploymentR" +
"equest\022#\n\rdeployment_id\030\001 \001(\tR\014deploymen" +
"tId\022\020\n\003tag\030\002 \001(\tR\003tag\"\252\001\n\025TagDeploymentR" +
"esponse\022;\n\ndeployment\030\001 \001(\0132\033.chalk.serv" +
"er.v1.DeploymentR\ndeployment\0229\n\026untagged" +
"_deployment_id\030\002 \001(\tH\000R\024untaggedDeployme" +
"ntId\210\001\001B\031\n\027_untagged_deployment_id\"\035\n\033Ge" +
"tActiveDeploymentsRequest\"]\n\034GetActiveDe" +
"ploymentsResponse\022=\n\013deployments\030\001 \003(\0132\033" +
".chalk.server.v1.DeploymentR\013deployments" +
"2\216\006\n\rDeployService\022`\n\014DeployBranch\022$.cha" +
"lk.server.v1.DeployBranchRequest\032%.chalk" +
".server.v1.DeployBranchResponse\"\003\200}\r\022c\n\r" +
"GetDeployment\022%.chalk.server.v1.GetDeplo" +
"ymentRequest\032&.chalk.server.v1.GetDeploy" +
"mentResponse\"\003\200}\013\022i\n\017ListDeployments\022\'.c" +
"halk.server.v1.ListDeploymentsRequest\032(." +
"chalk.server.v1.ListDeploymentsResponse\"" +
"\003\200}\013\022x\n\024GetActiveDeployments\022,.chalk.ser" +
"ver.v1.GetActiveDeploymentsRequest\032-.cha" +
"lk.server.v1.GetActiveDeploymentsRespons" +
"e\"\003\200}\002\022u\n\021SuspendDeployment\022).chalk.serv" +
"er.v1.SuspendDeploymentRequest\032*.chalk.s" +
"erver.v1.SuspendDeploymentResponse\"\t\200}\014\212" +
"\323\016\002\010\002\022o\n\017ScaleDeployment\022\'.chalk.server." +
"v1.ScaleDeploymentRequest\032(.chalk.server" +
".v1.ScaleDeploymentResponse\"\t\200}\014\212\323\016\002\010\002\022i" +
"\n\rTagDeployment\022%.chalk.server.v1.TagDep" +
"loymentRequest\032&.chalk.server.v1.TagDepl" +
"oymentResponse\"\t\200}\014\212\323\016\002\010\002B\240\001\n\037ai.chalk.p" +
"rotos.chalk.server.v1B\013DeployProtoP\001Z\022se" +
"rver/v1;serverv1\242\002\003CSX\252\002\017Chalk.Server.V1" +
"\312\002\017Chalk\\Server\\V1\342\002\033Chalk\\Server\\V1\\GPB" +
"Metadata\352\002\021Chalk::Server::V1b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
ai.chalk.protos.chalk.auth.v1.AuditProto.getDescriptor(),
ai.chalk.protos.chalk.auth.v1.PermissionsProto.getDescriptor(),
ai.chalk.protos.chalk.server.v1.DeploymentProto.getDescriptor(),
});
internal_static_chalk_server_v1_DeployBranchRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_chalk_server_v1_DeployBranchRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_DeployBranchRequest_descriptor,
new java.lang.String[] { "BranchName", "ResetBranch", "Archive", "IsHotDeploy", });
internal_static_chalk_server_v1_DeployBranchResponse_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_chalk_server_v1_DeployBranchResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_DeployBranchResponse_descriptor,
new java.lang.String[] { "DeploymentId", });
internal_static_chalk_server_v1_GetDeploymentRequest_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_chalk_server_v1_GetDeploymentRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_GetDeploymentRequest_descriptor,
new java.lang.String[] { "DeploymentId", });
internal_static_chalk_server_v1_GetDeploymentResponse_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_chalk_server_v1_GetDeploymentResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_GetDeploymentResponse_descriptor,
new java.lang.String[] { "Deployment", });
internal_static_chalk_server_v1_ListDeploymentsRequest_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_chalk_server_v1_ListDeploymentsRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_ListDeploymentsRequest_descriptor,
new java.lang.String[] { });
internal_static_chalk_server_v1_ListDeploymentsResponse_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_chalk_server_v1_ListDeploymentsResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_ListDeploymentsResponse_descriptor,
new java.lang.String[] { "Deployments", });
internal_static_chalk_server_v1_SuspendDeploymentRequest_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_chalk_server_v1_SuspendDeploymentRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_SuspendDeploymentRequest_descriptor,
new java.lang.String[] { "DeploymentId", });
internal_static_chalk_server_v1_SuspendDeploymentResponse_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_chalk_server_v1_SuspendDeploymentResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_SuspendDeploymentResponse_descriptor,
new java.lang.String[] { "Deployment", });
internal_static_chalk_server_v1_ScaleDeploymentRequest_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_chalk_server_v1_ScaleDeploymentRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_ScaleDeploymentRequest_descriptor,
new java.lang.String[] { "DeploymentId", "Sizing", });
internal_static_chalk_server_v1_ScaleDeploymentResponse_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_chalk_server_v1_ScaleDeploymentResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_ScaleDeploymentResponse_descriptor,
new java.lang.String[] { "Deployment", });
internal_static_chalk_server_v1_TagDeploymentRequest_descriptor =
getDescriptor().getMessageTypes().get(10);
internal_static_chalk_server_v1_TagDeploymentRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_TagDeploymentRequest_descriptor,
new java.lang.String[] { "DeploymentId", "Tag", });
internal_static_chalk_server_v1_TagDeploymentResponse_descriptor =
getDescriptor().getMessageTypes().get(11);
internal_static_chalk_server_v1_TagDeploymentResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_TagDeploymentResponse_descriptor,
new java.lang.String[] { "Deployment", "UntaggedDeploymentId", });
internal_static_chalk_server_v1_GetActiveDeploymentsRequest_descriptor =
getDescriptor().getMessageTypes().get(12);
internal_static_chalk_server_v1_GetActiveDeploymentsRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_GetActiveDeploymentsRequest_descriptor,
new java.lang.String[] { });
internal_static_chalk_server_v1_GetActiveDeploymentsResponse_descriptor =
getDescriptor().getMessageTypes().get(13);
internal_static_chalk_server_v1_GetActiveDeploymentsResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_chalk_server_v1_GetActiveDeploymentsResponse_descriptor,
new java.lang.String[] { "Deployments", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(ai.chalk.protos.chalk.auth.v1.AuditProto.audit);
registry.add(ai.chalk.protos.chalk.auth.v1.PermissionsProto.permission);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
ai.chalk.protos.chalk.auth.v1.AuditProto.getDescriptor();
ai.chalk.protos.chalk.auth.v1.PermissionsProto.getDescriptor();
ai.chalk.protos.chalk.server.v1.DeploymentProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.